Function at 0x418cd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x480
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
call dword [0x4252a8]
test eax, eax
jne 0x4190f7
mov eax, dword [ebp - 0x1c]
push ebx
push dword [eax + 0x1c]
lea eax, [ebp - 0x480]
push eax
call dword [0x425278]
push dword [ebp - 0x1c]
call dword [0x425264]
mov ebx, dword [0x425460]
mov dword [ebp - 0x20], ebx
cmp word [ebx], 0
je 0x4190f6
push esi
push edi
push ebx
lea eax, [ebp - 0x278]
push eax
call dword [0x425278]
lea eax, [ebp - 0x278]
push 0x3a
push eax
call dword [0x4253e0]
add esp, 8
test eax, eax
je 0x418eab
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x278]
add eax, 2
mov dword [ebp - 0x18], ecx
push 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x480]
push 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0x418c80
push 0
push 0
call dword [0x425348]
mov esi, eax
mov dword [ebp - 4], 0
test esi, esi
je 0x418eab
push 0xbb8
push esi
call dword [0x42523c]
cmp eax, 0x102
jne 0x418db2
push 0
push esi
call dword [0x425328]
jmp 0x418dbd
lea eax, [ebp - 4]
push eax
push esi
call dword [0x425360]
push esi
call dword [0x4251e0]
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x418eab
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push 0
push 0
push 2
push eax
call dword [0x42502c]
mov edi, dword [ebp - 8]
push edi
push 8
push dword [0x425ba8]
call dword [0x425358]
mov esi, eax
test esi, esi
jne 0x418e22
push 0x80
call dword [0x425428]
push edi
push 8
push dword [0x425ba8]
call dword [0x425358]
mov esi, eax
test esi, esi
je 0x418e02
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push esi
push 2
push dword [ebp - 0xc]
call dword [0x42502c]
test eax, eax
je 0x418e90
xor ebx, ebx
cmp dword [esi], ebx
jbe 0x418e90
lea eax, [esi + 4]
mov dword [ebp - 0xc], eax
mov edi, dword [eax]
push edi
call dword [0x4251d0]
mov edx, 0x423f0c
mov ecx, dword [eax]
cmp ecx, dword [edx]
jne 0x418e82
movzx eax, word [eax + 4]
cmp ax, word [edx + 4]
jne 0x418e82
push edi
call dword [0x4251b0]
movzx eax, byte [eax]
cmp eax, 1
jbe 0x418e82
cmp dword [edi + 8], 0x15
jne 0x418e82
cmp dword [edi + eax*4 + 4], 0x200
je 0x418ecc
mov eax, dword [ebp - 0xc]
inc ebx
add eax, 8
mov dword [ebp - 0xc], eax
cmp ebx, dword [esi]
jb 0x418e45
push esi
push 0
push dword [0x425ba8]
call dword [0x425290]
push dword [ebp - 4]
call dword [0x4251e0]
mov ebx, dword [ebp - 0x20]
push ebx
call dword [0x4252e0]
lea ebx, [ebx + eax*2]
add ebx, 2
mov dword [ebp - 0x20], ebx
cmp word [ebx], 0
jne 0x418d27
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0
push dword [0x425ba8]
call dword [0x425290]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
push 2
push 2
push 0
push 0x2000000
push dword [ebp - 4]
call dword [0x4251e4]
test eax, eax
je 0x418e9f
mov ecx, dword [0x425a48]
mov eax, dword [ebp - 0x24]
push dword [ebp - 0x14]
mov dword [ecx*4 + 0x425a50], eax
inc ecx
mov dword [0x425a48], ecx
call dword [0x4252e0]
lea esi, [eax*2 + 2]
push esi
push 8
push dword [0x425ba8]
call dword [0x425358]
test eax, eax
jne 0x418f5e
jmp 0x418f40
push 0x80
call dword [0x425428]
push esi
push 8
push dword [0x425ba8]
call dword [0x425358]
test eax, eax
je 0x418f40
push dword [ebp - 0x18]
mov dword [0x425b90], eax
call dword [0x4252e0]
lea esi, [eax*2 + 2]
push esi
push 8
push dword [0x425ba8]
call dword [0x425358]
test eax, eax
jne 0x418fae
jmp 0x418f90
push 0x80
call dword [0x425428]
push esi
push 8
push dword [0x425ba8]
call dword [0x425358]
test eax, eax
je 0x418f90
push dword [ebp - 0x10]
mov dword [0x425a4c], eax
call dword [0x4252e0]
lea esi, [eax*2 + 2]
push esi
push 8
push dword [0x425ba8]
call dword [0x425358]
test eax, eax
jne 0x418ffe
jmp 0x418fe0
push 0x80
call dword [0x425428]
push esi
push 8
push dword [0x425ba8]
call dword [0x425358]
test eax, eax
je 0x418fe0
push dword [ebp - 0x14]
mov dword [0x425b94], eax
push dword [0x425b90]
call dword [0x425278]
push dword [ebp - 0x18]
push dword [0x425a4c]
call dword [0x425278]
push dword [ebp - 0x10]
push dword [0x425b94]
call dword [0x425278]
mov dword [ebp - 0x70], 0xa30080
mov ecx, 0xcc
mov dword [ebp - 0x6c], 0xa300ab
xor eax, eax
mov dword [ebp - 0x68], 0xec00a2
mov dword [ebp - 0x64], 0xa30088
mov dword [ebp - 0x60], 0xa900a2
mov dword [ebp - 0x5c], 0x8a00ec
mov dword [ebp - 0x58], 0xa300be
mov dword [ebp - 0x54], 0xec00a1
mov dword [ebp - 0x50], 0xbe008f
mov dword [ebp - 0x4c], 0xa800a9
mov dword [ebp - 0x48], 0xa200a9
mov dword [ebp - 0x44], 0xa500b8
mov dword [ebp - 0x40], 0xa000ad
mov dword [ebp - 0x3c], 0xf600bf
mov dword [ebp - 0x38], 0xe900ec
mov dword [ebp - 0x34], 0x9000bf
mov dword [ebp - 0x30], 0xbf00e9
mov dword [ebp - 0x2c], 0xe900f6
mov dword [ebp - 0x28], 0xcc00bf
lea esp, [esp]
xor word [ebp + eax*2 - 0x70], cx
inc eax
cmp eax, 0x26
jb 0x4190c0
push dword [0x425b94]
lea eax, [ebp - 0x70]
push dword [0x425a4c]
push dword [0x425b90]
push eax
push 0
call fcn.0040b980
add esp, 0x14
push dword [ebp - 4]
call dword [0x4251e0]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret