joyce8/EMBER2024-capa huggingface dataset:
Function at 0x599430
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f4b59
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x615cbc]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x10], edi
call fcn.004d9a70
xorps xmm0, xmm0
lea esi, [edi + 0x50]
mov dword [edi], vtable.CGeom2d_Parabola.0
mov dword [esi], vtable.CGeom2d_Axis2.0
xor ebx, ebx
mov dword [esi + 8], ebx
mov al, 1
mov byte [esi + 4], al
mov byte [esi + 0x14], al
mov dword [esi + 0x18], ebx
mov dword [esi + 0x10], vtable.CGeom2d_Point.0
movsd qword [esi + 0x28], xmm0
movsd qword [esi + 0x20], xmm0
mov dword [esi + 0x1c], 0xa
movsd qword [esi + 0x38], xmm0
movsd qword [esi + 0x30], xmm0
movsd qword [esi + 0x48], xmm0
movsd qword [esi + 0x40], xmm0
mov dword [esp + 0x90], ebx
mov dword [esi + 0xc], 0xd
movsd xmm1, qword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov byte [esp + 0x90], al
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
movsd qword [edi + 0x48], xmm1
movsd xmm1, qword [0x5fb270]
push edx
lea ecx, [esp + 0x40]
movsd qword [esp + 0x30], xmm1
movsd qword [esp + 0x38], xmm0
movsd qword [esp + 0x20], xmm0
movsd qword [esp + 0x28], xmm1
call fcn.0056a540
push eax
mov ecx, esi
call fcn.00446540
mov dword [edi + 0xc], 0x12
mov byte [edi + 0x40], bl
movsd xmm0, qword [0x5ff708]
movsd qword [edi + 0x10], xmm0
movsd xmm0, qword [0x5ff710]
movsd qword [edi + 0x18], xmm0
xorps xmm0, xmm0
movsd qword [edi + 0x28], xmm0
movsd qword [edi + 0x20], xmm0
mov byte [edi + 0x41], bl
mov dword [edi + 0x44], 0x20
mov eax, edi
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x599570
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5f7233
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x615cbc]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x10], edi
call fcn.004d9a70
xorps xmm0, xmm0
lea esi, [edi + 0x50]
mov dword [edi], vtable.CGeom2d_Parabola.0
mov dword [esi], vtable.CGeom2d_Axis2.0
xor ebx, ebx
mov dword [esi + 8], ebx
mov al, 1
mov byte [esi + 4], al
mov byte [esi + 0x14], al
mov dword [esi + 0x18], ebx
mov dword [esi + 0x10], vtable.CGeom2d_Point.0
movsd qword [esi + 0x28], xmm0
movsd qword [esi + 0x20], xmm0
mov dword [esi + 0x1c], 0xa
movsd qword [esi + 0x38], xmm0
movsd qword [esi + 0x30], xmm0
movsd qword [esi + 0x48], xmm0
movsd qword [esi + 0x40], xmm0
mov dword [esp + 0x6c], ebx
mov dword [esi + 0xc], 0xd
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
movsd xmm0, qword [esp + 0x74]
mov byte [esp + 0x6c], al
mov eax, dword [esp + 0x84]
push eax
push ecx
push edx
lea ecx, [esp + 0x20]
movsd qword [edi + 0x48], xmm0
call fcn.0056a540
push eax
mov ecx, esi
call fcn.00446540
mov dword [edi + 0xc], 0x12
mov byte [edi + 0x40], bl
movsd xmm0, qword [0x5ff708]
movsd qword [edi + 0x10], xmm0
movsd xmm0, qword [0x5ff710]
movsd qword [edi + 0x18], xmm0
xorps xmm0, xmm0
movsd qword [edi + 0x28], xmm0
movsd qword [edi + 0x20], xmm0
mov byte [edi + 0x41], bl
mov dword [edi + 0x44], 0x20
mov eax, edi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x60
ret 0x14
Function at 0x59a560
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f729c
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push ebx
push esi
push edi
mov eax, dword [0x615cbc]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x10], edi
call fcn.004f0a10
xorps xmm0, xmm0
lea esi, [edi + 0xa8]
mov dword [edi], vtable.CGeom_Ellipse.0
mov dword [esi], vtable.CGeom_Axis3.0
xor eax, eax
mov dword [esi + 8], eax
mov bl, 1
mov byte [esi + 4], bl
mov byte [esi + 0x14], bl
mov dword [esi + 0x18], eax
mov dword [esi + 0x10], vtable.CGeom_Point.0
movsd qword [esi + 0x30], xmm0
movsd qword [esi + 0x28], xmm0
movsd qword [esi + 0x20], xmm0
mov dword [esi + 0x1c], 0xa
movsd qword [esi + 0x48], xmm0
movsd qword [esi + 0x40], xmm0
movsd qword [esi + 0x38], xmm0
movsd qword [esi + 0x60], xmm0
movsd qword [esi + 0x58], xmm0
movsd qword [esi + 0x50], xmm0
movsd qword [esi + 0x78], xmm0
movsd qword [esi + 0x70], xmm0
movsd qword [esi + 0x68], xmm0
mov dword [esp + 0xa0], eax
mov dword [esi + 0xc], 0xd
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
movsd xmm0, qword [ebp + 8]
mov edx, dword [ebp + 0x18]
push eax
push ecx
movsd qword [edi + 0x90], xmm0
movsd xmm0, qword [ebp + 0x10]
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0xac], bl
movsd qword [edi + 0x98], xmm0
call fcn.004abba0
push eax
mov ecx, esi
call fcn.00427670
xorps xmm0, xmm0
mov dword [edi + 0xc], 0xf
mov byte [edi + 0x38], bl
movsd qword [edi + 0x10], xmm0
movsd xmm1, qword [0x616648]
movsd qword [edi + 0x20], xmm1
movsd xmm1, qword [0x616648]
movsd qword [edi + 0x18], xmm1
movsd qword [edi + 0x28], xmm0
mov byte [edi + 0x39], bl
movsd qword [edi + 0xa0], xmm0
mov dword [edi + 0x3c], 0x20
mov eax, edi
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x59d550
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f73fc
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push ebx
push esi
push edi
mov eax, dword [0x615cbc]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x10], edi
call fcn.004f0a10
xorps xmm0, xmm0
lea esi, [edi + 0x90]
mov dword [edi], vtable.CGeom_Hyperbola.0
mov dword [esi], vtable.CGeom_Axis3.0
xor ebx, ebx
mov dword [esi + 8], ebx
mov al, 1
mov byte [esi + 4], al
mov byte [esi + 0x14], al
mov dword [esi + 0x18], ebx
mov dword [esi + 0x10], vtable.CGeom_Point.0
movsd qword [esi + 0x30], xmm0
movsd qword [esi + 0x28], xmm0
movsd qword [esi + 0x20], xmm0
mov dword [esi + 0x1c], 0xa
movsd qword [esi + 0x48], xmm0
movsd qword [esi + 0x40], xmm0
movsd qword [esi + 0x38], xmm0
movsd qword [esi + 0x60], xmm0
movsd qword [esi + 0x58], xmm0
movsd qword [esi + 0x50], xmm0
movsd qword [esi + 0x78], xmm0
movsd qword [esi + 0x70], xmm0
movsd qword [esi + 0x68], xmm0
mov dword [esp + 0xa0], ebx
mov dword [esi + 0xc], 0xd
mov ecx, dword [ebp + 0x1c]
movsd xmm0, qword [ebp + 8]
mov edx, dword [ebp + 0x18]
mov byte [esp + 0xa0], al
mov eax, dword [ebp + 0x20]
push eax
push ecx
movsd qword [edi + 0x110], xmm0
movsd xmm0, qword [ebp + 0x10]
push edx
lea ecx, [esp + 0x20]
movsd qword [edi + 0x118], xmm0
call fcn.004abba0
push eax
mov ecx, esi
call fcn.00427670
mov dword [edi + 0xc], 0x11
mov byte [edi + 0x38], bl
movsd xmm0, qword [0x5ff708]
movsd qword [edi + 0x10], xmm0
movsd xmm0, qword [0x5ff710]
movsd qword [edi + 0x18], xmm0
xorps xmm0, xmm0
movsd qword [edi + 0x28], xmm0
movsd qword [edi + 0x20], xmm0
mov byte [edi + 0x39], bl
mov dword [edi + 0x3c], 0x20
mov eax, edi
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x59e820
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f50bc
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push ebx
push esi
push edi
mov eax, dword [0x615cbc]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x10], edi
call fcn.004f0a10
xorps xmm0, xmm0
lea esi, [edi + 0x98]
mov dword [edi], vtable.CGeom_Parabola.0
mov dword [esi], vtable.CGeom_Axis3.0
xor ebx, ebx
mov dword [esi + 8], ebx
mov al, 1
mov byte [esi + 4], al
mov byte [esi + 0x14], al
mov dword [esi + 0x18], ebx
mov dword [esi + 0x10], vtable.CGeom_Point.0
movsd qword [esi + 0x30], xmm0
movsd qword [esi + 0x28], xmm0
movsd qword [esi + 0x20], xmm0
mov dword [esi + 0x1c], 0xa
movsd qword [esi + 0x48], xmm0
movsd qword [esi + 0x40], xmm0
movsd qword [esi + 0x38], xmm0
movsd qword [esi + 0x60], xmm0
movsd qword [esi + 0x58], xmm0
movsd qword [esi + 0x50], xmm0
movsd qword [esi + 0x78], xmm0
movsd qword [esi + 0x70], xmm0
movsd qword [esi + 0x68], xmm0
mov dword [esp + 0xa0], ebx
mov dword [esi + 0xc], 0xd
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
movsd xmm0, qword [ebp + 8]
mov byte [esp + 0xa0], al
mov eax, dword [ebp + 0x18]
push eax
push ecx
push edx
lea ecx, [esp + 0x20]
movsd qword [edi + 0x90], xmm0
call fcn.004abba0
push eax
mov ecx, esi
call fcn.00427670
mov dword [edi + 0xc], 0x10
mov byte [edi + 0x38], bl
movsd xmm0, qword [0x5ff708]
movsd qword [edi + 0x10], xmm0
movsd xmm0, qword [0x5ff710]
movsd qword [edi + 0x18], xmm0
xorps xmm0, xmm0
movsd qword [edi + 0x28], xmm0
movsd qword [edi + 0x20], xmm0
mov byte [edi + 0x39], bl
mov dword [edi + 0x3c], 0x20
mov eax, edi
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x5ac180
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp byte [ecx + 0x66], 0
je 0x5ac18b
jmp fcn.005ab5a0
jmp fcn.005aa990
Function at 0x5b44f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp byte [ecx + 0x66], 0
je 0x5b44fb
jmp fcn.005b3f40
cmp byte [ecx + 0x69], 0
jne 0x5b4506
jmp fcn.005b3360
jmp fcn.005b3520
Function at 0x5be0b0
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x5f799b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x615cbc]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
cmp dword [0x618cec], 0
jne 0x5be103
push 1
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 4], eax
mov dword [esp + 0x10], 0
test eax, eax
je 0x5be0fb
mov ecx, eax
call fcn.005c0f00
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x5be13f
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push ecx
push str._Of
push eax
mov eax, dword [esp + 0x24]
push str.__Index
push edx
push str.__Line
push eax
push str.Assertion_Failed:_File
push str._s_s_s_d_s_d_s_d_n
call fcn.005c0f30
add esp, 0x24
jmp 0x5be160
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push str.__Line
push edx
push str.Assertion_Failed:_File
push 0x5ff6a8
call fcn.005c0f30
add esp, 0x14
call fcn.005c0fd0
cmp eax, dword [0x5ff800]
jne 0x5be175
push 0xa
call dword [sym.imp.MSVCR90.dll_exit]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret

