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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x84
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x44]
push esi
push edi
push eax
lea ecx, [esp + 0x60]
mov dword [esp + 0x18], ebx
call fcn.005f9d70
mov edi, dword [ebx + 0x44]
mov ecx, dword [0x9617f0]
mov edx, dword [ecx + 0xc]
mov eax, edi
sar eax, 5
add eax, 4
lea eax, [eax*4 + 0xf]
and eax, 0xfffffff0
cmp eax, edx
mov dword [esp + 0x3c], eax
jle 0x5fb8c2
mov edx, dword [ecx]
push eax
call dword [edx + 0x24]
mov esi, eax
jmp 0x5fb8d7
mov esi, dword [ecx + 8]
mov dword [esp + 0x20], esi
add esi, eax
sub edx, eax
mov dword [ecx + 8], esi
mov esi, dword [esp + 0x20]
mov dword [ecx + 0xc], edx
sar edi, 7
xor edx, edx
cmp edi, edx
mov dword [esp + 0x1c], esi
mov ecx, esi
jl 0x5fb8fa
inc edi
mov eax, ecx
add ecx, 0x10
dec edi
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
jne 0x5fb8e7
mov ecx, dword [ebp + 8]
fld dword [ecx]
fadd dword [ebx + 0x10]
fld dword [ebx + 0x14]
fadd dword [ecx + 4]
fld dword [ebx + 0x18]
fadd dword [ecx + 8]
fstp dword [esp + 0x28]
fld dword [ebx + 0x1c]
fadd dword [ecx + 0xc]
fstp dword [esp + 0x2c]
fxch st(1)
fmul dword [ebx + 0x30]
fstp dword [esp + 0x20]
fmul dword [ebx + 0x34]
fstp dword [esp + 0x24]
fld dword [esp + 0x28]
fmul dword [ebx + 0x38]
fstp dword [esp + 0x28]
fld dword [esp + 0x2c]
fmul dword [ebx + 0x3c]
fld dword [esp + 0x20]
fcomp dword [0x671b78]
fnstsw ax
test ah, 5
jnp 0x5fb957
mov dword [esp + 0x20], 0x477ffc00
fld dword [esp + 0x24]
fcomp dword [0x671b78]
fnstsw ax
test ah, 5
jnp 0x5fb970
mov dword [esp + 0x24], 0x477ffc00
fld dword [esp + 0x28]
fcomp dword [0x671b78]
fnstsw ax
test ah, 5
jnp 0x5fb989
mov dword [esp + 0x28], 0x477ffc00
fcom dword [0x671b78]
fnstsw ax
test ah, 5
jnp 0x5fb99e
fstp st(0)
fld dword [0x671b78]
fld dword [esp + 0x20]
fcomp dword [0x641de0]
fnstsw ax
test ah, 0x41
je 0x5fb9b7
mov dword [esp + 0x20], 0
fld dword [esp + 0x24]
fcomp dword [0x641de0]
fnstsw ax
test ah, 0x41
je 0x5fb9d0
mov dword [esp + 0x24], 0
fld dword [esp + 0x28]
fcomp dword [0x641de0]
fnstsw ax
test ah, 0x41
je 0x5fb9e9
mov dword [esp + 0x28], 0
fcom dword [0x641de0]
fnstsw ax
test ah, 0x41
je 0x5fb9fe
fstp st(0)
fld dword [0x641de0]
fld dword [esp + 0x20]
fadd dword [0x6542f8]
fstp dword [esp + 0x20]
mov eax, dword [esp + 0x20]
fld dword [esp + 0x24]
shr eax, 7
fadd dword [0x6542f8]
mov word [esp + 0x20], ax
fstp dword [esp + 0x24]
mov edx, dword [esp + 0x24]
fld dword [esp + 0x28]
shr edx, 7
fadd dword [0x6542f8]
mov word [esp + 0x22], dx
fstp dword [esp + 0x28]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x48], edi
fadd dword [0x6542f8]
mov eax, dword [esp + 0x48]
shr eax, 7
mov word [esp + 0x24], ax
fstp dword [esp + 0x2c]
mov edi, dword [esp + 0x2c]
fld dword [ecx + 0x10]
mov dword [esp + 0x4c], edi
fadd dword [ebx + 0x20]
fld dword [ecx + 0x14]
fadd dword [ebx + 0x24]
fld dword [ecx + 0x18]
fadd dword [ebx + 0x28]
fstp dword [esp + 0x48]
fld dword [ecx + 0x1c]
fadd dword [ebx + 0x2c]
fstp dword [esp + 0x4c]
fxch st(1)
fmul dword [ebx + 0x30]
fstp dword [esp + 0x40]
fmul dword [ebx + 0x34]
fstp dword [esp + 0x44]
fld dword [esp + 0x48]
fmul dword [ebx + 0x38]
fstp dword [esp + 0x48]
fld dword [esp + 0x4c]
fmul dword [ebx + 0x3c]
fld dword [esp + 0x40]
fcomp dword [0x671b78]
fnstsw ax
test ah, 5
jnp 0x5fbac1
mov dword [esp + 0x40], 0x477ffc00
fld dword [esp + 0x44]
fcomp dword [0x671b78]
fnstsw ax
test ah, 5
jnp 0x5fbada
mov dword [esp + 0x44], 0x477ffc00
fld dword [esp + 0x48]
fcomp dword [0x671b78]
fnstsw ax
test ah, 5
jnp 0x5fbaf3
mov dword [esp + 0x48], 0x477ffc00
fcom dword [0x671b78]
fnstsw ax
test ah, 5
jnp 0x5fbb08
fstp st(0)
fld dword [0x671b78]
fld dword [esp + 0x40]
fcomp dword [0x641de0]
fnstsw ax
test ah, 0x41
je 0x5fbb21
mov dword [esp + 0x40], 0
fld dword [esp + 0x44]
fcomp dword [0x641de0]
fnstsw ax
test ah, 0x41
je 0x5fbb3a
mov dword [esp + 0x44], 0
fld dword [esp + 0x48]
fcomp dword [0x641de0]
fnstsw ax
test ah, 0x41
je 0x5fbb53
mov dword [esp + 0x48], 0
fcom dword [0x641de0]
fnstsw ax
test ah, 0x41
je 0x5fbb68
fstp st(0)
fld dword [0x641de0]
fld dword [esp + 0x40]
fadd dword [0x6542f8]
fstp dword [esp + 0x40]
mov eax, dword [esp + 0x40]
fld dword [esp + 0x44]
shr eax, 7
fadd dword [0x6542f8]
movzx eax, ax
or eax, 1
mov dword [esp + 0x80], eax
fstp dword [esp + 0x44]
mov ecx, dword [esp + 0x44]
fld dword [esp + 0x48]
shr ecx, 7
fadd dword [0x6542f8]
movzx eax, cx
mov ecx, dword [ebx + 0x70]
fstp dword [esp + 0x48]
mov edx, dword [esp + 0x48]
fadd dword [0x6542f8]
or eax, 1
mov dword [esp + 0x84], eax
shr edx, 7
fstp dword [esp + 0x4c]
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0x20]
and edi, 0xfffe
mov dword [esp + 0x70], edi
mov edi, dword [esp + 0x22]
movzx eax, dx
and edi, 0xfffe
or eax, 1
mov dword [esp + 0x74], edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x88], eax
mov eax, dword [ebx + 0x4c]
and edi, 0xfffe
add eax, 4
test ecx, ecx
mov dword [esp + 0x78], edi
je 0x5fbcfe
mov edi, dword [ebx + 0x74]
mov ecx, 0x10
sub ecx, edi
mov edi, dword [esp + 0x70]
sar edi, cl
test edi, edi
jle 0x5fbcfe
mov eax, dword [ebx + 0x78]
shl edi, 4
movzx ecx, word [edi + eax - 0x10]
lea edx, [edi + eax - 0x10]
mov eax, ecx
and ecx, 0x1f
sar eax, 5
mov edi, 1
shl edi, cl
mov ecx, dword [esi + eax*4]
mov dword [esp + 0x20], edx
xor ecx, edi
mov dword [esi + eax*4], ecx
mov eax, dword [edx + 8]
dec eax
mov edi, dword [edx + 4]
js 0x5fbc97
inc eax
mov dword [esp + 0x18], eax
jmp 0x5fbc70
movzx ecx, word [edi]
mov eax, ecx
and ecx, 0x1f
sar eax, 5
mov edx, 1
shl edx, cl
mov ecx, dword [esi + eax*4]
add edi, 2
xor ecx, edx
mov dword [esi + eax*4], ecx
dec dword [esp + 0x18]
jne 0x5fbc70
mov edx, dword [esp + 0x20]
movzx eax, word [edx]
mov ecx, dword [ebx + 0x40]
shl eax, 4
movzx edx, word [eax + ecx + 8]
movzx edi, word [eax + ecx + 0xa]
add eax, ecx
mov ecx, dword [ebx + 0x4c]
lea edx, [ecx + edx*4 + 4]
lea ecx, [ecx + edi*4]
cmp edx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
jae 0x5fbcf3
test byte [edx], 1
jne 0x5fbcec
movzx ecx, word [edx + 2]
mov eax, ecx
and ecx, 0x1f
mov edi, 1
shl edi, cl
sar eax, 5
mov ecx, dword [esi + eax*4]
not edi
and ecx, edi
mov dword [esi + eax*4], ecx
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
add edx, 4
cmp edx, ecx
jb 0x5fbcc2
movzx eax, word [eax + 8]
mov ecx, dword [ebx + 0x4c]
lea eax, [ecx + eax*4 + 4]
movzx edx, word [eax]
cmp edx, dword [esp + 0x70]
jae 0x5fbd2e
movzx ecx, word [eax + 2]
mov edx, ecx
and ecx, 0x1f
sar edx, 5
mov edi, 1
shl edi, cl
mov ecx, dword [esi + edx*4]
add eax, 4
xor ecx, edi
mov dword [esi + edx*4], ecx
movzx ecx, word [eax]
cmp ecx, dword [esp + 0x70]
jb 0x5fbd07
mov cx, word [eax]
mov edi, dword [esp + 0x80]
movzx edx, cx
cmp edx, edi
jae 0x5fbd70
nop
test cl, 1
jne 0x5fbd5b
movzx ecx, word [eax + 2]
mov edx, ecx
and ecx, 0x1f
mov edi, 1
sar edx, 5
shl edi, cl
xor dword [esi + edx*4], edi
mov cx, word [eax + 4]
mov edi, dword [esp + 0x80]
add eax, 4
movzx edx, cx
cmp edx, edi
jb 0x5fbd40
mov edi, dword [ebx + 0x58]
mov edx, dword [esp + 0x74]
mov eax, dword [ebx + 0x5c]
lea esi, [ebx + 0x58]
lea eax, [edi + eax*4 - 8]
push edx
lea ecx, [edi + 4]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x2c], eax
call fcn.005f7f60
mov ecx, dword [esp + 0x20]
sub eax, edi
sar eax, 2
mov word [esp + 0x40], ax
mov eax, dword [esp + 0x84]
push eax
push ecx
lea eax, [edi + 4]
push eax
mov ecx, esi
call fcn.005f7f60
mov edx, 0xfffffffc
sub edx, edi
mov edi, dword [ebx + 0x64]
add eax, edx
mov edx, dword [esp + 0x78]
sar eax, 2
lea esi, [ebx + 0x64]
mov word [esp + 0x44], ax
mov eax, dword [esi + 4]
lea eax, [edi + eax*4 - 8]
push edx
lea ecx, [edi + 4]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x2c], eax
call fcn.005f7f60
mov ecx, dword [esp + 0x20]
sub eax, edi
sar eax, 2
mov word [esp + 0x42], ax
mov eax, dword [esp + 0x88]
push eax
push ecx
lea eax, [edi + 4]
push eax
mov ecx, esi
call fcn.005f7f60
mov ecx, dword [ebx + 0x40]
mov edx, 0xfffffffc
sub edx, edi
mov edi, dword [esp + 0x60]
add eax, edx
mov edx, dword [ebx + 0x44]
sar eax, 2
mov word [esp + 0x46], ax
mov eax, dword [esp + 0x1c]
sar edx, 5
lea ebx, [eax + edx*4 + 4]
cmp eax, ebx
mov esi, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], ebx
jae 0x5fbf5e
lea eax, [ecx + 0x24]
mov dword [esp + 0x18], eax
jmp 0x5fbe50
mov edx, dword [esi]
test edx, edx
je 0x5fbf3e
lea ebx, [ebx]
test dl, 0xf
je 0x5fbf28
test dl, 1
je 0x5fbe99
mov ebx, dword [esp + 0x40]
mov esi, dword [eax - 0x20]
sub esi, ebx
mov ebx, dword [esp + 0x44]
sub ebx, dword [eax - 0x24]
lea ecx, [eax - 0x24]
or esi, ebx
test esi, 0x80008000
jne 0x5fbe99
test byte [eax - 0x18], 1
jne 0x5fbe99
mov esi, dword [esp + 0x5c]
mov dword [esi + edi*4], ecx
inc edi
test dl, 2
je 0x5fbec9
mov ebx, dword [esp + 0x40]
mov esi, dword [eax - 0x10]
sub esi, ebx
mov ebx, dword [esp + 0x44]
sub ebx, dword [eax - 0x14]
lea ecx, [eax - 0x14]
or esi, ebx
test esi, 0x80008000
jne 0x5fbec9
test byte [eax - 8], 1
jne 0x5fbec9
mov esi, dword [esp + 0x5c]
mov dword [esi + edi*4], ecx
inc edi
test dl, 4
je 0x5fbef8
mov ebx, dword [esp + 0x40]
mov esi, dword [eax]
sub esi, ebx
mov ebx, dword [esp + 0x44]
sub ebx, dword [eax - 4]
lea ecx, [eax - 4]
or esi, ebx
test esi, 0x80008000
jne 0x5fbef8
test byte [eax + 8], 1
jne 0x5fbef8
mov esi, dword [esp + 0x5c]
mov dword [esi + edi*4], ecx
inc edi
test dl, 8
je 0x5fbf28
mov ebx, dword [esp + 0x40]
mov esi, dword [eax + 0x10]
sub esi, ebx
mov ebx, dword [esp + 0x44]
sub ebx, dword [eax + 0xc]
lea ecx, [eax + 0xc]
or esi, ebx
test esi, 0x80008000
jne 0x5fbf28
test byte [eax + 0x18], 1
jne 0x5fbf28
mov esi, dword [esp + 0x5c]
mov dword [esi + edi*4], ecx
inc edi
shr edx, 4
add eax, 0x40
test edx, edx
jne 0x5fbe60
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
add esi, 4
add eax, 0x200
cmp esi, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], esi
jb 0x5fbe50
mov dword [esp + 0x60], edi
mov eax, dword [esp + 0x3c]
test eax, eax
mov ecx, dword [0x9617f0]
je 0x5fbf84
mov edx, dword [ecx + 0x14]
mov esi, dword [esp + 0x1c]
cmp esi, edx
je 0x5fbf7b
test edx, edx
jne 0x5fbf84
mov edx, dword [ecx]
push eax
push esi
call dword [edx + 0x28]
jmp 0x5fbf94
mov esi, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
sub esi, eax
add edx, eax
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], edx
mov esi, dword [ebp + 0xc]
test esi, esi
lea ecx, [esi + 0x24]
lea eax, [edi + edi + 2]
je 0x5fbfb6
mov edx, eax
or edx, 0x80000000
mov dword [esi], ecx
mov dword [esi + 4], 0
mov dword [esi + 8], edx
lea ebx, [esi + 0xc]
xor edx, edx
cmp ebx, edx
mov dword [esp + 0x1c], ebx
je 0x5fbfd6
lea edi, [ecx + eax*4]
mov dword [ebx], edi
mov edi, eax
or edi, 0x80000000
mov dword [ebx + 4], edx
mov dword [ebx + 8], edi
lea edi, [esi + 0x18]
cmp edi, edx
je 0x5fbfed
lea ecx, [ecx + eax*8]
or eax, 0x80000000
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [edi + 8], eax
mov ecx, dword [esi]
mov word [esp + 0x18], dx
mov word [esp + 0x1a], dx
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x18]
mov dword [ecx + edx*4], eax
inc dword [esi + 4]
mov edx, dword [ebx + 4]
mov ecx, dword [ebx]
mov dword [ecx + edx*4], eax
inc dword [ebx + 4]
mov edx, dword [edi + 4]
mov ecx, dword [edi]
mov dword [ecx + edx*4], eax
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x60]
inc edx
dec eax
mov dword [edi + 4], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x10], edx
js 0x5fc134
inc eax
mov dword [esp + 0x20], eax
jmp 0x5fc040
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
movzx edx, word [ecx + 8]
mov ebx, dword [esi]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x4c]
mov ecx, dword [ecx + edx*4]
mov eax, dword [esi + 4]
mov dword [ebx + eax*4], ecx
mov eax, dword [esi + 4]
mov ebx, dword [esi]
inc eax
mov dword [esi + 4], eax
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
movzx ecx, word [edx + 0xa]
mov edx, dword [esp + 0x14]
mov edx, dword [edx + 0x4c]
mov edx, dword [edx + ecx*4]
mov ecx, dword [esi + 4]
mov dword [ebx + ecx*4], edx
inc dword [esi + 4]
mov eax, dword [eax]
movzx ecx, word [eax]
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x58]
mov ecx, dword [edx + ecx*4]
add eax, 0x58
mov eax, dword [esp + 0x1c]
mov ebx, dword [eax + 4]
mov eax, dword [eax]
mov dword [eax + ebx*4], ecx
mov eax, dword [esp + 0x1c]
inc dword [eax + 4]
mov ebx, dword [eax + 4]
mov edx, dword [esp + 0x10]
mov ecx, dword [edx]
movzx edx, word [ecx + 4]
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
add ecx, 0x58
mov ecx, dword [ecx]
mov ecx, dword [ecx + edx*4]
mov dword [eax + ebx*4], ecx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x10]
inc ecx
mov dword [eax + 4], ecx
mov eax, dword [edx]
movzx ecx, word [eax + 2]
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x64]
mov ecx, dword [edx + ecx*4]
mov ebx, dword [edi]
mov edx, dword [esp + 0x10]
add eax, 0x64
mov eax, dword [edi + 4]
mov dword [ebx + eax*4], ecx
mov ebx, dword [edi + 4]
inc ebx
mov dword [edi + 4], ebx
mov eax, dword [edx]
movzx ecx, word [eax + 6]
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x64]
mov ecx, dword [edx + ecx*4]
add eax, 0x64
mov eax, ebx
mov ebx, dword [edi]
mov dword [ebx + eax*4], ecx
mov edx, dword [edi + 4]
mov ecx, dword [esp + 0x10]
inc edx
add ecx, 4
mov dword [edi + 4], edx
mov dword [esp + 0x10], ecx
dec dword [esp + 0x20]
jne 0x5fc040
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 3
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 4]
dec eax
cmp eax, 1
mov byte [esp + 0x3c], 0
jle 0x5fc169
mov ecx, dword [esp + 0x3c]
push ecx
dec eax
push eax
mov eax, dword [edx]
add eax, 4
push 0
push eax
call fcn.005f8370
add esp, 0x10
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add ecx, 0xc
dec eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
jne 0x5fc140
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov word [esp + 0x18], 0xfffc
mov word [esp + 0x1a], 0
mov eax, dword [esp + 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 4]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
mov dword [edx + ecx*4], eax
inc dword [ebx + 4]
mov ecx, dword [edi + 4]
mov edx, dword [edi]
mov dword [edx + ecx*4], eax
mov esi, dword [edi + 4]
mov eax, dword [esp + 0x6c]
inc esi
lea eax, [eax*4 + 0xf]
and eax, 0xfffffff0
mov dword [edi + 4], esi
mov ecx, dword [0x9617f0]
je 0x5fc1e4
mov edx, dword [ecx + 0x14]
mov esi, dword [esp + 0x68]
cmp esi, edx
je 0x5fc1db
test edx, edx
jne 0x5fc1e4
mov edx, dword [ecx]
push eax
push esi
call dword [edx + 0x28]
jmp 0x5fc1f4
mov esi, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
sub esi, eax
add edx, eax
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], edx
mov eax, dword [esp + 0x64]
test eax, eax
js 0x5fc217
mov ecx, dword [0x9617f0]
mov edx, dword [ecx]
and eax, 0x7fffffff
push 0x12
shl eax, 2
push eax
mov eax, dword [esp + 0x64]
push eax
call dword [edx + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8