joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b320
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x7e7ae0]
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
push eax
push 1
push 1
lea ecx, [ebp - 5]
push ecx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x42b375
mov edx, dword [ebp + 0x14]
mov dword [edx], 0xffffffe7
mov byte [ebp - 5], 0
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
mov byte [eax], 0
jmp 0x42b389
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
mov dl, byte [ebp - 5]
mov byte [ecx], dl
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 1
cmp dword [ebp - 4], ecx
jge 0x42b3a5
movsx edx, byte [ebp - 5]
cmp edx, 0xa
je 0x42b3a5
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
je 0x42b343
mov ecx, dword [ebp + 0x10]
sub ecx, 1
cmp dword [ebp - 4], ecx
jne 0x42b420
movsx edx, byte [ebp - 5]
cmp edx, 0xa
je 0x42b420
mov eax, dword [ebp + 0x14]
mov dword [eax], 0xffffffd6
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
movsx edx, byte [ecx - 1]
cmp edx, 0xa
je 0x42b3dc
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
mov byte [eax], 0xa
jmp 0x42b3e5
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0xd
je 0x42b401
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0xa
jne 0x42b41b
cmp dword [ebp - 4], 0
jl 0x42b41b
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
mov byte [eax], 0
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
jmp 0x42b3e5
jmp 0x42b4b7
mov edx, dword [ebp + 0x14]
cmp dword [edx], 0xffffffe7
je 0x42b431
movsx eax, byte [ebp - 5]
cmp eax, 0xa
jne 0x42b442
cmp dword [ebp - 4], 0
jne 0x42b442
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0xffffffe9
jmp 0x42b4b7
mov edx, dword [ebp - 4]
sub edx, 1
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0xd
je 0x42b46e
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0xa
jne 0x42b4b7
cmp dword [ebp - 4], 0
jl 0x42b4b7
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0xa
jne 0x42b4a3
cmp dword [ebp - 0x10], 0
jne 0x42b4a1
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
mov byte [eax], 0
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
jmp 0x42b4b5
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 4]
mov byte [edx], 0
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
jmp 0x42b452
mov esp, ebp
pop ebp
ret
Function at 0x42bf40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
call fcn.0042ba30
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x42bf65
mov eax, 0xfffffff5
jmp 0x42c099
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x320]
and edx, 1
jne 0x42bf7d
mov eax, 0xfffffff4
jmp 0x42c099
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x320]
shr ecx, 2
and ecx, 1
je 0x42bfab
mov edx, dword [ebp - 4]
push edx
call fcn.0042dcf0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x42bfab
mov eax, dword [ebp - 8]
jmp 0x42c099
mov eax, dword [ebp - 4]
movsx ecx, byte [eax + 4]
cmp ecx, 1
je 0x42c01a
push 0
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.MSVCR100.dll_fseek]
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call fcn.0042bcc0
add esp, 4
mov edx, dword [ebp - 4]
movsx eax, byte [edx + 0x2ab]
test eax, eax
je 0x42c01a
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx + 0x2aa]
test edx, edx
jne 0x42c01a
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.MSVCR100.dll_fwrite]
add esp, 0x10
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x2c4], 0
je 0x42c056
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x2c4]
push eax
call dword [sym.imp.MSVCR100.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 0x42c082
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2cc]
push ecx
call dword [sym.imp.MSVCR100.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 0x42ce10
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:_fbread.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.0042b840
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x228
push ecx
call sub.MSVCR100.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.0042b790
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.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 0xa0
je 0x42cefb
mov eax, 0xffffffe6
jmp 0x42cefd
xor eax, eax
pop ebp
ret

Function at 0x42cf00
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.MSVCR100.dll_fread]
add esp, 0x10
pop ebp
ret
Function at 0x42dcc0
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.MSVCR100.dll_fwrite]
add esp, 0x10
pop ebp
ret
Function at 0x42f530
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x43d980]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042f660
add esp, 8
cmp eax, 0xffffffff
je 0x42f62f
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCR100.dll_int___cdecl__open_char_const___int__int_]
add esp, 0xc
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
je 0x42f60e
push 0x101
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.MSVCR100.dll__read]
add esp, 0xc
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jle 0x42f5e4
lea edx, [ebp - 0x148]
push edx
call dword [sym.imp.MSVCR100.dll_atol]
add esp, 4
cmp dword [ebp + 0xc], eax
jne 0x42f5c0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
jmp 0x42f5e2
cmp dword [0x7e7c78], 0
je 0x42f5e2
lea ecx, [ebp - 0x148]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push str._nverif_error_:_startpid___lu___lockpid___s_n_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 0xc
jmp 0x42f5ff
cmp dword [0x7e7c78], 0
je 0x42f5ff
mov eax, dword [ebp - 0x40]
push eax
push str._nread_error_:_nblu___d_n_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.MSVCR100.dll__close]
add esp, 4
jmp 0x42f62d
cmp dword [0x7e7c78], 0
je 0x42f62d
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.MSVCR100.dll_printf]
add esp, 0xc
jmp 0x42f64a
cmp dword [0x7e7c78], 0
je 0x42f64a
mov ecx, dword [ebp + 8]
push ecx
push str._nstat_error_:_nomfic___s_n_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041ab5b
mov esp, ebp
pop ebp
ret
Function at 0x42f680
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x43d980]
xor eax, ebp
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 4], eax
push 0x180
push 0x502
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll_int___cdecl__open_char_const___int__int_]
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
je 0x42f702
mov ecx, dword [ebp - 4]
push ecx
push 0x43afb0
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
call sub.MSVCR100.dll_strlen
add esp, 4
add eax, 1
push eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.MSVCR100.dll__write]
add esp, 0xc
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.MSVCR100.dll__close]
add esp, 4
jmp 0x42f798
call dword [sym.imp.MSVCR100.dll__errno]
cmp dword [eax], 0x11
jne 0x42f791
push pe_nt_image_headers32
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR100.dll_int___cdecl__open_char_const___int__int_]
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
je 0x42f78f
push 0x14
push 0
lea edx, [ebp - 0x24]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x13
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.MSVCR100.dll__read]
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x42f76c
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.MSVCR100.dll_atol]
add esp, 4
mov dword [ebp - 0xc], eax
jmp 0x42f773
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.MSVCR100.dll__close]
add esp, 4
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0xc]
je 0x42f78f
mov dword [ebp - 0x28], 0xffffffff
jmp 0x42f798
mov dword [ebp - 0x28], 0xfffffffe
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041ab5b
mov esp, ebp
pop ebp
ret
Function at 0x408151
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x408160
pop dword [ebp - 0x50]
mov eax, 0x408160
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x3bc01
push 0
mov eax, 0x42715dc1
sub eax, 0x422f0ba9
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x85f3312a
sub ecx, 0x85f2f150
mov edx, eax
mov edi, 0x435400
add edi, dword [ebp - 0x50]
mov esi, 0xe5ee1132
add esi, 0x810f3332
sub dword [ebp - 8], eax
mov ebx, dword [edi]
xor dword [ebp - 0x2c], 0x90198692
sub ebx, esi
add dword [ebp - 0x24], 0x5139c090
mov dword [edx], ebx
sub dword [ebp - 0x4c], ebx
add edx, 4
add edi, 4
loop 0x4081b4
add eax, 0x3688f05c
add eax, 0xc97801df
xor ebx, ebx
add ebx, eax
add eax, 0xeddf0af
sub eax, 0xeddf0aa
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x401c30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
sub ecx, dword [eax + 4]
mov eax, 0x2aaaaaab
imul ecx
push ebx
mov ebx, dword [sym.imp.MSVCR90.dll_fwrite]
push esi
sar edx, 2
push edi
mov eax, edx
push 1
shr eax, 0x1f
lea ecx, [esp + 0x18]
add eax, edx
push 4
push ecx
mov dword [esp + 0x20], eax
call ebx
xor esi, esi
add esp, 0x10
cmp dword [esp + 0x10], esi
jle 0x401cbf
mov dword [esp + 0xc], esi
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
add eax, dword [esp + 0xc]
push edi
fld qword [eax]
push 2
fstp qword [esp + 0x20]
lea ecx, [esp + 0x20]
fld qword [eax + 8]
mov eax, dword [eax + 0x10]
push 8
fstp qword [esp + 0x2c]
push ecx
mov dword [esp + 0x24], eax
call ebx
push edi
push 1
lea edx, [esp + 0x2c]
push 4
push edx
call ebx
add dword [esp + 0x2c], 0x18
inc esi
add esp, 0x20
cmp esi, dword [esp + 0x10]
jl 0x401c7a
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402860
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 4]
sar eax, 2
test eax, eax
je 0x402971
fld qword [esp + 0x28]
push ebx
mov ebx, dword [sym.imp.MSVCR90.dll_fwrite]
fstp qword [esp + 0x10]
push edi
push 1
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 4
push eax
call ebx
push edi
push 1
lea ecx, [esp + 0x28]
push 8
push ecx
call ebx
mov eax, dword [esi + 4]
add esp, 0x20
mov dword [esp + 0xc], eax
cmp eax, dword [esi + 8]
je 0x402969
push ebp
jmp 0x4028c4
mov eax, dword [esp + 0x10]
mov esi, dword [eax]
fld qword [esp + 0x30]
mov edx, dword [esi + 8]
fstp qword [esp + 0x1c]
sub edx, dword [esi + 4]
fld qword [0x44f300]
push edi
fstp qword [esp + 0x28]
push 1
lea eax, [esp + 0x1c]
sar edx, 2
push 4
push eax
mov dword [esp + 0x24], edx
call ebx
push edi
push 1
lea ecx, [esp + 0x34]
push 8
push ecx
call ebx
push edi
push 1
lea edx, [esp + 0x4c]
push 8
push edx
call ebx
mov eax, dword [esi + 4]
mov ecx, dword [eax]
push ecx
call fcn.00401c30
mov eax, dword [esi + 4]
mov edx, dword [esi + 8]
sub edx, eax
sar edx, 2
add esp, 0x34
xor ebp, ebp
sub edx, 1
je 0x40294e
lea esp, [esp]
mov eax, dword [eax + ebp*4 + 4]
push eax
call fcn.00401c30
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 2
inc ebp
dec ecx
add esp, 4
cmp ebp, ecx
jb 0x402930
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x38]
add eax, 4
mov dword [esp + 0x10], eax
cmp eax, dword [edx + 8]
jne 0x4028c0
mov esi, edx
pop ebp
mov ebx, esi
call fcn.004027a0
pop ebx
pop edi
pop esi
add esp, 0x1c
ret
Function at 0x402c20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
push ebx
push edi
mov edi, dword [sym.imp.MSVCR90.dll_fread]
push esi
push 1
lea eax, [esp + 0x10]
push 4
push eax
call edi
add esp, 0x10
cmp eax, 1
je 0x402c4d
xor al, al
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
cmp dword [esp + 8], ebx
jle 0x402ca9
push esi
push 2
lea ecx, [esp + 0x18]
push 8
push ecx
call edi
add esp, 0x10
cmp eax, 2
jne 0x402c45
push esi
push 1
lea edx, [esp + 0x14]
push 4
push edx
call edi
add esp, 0x10
cmp eax, 1
jne 0x402c45
fld qword [esp + 0x18]
mov eax, dword [esp + 0xc]
fld qword [esp + 0x10]
lea ecx, [esp + 0x20]
fstp qword [esp + 0x20]
push ecx
mov ecx, dword [ebp + 8]
fstp qword [esp + 0x2c]
mov dword [esp + 0x34], eax
call fcn.00402a70
inc ebx
cmp ebx, dword [esp + 8]
jl 0x402c55
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402cc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [edi + 4]
sub esp, 0x28
push ebx
push esi
mov esi, eax
mov eax, dword [edi + 8]
cmp ecx, eax
je 0x402cf9
mov byte [esp + 0xc], 0
mov edx, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x14]
push edx
push ecx
push eax
push eax
call fcn.00401f20
add esp, 0x18
mov dword [edi + 8], eax
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.MSVCR90.dll_fread]
push esi
push 1
push 4
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x402db3
mov ecx, dword [ebp + 0xc]
push esi
push eax
push 8
push ecx
call ebx
add esp, 0x10
cmp eax, 1
jne 0x402db3
push esi
push eax
lea edx, [esp + 0x18]
push 8
push edx
call ebx
add esp, 0x10
cmp eax, 1
jne 0x402db3
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [eax], ebx
jle 0x402d7f
push edi
call fcn.00402c20
add esp, 4
test al, al
je 0x402d87
fld qword [0x44f300]
lea ecx, [esp + 0x18]
push ecx
fst qword [esp + 0x1c]
mov ecx, edi
fstp qword [esp + 0x24]
mov dword [esp + 0x2c], 0x270f
call fcn.00402a70
mov edx, dword [ebp + 8]
inc ebx
cmp ebx, dword [edx]
jl 0x402d48
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
cmp ecx, eax
je 0x402db3
mov byte [esp + 0xc], 0
mov edx, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x14]
push edx
push ecx
push eax
push eax
call fcn.00401f20
add esp, 0x18
mov dword [edi + 8], eax
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402dc0
Capabilities:
Delete file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x44cb98
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x4584e4]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
push esi
call dword [sym.imp.MSVCR90.dll_remove]
mov eax, dword [ebp + 8]
push 0x44f39c
push eax
call dword [sym.imp.MSVCR90.dll_fopen]
mov ebx, eax
push 0x44f398
push esi
mov dword [esp + 0x34], ebx
call fcn.004060a0
add esp, 0x14
xor edi, edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x80], edi
mov esi, dword [sym.imp.MSVCR90.dll_fread]
push ebx
push 1
lea ecx, [esp + 0x24]
push 4
push ecx
call esi
add esp, 0x10
cmp eax, 1
jne 0x402ef9
push ebx
push eax
lea edx, [esp + 0x34]
push 8
push edx
call esi
add esp, 0x10
cmp eax, 1
sete al
test al, al
je 0x402ef9
xor esi, esi
cmp dword [esp + 0x1c], esi
jle 0x402e31
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edi, [esp + 0x3c]
mov eax, ebx
call fcn.00402cc0
add esp, 8
test al, al
je 0x402ed2
mov edi, dword [esp + 0x38]
fld qword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x24]
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
sub esp, 8
add eax, edx
mov ecx, edi
fstp qword [esp]
call fcn.00401b70
mov ebx, dword [esp + 0x28]
inc esi
add esp, 8
cmp esi, dword [esp + 0x1c]
jl 0x402e73
jmp 0x402e31
mov eax, dword [esp + 0x38]
test eax, eax
je 0x402ee3
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.MSVCR90.dll_fclose]
lea edx, [esp + 0x28]
push edx
call fcn.004061b0
add esp, 8
test edi, edi
je 0x402f1a
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4086a0
Capabilities:
Terminate process

