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

Disassembly:
sub esp, 0x574
xor eax, eax
mov dword [esp + 0x38], eax
push ebx
mov dword [esp + 0x40], eax
push esi
mov dword [esp + 0x48], eax
push edi
mov dword [esp + 0x50], eax
push ebp
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov edx, dword [esp + 0x588]
mov ecx, edx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x58c]
mov esi, dword [ecx]
add ecx, 4
inc dword [esp + esi*4 + 0x48]
dec eax
jne 0x100059f2
mov eax, dword [esp + 0x58c]
cmp eax, dword [esp + 0x48]
jne 0x10005a32
mov ecx, dword [esp + 0x59c]
mov ebx, dword [esp + 0x5a0]
xor eax, eax
pop ebp
pop edi
mov dword [ecx], 0
pop esi
mov dword [ebx], 0
pop ebx
add esp, 0x574
ret
mov ebx, dword [esp + 0x5a0]
mov ecx, 1
mov eax, dword [ebx]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x4c]
cmp dword [eax], 0
jne 0x10005a5c
add eax, 4
inc ecx
lea esi, [esp + 0x84]
cmp eax, esi
jbe 0x10005a48
mov dword [esp + 0x1c], ecx
mov esi, ecx
cmp dword [esp + 0x10], ecx
jae 0x10005a6c
mov dword [esp + 0x10], esi
mov edi, 0xf
lea eax, [esp + 0x84]
cmp dword [eax], 0
jne 0x10005a89
sub eax, 4
dec edi
lea ebp, [esp + 0x48]
cmp eax, ebp
jne 0x10005a78
mov dword [esp + 0x30], edi
cmp dword [esp + 0x10], edi
jbe 0x10005a97
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x10]
mov dword [ebx], eax
mov eax, 1
shl eax, cl
mov dword [esp + 0x20], eax
cmp ecx, edi
jae 0x10005aca
lea eax, [esp + ecx*4 + 0x48]
mov ebx, dword [eax]
sub dword [esp + 0x20], ebx
js 0x10005ae6
add eax, 4
inc ecx
mov ebx, dword [esp + 0x20]
add ebx, ebx
cmp ecx, edi
mov dword [esp + 0x20], ebx
jb 0x10005ab0
lea eax, [esp + edi*4 + 0x48]
mov ecx, dword [eax]
sub dword [esp + 0x20], ecx
jns 0x10005af6
mov eax, 0xfffffffd
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x574
ret
mov eax, 0xfffffffd
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x574
ret
add ecx, dword [esp + 0x20]
lea ebx, [esp + 0x4c]
mov dword [eax], ecx
xor ecx, ecx
lea eax, [esp + 0x90]
dec edi
mov dword [esp + 0x8c], ecx
je 0x10005b20
add ecx, dword [ebx]
add ebx, 4
mov dword [eax], ecx
add eax, 4
dec edi
jne 0x10005b13
xor edi, edi
mov eax, dword [edx]
add edx, 4
test eax, eax
je 0x10005b3e
lea ecx, [esp + eax*4 + 0x88]
mov eax, dword [ecx]
inc eax
mov dword [ecx], eax
mov dword [esp + eax*4 + 0x100], edi
inc edi
cmp dword [esp + 0x58c], edi
ja 0x10005b22
xor edx, edx
lea eax, [esp + 0x104]
mov dword [esp + 0x18], edx
mov dword [esp + 0x88], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0xc8], edx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x3c], edx
neg eax
mov dword [esp + 0x14], eax
cmp esi, dword [esp + 0x30]
mov dword [esp + 0x2c], 0xffffffff
jg 0x10005dfe
mov eax, dword [esp + 0x1c]
lea ecx, [esp + eax*4 + 0x48]
mov dword [esp + 0x44], ecx
mov eax, dword [ecx]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
dec dword [esp + 0x34]
test eax, eax
je 0x10005dec
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x1c]
jge 0x10005ccc
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
shl esi, 2
inc eax
mov dword [esp + 0x40], eax
add esi, 4
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x30]
inc dword [esp + 0x2c]
add dword [esp + 0x14], eax
sub edi, dword [esp + 0x14]
cmp eax, edi
jae 0x10005be8
mov edi, eax
mov ebx, dword [esp + 0x1c]
mov edx, 1
sub ebx, dword [esp + 0x14]
mov cl, bl
shl edx, cl
cmp dword [esp + 0x40], edx
jae 0x10005c26
mov eax, dword [esp + 0x34]
inc eax
sub edx, eax
mov eax, dword [esp + 0x44]
cmp ebx, edi
jae 0x10005c26
inc ebx
cmp ebx, edi
jae 0x10005c26
mov ecx, dword [eax + 4]
add edx, edx
add eax, 4
cmp ecx, edx
jae 0x10005c26
sub edx, ecx
inc ebx
cmp ebx, edi
jb 0x10005c13
mov eax, 1
mov cl, bl
shl eax, cl
mov ecx, dword [esp + 0x5a4]
push 8
mov dword [esp + 0x40], eax
inc eax
push eax
mov edx, dword [ecx + 0x28]
mov eax, dword [esp + 0x5ac]
push edx
call dword [eax + 0x20]
add esp, 0xc
test eax, eax
je 0x10005e1c
lea edx, [eax + 8]
mov ecx, dword [esp + 0x59c]
add eax, 4
mov dword [esp + esi + 0xc8], edx
mov dword [ecx], edx
mov dword [esp + 0x59c], eax
mov dword [eax], 0
test esi, esi
je 0x10005cba
mov eax, dword [esp + 0x18]
mov cl, byte [esp + 0x10]
mov dword [esp + esi + 0x88], eax
mov byte [esp + 0x25], cl
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x24], bl
mov ebx, dword [esp + 0x18]
sub cl, byte [esp + 0x10]
shr ebx, cl
shl ebx, 3
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x24]
add ebx, dword [esp + esi + 0xc4]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x1c]
jl 0x10005bcb
mov bl, byte [esp + 0x14]
mov cl, byte [esp + 0x1c]
sub cl, bl
mov eax, dword [esp + 0x58c]
mov byte [esp + 0x25], cl
lea ebp, [esp + eax*4 + 0x104]
cmp ebp, dword [esp + 0x38]
ja 0x10005cf5
mov byte [esp + 0x24], 0xc0
jmp 0x10005d43
mov eax, dword [esp + 0x38]
mov esi, dword [eax]
cmp dword [esp + 0x590], esi
jbe 0x10005d16
mov al, 0
cmp esi, 0x100
adc al, 0xff
and al, 0x60
mov byte [esp + 0x24], al
jmp 0x10005d3a
sub esi, dword [esp + 0x590]
mov eax, dword [esp + 0x598]
shl esi, 2
mov ebp, dword [esp + 0x594]
mov eax, dword [esi + eax]
mov esi, dword [esi + ebp]
add al, 0x50
mov byte [esp + 0x24], al
add dword [esp + 0x38], 4
mov dword [esp + 0x28], esi
mov esi, 1
mov edi, dword [esp + 0x18]
shl esi, cl
mov cl, bl
shr edi, cl
cmp edi, dword [esp + 0x3c]
jae 0x10005d7f
lea ecx, [edx + edi*8]
lea eax, [esi*8]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
add edi, esi
mov dword [ecx], eax
mov dword [ecx + 4], ebp
add ecx, dword [esp + 0x40]
cmp edi, dword [esp + 0x3c]
jb 0x10005d66
mov eax, 1
mov cl, byte [esp + 0x1c]
dec cl
shl eax, cl
test dword [esp + 0x18], eax
je 0x10005d9f
xor dword [esp + 0x18], eax
shr eax, 1
test dword [esp + 0x18], eax
jne 0x10005d92
mov cl, bl
xor dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
lea esi, [esp + eax*4 + 0x88]
mov eax, 1
shl eax, cl
dec eax
and eax, dword [esp + 0x18]
cmp eax, dword [esi]
je 0x10005b99
sub esi, 4
mov eax, dword [esp + 0x10]
dec dword [esp + 0x2c]
sub dword [esp + 0x14], eax
mov eax, 1
mov cl, byte [esp + 0x14]
shl eax, cl
dec eax
and eax, dword [esp + 0x18]
cmp eax, dword [esi]
jne 0x10005dc4
jmp 0x10005b99
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x30]
jle 0x10005b87
cmp dword [esp + 0x20], 0
je 0x10005e4b
cmp dword [esp + 0x30], 1
je 0x10005e4b
mov eax, 0xfffffffb
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x574
ret
cmp dword [esp + 0x2c], 0
je 0x10005e3b
mov eax, dword [esp + 0x5a4]
mov ecx, dword [esp + 0xc8]
push eax
push ecx
call fcn.100060e0
add esp, 8
mov eax, 0xfffffffc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x574
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x574
ret