Function at 0x5c16f0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebp
push esi
push 0x5ff8b4
push eax
mov ebp, 1
call dword [sym.imp.MSVCR90.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x5c177c
push ebx
mov ebx, dword [sym.imp.MSVCR90.dll_fseek]
push 2
push 0
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x5c1771
push edi
push esi
call dword [sym.imp.MSVCR90.dll_ftell]
push 0
push 0x50
push esi
mov edi, eax
call ebx
add esp, 0x10
test eax, eax
jne 0x5c1770
lea ecx, [edi - 0x54]
mov eax, 0x51eb851f
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x18]
jne 0x5c1770
push esi
push ebp
lea ecx, [esp + 0x18]
push 4
push ecx
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
cmp eax, ebp
jne 0x5c1770
xor ebp, ebp
pop edi
push esi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
Function at 0x5cb1d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x615cbc]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.005d0250
test eax, eax
je 0x5cb203
call fcn.005d01b0
push eax
lea eax, [ebp - 0x210]
push eax
call sub.MSVCR90.dll_strcpy
add esp, 8
jmp 0x5cb24c
push 0x600794
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x5cb236
push 0x60079c
lea ecx, [ebp - 0x210]
push ecx
call sub.MSVCR90.dll_strcpy
add esp, 8
jmp 0x5cb24c
mov edx, dword [ebp - 0x214]
push edx
lea eax, [ebp - 0x210]
push eax
call sub.MSVCR90.dll_strcpy
add esp, 8
push 0x6007a0
push 0x6007a8
push 0x5c
lea ecx, [ebp - 0x210]
push ecx
push 0x6007b0
push 0x61bd80
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x18
mov byte [0x61bf80], 0
push 0x6007bc
push 0x61bd80
call dword [sym.imp.MSVCR90.dll_strcspn]
add esp, 8
mov byte [eax + 0x61bd80], 0
push 0x201
push 0x61bd80
call fcn.005cb060
add esp, 8
push 0x6007c0
push str.zone
push 0x5c
lea edx, [ebp - 0x210]
push edx
push str._s_c_s_s
push 0x61bf88
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x18
mov byte [0x61c188], 0
push 0x6007dc
push 0x61bf88
call dword [sym.imp.MSVCR90.dll_strcspn]
add esp, 8
mov byte [eax + 0x61bf88], 0
push 0x201
push 0x61bf88
call fcn.005cb060
add esp, 8
cmp dword [0x61c194], 0
jne 0x5cb31e
push 0x5cb180
call fcn.00424449
add esp, 4
mov dword [0x61c194], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00423eca
mov esp, ebp
pop ebp
ret

