joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430ca8
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push edi
xor ebx, ebx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [0x44fc58], 0xffffffff
mov dword [ebp + 8], eax
jne 0x430ce4
push ebx
push edi
push 0x450b74
call fcn.0042fda0
mov ebx, eax
test ebx, ebx
js 0x430d3c
xor ebx, ebx
jmp 0x430d3c
test eax, eax
je 0x430d3c
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
sub eax, esi
push eax
lea eax, [esi + edi]
push eax
push dword [0x44fc58]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x430d22
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x430d1c
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
js 0x430d2c
add esi, dword [ebp - 4]
cmp esi, dword [ebp + 8]
jb 0x430ce8
jmp 0x430d3c
push ebx
push 0x30d
push 0x44c94a
call fcn.004315ca
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x434af8
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x44f9f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
mov dword [ebp - 0x10], ebx
call fcn.00434a78
cmp dword [ebp - 0x14], ebx
je 0x434b36
mov dword [esi], 1
jmp 0x434b6a
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [esi], eax
cmp eax, ebx
je 0x434b6a
push esi
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x434b6a
mov dword [esi], ebx
cmp dword [ebp - 0x10], ebx
pop esi
pop ebx
je 0x434b79
push dword [ebp - 0x10]
call fcn.00436518
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.004084b8
leave
ret 4

