Function at 0x4e2a80
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x48
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x34], 0
push ecx
call fcn.00478d30
pop eax
mov edx, dword [esp + 0x68]
push edx
call fcn.00478f50
mov dword [esp + 0x48], eax
pop eax
mov eax, dword [esp + 0x68]
push eax
call fcn.00478f50
mov dword [esp + 0x44], eax
pop eax
mov ebp, dword [esp + 0x68]
push ebp
call fcn.00478f50
mov dword [esp + 0x40], eax
pop edi
mov esi, dword [esp + 0x68]
push esi
call fcn.00478f50
mov dword [esp + 0x3c], eax
add esp, 0x10
test eax, eax
je 0x4e2ec0
sub esp, 8
push 1
mov ebx, dword [esp + 0x44]
push ebx
call fcn.004772a0
add esp, 0x10
test eax, eax
je 0x4e2ec0
sub esp, 0xc
mov esi, dword [esp + 0x64]
push esi
call fcn.00476720
add esp, 0xc
push 0x1a8
push 0x530e30
lea edi, [eax*4]
push edi
mov ebp, eax
call fcn.00457fd0
add esp, 0x10
test eax, eax
mov dword [esp + 0x24], eax
je 0x4e2ec0
mov eax, dword [esp + 0x58]
mov edx, dword [eax + 4]
xor esi, esi
test edx, edx
jne 0x4e2ed9
xor eax, eax
test eax, eax
mov ebx, eax
je 0x4e2b53
cmp eax, ebp
jle 0x4e2fa1
sub esp, 0xc
push 0x1ac
push 0x530e30
push 0x6a
push 0x83
push 3
call fcn.0045d0e0
add esp, 0x20
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x4e2b89
sub esp, 0xc
mov edi, dword [esp + 0x30]
push edi
call fcn.004582e0
add esp, 0x10
test ebx, ebx
je 0x4e2ec0
sub esp, 8
mov eax, dword [esp + 0x60]
push eax
mov ebx, dword [esp + 0x38]
push ebx
call fcn.00476ab0
add esp, 0x10
test eax, eax
je 0x4e2ec0
mov ebp, dword [esp + 0x30]
mov edx, dword [ebp + 4]
test edx, edx
je 0x4e2ec0
test edx, edx
jle 0x4e2bd0
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
test byte [eax], 1
jne 0x4e2ce7
sub esp, 8
mov edx, dword [esp + 0x38]
push edx
mov esi, dword [esp + 0x3c]
push esi
call fcn.004d4c20
add esp, 0x10
test eax, eax
je 0x4e2ec0
mov edi, dword [esp + 0x38]
mov edx, dword [edi + 4]
test edx, edx
jle 0x4e2cb0
mov ecx, dword [edi]
test byte [ecx], 1
je 0x4e2cb0
mov eax, dword [esp + 0x58]
cmp edx, dword [eax + 4]
jge 0x4e2f5c
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x1c]
mov ebx, dword [edi + 4]
mov eax, dword [esp + 0x38]
cmp ebx, dword [eax + 8]
jg 0x4e2f80
mov eax, dword [esp + 0x18]
mov ebp, dword [eax + 4]
xor edx, edx
cmp ebp, 0
jle 0x4e2c5e
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov edi, dword [esi]
mov esi, dword [ecx]
mov ecx, dword [eax]
mov eax, dword [ecx + edx*4]
xor eax, dword [esi + edx*4]
mov dword [edi + edx*4], eax
inc edx
cmp ebp, edx
jg 0x4e2c50
cmp ebx, edx
jle 0x4e2c7b
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x1c]
mov esi, dword [edi]
mov ecx, dword [ebp]
nop
mov eax, dword [ecx + edx*4]
mov dword [esi + edx*4], eax
inc edx
cmp ebx, edx
jg 0x4e2c70
test ebx, ebx
mov ecx, ebx
jle 0x4e2f95
mov edx, dword [esp + 0x38]
mov esi, dword [edx]
lea edx, [esi + ebx*4 - 4]
dec ebx
mov ebp, dword [edx]
sub edx, 4
test ebp, ebp
jne 0x4e2ca2
mov ecx, ebx
test ecx, ecx
lea ebx, [ebx - 1]
jg 0x4e2c90
mov ebx, dword [esp + 0x38]
mov dword [ebx + 4], ecx
lea esi, [esi]
sub esp, 8
mov eax, dword [esp + 0x40]
push eax
mov edi, dword [esp + 0x44]
push edi
call fcn.004d4c20
add esp, 0x10
test eax, eax
je 0x4e2ec0
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 4]
test edx, edx
jle 0x4e2bd0
mov eax, dword [ecx]
test byte [eax], 1
je 0x4e2bd0
dec edx
je 0x4e2e95
sub esp, 0xc
mov ebp, dword [esp + 0x3c]
push ebp
call fcn.00476720
mov esi, eax
pop eax
mov edx, dword [esp + 0x38]
push edx
call fcn.00476720
add esp, 0x10
cmp esi, eax
jge 0x4e2d2f
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], ebx
mov ecx, dword [esp + 0x2c]
mov esi, dword [ecx + 4]
mov edi, dword [esp + 0x30]
cmp dword [edi + 4], esi
jge 0x4e2fc7
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edi
mov ebx, dword [esp + 0x14]
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0x30]
cmp esi, dword [edi + 8]
jg 0x4e2ff1
mov eax, dword [esp + 0x10]
mov ebp, dword [eax + 4]
xor edx, edx
cmp ebp, 0
jle 0x4e2d8e
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edi, dword [ebx]
mov ebx, dword [ecx]
mov ecx, dword [eax]
nop
mov eax, dword [ecx + edx*4]
xor eax, dword [ebx + edx*4]
mov dword [edi + edx*4], eax
inc edx
cmp ebp, edx
jg 0x4e2d80
cmp esi, edx
jle 0x4e2daa
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x14]
mov ebx, dword [ebp]
mov ecx, dword [edi]
mov eax, dword [ecx + edx*4]
mov dword [ebx + edx*4], eax
inc edx
cmp esi, edx
jg 0x4e2d9f
test esi, esi
mov ecx, esi
mov ebx, esi
jle 0x4e3023
mov edx, dword [esp + 0x30]
mov edi, dword [edx]
lea edx, [edi + esi*4 - 4]
mov esi, dword [edx]
sub edx, 4
test esi, esi
jne 0x4e2dd2
lea ebx, [ecx - 1]
test ebx, ebx
mov ecx, ebx
jg 0x4e2dc0
mov ecx, dword [esp + 0x30]
mov dword [ecx + 4], ebx
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 4]
mov ecx, dword [esp + 0x38]
cmp dword [ecx + 4], eax
jge 0x4e2fdc
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov ebx, dword [esp + 0xc]
mov esi, dword [ebx + 4]
mov ecx, dword [esp + 0x38]
cmp esi, dword [ecx + 8]
jg 0x4e300a
mov eax, dword [esp + 8]
mov ebp, dword [eax + 4]
xor edx, edx
cmp ebp, 0
jle 0x4e2e3e
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov edi, dword [ebx]
mov ebx, dword [ecx]
mov ecx, dword [eax]
lea esi, [esi]
mov eax, dword [ecx + edx*4]
xor eax, dword [ebx + edx*4]
mov dword [edi + edx*4], eax
inc edx
cmp ebp, edx
jg 0x4e2e30
cmp esi, edx
jle 0x4e2e5a
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0xc]
mov ebx, dword [edi]
mov ecx, dword [ebp]
mov eax, dword [ecx + edx*4]
mov dword [ebx + edx*4], eax
inc edx
cmp esi, edx
jg 0x4e2e4f
test esi, esi
mov ebx, esi
mov ecx, esi
jle 0x4e302f
mov edx, dword [esp + 0x38]
mov ebp, dword [edx]
lea edx, [ebp + esi*4 - 4]
mov esi, dword [edx]
sub edx, 4
test esi, esi
jne 0x4e2e82
lea ebx, [ecx - 1]
test ebx, ebx
mov ecx, ebx
jg 0x4e2e70
mov ecx, dword [esp + 0x38]
mov dword [ecx + 4], ebx
mov eax, dword [esp + 0x30]
mov edx, dword [eax + 4]
jmp 0x4e2bbd
cmp dword [eax], 1
jne 0x4e2cee
sub esp, 8
mov edx, dword [esp + 0x40]
push edx
mov ebp, dword [esp + 0x5c]
push ebp
call fcn.00476ab0
add esp, 0x10
test eax, eax
je 0x4e2ec0
mov dword [esp + 0x28], 1
nop
sub esp, 0xc
mov esi, dword [esp + 0x68]
push esi
call fcn.00478ca0
mov eax, dword [esp + 0x38]
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 8
push 0
push eax
call fcn.004777f0
add esp, 0x10
test eax, eax
je 0x4e2b43
mov edx, dword [esp + 0x58]
mov ecx, dword [edx + 4]
dec ecx
mov dword [esp + 0x20], ecx
js 0x4e2fc0
mov eax, dword [edx]
shl ecx, 5
mov dword [esp + 4], eax
mov dword [esp], ecx
jmp 0x4e2f1d
sub dword [esp], 0x20
dec dword [esp + 0x20]
js 0x4e2fc0
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 4]
mov eax, dword [ecx + ebx*4]
test eax, eax
je 0x4e2f0f
mov ecx, 0x80000000
mov edx, 0x1f
mov ebx, eax
nop
lea esi, [esi]
test ecx, ebx
je 0x4e2f55
cmp esi, ebp
jge 0x4e2f54
mov eax, dword [esp]
add eax, edx
mov edi, dword [esp + 0x24]
mov dword [edi + esi*4], eax
inc esi
shr ecx, 1
dec edx
jns 0x4e2f40
jmp 0x4e2f0f
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x1c], ebx
mov edi, dword [esp + 0x58]
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x1c]
mov ebx, dword [edi + 4]
mov eax, dword [esp + 0x38]
cmp ebx, dword [eax + 8]
jle 0x4e2c30
sub esp, 8
push ebx
push eax
call fcn.00476920
add esp, 0x10
mov ebx, dword [edi + 4]
jmp 0x4e2c30
mov ecx, dword [esp + 0x38]
mov dword [ecx + 4], ebx
jmp 0x4e2cb0
push eax
mov edx, dword [esp + 0x28]
push edx
mov esi, dword [esp + 0x5c]
push esi
mov ebp, dword [esp + 0x3c]
push ebp
call fcn.004e1f50
mov ebx, eax
add esp, 0x10
jmp 0x4e2b71
mov eax, esi
jmp 0x4e2b45
mov ebp, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], edx
jmp 0x4e2d4b
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
mov dword [esp + 0xc], edx
mov dword [esp + 8], edi
jmp 0x4e2df5
sub esp, 8
push esi
push edi
call fcn.00476920
add esp, 0x10
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx + 4]
jmp 0x4e2d5f
sub esp, 8
push esi
push ecx
call fcn.00476920
add esp, 0x10
mov ecx, dword [esp + 0xc]
mov esi, dword [ecx + 4]
jmp 0x4e2e09
mov ebp, dword [esp + 0x30]
mov dword [ebp + 4], esi
jmp 0x4e2dd9
mov edi, dword [esp + 0x38]
mov dword [edi + 4], esi
jmp 0x4e2e89