Function at 0x5cfc40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x615cbc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x62162c], 0
je 0x5cfca6
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push str._s___d__:__d_n
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x14
mov ecx, dword [0x621628]
push ecx
lea edx, [ebp - 0x408]
push edx
call sub.MSVCR90.dll_strlen
add esp, 4
push eax
push 1
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00423eca
mov esp, ebp
pop ebp
ret

Function at 0x5d01b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0x6009f0
cmp dword [0x61d164], 0
je 0x5d01cf
mov eax, 0x61d168
jmp 0x5d01f0
push 0x6009f4
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5d01ed
mov eax, dword [ebp - 8]
jmp 0x5d01f0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x5d0260
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x61d164], 0
je 0x5d0281
push 0x61d168
push 0x6213f0
call sub.MSVCR90.dll_strcpy
add esp, 8
jmp 0x5d02bd
push str.WNCZONE
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x5d02ac
push 0x600a10
push 0x6213f0
call sub.MSVCR90.dll_strcpy
add esp, 8
jmp 0x5d02bd
mov eax, dword [ebp - 4]
push eax
push 0x6213f0
call sub.MSVCR90.dll_strcpy
add esp, 8
push 0x600a14
mov ecx, dword [ebp + 8]
push ecx
call fcn.005ea930
add esp, 8
push eax
push 0x5c
push 0x6213f0
push 0x600a1c
push 0x6211e8
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x14
push 0x201
push 0x6211e8
call fcn.00409dc0
add esp, 8
cmp dword [0x6215fc], 0
jne 0x5d031b
push 0x5d0150
call fcn.00424449
add esp, 4
mov dword [0x6215fc], 1
mov esp, ebp
pop ebp
ret
Function at 0x5df840
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0x191
mov eax, dword [ebp - 4]
sub eax, 1
cmp eax, 0x190
je 0x5df87f
push 0x190
mov ecx, dword [ebp - 4]
sub ecx, 1
push ecx
push str._RCSfile:_outilparutils.cxx_v__
push str.file__s_:_internal_error__size_mismatch:_._noutilpar.inc_size_d__dtbmax.inc_size_d_nAborting._n
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 0x10
push 0xffffffffffffffff
call dword [sym.imp.MSVCR90.dll_exit]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x5e17e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
pop ebp
ret
Function at 0x5e31a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
pop ebp
ret
Function at 0x5e4c50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
call fcn.005e47b0
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x5e4c75
mov eax, 0xfffffff5
jmp 0x5e4da9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x320]
and edx, 1
jne 0x5e4c8d
mov eax, 0xfffffff4
jmp 0x5e4da9
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x320]
shr ecx, 2
and ecx, 1
je 0x5e4cbb
mov edx, dword [ebp - 4]
push edx
call fcn.005e1810
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5e4cbb
mov eax, dword [ebp - 8]
jmp 0x5e4da9
mov eax, dword [ebp - 4]
movsx ecx, byte [eax + 4]
cmp ecx, 1
je 0x5e4d2a
push 0
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.MSVCR90.dll_fseek]
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call fcn.005e49d0
add esp, 4
mov edx, dword [ebp - 4]
movsx eax, byte [edx + 0x2ab]
test eax, eax
je 0x5e4d2a
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx + 0x2aa]
test edx, edx
jne 0x5e4d2a
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
push 1
mov edx, dword [ebp - 4]
movsx eax, word [edx + 0x316]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x2d0
push ecx
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x2c4], 0
je 0x5e4d66
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x2c4]
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x2c4], 0
mov edx, dword [ebp - 4]
cmp dword [edx + 0x2cc], 0
je 0x5e4d92
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2cc]
push ecx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x2cc], 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x320]
and ecx, 0xfffffffe
mov edx, dword [ebp - 4]
mov dword [edx + 0x320], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x5e5b00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x320]
and ecx, 0xfffffffd
mov edx, dword [ebp + 8]
mov dword [edx + 0x320], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [str.WKNC_Id:_fbseek.cpp_7003_2011_05_16_16:32:53Z_jsturton___WORKNC]
mov dword [eax + 0x210], ecx
mov edx, dword [ebp + 8]
mov dword [edx + 0x214], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [eax + 0x21c], 0xa0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x218], 0xa0
mov edx, dword [ebp + 8]
mov dword [edx + 0x220], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x224], 0
call fcn.005e4640
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x228
push ecx
call sub.MSVCR90.dll_strcpy
add esp, 8
mov edx, dword [ebp + 8]
mov byte [edx + 0x2a8], 1
mov eax, dword [ebp + 8]
mov byte [eax + 0x2a9], 1
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x2aa], 1
mov edx, dword [ebp + 8]
mov byte [edx + 0x2ac], 0
call fcn.005e45d0
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x2ab], al
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
push 0xa0
push 1
mov ecx, dword [ebp + 8]
add ecx, 0x210
push ecx
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
cmp eax, 0xa0
je 0x5e5beb
mov eax, 0xffffffe6
jmp 0x5e5bed
xor eax, eax
pop ebp
ret