Function at 0x434c3a
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
and dword [ebp - 4], edi
xor esi, esi
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x434c82
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x434c7c
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
js 0x434c8c
add esi, dword [ebp - 4]
cmp esi, dword [ebp + 0x10]
jb 0x434c49
jmp 0x434c9c
push edi
push 0x34e
push 0x44cdd2
call fcn.004315ca
mov eax, edi
pop edi
pop esi
leave
ret 0xc
Function at 0x434ca4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
lea ebp, [esp - 0xf98]
mov eax, 0x1018
call fcn.0040b8e0
mov eax, dword [0x44f9f8]
xor eax, ebp
mov dword [ebp + 0xf94], eax
mov eax, dword [ebp + 0xfa0]
push ebx
mov ebx, dword [ebp + 0xfb0]
push esi
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0xfa4]
xor esi, esi
push edi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x70], esi
xor edi, edi
mov ecx, dword [ebp + 0xfa8]
xor edx, edx
cmp ecx, edx
jne 0x434d04
cmp dword [ebp + 0xfac], edx
jne 0x434d04
mov dword [ebp - 0x74], 0x1000
jmp 0x434d2c
mov eax, dword [ebp + 0xfac]
sub ecx, edi
sbb eax, esi
cmp eax, edx
jb 0x434d26
ja 0x434d1c
cmp ecx, 0x1000
jbe 0x434d26
mov ecx, 0x1000
mov dword [ebp - 0x74], edx
jmp 0x434d29
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x74], ecx
push edx
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x434da9
cmp dword [ebp - 0x74], 0
je 0x434d61
push dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x80]
call fcn.00434c3a
mov dword [ebp - 0x70], eax
test eax, eax
js 0x434d8c
add edi, dword [ebp - 0x74]
adc esi, 0
cmp esi, dword [ebp + 0xfac]
ja 0x434d83
jb 0x434d79
cmp edi, dword [ebp + 0xfa8]
jae 0x434d83
cmp dword [ebp - 0x74], 0
jne 0x434ce7
test ebx, ebx
je 0x434d8c
mov dword [ebx], edi
mov dword [ebx + 4], esi
mov ecx, dword [ebp + 0xf94]
mov eax, dword [ebp - 0x70]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004084b8
add ebp, 0xf98
leave
ret 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x434dbd
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x70], eax
test eax, eax
jl 0x434dcb
mov dword [ebp - 0x70], 0x80004005
push dword [ebp - 0x70]
push 0x36e
push 0x44cdd2
call fcn.004315ca
jmp 0x434d8c
Function at 0x4357c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push esi
push dword [esp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4357e5
test al, 0x10
je 0x4357e5
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4357e2
mov dword [ecx], eax
xor esi, esi
inc esi
mov eax, esi
pop esi
ret 8

Function at 0x4357ec
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push ebp
push ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4358b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4358b3
cmp eax, 3
je 0x435830
push esi
push ebx
call fcn.004357c0
test eax, eax
jne 0x4358b3
movzx eax, word [ebx]
push edi
xor edi, edi
mov ecx, ebx
test ax, ax
je 0x435854
cmp ax, 0x5c
jne 0x435845
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x43583d
test edi, edi
jne 0x435868
mov esi, 0x80070003
push esi
push 0x7a
push 0x44ce04
call fcn.004315ca
jmp 0x4358b2
push ebp
xor eax, eax
push ebx
mov word [edi], ax
call fcn.004357ec
mov esi, eax
push 0x5c
pop eax
mov word [edi], ax
test esi, esi
js 0x4358b2
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4358b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x43589e
xor esi, esi
inc esi
jmp 0x4358b2
test eax, eax
jle 0x4358ac
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x4358b2
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x436c32
Capabilities:
Get http content length

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x20000005
push dword [ebp + 8]
mov dword [ebp - 4], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x436c86
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x436c71
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jns 0x436c86
push esi
push 0x20
push 0x44cfc6
call fcn.004315ca
jmp 0x436c92
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
and dword [eax + 4], 0
mov dword [eax], ecx
mov eax, esi
pop esi
leave
ret 8
Function at 0x2563700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0256378f
jae 0x256370e
xor ecx, ecx
call fcn.0256378f
jae 0x256373d
xor eax, eax
call fcn.0256378f
jae 0x256374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0256378f
adc al, al
jae 0x256372f
jne 0x2563779
stosb byte es:[edi], al
jmp 0x2563711
call fcn.0256379b
sub ecx, ebx
jne 0x2563756
call fcn.02563799
jmp 0x2563775
lodsb al, byte [esi]
shr eax, 1
je 0x2563783
adc ecx, ecx
jmp 0x2563772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.02563799
cmp eax, 0x7d00
jae 0x2563772
cmp ah, 5
jae 0x2563773
cmp eax, 0x7f
ja 0x2563774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2563711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x401000
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test esi, esi
jne 0x40101d
pop esi
mov esp, ebp
pop ebp
ret
push edi
push esi
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x401061
mov ecx, dword [ebp - 4]
push edi
push esi
push ecx
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x401057
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 8]
push eax
push 0x427224
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
jne 0x401069
push edi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x40107d
mov eax, dword [ebp + 8]
test eax, eax
je 0x40107d
movzx ecx, word [ecx + 0xa]
mov dword [eax], ecx
push edi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4010a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
lea ecx, [ebp - 0x11c]
push ecx
push ebx
mov dword [ebp - 0x110], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test esi, esi
jne 0x4010e0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425fc4
mov esp, ebp
pop ebp
ret
push edi
push esi
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x40112f
mov edx, dword [ebp - 0x11c]
push edi
push esi
push edx
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x401125
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueA]
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x118]
push ecx
push str.VarFileInfoTranslation
push edi
call esi
test eax, eax
jne 0x401141
push edi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425fc4
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x118]
movzx edx, word [eax + 2]
movzx eax, word [eax]
push 0x427920
push edx
push eax
lea ecx, [ebp - 0x108]
push str.StringFileInfo_04X_04X_s
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x14
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x108]
push ecx
push edi
call esi
cmp dword [ebp - 0x114], 0x50
ja 0x4011a4
mov edx, dword [ebp - 0x10c]
mov eax, dword [ebp - 0x110]
push 0x50
push edx
push eax
call dword [sym.imp.MSVCR100.dll__mbsnbcpy]
add esp, 0xc
push edi
call dword [sym.imp.MSVCR100.dll_free]
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00425fc4
mov esp, ebp
pop ebp
ret
Function at 0x4015d0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [sym.imp.MSVCR100.dll__time64]
push 0
call edi
add esp, 4
sub eax, dword [esi]
sbb edx, dword [esi + 4]
test edx, edx
jg 0x4015f9
jl 0x4015f2
cmp eax, 0xa
jae 0x4015f9
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x22]
movsx edx, word [esi + 0xc]
lea eax, [ebp - 4]
push eax
movzx eax, word [esi + 0x14]
push ecx
mov ecx, dword [esi + 8]
push edx
push eax
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
test eax, eax
je 0x40166c
mov eax, dword [esi + 0x22]
movsx ecx, word [esi + 0xc]
lea edx, [ebp - 4]
push edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0x20
push edx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
test eax, eax
je 0x40166c
mov eax, dword [esi + 0x22]
mov ecx, dword [esi + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test ebx, ebx
je 0x401660
push ebx
push 0x42792c
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
mov edi, edi
push 0
call edi
add esp, 4
mov dword [esi], eax
mov dword [esi + 4], edx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x403950
Capabilities:
Terminate process

Disassembly:
push esi
xor esi, esi
mov eax, 0x430fb4
push edi
lea esp, [esp]
cmp dword [eax - 0xc], 0
mov edi, 1
je 0x4039a2
cmp dword [eax], 0
je 0x403991
cmp dword [eax + 0xc], 0
je 0x403995
cmp dword [eax + 0x18], 0
je 0x40399a
cmp dword [eax + 0x24], 0
je 0x40399f
add eax, 0x3c
add esi, 5
cmp eax, 0x43120c
jl 0x403960
jmp 0x4039a7
add esi, edi
jmp 0x4039a2
add esi, 2
jmp 0x4039a2
add esi, 3
jmp 0x4039a2
add esi, 4
cmp esi, 0x32
jl 0x403a14
mov esi, dword [sym.imp.MSVCR100.dll_printf]
push str.Cannot_open_any_more_scratch_files__n
call esi
push 0x427955
push 0x428e48
call esi
add esp, 0xc
call fcn.00404240
add dword [0x42fba4], edi
je 0x403a0c
mov edi, dword [sym.imp.MSVCR100.dll_clock]
call edi
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov esi, edx
shr esi, 0x1f
add esi, edx
jmp 0x4039f0
call edi
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, esi
cmp eax, 3
jbe 0x4039f0
push 0x64
call dword [sym.imp.MSVCR100.dll_exit]
push 0
push 0
call dword [sym.imp.MSVCR100.dll__tempnam]
lea esi, [esi + esi*2]
add esi, esi
add esi, esi
add esp, 8
mov dword [esi + 0x430fa4], eax
test eax, eax
jne 0x403a65
push str.tmpfile
call dword [sym.imp.MSVCR100.dll_perror]
push str._Unable_to_open_temp_file_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
call fcn.00404240
add dword [0x42fba4], edi
je 0x403a5d
call fcn.00403eb0
push 6
call dword [sym.imp.MSVCR100.dll_exit]
push 0x427960
push eax
mov dword [esi + 0x430fa8], edi
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
test eax, eax
jne 0x403ab1
push str.tmpfile
call dword [sym.imp.MSVCR100.dll_perror]
push str._Unable_to_open_temp_file_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
call fcn.00404240
add dword [0x42fba4], edi
je 0x403aa9
call fcn.00403eb0
push 6
call dword [sym.imp.MSVCR100.dll_exit]
pop edi
mov dword [esi + 0x430fa0], eax
pop esi
ret

Function at 0x403ac0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
mov edi, dword [sym.imp.MSVCR100.dll_remove]
add esp, 4
mov esi, 0x430fa4
xor ebx, ebx
mov ecx, dword [ebp + 8]
cmp dword [esi - 4], ecx
jne 0x403b08
mov edx, dword [esi]
push edx
mov dword [esi - 4], ebx
call edi
mov eax, dword [esi]
add esp, 4
cmp eax, ebx
je 0x403b03
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov dword [esi + 4], ebx
mov dword [esi], ebx
add esi, 0xc
cmp esi, 0x4311fc
jl 0x403ae0
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x403b20
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, eax
push edi
push esi
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
test eax, eax
jne 0x403b96
push 0x427955
call dword [sym.imp.MSVCR100.dll_perror]
push esi
mov esi, dword [sym.imp.MSVCR100.dll_printf]
push str.Unable_to_open__s_for
call esi
mov al, byte [edi]
add esp, 0xc
cmp al, 0x72
jne 0x403b5b
push str.reading_n
jmp 0x403b68
cmp al, 0x77
je 0x403b63
cmp al, 0x61
jne 0x403b6d
push str.writing_n
call esi
add esp, 4
push 0x427955
push 0x428e48
call esi
add esp, 8
call fcn.00404240
inc dword [0x42fba4]
je 0x403b8e
call fcn.00403eb0
push 0x64
call dword [sym.imp.MSVCR100.dll_exit]
pop esi
ret

Function at 0x403ba0
Capabilities:
Read file on windows

Disassembly:
test eax, eax
je 0x403bba
push ecx
push 1
push eax
push edx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x403bba
xor eax, eax
ret
mov eax, 1
ret

Function at 0x403ef0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_printf]
push esi
mov esi, dword [sym.imp.MSVCR100.dll_tolower]
push edi
xor edi, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0xfffffffe
mov dword [ebp - 0x14], edi
mov ecx, dword [ebp - 0x18]
push ecx
push 0x4279e4
call ebx
call dword [sym.imp.MSVCR100.dll___iob_func]
push eax
lea edx, [ebp - 0xc]
push 5
push edx
call dword [sym.imp.MSVCR100.dll_fgets]
movsx eax, byte [ebp - 0xc]
push eax
call esi
add esp, 0x18
cmp eax, 0x6e
jne 0x403f56
mov dword [ebp - 0x10], 0
inc edi
movsx ecx, byte [ebp - 0xc]
push ecx
call esi
add esp, 4
cmp eax, 0x79
jne 0x403f6d
mov dword [ebp - 0x10], 1
inc edi
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, 9
jg 0x403f91
test edi, edi
je 0x403f21
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00425fc4
mov esp, ebp
pop ebp
ret
push str.Unable_to_get_a_proper_response__n
push 0x428e48
call ebx
add esp, 8
call fcn.00404240
inc dword [0x42fba4]
je 0x403fb2
call fcn.00403eb0
push 0x64
call dword [sym.imp.MSVCR100.dll_exit]
int3
Function at 0x403fc0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_fgets]
xor eax, eax
push esi
mov esi, dword [sym.imp.MSVCR100.dll_printf]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
push edi
push 0x4279e4
call esi
call dword [sym.imp.MSVCR100.dll___iob_func]
push eax
lea eax, [ebp - 0xc]
push 5
push eax
call ebx
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.MSVCR100.dll_atol]
add esp, 0x18
cmp eax, dword [ebp + 8]
jl 0x404017
cmp eax, dword [ebp + 0xc]
jg 0x404017
inc dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, 9
jg 0x404039
cmp dword [ebp - 0x10], 0
je 0x403fe6
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00425fc4
mov esp, ebp
pop ebp
ret
push str.Unable_to_get_a_proper_response__n
push 0x428e48
call esi
add esp, 8
call fcn.00404240
inc dword [0x42fba4]
je 0x40405a
call fcn.00403eb0
push 0x64
call dword [sym.imp.MSVCR100.dll_exit]
int3

