Function at 0x599100
Capabilities:
Encode data using xor
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x74
mov eax, dword [0x6d7160]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
lea ecx, [edi + eax - 4]
mov eax, dword [esi]
or ebx, 0xffffffff
cmp dword [eax + 0x14], 0
mov dword [esp + 0x40], ebx
mov word [esp + 0x48], 0x410
mov word [esp + 0x4a], 0x45f3
je 0x599156
cmp dword [eax + 0x18], ebx
je 0x599165
mov edx, dword [eax + 0x1c]
cmp edx, ecx
mov dword [eax + 0x18], ecx
ja 0x599151
mov ecx, edx
mov dword [eax + 0x18], ecx
jmp 0x599165
push 0
push ecx
mov ecx, dword [eax + 4]
push ecx
call fcn.006081d8
add esp, 0xc
call fcn.0057e000
mov ecx, dword [esi]
add eax, edi
cmp dword [ecx + 0x14], 0
je 0x59918a
cmp dword [ecx + 0x18], ebx
je 0x599199
mov edx, dword [ecx + 0x1c]
cmp edx, eax
mov dword [ecx + 0x18], eax
ja 0x599185
mov eax, edx
mov dword [ecx + 0x18], eax
jmp 0x599199
mov edx, dword [ecx + 4]
push 0
push eax
push edx
call fcn.006081d8
add esp, 0xc
call fcn.0057df50
movzx eax, ax
cmp eax, 0x64
mov dword [esp + 0x4c], eax
jg 0x599b9b
test eax, eax
je 0x599b9b
sub dword [esp + 0x4c], 1
call fcn.0057df50
movzx ebx, ax
mov dword [esp + 0x44], ebx
call fcn.0057e000
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 0x14], 0
je 0x5991db
mov eax, dword [eax + 0x18]
jmp 0x5991e7
mov eax, dword [eax + 4]
push eax
call fcn.00609413
add esp, 4
add eax, 4
mov dword [esp + 0x50], eax
call fcn.0057e000
mov ecx, dword [esi]
add eax, dword [ebp + 8]
cmp dword [ecx + 0x14], 0
je 0x599215
cmp dword [ecx + 0x18], 0xffffffff
je 0x599224
mov edx, dword [ecx + 0x1c]
cmp edx, eax
mov dword [ecx + 0x18], eax
ja 0x599210
mov eax, edx
mov dword [ecx + 0x18], eax
jmp 0x599224
mov ecx, dword [ecx + 4]
push 0
push eax
push ecx
call fcn.006081d8
add esp, 0xc
mov edx, ebx
sar edx, 8
add edx, 8
or edx, 8
cmp edx, 0x38
jne 0x599256
mov eax, dword [esi]
cmp dword [eax + 0x14], 0
je 0x599241
mov eax, dword [eax + 0x18]
jmp 0x59924d
mov eax, dword [eax + 4]
push eax
call fcn.00609413
add esp, 4
push edi
push eax
mov ecx, esi
call fcn.00599100
cmp ebx, 0x810
jne 0x5992f5
lea ebx, [esi + 0x2d5]
mov edi, dword [esi]
cmp dword [edi + 0x14], 0
je 0x5992de
mov eax, 0x40
call fcn.00410220
mov ebx, dword [esp + 0x44]
or ebx, 0x4000
cmp ebx, 0x580e
jne 0x5992b0
lea edi, [esi + 0x328]
push edi
call fcn.0061bfe1
add esp, 4
push eax
mov dword [eax + 0x20], 0xffffffff
call fcn.0061b471
add esp, 4
mov dword [edi], eax
mov dword [edi + 4], edx
mov eax, dword [esi]
cmp dword [eax + 0x14], 0
je 0x599b7d
cmp dword [eax + 0x18], 0xffffffff
je 0x599b90
mov edx, dword [esp + 0x50]
mov ecx, dword [eax + 0x1c]
cmp ecx, edx
mov dword [eax + 0x18], edx
jbe 0x5992d6
mov ecx, edx
mov dword [eax + 0x18], ecx
jmp 0x599b90
mov edi, dword [edi + 4]
test edi, edi
je 0x59927a
push edi
push 1
push 0x40
push ebx
call fcn.0060860a
add esp, 0x10
jmp 0x59927a
cmp ebx, 0x80a
jne 0x599389
mov edi, dword [esi]
cmp dword [edi + 0x14], 0
lea ebx, [esi + 0x215]
je 0x59931b
mov eax, 0x40
call fcn.00410220
jmp 0x599330
mov edi, dword [edi + 4]
test edi, edi
je 0x599330
push edi
push 1
push 0x40
push ebx
call fcn.0060860a
add esp, 0x10
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x599335
sub eax, edx
lea ecx, [eax - 0x3f]
mov eax, dword [esi]
cmp dword [eax + 0x14], 0
je 0x59936f
mov edx, dword [eax + 0x18]
cmp edx, 0xffffffff
je 0x59937e
add ecx, edx
mov edx, dword [eax + 0x1c]
cmp edx, ecx
mov dword [eax + 0x18], ecx
ja 0x599361
mov ecx, edx
mov dword [eax + 0x18], ecx
lea ebx, [esi + 0x255]
jmp 0x599268
push 1
push ecx
mov ecx, dword [eax + 4]
push ecx
call fcn.006081d8
add esp, 0xc
lea ebx, [esi + 0x255]
jmp 0x599268
cmp ebx, 0x1807
jne 0x5993c6
call fcn.0057e000
mov dword [esp + 0x38], eax
fld dword [esp + 0x38]
sub esp, 8
lea ecx, [esp + 0x64]
fstp qword [esp]
call fcn.004dc230
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
mov dword [esi + 0x20660], edx
mov dword [esi + 0x20664], eax
jmp 0x59927e
cmp ebx, 0x1810
jne 0x599420
mov eax, dword [esi]
cmp dword [eax + 0x14], 0
je 0x599400
mov ecx, dword [eax + 0x18]
cmp ecx, 0xffffffff
je 0x599410
mov edx, dword [eax + 0x1c]
add ecx, 0xc
cmp edx, ecx
mov dword [eax + 0x18], ecx
ja 0x5993ed
mov ecx, edx
mov dword [eax + 0x18], ecx
call fcn.0057e000
mov dword [esi + 0x474], eax
jmp 0x59927e
mov ecx, dword [eax + 4]
push 1
push 0xc
push ecx
call fcn.006081d8
add esp, 0xc
call fcn.0057e000
mov dword [esi + 0x474], eax
jmp 0x59927e
cmp ebx, 0x1835
jne 0x599438
call fcn.0057e000
mov dword [esi + 0x384], eax
jmp 0x59927e
cmp ebx, 0x2007
jne 0x599479
mov eax, dword [esi]
cmp dword [eax + 0x14], 0
je 0x59945c
mov eax, dword [eax + 0x18]
mov dword [esi + 0x34c], eax
mov dword [esi + 0x358], edi
jmp 0x59927e
mov edx, dword [eax + 4]
push edx
call fcn.00609413
add esp, 4
mov dword [esi + 0x34c], eax
mov dword [esi + 0x358], edi
jmp 0x59927e
cmp ebx, 0x1818
jne 0x599522
call fcn.0057e000
call fcn.0057e000
mov dword [esp + 0x38], eax
fld dword [esp + 0x38]
fchs
fld qword [0x6c0b40]
fxch st(1)
call fcn.0066a760
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
sub esp, 8
lea ecx, [esp + 0x74]
fstp qword [esp]
call fcn.004dc230
cmp dword [esi + 0x20674], 0
jne 0x5994da
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov dword [esi + 0x20670], eax
mov dword [esi + 0x20674], ecx
call fcn.0057e000
mov dword [esp + 0x38], eax
fld dword [esp + 0x38]
fmul qword [0x69f210]
fld qword [0x6c0b40]
fxch st(1)
call fcn.0066a760
sub esp, 8
lea ecx, [esp + 0x6c]
fstp qword [esp]
call fcn.004dc230
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
mov dword [esi + 0x20678], edx
mov dword [esi + 0x2067c], eax
jmp 0x59927e
cmp ebx, 0x102a
jne 0x5996e6
call fcn.0057e000
call fcn.0057df50
movzx ecx, ax
mov dword [esp + 0x38], ecx
fild dword [esp + 0x38]
fmul qword [0x6c1118]
fsub qword [0x6a5f30]
fstp dword [esp + 0x38]
fldz
fcomp dword [esi + 0x320]
fnstsw ax
test ah, 0x44
jp 0x599585
fld qword [0x6c0b40]
fld dword [esp + 0x38]
call fcn.0066a760
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fmul qword [0x6c0b20]
fstp dword [esi + 0x320]
call fcn.0057df50
call fcn.0057df50
movsx edx, ax
mov dword [esp + 0x38], edx
fild dword [esp + 0x38]
fmul qword [0x6c1250]
fstp dword [esp + 0x38]
fld qword [0x6c0b40]
fld dword [esp + 0x38]
call fcn.0066a760
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
sub esp, 8
lea ecx, [esp + 0x7c]
fstp qword [esp]
call fcn.004dc230
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov dword [esi + 0x20678], eax
mov dword [esi + 0x2067c], ecx
call fcn.0057df50
movsx edx, ax
neg edx
mov dword [esp + 0x38], edx
fild dword [esp + 0x38]
fmul qword [0x6c1118]
fstp dword [esp + 0x38]
fld qword [0x6c0b40]
fld dword [esp + 0x38]
call fcn.0066a760
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
sub esp, 8
lea ecx, [esp + 0x5c]
fstp qword [esp]
call fcn.004dc230
call fcn.0057df50
call fcn.0057df50
movzx eax, ax
cmp eax, 0x11
mov dword [esp + 0x40], eax
jle 0x59963e
mov dword [esp + 0x40], 0
mov eax, dword [esi]
cmp dword [eax + 0x14], 0
je 0x599662
mov ecx, dword [eax + 0x18]
cmp ecx, 0xffffffff
je 0x599672
mov edx, dword [eax + 0x1c]
add ecx, 0x20
cmp edx, ecx
mov dword [eax + 0x18], ecx
ja 0x59965d
mov ecx, edx
mov dword [eax + 0x18], ecx
jmp 0x599672
mov eax, dword [eax + 4]
push 1
push 0x20
push eax
call fcn.006081d8
add esp, 0xc
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x5996c4
mov edx, dword [esp + 0x54]
fild dword [esp + 0x54]
test edx, edx
jge 0x59968c
fadd qword [0x6c0c98]
mov eax, ecx
test eax, eax
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
jge 0x5996a0
fadd qword [0x6c0c98]
fdivp st(1)
fcomp qword [0x6c0d60]
fnstsw ax
test ah, 0x41
jne 0x5996c4
call fcn.0057df50
movzx ecx, ax
mov dword [esp + 0x54], ecx
mov ecx, 0xa
mov dword [esp + 0x58], ecx
cmp dword [esi + 0x20674], 0
jne 0x59927e
mov edx, dword [esp + 0x54]
mov dword [esi + 0x20670], edx
mov dword [esi + 0x20674], ecx
jmp 0x59927e
cmp ebx, 0x102c
jne 0x5997bd
call fcn.0057df50
cmp ax, 0x200
mov eax, dword [esi]
jbe 0x59975c
cmp dword [eax + 0x14], 0
je 0x599721
mov ecx, dword [eax + 0x18]
cmp ecx, 0xffffffff
je 0x599731
mov edx, dword [eax + 0x1c]
add ecx, 0x76
cmp edx, ecx
mov dword [eax + 0x18], ecx
ja 0x59971c
mov ecx, edx
mov dword [eax + 0x18], ecx
jmp 0x599731
mov eax, dword [eax + 4]
push 1
push 0x76
push eax
call fcn.006081d8
add esp, 0xc
xor edi, edi
call fcn.0057df50
movzx ecx, ax
mov dword [esp + 0x38], ecx
mov edx, edi
xor edx, 2
fild dword [esp + 0x38]
add edi, 1
cmp edi, 4
fstp dword [esi + edx*4 + 0x205c8]
jl 0x599733
jmp 0x59927e
cmp dword [eax + 0x14], 0
je 0x59977e
mov ecx, dword [eax + 0x18]
cmp ecx, 0xffffffff
je 0x59978e
mov edx, dword [eax + 0x1c]
add ecx, 0x62
cmp edx, ecx
mov dword [eax + 0x18], ecx
ja 0x599779
mov ecx, edx
mov dword [eax + 0x18], ecx
jmp 0x59978e
mov eax, dword [eax + 4]
push 1
push 0x62
push eax
call fcn.006081d8
add esp, 0xc
xor edi, edi
call fcn.0057df50
mov edx, edi
movzx ecx, ax
xor edx, 2
sar edx, 1
mov dword [esp + 0x38], ecx
xor edx, edi
add edi, 1
cmp edi, 4
fild dword [esp + 0x38]
fstp dword [esi + edx*4 + 0x205c8]
jl 0x599790
jmp 0x59927e
cmp ebx, 0x32
jne 0x599937
cmp edi, 0x300
jne 0x599857
mov eax, dword [esi]
cmp dword [eax + 0x14], 0
je 0x5997f6
mov ecx, dword [eax + 0x18]
cmp ecx, 0xffffffff
je 0x599806
mov edx, dword [eax + 0x1c]
add ecx, 0x48
cmp edx, ecx
mov dword [eax + 0x18], ecx
ja 0x5997f1
mov ecx, edx
mov dword [eax + 0x18], ecx
jmp 0x599806
mov eax, dword [eax + 4]
push 1
push 0x48
push eax
call fcn.006081d8
add esp, 0xc
xor edi, edi
call fcn.0057df50
movzx ecx, ax
mov dword [esp + 0x38], ecx
mov edx, edi
sar edx, 1
fild dword [esp + 0x38]
xor edx, edi
add edi, 1
cmp edi, 4
fdivr qword [0x6c1038]
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fstp dword [esi + edx*4 + 0x205c8]
jl 0x599808
cmp dword [esp + 0x40], 0
jne 0x59927e
fld dword [0x6c0e68]
fstp dword [esi + 0x205c8]
jmp 0x59927e
fldz
fcomp dword [esi + 0x205c8]
fnstsw ax
test ah, 0x44
jp 0x59927e
call fcn.0057df50
cmp ax, word [esp + 0x48]
jne 0x5998a5
lea eax, [esi + 0x255]
push 0x6b6278
push eax
call fcn.00607cb0
add esp, 8
test eax, eax
mov eax, str.012346000000000000
jne 0x599898
mov eax, str.01345:000000006008
mov ecx, dword [esp + 0x40]
movsx eax, byte [eax + ecx]
sub eax, 0x2e
jmp 0x5998bf
mov edx, dword [esp + 0x40]
movsx eax, byte [edx + str.023457000000006000]
sub eax, 0x30
xor ecx, ecx
mov word [esp + 0x4a], cx
mov word [esp + 0x48], cx
lea edx, [eax*8 + 0x4e]
mov eax, dword [esi]
cmp dword [eax + 0x14], 0
je 0x5998e9
mov ecx, dword [eax + 0x18]
cmp ecx, 0xffffffff
je 0x5998f8
add ecx, edx
mov edx, dword [eax + 0x1c]
cmp edx, ecx
mov dword [eax + 0x18], ecx
ja 0x5998e4
mov ecx, edx
mov dword [eax + 0x18], ecx
jmp 0x5998f8
mov eax, dword [eax + 4]
push 1
push edx
push eax
call fcn.006081d8
add esp, 0xc
xor edi, edi
lea ebx, [ebx]
call fcn.0057df50
mov ecx, edi
and ecx, 1
xor ax, word [esp + ecx*2 + 0x48]
movzx edx, ax
mov eax, edi
xor eax, 2
sar eax, 1
mov dword [esp + 0x38], edx
xor eax, edi
add edi, 1
cmp edi, 4
fild dword [esp + 0x38]
fstp dword [esi + eax*4 + 0x205c8]
jl 0x599900
jmp 0x59983b
cmp ebx, 0x10a9
jne 0x599a5d
cmp edi, 0x42
jle 0x59995a
mov ecx, dword [esp + 0x40]
movsx edx, byte [ecx + str.0134567028]
sub edx, 0x30
mov dword [esp + 0x40], edx
mov eax, dword [esi]
cmp dword [eax + 0x14], 0
mov ecx, dword [esp + 0x40]
lea ecx, [ecx*8 + 2]
je 0x599988
mov edx, dword [eax + 0x18]
cmp edx, 0xffffffff
je 0x599997
add ecx, edx
mov edx, dword [eax + 0x1c]
cmp edx, ecx
mov dword [eax + 0x18], ecx
ja 0x599983
mov ecx, edx
mov dword [eax + 0x18], ecx
jmp 0x599997
mov eax, dword [eax + 4]
push 1
push ecx
push eax
call fcn.006081d8
add esp, 0xc
xor ebx, ebx
mov dword [esp + 0x38], ebx
lea ecx, [ecx]
mov edi, dword [esi]
mov al, 0xff
mov byte [esp + 0x3c], al
mov byte [esp + 0x3d], al
cmp dword [edi + 0x14], 0
je 0x599a03
mov eax, dword [edi + 0x1c]
mov ebx, 2
cmp eax, ebx
jb 0x5999c8
mov ecx, dword [edi + 0x18]
lea edx, [ecx + 2]
cmp edx, eax
jbe 0x5999d1
mov ecx, dword [edi + 0x18]
sub eax, ecx
mov ebx, eax
je 0x5999e8
mov eax, dword [edi + 0x14]
add ecx, eax
push ebx
push ecx
lea eax, [esp + 0x44]
push eax
call fcn.0060d1b0
add esp, 0xc
add dword [edi + 0x18], ebx
mov ebx, dword [esp + 0x38]
cmp word [esi + 4], 0x4949
jne 0x599a1e
xor edx, edx
mov dh, byte [esp + 0x3d]
mov dl, byte [esp + 0x3c]
movzx eax, dx
jmp 0x599a30
mov edi, dword [edi + 4]
test edi, edi
je 0x5999ec
push edi
push 2
lea ecx, [esp + 0x44]
push 1
push ecx
call fcn.0060860a
add esp, 0x10
jmp 0x5999ec
movzx cx, byte [esp + 0x3d]
xor eax, eax
mov ah, byte [esp + 0x3c]
or ax, cx
movzx eax, ax
movzx edx, ax
mov eax, ebx
mov dword [esp + 0x38], edx
sar eax, 1
xor eax, ebx
fild dword [esp + 0x38]
add ebx, 1
cmp ebx, 4
mov dword [esp + 0x38], ebx
fstp dword [esi + eax*4 + 0x205c8]
jl 0x5999a0
jmp 0x59927a
cmp ebx, 0x1030
jne 0x599a84
mov ecx, dword [esp + 0x40]
mov edx, 0x18040
sar edx, cl
test dl, 1
je 0x59927e
push esi
call fcn.00599010
jmp 0x59927e
cmp ebx, 0x1031
jne 0x599aae
call fcn.0057df50
call fcn.0057df50
mov word [esi + 0x45e], ax
call fcn.0057df50
mov word [esi + 0x45c], ax
jmp 0x59927e
cmp ebx, 0x5029
jne 0x599adf
mov eax, edi
and edi, 0xffff
sub edi, 2
sar eax, 0x10
neg edi
sbb edi, edi
and edi, 0xffffffe1
add edi, 0x20
mov dword [esi + 0x20668], eax
mov dword [esi + 0x2066c], edi
jmp 0x59927e
cmp ebx, 0x5813
jne 0x599afa
mov dword [esp + 0x38], edi
fld dword [esp + 0x38]
fstp dword [esi + 0x318]
jmp 0x59927e
cmp ebx, 0x5814
jne 0x599b15
mov dword [esp + 0x38], edi
fld dword [esp + 0x38]
fstp dword [esi + 0x31c]
jmp 0x59927e
cmp ebx, 0x5817
jne 0x599b28
mov dword [esi + 0x330], edi
jmp 0x59927e
cmp ebx, 0x5834
jne 0x599b3b
mov dword [esi + 0x340], edi
jmp 0x59927e
cmp ebx, 0x580e
jne 0x599b57
mov eax, edi
cdq
mov dword [esi + 0x328], eax
mov dword [esi + 0x32c], edx
jmp 0x59927e
cmp ebx, 0x180e
jne 0x59927e
call fcn.0057e000
mov dword [esi + 0x328], eax
mov dword [esi + 0x32c], 0
jmp 0x59927e
mov ecx, dword [esp + 0x50]
mov edx, dword [eax + 4]
push 0
push ecx
push edx
call fcn.006081d8
add esp, 0xc
cmp dword [esp + 0x4c], 0
jne 0x5991b6
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00607d6d
mov esp, ebp
pop ebp
ret 8