Disassembly:
fld qword [0x44f660]
fcomp qword [esp + 8]
fnstsw ax
test ah, 1
je 0x408740
call fcn.004077f0
test al, al
jne 0x4086fa
push esi
mov esi, dword [sym.imp.MSVCR90.dll___iob_func]
push str.API_ComputeOff:_VD_not_known_or_not_up_to_date_
push 0x44f688
mov byte [0x458b63], 1
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fflush]
add esp, 0x10
push 1
call dword [sym.imp.MSVCR90.dll_exit]
pop esi
xor al, al
cmp byte [esp + 0x18], al
je 0x408710
cmp byte [esp + 0x1c], al
je 0x408710
mov byte [esp + 0x1c], al
mov byte [esp + 0x18], al
mov eax, dword [esp + 0x1c]
fld qword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 4]
push eax
push ecx
sub esp, 0x10
fstp qword [esp + 8]
mov byte [0x4561f0], 1
fld qword [esp + 0x20]
fstp qword [esp]
push edx
call fcn.00409550
add esp, 0x1c
ret
Function at 0x409170
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0x44f398
push eax
call dword [sym.imp.MSVCR90.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4091c4
mov esi, dword [sym.imp.MSVCR90.dll___iob_func]
push str.WriteOffsets_____I_O_file_could_not_be_opened__n
push 0x44f688
mov byte [0x458b63], 1
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fflush]
add esp, 0x10
push 1
call dword [sym.imp.MSVCR90.dll_exit]
push 0x408c10
push 0x408c10
push 0x408bb0
push 0x408b70
push 0x408b50
push 0x408ad0
push esi
call fcn.00408c20
push esi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 0x20
pop esi
ret
Function at 0x40cc90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x70
mov eax, dword [0x458ac8]
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x24], eax
test eax, eax
jle 0x40ce55
mov edi, dword [0x458ac4]
xor esi, esi
jmp 0x40ccc0
cmp byte [esi + edi + 0x28], 0
fldz
jne 0x40ce45
mov eax, dword [esi + edi]
mov ebx, dword [esi + edi + 4]
lea ecx, [eax + eax*2]
mov eax, dword [0x458aa0]
shl ecx, 4
cmp byte [ecx + eax + 0x20], 0
lea edx, [ecx + eax]
jne 0x40ce45
lea ecx, [ebx + ebx*2]
shl ecx, 4
cmp byte [ecx + eax + 0x20], 0
jne 0x40ce45
cmp dword [esi + edi + 8], 2
mov eax, dword [esi + edi + 0xc]
mov ecx, dword [esi + edi + 0x14]
jne 0x40ce45
cmp dword [esi + edi + 0x10], 2
jne 0x40ce45
shl eax, 5
add eax, dword [0x458a44]
shl ecx, 5
fld qword [eax]
add ecx, dword [0x458a44]
fst qword [esp + 0x50]
fld qword [eax + 8]
fst qword [esp + 0x58]
fld qword [ecx]
fst qword [esp + 0x40]
fld qword [ecx + 8]
fst qword [esp + 0x48]
fld qword [edx]
fld qword [edx + 8]
fxch st(5)
fsub st(3)
fst qword [esp + 0x28]
fld st(2)
fsubrp st(5)
fxch st(4)
fst qword [esp + 0x30]
fxch st(3)
fsubrp st(1)
fmulp st(2)
fsubrp st(3)
fxch st(2)
fmulp st(1)
faddp st(1)
fcom st(1)
fnstsw ax
test ah, 0x41
je 0x40ce43
fcompp
fnstsw ax
test ah, 5
jp 0x40ce47
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x74]
push eax
push ebx
call fcn.00409aa0
fld qword [esp + 0x4c]
fsub qword [esp + 0x7c]
lea ecx, [esp + 0x3c]
push ecx
fmul qword [esp + 0x40]
fld qword [esp + 0x58]
fsub qword [esp + 0x88]
fmul qword [esp + 0x38]
faddp st(1)
fstp qword [esp + 0x40]
call fcn.0040cc60
add esp, 0x10
cmp eax, 1
jne 0x40ce47
fld qword [esp + 0x40]
fadd qword [esp + 0x50]
fld qword [0x44f368]
fmul st(1), st(0)
fxch st(1)
fstp qword [esp + 0x60]
fld qword [esp + 0x48]
fld st(0)
fld qword [esp + 0x58]
fadd st(1), st(0)
fxch st(1)
fmulp st(3)
fxch st(2)
fstp qword [esp + 0x68]
fld qword [esp + 0x28]
fxch st(2)
fsubrp st(1)
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
call sub.MSVCR90.dll__CIsqrt
fmul qword [0x44f368]
sub esp, 0x18
fstp qword [esp + 0x10]
fld qword [esp + 0x80]
fstp qword [esp + 8]
fld qword [esp + 0x78]
fstp qword [esp]
call fcn.004078f0
push 0
push eax
push ebp
call fcn.00407be0
mov edi, dword [0x458ac4]
add esp, 0x24
jmp 0x40ce47
fstp st(0)
fstp st(0)
inc ebp
add esi, 0x34
cmp ebp, dword [esp + 0x24]
jl 0x40ccc0
call fcn.004077b0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40fbc0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
test eax, eax
je 0x40fc38
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, esi
imul ecx, edi
push ecx
push eax
call dword [sym.imp.MSVCR90.dll_realloc]
add esp, 8
test eax, eax
jne 0x40fc7b
push edi
push esi
mov esi, dword [sym.imp.MSVCR90.dll___iob_func]
push str.ReallocateArray_____Cannot_get__d_elements_of__d_bytes..._n
call esi
mov edi, dword [sym.imp.MSVCR90.dll_fprintf]
add eax, 0x40
push eax
call edi
add esp, 0x10
mov byte [0x458b63], 1
push str.ReallocateArray_____memory_reallocation_failed__n
push 0x44f688
call esi
add eax, 0x40
push eax
call edi
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fflush]
add esp, 0x10
push 1
call dword [sym.imp.MSVCR90.dll_exit]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push esi
push edi
call dword [sym.imp.MSVCR90.dll_calloc]
add esp, 8
test eax, eax
jne 0x40fc7b
push esi
mov esi, dword [sym.imp.MSVCR90.dll___iob_func]
push edi
push str.ReallocateArray_____Cannot_get__d_elements_of__d_bytes..._n
call esi
mov edi, dword [sym.imp.MSVCR90.dll_fprintf]
add eax, 0x40
push eax
call edi
add esp, 0x10
mov byte [0x458b63], 1
push 0x44f8b0
jmp 0x40fc14
pop edi
pop esi
ret