Function at 0x404070
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll___iob_func]
push esi
mov esi, dword [sym.imp.MSVCR100.dll_printf]
xor eax, eax
push edi
mov edi, dword [sym.imp.MSVCR100.dll_fgets]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
jmp 0x4040a2
fstp st(0)
push 0x427a0c
push 0x4279e4
call esi
call ebx
push eax
lea eax, [ebp - 0x20]
push 0x19
push eax
call edi
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.MSVCR100.dll_atof]
fld qword [0x42e238]
fcomp st(1)
add esp, 0x18
fnstsw ax
test ah, 0x41
jp 0x4040e7
fld qword [0x42e230]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x4040e7
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp eax, 9
jg 0x40410a
cmp dword [ebp - 0x24], 0
je 0x4040a0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00425fc4
mov esp, ebp
pop ebp
ret
push str.Unable_to_get_a_proper_response__n
fstp st(0)
push 0x428e48
call esi
add esp, 8
call fcn.00404240
inc dword [0x42fba4]
je 0x40412d
call fcn.00403eb0
push 0x64
call dword [sym.imp.MSVCR100.dll_exit]
int3

Function at 0x404140
Capabilities:
Terminate process

Disassembly:
push esi
test edi, edi
jne 0x404149
xor eax, eax
pop esi
ret
push edi
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x404181
push str._Out_of_memory._Please_run_a_smaller_problem_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404240
inc dword [0x42fba4]
je 0x404179
call fcn.00403eb0
push 3
call dword [sym.imp.MSVCR100.dll_exit]
push edi
push 0
push esi
call sub.MSVCR100.dll_memset
add esp, 0xc
mov eax, esi
pop esi
ret

