Function at 0x4d8a50
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x74
push ebx
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 8]
push eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], eax
lea eax, [esp + 0x50]
push eax
push 0x1b
push edi
call fcn.004deb10
mov esi, eax
add esp, 0x10
mov dword [esp + 0x54], esi
test esi, esi
jne 0x4d8f7d
mov eax, dword [edi + 0x118]
mov ebx, dword [esp + 0x4c]
cdq
push edx
push eax
push 1
push ebx
call fcn.004b4b10
mov eax, dword [edi + 0x100]
cdq
push edx
push eax
push 2
push ebx
call fcn.004b4b10
add esp, 0x20
lea ecx, [ecx]
push ebx
call fcn.004b7120
add esp, 4
cmp eax, 0x64
jne 0x4d8bf3
test ebx, ebx
je 0x4d8b12
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4d8ae9
push eax
call dword [0x77fa08]
add esp, 4
mov eax, dword [ebx + 0x80]
test eax, eax
je 0x4d8afe
xor ecx, ecx
cmp cx, word [ebx + 0x98]
jb 0x4d8b17
mov eax, dword [ebx]
push 0x19
push eax
mov dword [eax + 0x40], 0x19
call fcn.00507140
add esp, 8
mov eax, 0x580598
movzx ecx, word [eax + 8]
test cl, 0x24
je 0x4d8b2f
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x7c], eax
jmp 0x4d8b7c
test cl, 8
je 0x4d8b4e
fld qword [eax]
sub esp, 8
fstp qword [esp]
call fcn.004c93d0
add esp, 8
mov dword [esp + 0x3c], eax
mov dword [esp + 0x7c], edx
jmp 0x4d8b7c
test cl, 0x12
je 0x4d8b6c
cmp dword [eax + 0x10], 0
je 0x4d8b6c
push eax
call fcn.004e9020
add esp, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x7c], edx
jmp 0x4d8b7c
mov dword [esp + 0x3c], 0
mov dword [esp + 0x7c], 0
test ebx, ebx
je 0x4d8baf
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x28]
cmp byte [ecx + 0x57], 0
jne 0x4d8b8f
test eax, eax
je 0x4d8b99
push eax
push ecx
call fcn.004bddf0
add esp, 8
mov dword [ebx + 0x28], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4d8baf
push eax
call dword [0x77fa10]
add esp, 4
mov eax, dword [ebp + 8]
xor edi, edi
cmp dword [eax + 0x100], edi
jle 0x4d8beb
mov esi, dword [esp + 0x3c]
mov ebx, eax
lea eax, [esp + 0x54]
push eax
push edi
push esi
push ebx
call fcn.004d0940
xor dword [esp + 0x68], eax
inc edi
xor dword [esp + 0x6c], edx
add esp, 0x10
cmp edi, dword [ebx + 0x100]
jl 0x4d8bc2
mov esi, dword [esp + 0x54]
mov ebx, dword [esp + 0x4c]
test esi, esi
je 0x4d8ac0
push ebx
call fcn.004b8810
add esp, 4
test esi, esi
jne 0x4d8c3f
mov esi, eax
test eax, eax
jne 0x4d8c3f
mov ebx, dword [ebp + 8]
mov dword [esp + 0x34], esi
mov eax, dword [ebx + 0x24]
push dword [ebx + 0xe0]
push str.SELECT__s
mov eax, dword [eax]
mov dword [esp + 0x74], eax
call fcn.004acaf0
mov edi, eax
add esp, 8
test edi, edi
jne 0x4d8c69
lea esi, [eax + 7]
mov edi, dword [esp + 0x34]
push edi
call fcn.004b85d0
add esp, 4
mov eax, dword [esp + 0x58]
cmp eax, dword [esp + 0x40]
jne 0x4d8c57
mov eax, dword [esp + 0x5c]
cmp eax, dword [esp + 0x44]
je 0x4d8f7d
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [esp + 0x38]
push eax
push 0
push pe_nt_image_headers32
push 0xffffffffffffffff
push edi
push dword [ebx + 0xc]
call fcn.0051b380
push edi
mov esi, eax
call fcn.004ad100
mov edi, dword [esp + 0x54]
add esp, 0x20
test esi, esi
jne 0x4d8c36
push edi
call fcn.004b7120
add esp, 4
cmp eax, 0x64
jne 0x4d8c36
push 0
push edi
call fcn.004b7c00
add esp, 8
mov dword [esp + 0x64], eax
cmp dword [ebx + 0x2c], 0
mov dword [esp + 0x60], edx
mov dword [esp + 0x38], 0
je 0x4d8dc1
mov edi, dword [ebx + 0x18]
mov edx, dword [esp + 0x34]
inc edi
test edx, edx
je 0x4d8d20
mov eax, dword [edx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4d8ceb
push eax
call dword [0x77fa08]
mov edx, dword [esp + 0x38]
add esp, 4
mov ecx, dword [edx + 0x80]
test ecx, ecx
je 0x4d8d0c
movzx eax, word [edx + 0x98]
cmp edi, eax
jge 0x4d8d0c
test edi, edi
js 0x4d8d0c
lea eax, [edi + edi*4]
lea eax, [ecx + eax*8]
jmp 0x4d8d25
mov eax, dword [edx]
push 0x19
push eax
mov dword [eax + 0x40], 0x19
call fcn.00507140
add esp, 8
mov eax, 0x580598
movzx ecx, word [eax + 8]
test cl, 0x24
je 0x4d8d3d
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x7c], eax
jmp 0x4d8d8a
test cl, 8
je 0x4d8d5c
fld qword [eax]
sub esp, 8
fstp qword [esp]
call fcn.004c93d0
add esp, 8
mov dword [esp + 0x38], eax
mov dword [esp + 0x7c], edx
jmp 0x4d8d8a
test cl, 0x12
je 0x4d8d7a
cmp dword [eax + 0x10], 0
je 0x4d8d7a
push eax
call fcn.004e9020
add esp, 4
mov dword [esp + 0x38], eax
mov dword [esp + 0x7c], edx
jmp 0x4d8d8a
mov dword [esp + 0x38], 0
mov dword [esp + 0x7c], 0
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4d8dc1
mov ecx, dword [edi]
mov eax, dword [edi + 0x28]
cmp byte [ecx + 0x57], 0
jne 0x4d8da1
test eax, eax
je 0x4d8dab
push eax
push ecx
call fcn.004bddf0
add esp, 8
mov dword [edi + 0x28], eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4d8dc1
push eax
call dword [0x77fa10]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x4c], ecx
cmp ecx, dword [ebx + 0x18]
jge 0x4d8c95
mov eax, dword [ebx + 0x20]
cmp byte [ecx + eax], 0
jne 0x4d8f67
lea eax, [ecx + 1]
push eax
push edi
call fcn.004b7cc0
mov ebx, dword [ebx + 0x24]
lea ecx, [esp + 0x44]
push ecx
push 0xffffffffffffffff
push eax
mov esi, dword [ebx]
mov dword [esp + 0x50], 0
push ebx
mov eax, dword [esi + 0xc]
call eax
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x4d8e40
mov eax, dword [esp + 0x3c]
mov dword [eax], ebx
cmp dword [esi], 1
jl 0x4d8e40
push dword [esp + 0x38]
mov eax, dword [esi + 0x18]
push dword [esp + 0x40]
call eax
mov edi, eax
add esp, 8
test edi, edi
je 0x4d8e40
push dword [esp + 0x3c]
mov eax, dword [esi + 0x10]
call eax
add esp, 4
xor ecx, ecx
mov dword [esp + 0x3c], ecx
jmp 0x4d8e44
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x48], ecx
test edi, edi
jne 0x4d8f42
mov ebx, dword [esp + 0x6c]
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x74]
mov dword [esp + 0x54], 0
push eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x7c], 0
push eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x7c], 0
push eax
lea eax, [esp + 0x78]
mov dword [esp + 0x64], 0
push eax
mov eax, dword [ebx + 0x14]
push ecx
call eax
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x4d8f46
push dword [esp + 0x54]
push dword [esp + 0x50]
push dword [esp + 0x68]
push dword [esp + 0x70]
push eax
push dword [esp + 0x4c]
push dword [esp + 0x68]
push dword [esp + 0x84]
call fcn.004d0890
xor dword [esp + 0x60], eax
lea esi, [edi + 1]
mov eax, dword [ebp + 8]
add esp, 0x20
xor dword [esp + 0x44], edx
mov ecx, dword [esp + 0x48]
mov ebx, dword [eax + 0x100]
cmp ebx, esi
jle 0x4d8e50
mov eax, dword [eax + 0x104]
mov edi, 0x18
mov dword [esp + 0x78], eax
mov eax, dword [edi + eax]
cmp eax, dword [esp + 0x50]
jg 0x4d8f2d
push dword [esp + 0x54]
push dword [esp + 0x50]
push dword [esp + 0x68]
push dword [esp + 0x70]
push esi
push dword [esp + 0x4c]
push eax
push dword [esp + 0x84]
call fcn.004d0890
xor dword [esp + 0x60], eax
add esp, 0x20
xor dword [esp + 0x44], edx
mov eax, dword [esp + 0x78]
inc esi
add edi, 0x18
cmp esi, ebx
jl 0x4d8ef7
mov ecx, dword [esp + 0x48]
jmp 0x4d8e50
mov ebx, dword [esp + 0x6c]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4d8f57
push eax
mov eax, dword [ebx + 0x10]
call eax
add esp, 4
mov ecx, dword [esp + 0x4c]
lea esi, [edi - 0x65]
mov ebx, dword [ebp + 8]
neg esi
sbb esi, esi
and esi, edi
inc ecx
mov dword [esp + 0x4c], ecx
test esi, esi
jne 0x4d8c32
mov edi, dword [esp + 0x34]
jmp 0x4d8dc7
mov eax, dword [ebp + 0xc]
pop edi
mov dword [eax], 1
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret