joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42eb40
Capabilities:
Terminate process

Disassembly:
push ebx
sub esp, 0x38
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
cmp eax, 0xe
ja case.0x42eb35.56
jmp dword [eax*4 + 0x551cd4]
cmp byte [ebx + 0x72], 0
jne sym.diagnostic_action_after_output_diagnostic_context__diagnostic_t___clone_.cold_
cmp byte [ebx + 0x7c], 0
jne 0x42ec28
add esp, 0x38
pop ebx
ret
cmp eax, 3
je 0x42ec70
mov dword [esp + 0x2c], 0
cmp byte [ebx + 0x72], 0
jne sym.diagnostic_action_after_output_diagnostic_context__diagnostic_t___clone_.cold_
cmp byte [ebx + 0xc9], 0
mov dword [esp], 2
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
je 0x42ec59
call ebx
mov dword [esp + 4], str.Please_submit_a_full_bug_report__with_preprocessed_source._n
mov dword [esp], eax
call sym.fnotice__iobuf__char_const__..._
cmp dword [esp + 0x2c], 0
jle 0x42ebc0
mov dword [esp], 2
call ebx
mov dword [esp + 4], str.Please_include_the_complete_backtrace_with_any_bug_report._n
mov dword [esp], eax
call sym.fnotice__iobuf__char_const__..._
mov dword [esp], 2
call ebx
mov dword [esp + 8], str._https:__gcc.gnu.org_bugs__
mov dword [esp + 4], str.See__s_for_instructions._n
mov dword [esp], eax
call sym.fnotice__iobuf__char_const__..._
mov dword [esp], 4
call sym._exit
cmp byte [ebx + 0x72], 0
jne sym.diagnostic_action_after_output_diagnostic_context__diagnostic_t___clone_.cold_
mov dword [esp], ebx
call sym.diagnostic_finish_diagnostic_context_
mov dword [esp], 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [esp + 4], str.compilation_terminated._n
mov dword [esp], eax
call sym.fnotice__iobuf__char_const__..._
mov dword [esp], 1
call sym._exit
mov dword [esp], 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [esp + 4], str.compilation_terminated_due_to__Wfatal_errors._n
mov dword [esp], eax
call sym.fnotice__iobuf__char_const__..._
mov dword [esp], ebx
call sym.diagnostic_finish_diagnostic_context_
mov dword [esp], 1
call sym._exit
call ebx
mov dword [esp + 4], str.Please_submit_a_full_bug_report__with_preprocessed_source__by_using__freport_bug_._n
mov dword [esp], eax
call sym.fnotice__iobuf__char_const__..._
jmp 0x42eba0
mov dword [esp + 0xc], 0
mov dword [esp + 8], sym.bt_err_callback_void__char_const__int_
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._backtrace_create_state
mov dword [esp + 0x2c], 0
test eax, eax
je 0x42eb6a
lea edx, [esp + 0x2c]
mov dword [esp + 0xc], sym.bt_err_callback_void__char_const__int_
mov dword [esp + 0x10], edx
mov dword [esp + 8], sym.bt_callback_void__unsigned_int__char_const__int__char_const_
mov dword [esp + 4], 2
mov dword [esp], eax
call sym._backtrace_full
jmp 0x42eb6a
mov dword [esp + 8], str.diagnostic_action_after_output
mov dword [esp + 4], 0x2b5
mov dword [esp], 0x551c70
call sym.fancy_abort_char_const__int__char_const_
Function at 0x42eb59
Capabilities:
Terminate process