Function at 0x4041a0
Capabilities:
Terminate process

Disassembly:
push str._Out_of_memory._Please_run_a_smaller_problem_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404240
inc dword [0x42fba4]
je 0x4041c0
call fcn.00403eb0
push 3
call dword [sym.imp.MSVCR100.dll_exit]
int3
Function at 0x404240
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_fclose]
push esi
push edi
mov esi, 0x430fa4
xor edi, edi
cmp dword [esi + 4], edi
je 0x404297
mov eax, dword [esi - 4]
push eax
call ebx
mov eax, dword [esi]
add esp, 4
mov dword [esi + 4], edi
mov dword [esi - 4], edi
cmp eax, edi
je 0x404297
push edi
push eax
call dword [sym.imp.MSVCR100.dll__access]
add esp, 8
test eax, eax
jne 0x404297
mov ecx, dword [esi]
push ecx
call dword [sym.imp.MSVCR100.dll_remove]
mov eax, dword [esi]
add esp, 4
cmp eax, edi
je 0x404295
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov dword [esi], edi
add esi, 0xc
cmp esi, 0x4311fc
jl 0x404250
pop edi
pop esi
pop ebx
ret

Function at 0x404610
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x48
lea eax, [ebp - 0x58]
push 0x24
push eax
mov esi, ecx
call sub.MSVCR100.dll_memset
mov ecx, dword [0x42fb48]
lea ebx, [esi*8]
sub ebx, esi
add ebx, ebx
push 0
add ebx, ebx
push 0
add ebx, ebx
mov esi, dword [ebx + ecx]
push 0
push esi
mov byte [ebp - 0x10], 0
mov dword [ebp - 0x6c], 1
mov dword [ebp - 0x64], 0
call dword [sym.imp.MSVCR100.dll__fseeki64]
mov edi, dword [sym.imp.MSVCR100.dll_fread]
push esi
push 1
lea edx, [ebp - 0x59]
push 1
push edx
call edi
push esi
push 1
lea eax, [ebp - 0x59]
push 1
push eax
call edi
push esi
push 1
lea ecx, [ebp - 0x64]
push 2
push ecx
call edi
add esp, 0x4c
push esi
push 1
lea edx, [ebp - 0x68]
push 2
push edx
call edi
push esi
push 1
lea eax, [ebp - 0x60]
push 2
push eax
call edi
push esi
push 1
lea ecx, [ebp - 0x59]
push 1
push ecx
call edi
add esp, 0x30
cmp word [ebp - 0x60], 0
jg 0x40471d
push 0x48
lea edx, [ebp - 0x58]
push edx
push 0x430261
mov byte [0x430261], 0
call dword [sym.imp.MSVCR100.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x404704
lea ecx, [ecx]
push esi
push 1
push 0x4a
push 0x430260
call edi
push 0x48
lea eax, [ebp - 0x58]
push eax
push 0x430261
call dword [sym.imp.MSVCR100.dll_strncmp]
add esp, 0x1c
test eax, eax
jne 0x4046e0
push esi
push 1
lea ecx, [ebp - 0x59]
push 1
push ecx
call edi
push esi
push 1
lea edx, [ebp - 0x64]
push 2
push edx
call edi
add esp, 0x20
mov ecx, dword [ebp - 0x64]
test cx, cx
je 0x404729
xor eax, eax
jmp 0x40472c
mov eax, dword [ebp - 0x6c]
mov edx, dword [0x42fb48]
movsx ecx, cx
mov dword [ebx + edx + 4], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00425fc4
mov esp, ebp
pop ebp
ret