Function at 0x4e37f0
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.00479aa0
pop eax
mov edx, dword [esp + 0x68]
push edx
call fcn.00479cc0
mov dword [esp + 0x48], eax
pop eax
mov eax, dword [esp + 0x68]
push eax
call fcn.00479cc0
mov dword [esp + 0x44], eax
pop eax
mov ebp, dword [esp + 0x68]
push ebp
call fcn.00479cc0
mov dword [esp + 0x40], eax
pop edi
mov esi, dword [esp + 0x68]
push esi
call fcn.00479cc0
mov dword [esp + 0x3c], eax
add esp, 0x10
test eax, eax
je 0x4e3c30
sub esp, 8
push 1
mov ebx, dword [esp + 0x44]
push ebx
call fcn.00478010
add esp, 0x10
test eax, eax
je 0x4e3c30
sub esp, 0xc
mov esi, dword [esp + 0x64]
push esi
call fcn.00477490
add esp, 0xc
push 0x1a8
push 0x531fd0
lea edi, [eax*4]
push edi
mov ebp, eax
call fcn.00458d40
add esp, 0x10
test eax, eax
mov dword [esp + 0x24], eax
je 0x4e3c30
mov eax, dword [esp + 0x58]
mov edx, dword [eax + 4]
xor esi, esi
test edx, edx
jne 0x4e3c49
xor eax, eax
test eax, eax
mov ebx, eax
je 0x4e38c3
cmp eax, ebp
jle 0x4e3d11
sub esp, 0xc
push 0x1ac
push 0x531fd0
push 0x6a
push 0x83
push 3
call fcn.0045de50
add esp, 0x20
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x4e38f9
sub esp, 0xc
mov edi, dword [esp + 0x30]
push edi
call fcn.00459050
add esp, 0x10
test ebx, ebx
je 0x4e3c30
sub esp, 8
mov eax, dword [esp + 0x60]
push eax
mov ebx, dword [esp + 0x38]
push ebx
call fcn.00477820
add esp, 0x10
test eax, eax
je 0x4e3c30
mov ebp, dword [esp + 0x30]
mov edx, dword [ebp + 4]
test edx, edx
je 0x4e3c30
test edx, edx
jle 0x4e3940
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
test byte [eax], 1
jne 0x4e3a57
sub esp, 8
mov edx, dword [esp + 0x38]
push edx
mov esi, dword [esp + 0x3c]
push esi
call fcn.004d5990
add esp, 0x10
test eax, eax
je 0x4e3c30
mov edi, dword [esp + 0x38]
mov edx, dword [edi + 4]
test edx, edx
jle 0x4e3a20
mov ecx, dword [edi]
test byte [ecx], 1
je 0x4e3a20
mov eax, dword [esp + 0x58]
cmp edx, dword [eax + 4]
jge 0x4e3ccc
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 0x4e3cf0
mov eax, dword [esp + 0x18]
mov ebp, dword [eax + 4]
xor edx, edx
cmp ebp, 0
jle 0x4e39ce
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 0x4e39c0
cmp ebx, edx
jle 0x4e39eb
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 0x4e39e0
test ebx, ebx
mov ecx, ebx
jle 0x4e3d05
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 0x4e3a12
mov ecx, ebx
test ecx, ecx
lea ebx, [ebx - 1]
jg 0x4e3a00
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.004d5990
add esp, 0x10
test eax, eax
je 0x4e3c30
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 4]
test edx, edx
jle 0x4e3940
mov eax, dword [ecx]
test byte [eax], 1
je 0x4e3940
dec edx
je 0x4e3c05
sub esp, 0xc
mov ebp, dword [esp + 0x3c]
push ebp
call fcn.00477490
mov esi, eax
pop eax
mov edx, dword [esp + 0x38]
push edx
call fcn.00477490
add esp, 0x10
cmp esi, eax
jge 0x4e3a9f
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 0x4e3d37
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 0x4e3d61
mov eax, dword [esp + 0x10]
mov ebp, dword [eax + 4]
xor edx, edx
cmp ebp, 0
jle 0x4e3afe
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 0x4e3af0
cmp esi, edx
jle 0x4e3b1a
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 0x4e3b0f
test esi, esi
mov ecx, esi
mov ebx, esi
jle 0x4e3d93
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 0x4e3b42
lea ebx, [ecx - 1]
test ebx, ebx
mov ecx, ebx
jg 0x4e3b30
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 0x4e3d4c
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 0x4e3d7a
mov eax, dword [esp + 8]
mov ebp, dword [eax + 4]
xor edx, edx
cmp ebp, 0
jle 0x4e3bae
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 0x4e3ba0
cmp esi, edx
jle 0x4e3bca
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 0x4e3bbf
test esi, esi
mov ebx, esi
mov ecx, esi
jle 0x4e3d9f
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 0x4e3bf2
lea ebx, [ecx - 1]
test ebx, ebx
mov ecx, ebx
jg 0x4e3be0
mov ecx, dword [esp + 0x38]
mov dword [ecx + 4], ebx
mov eax, dword [esp + 0x30]
mov edx, dword [eax + 4]
jmp 0x4e392d
cmp dword [eax], 1
jne 0x4e3a5e
sub esp, 8
mov edx, dword [esp + 0x40]
push edx
mov ebp, dword [esp + 0x5c]
push ebp
call fcn.00477820
add esp, 0x10
test eax, eax
je 0x4e3c30
mov dword [esp + 0x28], 1
nop
sub esp, 0xc
mov esi, dword [esp + 0x68]
push esi
call fcn.00479a10
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.00478560
add esp, 0x10
test eax, eax
je 0x4e38b3
mov edx, dword [esp + 0x58]
mov ecx, dword [edx + 4]
dec ecx
mov dword [esp + 0x20], ecx
js 0x4e3d30
mov eax, dword [edx]
shl ecx, 5
mov dword [esp + 4], eax
mov dword [esp], ecx
jmp 0x4e3c8d
sub dword [esp], 0x20
dec dword [esp + 0x20]
js 0x4e3d30
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 4]
mov eax, dword [ecx + ebx*4]
test eax, eax
je 0x4e3c7f
mov ecx, 0x80000000
mov edx, 0x1f
mov ebx, eax
nop
lea esi, [esi]
test ecx, ebx
je 0x4e3cc5
cmp esi, ebp
jge 0x4e3cc4
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 0x4e3cb0
jmp 0x4e3c7f
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 0x4e39a0
sub esp, 8
push ebx
push eax
call fcn.00477690
add esp, 0x10
mov ebx, dword [edi + 4]
jmp 0x4e39a0
mov ecx, dword [esp + 0x38]
mov dword [ecx + 4], ebx
jmp 0x4e3a20
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.004e2cc0
mov ebx, eax
add esp, 0x10
jmp 0x4e38e1
mov eax, esi
jmp 0x4e38b5
mov ebp, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], edx
jmp 0x4e3abb
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
mov dword [esp + 0xc], edx
mov dword [esp + 8], edi
jmp 0x4e3b65
sub esp, 8
push esi
push edi
call fcn.00477690
add esp, 0x10
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx + 4]
jmp 0x4e3acf
sub esp, 8
push esi
push ecx
call fcn.00477690
add esp, 0x10
mov ecx, dword [esp + 0xc]
mov esi, dword [ecx + 4]
jmp 0x4e3b79
mov ebp, dword [esp + 0x30]
mov dword [ebp + 4], esi
jmp 0x4e3b49
mov edi, dword [esp + 0x38]
mov dword [edi + 4], esi
jmp 0x4e3bf9