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

Disassembly:
push ebp
mov ecx, 0xffffff9a
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x28]
test eax, eax
je 0x4c707e
test edi, edi
setne dl
cmp edi, 8
setne al
and eax, 0xff
test edx, eax
jne 0x4c707e
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2c], 1
je 0x4c742d
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4c740f
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x3c], 0
test eax, eax
je 0x4c6d1f
sub esp, 0xc
mov eax, dword [ebp + 0x24]
push eax
call sub.msvcrt.dll_strlen
add esp, 0x10
mov dword [ebp - 0x3c], eax
sub esp, 0xc
mov ebx, dword [ebp + 0xc]
push ebx
call sub.msvcrt.dll_strlen
add esp, 0x10
mov ebx, eax
test esi, esi
je 0x4c741b
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4c7088
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x4088], eax
mov eax, dword [ebp + 0x2c]
mov ecx, dword [ebp + 8]
sub eax, 8
cmp eax, 2
sbb eax, eax
and eax, 2
mov dword [ecx + 0x7c], eax
cmp dword [ebp + 0x2c], 2
je 0x4c70f1
cmp dword [ebp + 0x2c], 1
je 0x4c73d8
mov eax, dword [ebp + 0x40]
test eax, eax
je 0x4c6d87
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x7c]
or eax, 1
mov dword [ecx + 0x7c], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov dword [eax + 0x80], edi
mov dword [eax + 0x408c], 0
mov dword [eax + 0x4090], 0
mov dword [eax + 0x68], 0
mov dword [eax + 0x6c], 0
mov eax, dword [ebp + 0x30]
mov dword [edx + 0x84], eax
push eax
push eax
mov eax, dword [edx + 0x20]
push eax
mov eax, dword [edx + 0x1c]
push eax
call dword [edx + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x3c]
mov dword [ecx + 0x70], eax
mov eax, dword [ebp + 0x20]
lea edi, [ebx + eax]
lea eax, [edi + edx + 0x2e]
mov dword [ecx + 0x78], eax
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov ecx, dword [ebp + 8]
mov edx, 0x2014b50
mov dword [ecx + 0x74], eax
push 4
call fcn.004c5ef0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x74]
xor edx, edx
add eax, 4
push 2
call fcn.004c5ef0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x74]
mov edx, 0x14
add eax, 6
push 2
call fcn.004c5ef0
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x7c]
mov eax, dword [eax + 0x74]
add eax, 8
push 2
call fcn.004c5ef0
mov eax, dword [ebp + 8]
add esp, 0x20
mov edx, dword [eax + 0x80]
mov eax, dword [eax + 0x74]
add eax, 0xa
push 2
call fcn.004c5ef0
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x4088]
mov eax, dword [eax + 0x74]
add eax, 0xc
push 4
call fcn.004c5ef0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x74]
xor edx, edx
add eax, 0x10
push 4
call fcn.004c5ef0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x74]
xor edx, edx
add eax, 0x14
push 4
call fcn.004c5ef0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x74]
xor edx, edx
add eax, 0x18
push 4
call fcn.004c5ef0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x74]
mov edx, ebx
add eax, 0x1c
push 2
call fcn.004c5ef0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x74]
mov edx, dword [ebp + 0x20]
add eax, 0x1e
push 2
call fcn.004c5ef0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x74]
mov edx, dword [ebp - 0x3c]
add eax, 0x20
push 2
call fcn.004c5ef0
mov edx, dword [ebp + 8]
add esp, 0x20
mov eax, dword [edx + 0x74]
add eax, 0x22
xor edx, edx
push 2
call fcn.004c5ef0
pop eax
test esi, esi
je 0x4c73e6
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0x1c]
mov eax, dword [ecx + 0x74]
push 2
add eax, 0x24
call fcn.004c5ef0
mov edx, dword [esi + 0x20]
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x74]
mov dword [esp], 4
add eax, 0x26
call fcn.004c5ef0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x40ac]
mov edx, dword [eax + 0x70]
mov eax, dword [eax + 0x74]
sub edx, ecx
add eax, 0x2a
mov dword [esp], 4
call fcn.004c5ef0
xor ecx, ecx
pop eax
jmp 0x4c6f51
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0x74]
mov esi, dword [ebp + 0xc]
mov al, byte [ecx + esi]
mov byte [edx + ecx + 0x2e], al
inc ecx
cmp ecx, ebx
jb 0x4c6f40
xor ecx, ecx
jmp 0x4c6f73
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x1c]
mov edx, dword [eax + 0x74]
mov al, byte [ecx + esi]
add edx, ebx
mov byte [edx + ecx + 0x2e], al
inc ecx
cmp ecx, dword [ebp + 0x20]
jb 0x4c6f60
xor ecx, ecx
jmp 0x4c6f95
mov eax, dword [ebp + 8]
mov edx, edi
mov esi, dword [eax + 0x74]
add edx, esi
mov esi, dword [ebp + 0x24]
mov al, byte [ecx + esi]
mov byte [edx + ecx + 0x2e], al
inc ecx
cmp ecx, dword [ebp - 0x3c]
jb 0x4c6f80
mov eax, dword [ebp + 8]
mov ecx, 0xffffff98
mov esi, dword [eax + 0x74]
test esi, esi
je 0x4c707e
push edx
push edx
mov edx, dword [eax + 0x20]
push 4
push 0x4034b50
call fcn.004c5e90
add esp, 0x10
test eax, eax
mov dword [ebp - 0x40], eax
je 0x4c70fc
mov eax, dword [ebp - 0x40]
test eax, eax
sete dl
test ebx, ebx
setne al
and eax, 0xff
test edx, eax
jne 0x4c724e
mov ebx, dword [ebp - 0x40]
mov ecx, dword [ebp + 0x18]
test ebx, ebx
sete dl
test ecx, ecx
setne al
and eax, 0xff
test edx, eax
jne 0x4c7220
mov esi, dword [ebp + 8]
mov eax, esi
add eax, 0x88
mov dword [esi + 0x34], 0
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x40]
mov dword [esi + 0x40], 0x4000
mov dword [esi + 0x38], 0
mov dword [esi + 0x44], 0
test eax, eax
jne 0x4c7040
cmp dword [esi + 0x80], 8
je 0x4c7448
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x40]
mov esi, dword [ebp + 0x40]
test edi, edi
mov dword [eax + 0x40a4], 0
sete dl
test esi, esi
setne al
and eax, 0xff
test edx, eax
jne 0x4c7278
mov ebx, dword [ebp - 0x40]
test ebx, ebx
jne 0x4c707b
mov edx, dword [ebp + 8]
mov dword [edx + 0x2c], 1
mov ecx, dword [ebp - 0x40]
lea esp, [ebp - 0xc]
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [esi + 0x14]
cmp edx, 0x7bc
ja 0x4c73cd
cmp edx, 0x50
jbe 0x4c709f
sub edx, 0x50
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
shl eax, 5
shl edx, 9
add eax, ecx
mov ecx, dword [esi + 4]
lea eax, [eax + edx + 0x20]
mov edx, dword [esi + 8]
shl edx, 6
shl eax, 0x10
add edx, ecx
shl edx, 5
mov ecx, dword [esi]
shr ecx, 1
add edx, ecx
mov ecx, dword [ebp + 8]
or eax, edx
mov edx, dword [ebp + 8]
mov dword [edx + 0x4088], eax
mov eax, dword [ebp + 0x2c]
sub eax, 8
cmp eax, 2
sbb eax, eax
and eax, 2
mov dword [ecx + 0x7c], eax
cmp dword [ebp + 0x2c], 2
jne 0x4c6d6a
or eax, 4
mov dword [ecx + 0x7c], eax
jmp 0x4c6d74
mov ecx, dword [ebp + 8]
push eax
push eax
mov edx, dword [ecx + 0x20]
mov eax, ecx
push 2
push 0x14
call fcn.004c5e90
add esp, 0x10
test eax, eax
mov dword [ebp - 0x40], eax
jne 0x4c6fcc
mov esi, dword [ebp + 8]
push eax
push eax
mov edx, dword [esi + 0x20]
push 2
mov eax, dword [esi + 0x7c]
push eax
mov eax, esi
call fcn.004c5e90
add esp, 0x10
test eax, eax
mov dword [ebp - 0x40], eax
jne 0x4c6fcc
push eax
push eax
mov edx, dword [esi + 0x20]
push 2
mov eax, dword [esi + 0x80]
push eax
mov eax, esi
call fcn.004c5e90
add esp, 0x10
test eax, eax
mov dword [ebp - 0x40], eax
jne 0x4c6fcc
push eax
push eax
mov eax, esi
mov edx, dword [esi + 0x20]
push 4
mov edi, dword [esi + 0x4088]
push edi
call fcn.004c5e90
add esp, 0x10
test eax, eax
mov dword [ebp - 0x40], eax
jne 0x4c6fcc
push ecx
push ecx
mov eax, esi
mov edx, dword [esi + 0x20]
push 4
push 0
call fcn.004c5e90
add esp, 0x10
test eax, eax
mov dword [ebp - 0x40], eax
jne 0x4c6fcc
push edx
push edx
mov eax, esi
mov edx, dword [esi + 0x20]
push 4
push 0
call fcn.004c5e90
add esp, 0x10
test eax, eax
mov dword [ebp - 0x40], eax
jne 0x4c6fcc
push eax
push eax
mov eax, esi
mov edx, dword [esi + 0x20]
push 4
push 0
call fcn.004c5e90
add esp, 0x10
test eax, eax
mov dword [ebp - 0x40], eax
jne 0x4c6fcc
push eax
push eax
mov eax, esi
mov edx, dword [esi + 0x20]
push 2
push ebx
call fcn.004c5e90
add esp, 0x10
test eax, eax
mov dword [ebp - 0x40], eax
jne 0x4c6fcc
push eax
push eax
mov eax, dword [ebp + 0x18]
mov edx, dword [esi + 0x20]
push 2
push eax
mov eax, esi
call fcn.004c5e90
add esp, 0x10
mov dword [ebp - 0x40], eax
jmp 0x4c6fcc
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ecx + 0x20]
push eax
mov eax, dword [ecx + 0x1c]
push eax
call dword [ecx + 8]
add esp, 0x10
cmp eax, dword [ebp + 0x18]
je 0x4c7003
mov dword [ebp - 0x40], 0xffffffff
jmp 0x4c7003
mov eax, dword [ebp + 0xc]
push ebx
push eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x20]
push edi
mov esi, dword [eax + 0x1c]
push esi
call dword [eax + 8]
add esp, 0x10
cmp eax, ebx
je 0x4c6fe6
mov dword [ebp - 0x40], 0xffffffff
jmp 0x4c6fe6
mov edx, dword [ebp + 8]
mov dword [edx + 0x4090], 1
call fcn.00576680
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x44], eax
mov dword [ecx + 0x40a0], eax
mov eax, dword [0x78e320]
add ecx, 0x4094
inc eax
mov dword [ebp - 0x48], ecx
mov dword [0x78e320], eax
dec eax
je 0x4c74b9
mov ebx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 0x40]
push ebx
xor esi, esi
call fcn.004c5d40
pop ecx
call sub.msvcrt.dll_rand
mov edx, dword [ebp - 0x44]
mov ebx, eax
mov eax, dword [ebp - 0x48]
sar ebx, 7
call fcn.004c5cc0
and ebx, 0xff
mov edi, eax
push ebx
mov edx, dword [ebp - 0x44]
xor ebx, edi
mov eax, dword [ebp - 0x48]
call fcn.004c5ce0
mov byte [esi + ebp - 0x38], bl
inc esi
pop edx
cmp esi, 9
jle 0x4c72c3
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
push eax
mov eax, dword [ebp + 0x40]
call fcn.004c5d40
xor esi, esi
pop eax
nop
lea esi, [esi]
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x48]
call fcn.004c5cc0
mov edx, dword [ebp - 0x44]
mov edi, eax
xor eax, eax
mov al, byte [esi + ebp - 0x38]
push eax
mov eax, dword [ebp - 0x48]
call fcn.004c5ce0
pop eax
xor eax, eax
mov al, byte [esi + ebp - 0x38]
xor eax, edi
mov byte [esi + ebp - 0x28], al
inc esi
cmp esi, 9
jle 0x4c7310
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x48]
call fcn.004c5cc0
mov edx, dword [ebp - 0x44]
mov edi, eax
mov eax, dword [ebp + 0x44]
shr eax, 0x10
mov dword [ebp + 0x44], eax
mov eax, dword [ebp - 0x48]
movzx ebx, byte [ebp + 0x44]
push ebx
xor ebx, edi
call fcn.004c5ce0
pop eax
mov edx, dword [ebp - 0x44]
mov byte [ebp - 0x1e], bl
mov eax, dword [ebp - 0x48]
call fcn.004c5cc0
mov ebx, dword [ebp + 0x44]
mov edi, eax
mov edx, dword [ebp - 0x44]
shr ebx, 8
mov eax, dword [ebp - 0x48]
push ebx
call fcn.004c5ce0
mov esi, dword [ebp + 8]
xor ebx, edi
lea eax, [ebp - 0x28]
mov byte [ebp - 0x1d], bl
mov dword [esi + 0x40a4], 0xc
mov dword [esp], 0xc
push eax
mov eax, dword [esi + 0x20]
push eax
mov edi, dword [esi + 0x1c]
push edi
call dword [esi + 8]
add esp, 0x10
cmp eax, 0xc
je 0x4c706a
mov dword [ebp - 0x40], 0xffffffff
jmp 0x4c707b
sub edx, 0x7bc
jmp 0x4c709f
mov edx, dword [ebp + 8]
or eax, 6
mov dword [edx + 0x7c], eax
jmp 0x4c6d74
mov ecx, dword [ebp + 8]
xor edx, edx
mov eax, dword [ecx + 0x74]
push 2
add eax, 0x24
call fcn.004c5ef0
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x74]
xor edx, edx
add eax, 0x26
mov dword [esp], 4
jmp 0x4c6f16
mov dword [ebp + 0xc], 0x765843
jmp 0x4c6cff
mov edx, dword [ebp + 8]
mov dword [edx + 0x4088], 0
jmp 0x4c6d4c
sub esp, 0xc
push eax
call fcn.004c6c90
add esp, 0x10
mov ecx, eax
test eax, eax
jne 0x4c707e
jmp 0x4c6cf4
mov eax, dword [esi + 0x84]
test eax, eax
jne 0x4c7040
mov eax, dword [ebp + 0x34]
mov edi, dword [ebp + 0x34]
sar eax, 0x1f
mov ecx, dword [ebp + 0x3c]
xor edi, eax
mov edx, dword [ebp + 0x38]
mov dword [ebp + 0x34], edi
mov dword [esi + 0x50], 0
mov ebx, dword [ebp + 0x34]
mov dword [esi + 0x54], 0
sub eax, ebx
mov dword [esi + 0x58], 0
push 0x38
push 0x765845
push ecx
push edx
push eax
mov eax, dword [ebp + 0x2c]
push 8
push eax
mov eax, esi
add eax, 0x30
push eax
call fcn.005752a0
add esp, 0x20
test eax, eax
mov dword [ebp - 0x40], eax
jne 0x4c7040
mov dword [esi + 0x68], 1
jmp 0x4c7040
sub esp, 0xc
push 0
call sub.msvcrt.dll_time
xor eax, 0xbb40e64e
mov dword [esp], eax
call sub.msvcrt.dll_srand
add esp, 0x10
jmp 0x4c72b1