Function at 0x478880
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x5cdd07
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x680f10]
xor eax, esp
mov dword [esp + 0xec], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x680f10]
xor eax, esp
push eax
lea eax, [esp + 0x104]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x118]
mov eax, dword [esp + 0x114]
mov edi, 1
cmp ebx, edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], 0
jb 0x478995
lea edx, [ebx + eax - 1]
mov dword [esp + 0x18], edx
cmp edi, 4
mov eax, edi
mov ecx, 0x5efcc4
jb 0x478914
lea ebx, [ebx]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x478918
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x478900
test eax, eax
je 0x478975
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x478967
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x478975
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x478967
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x478975
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x478967
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x478975
movzx esi, byte [edx]
movzx eax, byte [ecx]
sub esi, eax
je 0x478975
test esi, esi
mov eax, 1
jg 0x478977
or eax, 0xffffffff
jmp 0x478977
xor eax, eax
test eax, eax
jne 0x47897f
mov dword [esp + 0x14], edi
mov edx, dword [esp + 0x18]
add edi, 1
sub edx, 1
cmp edi, ebx
mov dword [esp + 0x18], edx
jbe 0x4788ee
sub ebx, dword [esp + 0x14]
push 0x5efce4
lea ecx, [esp + 0xa4]
mov dword [esp + 0x1c], ebx
call fcn.0048cd50
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0xa0]
add esi, 0x14
push ecx
xor edi, edi
mov ecx, esi
mov dword [esp + 0x110], edi
call fcn.004b7af0
mov ebx, 0x10
cmp dword [esp + 0xbc], ebx
mov ebp, eax
mov dword [esp + 0x10c], 0xffffffff
mov dword [esp + 0xa0], 0x5f1558
jb 0x478a03
mov edx, dword [esp + 0xa8]
push edx
call fcn.004274fc
add esp, 4
cmp ebp, edi
mov dword [esp + 0xbc], 0xf
mov dword [esp + 0xb8], edi
mov byte [esp + 0xa8], 0
mov dword [esp + 0xa0], 0x5f13d0
je 0x478fcc
push 0x5efcec
lea ecx, [esp + 0x84]
mov dword [esp + 0x18], 0
call fcn.0048cd50
lea eax, [esp + 0x80]
push eax
mov ecx, ebp
mov dword [esp + 0x110], 1
call fcn.004b7a30
cmp dword [esp + 0x9c], ebx
mov edi, eax
mov dword [esp + 0x10c], 0xffffffff
mov dword [esp + 0x80], 0x5f1558
jb 0x478a94
mov ecx, dword [esp + 0x88]
push ecx
call fcn.004274fc
add esp, 4
test edi, edi
mov dword [esp + 0x9c], 0xf
mov dword [esp + 0x98], 0
mov byte [esp + 0x88], 0
mov dword [esp + 0x80], 0x5f13d0
je 0x478afa
mov ecx, edi
call fcn.004b57f0
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov dword [esp + 0xc0], eax
fldcw word [esp + 0xc0]
fistp qword [esp + 0xc0]
mov edx, dword [esp + 0xc0]
fldcw word [esp + 0x14]
mov dword [esp + 0x14], edx
push 0x5efcf0
lea ecx, [esp + 0x84]
xor ebx, ebx
call fcn.0048cd50
lea eax, [esp + 0x80]
push eax
mov ecx, esi
mov dword [esp + 0x110], 2
call fcn.004b7ac0
mov edi, 0x10
cmp dword [esp + 0x9c], edi
mov esi, eax
mov dword [esp + 0x10c], 0xffffffff
mov dword [esp + 0x80], 0x5f1558
jb 0x478b5d
mov ecx, dword [esp + 0x88]
push ecx
call fcn.004274fc
add esp, 4
test esi, esi
mov dword [esp + 0x9c], 0xf
mov dword [esp + 0x98], 0
mov byte [esp + 0x88], 0
mov dword [esp + 0x80], 0x5f13d0
je 0x478bb3
mov ecx, esi
call fcn.004b5810
test eax, eax
je 0x478bb3
push 0
mov ecx, esi
call fcn.004b5830
mov ebx, eax
test ebx, ebx
je 0x478bb3
mov edx, dword [ebx]
mov eax, dword [edx]
mov ecx, ebx
call eax
cmp eax, 2
je 0x478bb3
xor ebx, ebx
push 0x5efcf4
lea ecx, [esp + 0x84]
call fcn.0048cd50
lea ecx, [esp + 0x80]
push ecx
mov ecx, ebp
mov dword [esp + 0x110], 3
call fcn.004b7a90
cmp dword [esp + 0x9c], edi
mov esi, eax
mov dword [esp + 0x10c], 0xffffffff
mov dword [esp + 0x80], 0x5f1558
jb 0x478c0f
mov edx, dword [esp + 0x88]
push edx
call fcn.004274fc
add esp, 4
xor eax, eax
cmp esi, eax
mov dword [esp + 0x9c], 0xf
mov dword [esp + 0x98], eax
mov byte [esp + 0x88], al
mov dword [esp + 0x80], 0x5f13d0
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
je 0x478cbe
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
cmp eax, 2
jne 0x478cbe
mov ecx, esi
lea ebp, [eax + 0x1e]
call fcn.004b57d0
cmp dword [eax + 0x14], ebp
jae 0x478c97
mov ecx, esi
call fcn.004b57d0
mov ebp, dword [eax + 0x14]
mov ecx, esi
call fcn.004b57d0
cmp dword [eax + 0x18], 0x10
jb 0x478ca9
mov eax, dword [eax + 4]
jmp 0x478cac
add eax, 4
push ebp
push eax
lea eax, [esp + 0xa8]
push eax
call fcn.00450150
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
call fcn.00475210
mov eax, dword [esp + 0x14]
cmp eax, 2
jne 0x478df4
mov ebx, dword [esp + 0x1c]
mov ecx, 8
mov esi, 0x5efcc4
lea edi, [esp + 0x80]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x180]
push 0x20
lea eax, [esp + 0x84]
push eax
shr ecx, 3
push ecx
lea edx, [ebx + 0x7a8]
push edx
call fcn.004a0310
add esp, 0x10
mov eax, 0x20
lea ecx, [esp + 0x80]
lea edx, [esp + 0xa0]
jmp 0x478d30
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x478d48
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x478d30
test eax, eax
je 0x478da5
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x478d97
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x478da5
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x478d97
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x478da5
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x478d97
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x478da5
movzx esi, byte [edx]
movzx eax, byte [ecx]
sub esi, eax
je 0x478da5
test esi, esi
mov eax, 1
jg 0x478da7
or eax, 0xffffffff
jmp 0x478da7
xor eax, eax
test eax, eax
jne 0x478fcc
mov edi, dword [esp + 0x18]
lea ecx, [edi + 1]
push ecx
call fcn.00427501
mov esi, eax
add esp, 4
test esi, esi
je 0x478ded
mov edx, dword [esp + 0x20]
push edi
push edx
push esi
call fcn.00450150
lea ecx, [ebx + 0x17c]
add esp, 0xc
push esi
mov byte [edi + esi], 0
call fcn.0048be10
push esi
call fcn.004274fc
add esp, 4
mov al, 1
jmp 0x478fce
cmp eax, 3
jb 0x478fcc
push 0x5c
lea eax, [esp + 0x28]
push 0
mov ecx, 8
mov esi, 0x5efcc4
lea edi, [esp + 0xe8]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.0044dac0
lea ecx, [esp + 0x30]
push ecx
call fcn.00562400
push 0x20
lea edx, [esp + 0xf4]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.00562aa0
add esp, 0x1c
test ebx, ebx
je 0x478e7e
mov edx, dword [ebx]
mov eax, dword [edx]
mov ecx, ebx
call eax
cmp eax, 2
jne 0x478e7e
mov ecx, ebx
call fcn.004b57d0
mov esi, dword [eax + 0x14]
mov ecx, ebx
call fcn.004b57d0
cmp dword [eax + 0x18], 0x10
jb 0x478e6c
mov eax, dword [eax + 4]
jmp 0x478e6f
add eax, 4
push esi
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00562aa0
add esp, 0xc
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0xc4]
push eax
call fcn.00562d70
mov ebp, dword [esp + 0x24]
mov edx, dword [ebp + 0x180]
push 0x10
lea ecx, [esp + 0xcc]
push ecx
shr edx, 3
push edx
lea edi, [ebp + 0x7a8]
push edi
call fcn.004a0310
add esp, 0x18
mov ebx, 1
lea esp, [esp]
mov esi, dword [ebp + 0x180]
xor eax, eax
shr esi, 3
je 0x478ee3
lea ecx, [ecx]
mov cl, byte [edi + eax]
xor cl, bl
mov byte [esp + eax + 0xd0], cl
add eax, 1
cmp eax, esi
jb 0x478ed0
push 0x10
lea edx, [esp + 0xc4]
push edx
lea eax, [esp + 0xd8]
push esi
push eax
call fcn.004a0310
add ebx, 1
add esp, 0x10
cmp ebx, 0x13
jbe 0x478ec0
mov eax, 0x10
lea ecx, [esp + 0xc0]
lea edx, [esp + 0xa0]
lea esp, [esp]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x478f38
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x478f20
test eax, eax
je 0x478f95
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x478f87
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x478f95
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x478f87
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x478f95
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x478f87
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x478f95
movzx esi, byte [edx]
movzx ecx, byte [ecx]
sub esi, ecx
je 0x478f95
test esi, esi
mov eax, 1
jg 0x478f97
or eax, 0xffffffff
jmp 0x478f97
xor eax, eax
test eax, eax
jne 0x478fcc
mov edi, dword [esp + 0x18]
lea edx, [edi + 1]
push edx
call fcn.00427501
mov esi, eax
add esp, 4
test esi, esi
je 0x478ded
mov eax, dword [esp + 0x20]
push edi
push eax
push esi
call fcn.00450150
lea ecx, [ebp + 0x17c]
jmp 0x478dd7
xor al, al
mov ecx, dword [esp + 0x104]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xec]
xor ecx, esp
call fcn.0044abb9
add esp, 0xfc
ret 8