Function at 0x10058a90
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 0x10058b00
mov ecx, dword [eax]
inc dword [esp + ecx*4 + 0x50]
lea ecx, [esp + ecx*4 + 0x50]
add eax, 4
dec edx
jne 0x10058b00
cmp dword [esp + 0x50], ebp
jne 0x10058b2e
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 0x10058b78
cmp dword [esp + ecx*4 + 0x54], esi
jne 0x10058b68
cmp dword [esp + ecx*4 + 0x58], esi
jne 0x10058b6b
cmp dword [esp + ecx*4 + 0x5c], esi
jne 0x10058b70
cmp dword [esp + ecx*4 + 0x60], esi
jne 0x10058b75
add ecx, 5
cmp ecx, 0xf
jbe 0x10058b40
jmp 0x10058b78
inc ecx
jmp 0x10058b78
add ecx, 2
jmp 0x10058b78
add ecx, 3
jmp 0x10058b78
add ecx, 4
cmp edx, ecx
mov dword [esp + 0x10], ecx
jae 0x10058b86
mov edx, ecx
mov dword [esp + 0x14], edx
mov eax, 0xf
jmp 0x10058b90
cmp dword [esp + eax*4 + 0x50], esi
jne 0x10058b99
dec eax
jne 0x10058b90
cmp edx, eax
mov dword [esp + 0x2c], eax
jbe 0x10058ba7
mov edx, eax
mov dword [esp + 0x14], edx
mov dword [ebx], edx
mov ebx, 1
shl ebx, cl
cmp ecx, eax
jae 0x10058bc1
sub ebx, dword [esp + ecx*4 + 0x50]
js 0x10058bcd
inc ecx
shl ebx, 1
cmp ecx, eax
jb 0x10058bb4
mov ecx, dword [esp + eax*4 + 0x50]
sub ebx, ecx
mov dword [esp + 0x4c], ebx
jns 0x10058bdd
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 0x10058c02
xor edx, edx
add ecx, dword [esp + edx + 0x54]
add edx, 4
dec eax
mov dword [esp + edx + 0x94], ecx
jne 0x10058bf1
xor edx, edx
mov eax, dword [edi]
add edi, 4
cmp eax, esi
je 0x10058c25
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 0x10058c04
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 0x10058f24
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 0x10058ef5
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 0x10058dcf
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 0x10058cf4
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 0x10058d35
or ecx, 0xffffffff
sub ecx, esi
mov esi, dword [esp + 0x28]
add eax, ecx
cmp ebx, edx
jae 0x10058d35
inc ebx
cmp ebx, edx
jae 0x10058d35
mov ecx, dword [esi + 4]
add esi, 4
shl eax, 1
cmp eax, ecx
jbe 0x10058d35
sub eax, ecx
inc ebx
cmp ebx, edx
jb 0x10058d22
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 0x10058f47
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 0x10058dc1
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 0x10058cc1
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 0x10058dfa
mov byte [esp + 0x20], 0xc0
jmp 0x10058e45
mov eax, dword [edx]
mov ecx, dword [esp + 0x594]
cmp eax, ecx
jae 0x10058e1a
cmp eax, 0x100
setb cl
dec cl
and ecx, 0x60
mov byte [esp + 0x20], cl
jmp 0x10058e3a
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 0x10058e8d
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 0x10058e70
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 0x10058ea8
xor edx, eax
shr eax, 1
test edx, eax
jne 0x10058ea0
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 0x10058ee9
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 0x10058ec5
mov dword [esp + 0x18], ebx
mov dword [esp + 0x44], edi
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x10058c92
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 0x10058c80
mov ebx, dword [esp + 0x4c]
xor esi, esi
cmp ebx, esi
je 0x10058b21
cmp dword [esp + 0x2c], 1
je 0x10058b21
pop edi
pop esi
pop ebp
mov eax, 0xfffffffb
pop ebx
add esp, 0x57c
ret
test edi, edi
je 0x10058f87
mov ecx, dword [esp + 0xd0]
xor eax, eax
test ecx, ecx
je 0x10058f87
mov edx, dword [ecx - 4]
test edx, edx
mov dword [ecx - 4], eax
mov eax, ecx
mov ecx, edx
jne 0x10058f58
test eax, eax
je 0x10058f87
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 0x10058f70
pop edi
pop esi
pop ebp
mov eax, 0xfffffffc
pop ebx
add esp, 0x57c
ret