Function at 0x477b74
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x111c0
call 0x4c82e0
push esi
push edi
lea eax, [esp + 0x740]
call fcn.004769b9
lea eax, [esp + 0x38]
call fcn.00477795
push 0
push dword [ebx + 4]
xor edi, edi
push dword [ebx]
inc edi
mov dword [esp + 0x24], edi
call 0x4bad61
add esp, 0xc
push 0x470d94
push dword [ebp + 8]
call 0x4b8dcc
pop ecx
pop ecx
test eax, eax
lea eax, [esp + 0xba8]
push eax
push dword [ebp + 8]
mov esi, ebx
jne 0x477c9b
call fcn.004780a8
test eax, eax
je 0x477be6
push 6
pop eax
jmp 0x477f32
lea eax, [esp + 0x320]
push eax
lea eax, [esp + 0xfc4]
push eax
lea eax, [esp + 0xdc0]
push eax
lea eax, [esp + 0x2c]
push eax
push dword [ebp + 0xc]
call 0x4b969e
add esp, 0x14
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x534]
push eax
call 0x4b71f7
lea eax, [esp + 0xdc0]
push eax
lea eax, [esp + 0x53c]
push eax
call 0x4b71c6
lea eax, [esp + 0x330]
push eax
lea eax, [esp + 0xfd4]
push eax
lea eax, [esp + 0xdd0]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0xbc8]
push eax
call 0x4b969e
add esp, 0x24
lea eax, [esp + 0xfc0]
push eax
lea eax, [esp + 0x534]
push eax
call 0x4b71c6
lea eax, [esp + 0x328]
push eax
lea eax, [esp + 0x53c]
push eax
call 0x4b71c6
lea eax, [esp + 0x540]
add esp, 0x10
mov dword [ebp + 0xc], eax
jmp 0x477ca8
call fcn.004780a8
test eax, eax
jne 0x477bde
push dword [ebx]
lea eax, [esp + 0xf]
push edi
push edi
push eax
call 0x4ba994
push dword [ebx]
lea eax, [esp + 0x24]
push edi
push 4
pop esi
push esi
push eax
call 0x4ba994
push dword [ebx]
mov edi, dword [esp + 0x34]
push 1
lea eax, [esp + 0x38]
push esi
xor edi, 0x87bc
push eax
mov dword [esp + 0x44], edi
call 0x4ba994
push dword [ebx]
lea eax, [esp + 0x44]
push 1
push esi
push eax
call 0x4ba994
mov eax, dword [esp + 0x50]
add esp, 0x40
push dword [ebx]
xor eax, 0xa685
push 1
mov dword [esp + 0x28], eax
lea eax, [esp + 0x34]
push esi
push eax
call 0x4ba994
push dword [ebx]
lea eax, [esp + 0x3c]
push 1
push esi
push eax
call 0x4ba994
push dword [ebx]
lea eax, [esp + 0x58]
push 1
push esi
push eax
call 0x4ba994
push dword [ebx]
lea eax, [esp + 0x64]
push 1
push esi
push eax
call 0x4ba994
add esp, 0x40
lea eax, [esp + 0x320]
push eax
push 0x104
call dword [0x46b238]
lea eax, [esp + 0x110]
push eax
push 0
push 0x470d8c
lea eax, [esp + 0x32c]
push eax
call dword [0x46b23c]
lea eax, [esp + 0x110]
push 0x470d98
push eax
call 0x4ba652
pop ecx
pop ecx
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x477d95
push 9
jmp 0x477be0
mov eax, dword [ebx + 8]
add eax, 0x2477
push eax
lea esi, [esp + 0x3c]
call fcn.004778d0
xor esi, esi
mov dword [esp + 0xc], esi
cmp edi, esi
jle 0x477e43
jmp 0x477dbb
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
add eax, 0x10000
cmp eax, edi
jle 0x477dd0
mov esi, edi
sub esi, dword [esp + 0xc]
jmp 0x477dd5
mov esi, 0x10000
push dword [ebx]
add dword [esp + 0x10], esi
push esi
lea eax, [esp + 0x11d0]
push 1
push eax
call 0x4ba994
add esp, 0x10
xor edi, edi
test esi, esi
jle 0x477e0a
lea eax, [esp + 0x38]
push eax
call fcn.004778a0
xor byte [esp + edi + 0x11c8], al
inc edi
cmp edi, esi
jl 0x477df4
push esi
lea eax, [esp + 0x11cc]
push eax
lea edi, [esp + 0x20]
call fcn.00476965
push dword [esp + 0x1c]
lea eax, [esp + 0x11cc]
push esi
push 1
push eax
call 0x4b9f46
mov eax, dword [esp + 0x1c]
add esp, 0x10
cmp eax, dword [esp + 0x14]
jl 0x477db7
xor esi, esi
push dword [esp + 0x1c]
call 0x4ba6d6
mov eax, dword [esp + 0x1c]
pop ecx
cmp dword [esp + 0x20], eax
je 0x477e6f
push 0xa
pop esi
lea eax, [esp + 0x110]
push eax
call dword [0x46b1cc]
mov eax, esi
jmp 0x477f32
cmp byte [esp + 0xb], 1
jne 0x477ecc
lea eax, [esp + 0x740]
call fcn.004769b9
lea eax, [esp + 0x110]
push eax
lea eax, [esp + 0x768]
push eax
mov dword [esp + 0x75c], esi
mov dword [esp + 0x760], esi
call 0x4b71f7
push dword [ebp + 0xc]
lea eax, [esp + 0x97a]
push eax
call 0x4b71f7
add esp, 0x10
lea eax, [esp + 0x740]
call fcn.004769e9
test eax, eax
je 0x477ee9
push 0xb
jmp 0x477e59
push esi
push dword [ebp + 0xc]
lea eax, [esp + 0x118]
push eax
call dword [0x46b1dc]
test eax, eax
jne 0x477ee9
push 7
jmp 0x477e59
lea eax, [esp + 0x110]
push eax
call dword [0x46b1cc]
push esi
push 0x80
push 3
push esi
push 1
push 0x40000000
push dword [ebp + 0xc]
call dword [0x46b198]
mov edi, eax
cmp edi, 0xffffffff
je 0x477f30
lea eax, [esp + 0x30]
push eax
push esi
lea eax, [esp + 0x30]
push eax
push edi
call dword [0x46b1bc]
push edi
call dword [fcn.0046b304]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8