Function at 0x5e9bb0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x615cbc]
xor eax, ebp
mov dword [ebp - 8], eax
mov byte [ebp - 9], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov ecx, dword [ebp + 0x10]
push ecx
push 0x1ff
lea edx, [ebp - 0x208]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00409e90
push 0x2c
lea edx, [ebp - 0x208]
push edx
call fcn.0040c2e0
add esp, 8
test eax, eax
je 0x5e9c51
mov eax, dword [ebp + 0x10]
push eax
push 0x1ff
lea ecx, [ebp - 0x208]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.005e79e0
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
je 0x5e9c51
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0xffffffd5
jne 0x5e9c4f
push 0x2c
lea eax, [ebp - 0x208]
push eax
call fcn.0040c2e0
add esp, 8
test eax, eax
jne 0x5e9c4f
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
jmp 0x5e9c51
jmp 0x5e9cb2
lea edx, [ebp - 9]
mov dword [ebp - 4], edx
jmp 0x5e9c62
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x208]
cmp ecx, edx
jb 0x5e9c86
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0x20
jg 0x5e9c86
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
test eax, eax
jl 0x5e9c86
jmp 0x5e9c59
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov byte [edx], 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.MSVCR90.dll_remove]
add esp, 4
test eax, eax
je 0x5e9cb2
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0xffffffeb
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00423eca
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5e9d10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x615cbc]
xor eax, ebp
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.005e9e40
add esp, 8
cmp eax, 0xffffffff
je 0x5e9e0f
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCR90.dll_int___cdecl__open_char_const___int__int_]
add esp, 0xc
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
je 0x5e9dee
push 0x101
lea eax, [ebp - 0x150]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.MSVCR90.dll__read]
add esp, 0xc
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jle 0x5e9dc4
lea edx, [ebp - 0x150]
push edx
call dword [sym.imp.MSVCR90.dll_atol]
add esp, 4
cmp dword [ebp + 0xc], eax
jne 0x5e9da0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
jmp 0x5e9dc2
cmp dword [0x622678], 0
je 0x5e9dc2
lea ecx, [ebp - 0x150]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push str._nverif_error_:_startpid___lu___lockpid___s_n_n
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 0xc
jmp 0x5e9ddf
cmp dword [0x622678], 0
je 0x5e9ddf
mov eax, dword [ebp - 0x40]
push eax
push str._nread_error_:_nblu___d_n_n
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.MSVCR90.dll__close]
add esp, 4
jmp 0x5e9e0d
cmp dword [0x622678], 0
je 0x5e9e0d
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x3c]
push eax
push str._nopen_error_:_handle___d___nomfic___s_n_n
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 0xc
jmp 0x5e9e2a
cmp dword [0x622678], 0
je 0x5e9e2a
mov ecx, dword [ebp + 8]
push ecx
push str._nstat_error_:_nomfic___s_n_n
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x44]
xor ecx, ebp
call fcn.00423eca
mov esp, ebp
pop ebp
ret