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

Disassembly:
sub esp, 0x57c
push ebx
push ebp
mov ebp, dword [esp + 0x588]
push esi
xor esi, esi
push edi
mov edi, ecx
mov ebx, eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
mov eax, edi
mov edx, ebp
jmp 0x4c57de0
mov ecx, dword [eax]
inc dword [esp + ecx*4 + 0x50]
lea ecx, [esp + ecx*4 + 0x50]
add eax, 4
dec edx
jne 0x4c57de0
cmp dword [esp + 0x50], ebp
jne 0x4c57e0e
mov eax, dword [esp + 0x5a0]
mov dword [eax], esi
mov dword [ebx], esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x57c
ret
mov edx, dword [ebx]
mov dword [esp + 0x14], edx
mov ecx, 1
lea esp, [esp]
cmp dword [esp + ecx*4 + 0x50], esi
jne 0x4c57e58
cmp dword [esp + ecx*4 + 0x54], esi
jne 0x4c57e48
cmp dword [esp + ecx*4 + 0x58], esi
jne 0x4c57e4b
cmp dword [esp + ecx*4 + 0x5c], esi
jne 0x4c57e50
cmp dword [esp + ecx*4 + 0x60], esi
jne 0x4c57e55
add ecx, 5
cmp ecx, 0xf
jbe 0x4c57e20
jmp 0x4c57e58
inc ecx
jmp 0x4c57e58
add ecx, 2
jmp 0x4c57e58
add ecx, 3
jmp 0x4c57e58
add ecx, 4
cmp edx, ecx
mov dword [esp + 0x10], ecx
jae 0x4c57e66
mov edx, ecx
mov dword [esp + 0x14], edx
mov eax, 0xf
jmp 0x4c57e70
cmp dword [esp + eax*4 + 0x50], esi
jne 0x4c57e79
dec eax
jne 0x4c57e70
cmp edx, eax
mov dword [esp + 0x2c], eax
jbe 0x4c57e87
mov edx, eax
mov dword [esp + 0x14], edx
mov dword [ebx], edx
mov ebx, 1
shl ebx, cl
cmp ecx, eax
jae 0x4c57ea1
sub ebx, dword [esp + ecx*4 + 0x50]
js 0x4c57ead
inc ecx
shl ebx, 1
cmp ecx, eax
jb 0x4c57e94
mov ecx, dword [esp + eax*4 + 0x50]
sub ebx, ecx
mov dword [esp + 0x4c], ebx
jns 0x4c57ebd
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
add esp, 0x57c
ret
add ecx, ebx
mov dword [esp + eax*4 + 0x50], ecx
xor ecx, ecx
dec eax
mov dword [esp + 0x94], esi
je 0x4c57ee2
xor edx, edx
add ecx, dword [esp + edx + 0x54]
add edx, 4
dec eax
mov dword [esp + edx + 0x94], ecx
jne 0x4c57ed1
xor edx, edx
mov eax, dword [edi]
add edi, 4
cmp eax, esi
je 0x4c57f05
mov ecx, dword [esp + eax*4 + 0x90]
lea eax, [esp + eax*4 + 0x90]
mov dword [esp + ecx*4 + 0x10c], edx
inc ecx
mov dword [eax], ecx
inc edx
cmp edx, ebp
jb 0x4c57ee4
mov eax, dword [esp + 0x14]
neg eax
lea ecx, [esp + 0x10c]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
or edi, 0xffffffff
xor ebp, ebp
cmp eax, ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x90], esi
mov dword [esp + 0x44], edi
mov dword [esp + 0xd0], esi
mov dword [esp + 0x48], ebp
jg 0x4c58204
lea edx, [eax - 1]
lea eax, [esp + eax*4 + 0x50]
mov dword [esp + 0x38], edx
mov dword [esp + 0x28], eax
lea ecx, [ecx]
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
test eax, eax
mov dword [esp + 0x30], eax
je 0x4c581d5
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
dec edx
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x14]
add eax, edx
cmp ecx, eax
jle 0x4c580af
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x18]
mov ecx, edx
sub eax, ecx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x3c]
add edx, eax
add ecx, eax
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x2c]
inc edi
add ebp, eax
sub edx, ecx
cmp edx, eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x3c], ebp
jbe 0x4c57fd4
mov edx, eax
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x30]
sub ebx, ecx
mov ecx, ebx
mov eax, 1
shl eax, cl
lea ecx, [esi + 1]
cmp eax, ecx
jbe 0x4c58015
or ecx, 0xffffffff
sub ecx, esi
mov esi, dword [esp + 0x28]
add eax, ecx
cmp ebx, edx
jae 0x4c58015
inc ebx
cmp ebx, edx
jae 0x4c58015
mov ecx, dword [esi + 4]
add esi, 4
shl eax, 1
cmp eax, ecx
jbe 0x4c58015
sub eax, ecx
inc ebx
cmp ebx, edx
jb 0x4c58002
mov ebp, dword [esp + 0x5a4]
mov eax, dword [ebp + 0x28]
mov ecx, ebx
mov esi, 1
shl esi, cl
push 8
lea edx, [esi + 1]
push edx
push eax
call dword [ebp + 0x20]
add esp, 0xc
test eax, eax
je 0x4c58227
mov edx, dword [esp + 0x5a0]
lea ecx, [eax + 8]
add eax, 4
test edi, edi
mov ebp, ecx
mov dword [edx], ecx
mov dword [esp + 0x5a0], eax
mov dword [eax], 0
mov dword [esp + 0x48], ebp
mov dword [esp + edi*4 + 0xd0], ebp
je 0x4c580a1
mov ecx, dword [esp + 0x1c]
mov al, byte [esp + 0x14]
mov edx, ecx
mov dword [esp + edi*4 + 0x90], ecx
mov ecx, dword [esp + 0x40]
shr edx, cl
mov ecx, dword [esp + edi*4 + 0xcc]
mov byte [esp + 0x21], al
mov byte [esp + 0x20], bl
mov ebx, dword [esp + 0x20]
mov eax, ebp
mov dword [ecx + edx*8], ebx
mov dword [esp + 0x24], eax
mov dword [ecx + edx*8 + 4], eax
mov edx, dword [esp + 0x3c]
cmp dword [esp + 0x10], edx
jg 0x4c57fa1
mov al, byte [esp + 0x10]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x590]
mov edx, dword [esp + 0x34]
sub al, bl
mov byte [esp + 0x21], al
lea eax, [esp + ecx*4 + 0x10c]
cmp edx, eax
jb 0x4c580da
mov byte [esp + 0x20], 0xc0
jmp 0x4c58125
mov eax, dword [edx]
mov ecx, dword [esp + 0x594]
cmp eax, ecx
jae 0x4c580fa
cmp eax, 0x100
setb cl
dec cl
and ecx, 0x60
mov byte [esp + 0x20], cl
jmp 0x4c5811a
sub eax, ecx
mov ecx, dword [esp + 0x59c]
shl eax, 2
mov cl, byte [eax + ecx]
add cl, 0x50
mov byte [esp + 0x20], cl
mov ecx, dword [esp + 0x598]
mov eax, dword [eax + ecx]
add edx, 4
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], edx
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
sub ecx, ebx
mov edx, 1
shl edx, cl
mov ecx, ebx
shr eax, cl
cmp eax, esi
jae 0x4c5816d
lea edi, [edx*8]
lea ecx, [ebp + eax*8]
lea esp, [esp]
mov ebp, dword [esp + 0x20]
mov dword [ecx], ebp
mov ebp, dword [esp + 0x24]
mov dword [ecx + 4], ebp
add eax, edx
add ecx, edi
cmp eax, esi
jb 0x4c58150
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x48]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x1c]
mov eax, 1
shl eax, cl
test edx, eax
je 0x4c58188
xor edx, eax
shr eax, 1
test edx, eax
jne 0x4c58180
xor edx, eax
mov ecx, ebx
mov eax, 1
shl eax, cl
mov ecx, dword [esp + edi*4 + 0x90]
mov dword [esp + 0x1c], edx
dec eax
and eax, edx
cmp eax, ecx
je 0x4c581c9
sub ebx, dword [esp + 0x14]
mov ecx, ebx
mov eax, 1
shl eax, cl
mov ecx, dword [esp + edi*4 + 0x8c]
dec edi
dec eax
and eax, edx
cmp eax, ecx
jne 0x4c581a5
mov dword [esp + 0x18], ebx
mov dword [esp + 0x44], edi
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x4c57f72
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
inc eax
add ebx, 4
inc edx
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x38], edx
jle 0x4c57f60
mov ebx, dword [esp + 0x4c]
xor esi, esi
cmp ebx, esi
je 0x4c57e01
cmp dword [esp + 0x2c], 1
je 0x4c57e01
pop edi
pop esi
pop ebp
mov eax, 0xfffffffb
pop ebx
add esp, 0x57c
ret
test edi, edi
je 0x4c58267
mov ecx, dword [esp + 0xd0]
xor eax, eax
test ecx, ecx
je 0x4c58267
mov edx, dword [ecx - 4]
test edx, edx
mov dword [ecx - 4], eax
mov eax, ecx
mov ecx, edx
jne 0x4c58238
test eax, eax
je 0x4c58267
lea ebx, [ebx]
mov ecx, dword [ebp + 0x28]
mov esi, dword [eax - 4]
sub eax, 8
push eax
push ecx
call dword [ebp + 0x24]
add esp, 8
test esi, esi
mov eax, esi
jne 0x4c58250
pop edi
pop esi
pop ebp
mov eax, 0xfffffffc
pop ebx
add esp, 0x57c
ret