Disassembly:
push ebx
sub esp, 0x38
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
cmp eax, 0xe
ja case.0x42eb35.56
jmp dword [eax*4 + 0x551cd4]
cmp byte [ebx + 0x72], 0
jne sym.diagnostic_action_after_output_diagnostic_context__diagnostic_t___clone_.cold_
cmp byte [ebx + 0x7c], 0
jne 0x42ec28
add esp, 0x38
pop ebx
ret
cmp eax, 3
je 0x42ec70
mov dword [esp + 0x2c], 0
cmp byte [ebx + 0x72], 0
jne sym.diagnostic_action_after_output_diagnostic_context__diagnostic_t___clone_.cold_
cmp byte [ebx + 0xc9], 0
mov dword [esp], 2
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
je 0x42ec59
call ebx
mov dword [esp + 4], str.Please_submit_a_full_bug_report__with_preprocessed_source._n
mov dword [esp], eax
call sym.fnotice__iobuf__char_const__..._
cmp dword [esp + 0x2c], 0
jle 0x42ebc0
mov dword [esp], 2
call ebx
mov dword [esp + 4], str.Please_include_the_complete_backtrace_with_any_bug_report._n
mov dword [esp], eax
call sym.fnotice__iobuf__char_const__..._
mov dword [esp], 2
call ebx
mov dword [esp + 8], str._https:__gcc.gnu.org_bugs__
mov dword [esp + 4], str.See__s_for_instructions._n
mov dword [esp], eax
call sym.fnotice__iobuf__char_const__..._
mov dword [esp], 4
call sym._exit
cmp byte [ebx + 0x72], 0
jne sym.diagnostic_action_after_output_diagnostic_context__diagnostic_t___clone_.cold_
mov dword [esp], ebx
call sym.diagnostic_finish_diagnostic_context_
mov dword [esp], 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [esp + 4], str.compilation_terminated._n
mov dword [esp], eax
call sym.fnotice__iobuf__char_const__..._
mov dword [esp], 1
call sym._exit
mov dword [esp], 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [esp + 4], str.compilation_terminated_due_to__Wfatal_errors._n
mov dword [esp], eax
call sym.fnotice__iobuf__char_const__..._
mov dword [esp], ebx
call sym.diagnostic_finish_diagnostic_context_
mov dword [esp], 1
call sym._exit
call ebx
mov dword [esp + 4], str.Please_submit_a_full_bug_report__with_preprocessed_source__by_using__freport_bug_._n
mov dword [esp], eax
call sym.fnotice__iobuf__char_const__..._
jmp 0x42eba0
mov dword [esp + 0xc], 0
mov dword [esp + 8], sym.bt_err_callback_void__char_const__int_
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._backtrace_create_state
mov dword [esp + 0x2c], 0
test eax, eax
je 0x42eb6a
lea edx, [esp + 0x2c]
mov dword [esp + 0xc], sym.bt_err_callback_void__char_const__int_
mov dword [esp + 0x10], edx
mov dword [esp + 8], sym.bt_callback_void__unsigned_int__char_const__int__char_const_
mov dword [esp + 4], 2
mov dword [esp], eax
call sym._backtrace_full
jmp 0x42eb6a
mov dword [esp + 8], str.diagnostic_action_after_output
mov dword [esp + 4], 0x2b5
mov dword [esp], 0x551c70
call sym.fancy_abort_char_const__int__char_const_
Function at 0x42ebed
Capabilities:
Terminate process

Disassembly:
push ebx
sub esp, 0x38
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
cmp eax, 0xe
ja case.0x42eb35.56
jmp dword [eax*4 + 0x551cd4]
cmp byte [ebx + 0x72], 0
jne sym.diagnostic_action_after_output_diagnostic_context__diagnostic_t___clone_.cold_
cmp byte [ebx + 0x7c], 0
jne 0x42ec28
add esp, 0x38
pop ebx
ret
cmp eax, 3
je 0x42ec70
mov dword [esp + 0x2c], 0
cmp byte [ebx + 0x72], 0
jne sym.diagnostic_action_after_output_diagnostic_context__diagnostic_t___clone_.cold_
cmp byte [ebx + 0xc9], 0
mov dword [esp], 2
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
je 0x42ec59
call ebx
mov dword [esp + 4], str.Please_submit_a_full_bug_report__with_preprocessed_source._n
mov dword [esp], eax
call sym.fnotice__iobuf__char_const__..._
cmp dword [esp + 0x2c], 0
jle 0x42ebc0
mov dword [esp], 2
call ebx
mov dword [esp + 4], str.Please_include_the_complete_backtrace_with_any_bug_report._n
mov dword [esp], eax
call sym.fnotice__iobuf__char_const__..._
mov dword [esp], 2
call ebx
mov dword [esp + 8], str._https:__gcc.gnu.org_bugs__
mov dword [esp + 4], str.See__s_for_instructions._n
mov dword [esp], eax
call sym.fnotice__iobuf__char_const__..._
mov dword [esp], 4
call sym._exit
cmp byte [ebx + 0x72], 0
jne sym.diagnostic_action_after_output_diagnostic_context__diagnostic_t___clone_.cold_
mov dword [esp], ebx
call sym.diagnostic_finish_diagnostic_context_
mov dword [esp], 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [esp + 4], str.compilation_terminated._n
mov dword [esp], eax
call sym.fnotice__iobuf__char_const__..._
mov dword [esp], 1
call sym._exit
mov dword [esp], 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [esp + 4], str.compilation_terminated_due_to__Wfatal_errors._n
mov dword [esp], eax
call sym.fnotice__iobuf__char_const__..._
mov dword [esp], ebx
call sym.diagnostic_finish_diagnostic_context_
mov dword [esp], 1
call sym._exit
call ebx
mov dword [esp + 4], str.Please_submit_a_full_bug_report__with_preprocessed_source__by_using__freport_bug_._n
mov dword [esp], eax
call sym.fnotice__iobuf__char_const__..._
jmp 0x42eba0
mov dword [esp + 0xc], 0
mov dword [esp + 8], sym.bt_err_callback_void__char_const__int_
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._backtrace_create_state
mov dword [esp + 0x2c], 0
test eax, eax
je 0x42eb6a
lea edx, [esp + 0x2c]
mov dword [esp + 0xc], sym.bt_err_callback_void__char_const__int_
mov dword [esp + 0x10], edx
mov dword [esp + 8], sym.bt_callback_void__unsigned_int__char_const__int__char_const_
mov dword [esp + 4], 2
mov dword [esp], eax
call sym._backtrace_full
jmp 0x42eb6a
mov dword [esp + 8], str.diagnostic_action_after_output
mov dword [esp + 4], 0x2b5
mov dword [esp], 0x551c70
call sym.fancy_abort_char_const__int__char_const_
Function at 0x431700
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x30]
cmp eax, 1
je 0x431758
cmp eax, 2
jne 0x431730
mov dword [esp], 0xfffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea edx, [eax - 1]
sub esp, 4
cmp edx, 0xfffffffd
jbe 0x431740
xor eax, eax
add esp, 0x2c
ret
test eax, eax
je 0x431729
jmp sym.colorize_init_diagnostic_color_rule_t___clone_.cold_
lea edx, [esp + 0x1c]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
sub esp, 8
test eax, eax
je 0x431729
add esp, 0x2c
jmp sym.parse_gcc_colors__

Function at 0x431760
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
cmp eax, 1
je 0x431780
and eax, 0xfffffffd
jne 0x431778
add esp, 0x1c
ret
jmp sym.determine_url_format_diagnostic_url_rule_t___clone_.cold_
mov dword [esp], str.GCC_URLS
call sym._getenv
mov edx, eax
test eax, eax
je 0x4317c0
xor eax, eax
cmp byte [edx], 0
je 0x431771
movzx ecx, byte [edx]
cmp ecx, 0x6e
jne 0x4317a7
cmp byte [edx + 1], 0x6f
je 0x4317d8
cmp ecx, 0x73
jne 0x4317b2
cmp byte [edx + 1], 0x74
je 0x4317e0
mov eax, 2
add esp, 0x1c
ret
mov dword [esp], str.TERM_URLS
call sym._getenv
mov edx, eax
test eax, eax
je 0x4317b2
jmp 0x431792
cmp byte [edx + 2], 0
je 0x431771
jmp 0x4317a7
cmp byte [edx + 2], 0
mov eax, 1
je 0x431771
jmp 0x4317b2
Function at 0x43c9d0
Capabilities:
Read file on windows

Disassembly:
push esi
push ebx
mov ebx, ecx
sub esp, 0x14
mov eax, dword [ecx + 8]
mov dword [esp], eax
call sym._feof
test eax, eax
je 0x43c9f0
add esp, 0x14
xor eax, eax
pop ebx
pop esi
ret
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sym._ferror
test eax, eax
jne 0x43c9e6
mov ecx, ebx
call method.file_cache_slot.maybe_grow__
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0x18]
mov dword [esp + 4], 1
mov dword [esp + 0xc], edx
mov edx, dword [ebx + 0x14]
sub edx, eax
add eax, dword [ebx + 0xc]
mov dword [esp + 8], edx
mov dword [esp], eax
call sym._fread
mov esi, eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sym._ferror
test eax, eax
jne 0x43c9e6
add dword [ebx + 0x18], esi
test esi, esi
setne al
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x4516f0
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
mov edi, edx
push esi
push ebx
sub esp, 0x3c
mov dword [esp + 0x28], eax
movzx eax, word [edx + 0x2e]
mov dword [esp + 0x2c], ecx
and ax, 0xf000
mov word [esp + 0x26], ax
cmp ax, 0x3000
je 0x451850
cmp word [esp + 0x26], 0x8000
jne 0x4517a0
mov ebx, dword [edx + 0x40]
mov eax, 0x7fffffff
cmp eax, ebx
mov eax, 0
sbb eax, dword [edx + 0x44]
lea eax, [ebx + 0x10]
jl 0x4518e0
mov dword [esp], eax
xor ebp, ebp
call sym._xmalloc
mov esi, eax
lea esi, [esi]
nop
mov eax, ebx
sub eax, ebp
mov dword [esp + 8], eax
lea eax, [esi + ebp]
mov dword [esp + 4], eax
mov eax, dword [edi + 0x58]
mov dword [esp], eax
call sym._read
test eax, eax
jle 0x4517b0
add ebp, eax
cmp ebx, ebp
jne 0x451750
cmp word [esp + 0x26], 0x8000
je 0x4518d0
add ebx, ebx
mov dword [esp], esi
lea eax, [ebx + 0x10]
mov dword [esp + 4], eax
call sym._xrealloc
mov esi, eax
jmp 0x451750
mov eax, 0x2010
mov ebx, 0x2000
jmp 0x45173c
jne 0x451890
mov edx, dword [esp + 0x28]
cmp word [esp + 0x26], 0x8000
sete cl
test edx, edx
setne al
test cl, al
je 0x4517f8
cmp ebx, ebp
je 0x4517f8
mov eax, dword [edi + 4]
mov dword [esp + 0xc], str._s_is_shorter_than_expected
mov dword [esp + 4], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
mov dword [esp], edx
mov dword [esp + 8], eax
call sym.cpp_error_at_cpp_reader__cpp_diagnostic_level__unsigned_int__char_const__..._
lea eax, [edi + 0x40]
add ebx, 0x10
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], eax
lea eax, [edi + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 8], esi
mov dword [esp], eax
call sym.__cpp_convert_input
test eax, eax
mov dword [edi + 0x14], eax
movzx eax, byte [edi + 0x62]
setne bl
mov edx, ebx
and eax, 0xfffffffb
shl edx, 2
or eax, edx
mov byte [edi + 0x62], al
add esp, 0x3c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x28]
xor ebx, ebx
test ecx, ecx
je 0x451842
mov eax, dword [edx + 4]
mov dword [esp + 0xc], str._s_is_a_block_device
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], 3
mov dword [esp], ecx
mov dword [esp + 8], eax
call sym.cpp_error_at_cpp_reader__cpp_diagnostic_level__unsigned_int__char_const__..._
add esp, 0x3c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4518b7
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], 3
mov dword [esp], ecx
mov dword [esp + 0xc], eax
mov eax, dword [edi + 4]
mov dword [esp + 8], eax
call sym.cpp_errno_filename_cpp_reader__cpp_diagnostic_level__char_const__unsigned_int_
mov dword [esp], esi
xor ebx, ebx
call sym._free
add esp, 0x3c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, ebx
jmp 0x4517f8
mov ecx, dword [esp + 0x28]
xor ebx, ebx
test ecx, ecx
je 0x451842
mov eax, dword [edx + 4]
mov dword [esp + 0xc], str._s_is_too_large
mov dword [esp + 0x10], eax
jmp 0x451869
Function at 0x471030
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sym.___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call sym.___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x471090
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x56d160]
test esi, esi
jle 0x4711b0
mov eax, dword [0x56d164]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x4710c4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x471147
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4710b0
mov dword [esp], ebx
call sym.___mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x4711d7
mov eax, dword [0x56d164]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
mov edx, dword [0x56d164]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4711b7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x471140
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x471150
add dword [0x56d160], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x56d164]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x471140
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4710ce
mov eax, dword [0x56d164]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
lea esi, [esi]
nop
Function at 0x471690
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x56d17c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x56d174]
sub esp, 4
test ebx, ebx
je 0x4716e5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4716de
test esi, esi
je 0x4716de
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4716c0
mov dword [esp], 0x56d17c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x471a10
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x471a35
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x471a40
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x471a35
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x471a88
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x471a7e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x471a8a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x471a70
xor eax, eax
pop ebx
pop esi
ret
Function at 0x472a50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x13c
mov ebx, dword [esp + 0x150]
call sym.__errno
mov dword [eax], 0
test ebx, ebx
je 0x472bd8
cmp byte [ebx], 0
je 0x472ba0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
cmp eax, 0xffffffff
je 0x472be8
test al, 0x10
je 0x472ba0
lea esi, [esp + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0x104
mov dword [esp], esi
call sym.__fullpath
mov dword [esp], esi
call sym._strlen
mov dword [esp + 0x1c], eax
mov ebp, eax
lea eax, [eax + 0x233]
mov dword [esp], eax
call sym._malloc
mov ebx, eax
test eax, eax
je 0x472bfa
lea edx, [eax + 0x22c]
lea eax, [ebp + 1]
cmp eax, 4
jb 0x472b78
mov ecx, dword [esp + eax + 0x28]
mov edi, edx
mov dword [edx + eax - 4], ecx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
cmp byte [ebx + 0x22c], 0
je 0x472b20
movzx ecx, byte [ebx + ebp + 0x22b]
cmp cl, 0x5c
je 0x472b20
cmp cl, 0x2f
jne 0x472bc0
lea esi, [esi]
mov eax, dword [esp + 0x1c]
mov ecx, 0x2a
mov word [edx + eax], cx
lea edx, [ebx + 0x120]
mov ecx, 0x41
xor eax, eax
mov dword [ebx + 0x224], 0xffffffff
mov edi, edx
mov dword [ebx + 0x228], 0
mov dword [ebx + 0x118], 0
mov dword [ebx + 0x11c], 0
rep stosd dword es:[edi], eax
add esp, 0x13c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
test eax, eax
je 0x472afb
movzx ecx, byte [esp + 0x2c]
mov byte [edx], cl
test al, 2
je 0x472afb
movzx ecx, word [esp + eax + 0x2a]
mov word [edx + eax - 2], cx
jmp 0x472afb
call sym.__errno
xor ebx, ebx
mov dword [eax], 0x14
add esp, 0x13c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, 0x5c
mov dword [esp + 0x1c], eax
mov word [edx + ebp], si
jmp 0x472b20
call sym.__errno
mov dword [eax], 0xe
jmp 0x472b66
call sym.__errno
xor ebx, ebx
mov dword [eax], 2
jmp 0x472b66
call sym.__errno
mov dword [eax], 0xc
jmp 0x472b66

Function at 0x473ec0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [esp + 0x20]
test eax, eax
je 0x473f18
mov ebx, dword [esp + 0x24]
and ebx, 0xfffffff8
jne 0x473f18
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
cmp eax, 0xffffffff
je 0x473f2a
test al, 0x10
jne 0x473ef7
test al, 1
je 0x473ef7
mov ebx, dword [esp + 0x24]
and ebx, 2
jne 0x473f03
add esp, 0x18
mov eax, ebx
pop ebx
ret
cmp eax, 5
jne 0x473f18
call sym.__errno
mov ebx, 0xffffffff
mov dword [eax], 0xd
jmp 0x473ef7
call sym.__errno
mov ebx, 0xffffffff
mov dword [eax], 0x16
jmp 0x473ef7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
ja 0x473efe
cmp eax, 1
jbe 0x473f18
call sym.__errno
or ebx, 0xffffffff
mov dword [eax], 2
jmp 0x473ef7
Function at 0x4887e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
push ebx
sub esp, 0x54
lea ebx, [esp + 0x40]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], ebx
lea ebx, [esp + 0x3c]
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], ebx
movzx ebx, byte [esp + 0x70]
mov dword [esp + 8], eax
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x68]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
mov eax, dword [ecx + 8]
mov byte [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 0x3c], 0
call sym.__ZNSt13__facet_shims11__money_getIcEESt19istreambuf_iteratorIT_St11char_traitsIS2_EESt17integral_constantIbLb1EEPKNSt6locale5
mov ecx, dword [esp + 0x3c]
test ecx, ecx
jne 0x488860
fld xword [esp + 0x40]
mov ecx, dword [esp + 0x7c]
fstp xword [ecx]
add esp, 0x54
pop ebx
pop esi
ret 0x20
mov ebx, dword [esp + 0x78]
mov dword [ebx], ecx
add esp, 0x54
pop ebx
pop esi
ret 0x20

Function at 0x488870
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
push ebx
sub esp, 0x54
lea ebx, [esp + 0x40]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], ebx
lea ebx, [esp + 0x3c]
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], ebx
movzx ebx, byte [esp + 0x70]
mov dword [esp + 8], eax
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x68]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
mov eax, dword [ecx + 8]
mov byte [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 0x3c], 0
call sym.__ZNSt13__facet_shims11__money_getIcEESt19istreambuf_iteratorIT_St11char_traitsIS2_EESt17integral_constantIbLb0EEPKNSt6locale5
mov ecx, dword [esp + 0x3c]
test ecx, ecx
jne 0x4888f0
fld xword [esp + 0x40]
mov ecx, dword [esp + 0x7c]
fstp xword [ecx]
add esp, 0x54
pop ebx
pop esi
ret 0x20
mov ebx, dword [esp + 0x78]
mov dword [ebx], ecx
add esp, 0x54
pop ebx
pop esi
ret 0x20