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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov edi, dword [0x4172b4]
mov esi, dword [ebp + 8]
test edi, edi
je 0x40b2c0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x4172b4]
movzx eax, al
bt eax, esi
jae 0x40b320
mov ecx, dword [0x4172a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x40b1c6
test byte [0x40c018], 8
jne 0x40b260
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x40c028], 8
jne 0x40b210
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x40b195
cmp esi, 3
jbe 0x40b1d0
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 8], str._s:_s:_s
lea edx, [edi + 1]
mov dword [esp], eax
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x415840]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x40b195
mov ecx, dword [0x4172b4]
test ecx, ecx
je 0x40b300
mov dword [esp], 0x40c028
call dword [0x4172b4]
test al, 8
je 0x40b16c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x40b16c
mov ebx, dword [0x4172b4]
test ebx, ebx
je 0x40b2e0
mov dword [esp], 0x40c018
call dword [0x4172b4]
test al, 8
je 0x40b159
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [esp + 0x28]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x40b15f
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x4172b4
call sym._load_func.part.0
jmp 0x40b120
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x4172b4
call sym._load_func.part.0
jmp 0x40b26a
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x4172b4
call sym._load_func.part.0
jmp 0x40b21e
mov eax, 0xffffffff
jmp 0x40b1c6
Function at 0x40b480
Capabilities:
Accept command line arguments
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.wmain
mov dword [esp], eax
call sym._exit

Function at 0x40b4f0
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40b557
xor ecx, ecx
xor edx, edx
jmp 0x40b539
cmp ax, 0x5c
jne 0x40b5c8
add edx, 1
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40b557
cmp ax, 9
je 0x40b545
cmp ax, 0x20
jne 0x40b520
test ecx, ecx
je 0x40b5b3
movzx eax, word [ebx + 2]
add ebx, 2
xor edx, edx
test ax, ax
jne 0x40b539
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x40b5e8
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._wWinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x40b5b0
cmp ax, 0x20
je 0x40b5b0
jmp 0x40b557
cmp ax, 0x22
jne 0x40b549
and edx, 1
jne 0x40b549
xor ecx, 1
jmp 0x40b52d
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
jmp 0x40b570
Function at 0x401350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [esp], 0
mov dword [esp + 4], eax
call sym._vstrmake
mov esi, dword [section..data]
mov dword [esp], 2
mov ebx, eax
call esi
mov dword [esp + 8], 0xa
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Log_file:
call sym._fwrite
mov dword [esp], 2
call esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll_fputs]
mov dword [esp], 2
call esi
mov dword [esp], 0xa
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll_fputc]
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_free]
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop ebp
ret

Function at 0x4013e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [esp], 0
mov dword [esp + 4], eax
call sym._vstrmake
mov esi, dword [section..data]
mov dword [esp], 2
mov ebx, eax
call esi
mov dword [esp + 8], 0x15
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Temporary_directory:
call sym._fwrite
mov dword [esp], 2
call esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll_fputs]
mov dword [esp], 2
call esi
mov dword [esp], 0xa
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll_fputc]
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_free]
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop ebp
ret

Function at 0x401470
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
mov ebx, dword [section..data]
mov dword [esp], 2
call ebx
mov dword [esp + 8], 5
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Tag:
call sym._fwrite
mov dword [esp], 2
call ebx
mov dword [esp + 4], eax
mov eax, dword [0x40d050]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_fputs]
mov dword [esp], 2
call ebx
mov dword [esp], 0xa
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll_fputc]
mov ebx, dword [ebp - 4]
xor eax, eax
leave
ret

Function at 0x401560
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [esp], 2
call dword [section..data]
mov dword [esp + 8], 7
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Error:
call sym._fwrite
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.textStatus
xor eax, eax
leave
ret

Function at 0x4015b0
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.textError
mov dword [esp], 1
call dword [sym.imp.msvcrt.dll_exit]
nop

Function at 0x4016e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.guiError
mov dword [esp], 1
call dword [sym.imp.msvcrt.dll_exit]
nop
Function at 0x401b10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 8]
cmp ebx, 0xb
je 0x401b40
mov eax, global_quiet_funcs
cmp ebx, 0xc
jne 0x401b50
mov dword [global_funcs], eax
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, global_text_funcs
jmp 0x401b2b
mov eax, dword [global_funcs]
test eax, eax
je 0x401ba0
cmp ebx, 0xa
ja 0x401b78
lea eax, [ebp + 0xc]
mov dword [esp], eax
mov eax, dword [global_funcs]
call dword [eax + ebx*4]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], str.unimplemented_report_type:__d
mov dword [esp], 7
call dbg.report
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [global_funcs], 0x40a2e0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateEventA]
mov dword [0x40d024], eax
sub esp, 0x10
test eax, eax
je 0x401c88
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], dbg.DlgThreadProc
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
sub esp, 0x18
mov esi, eax
test eax, eax
je 0x401cb0
mov dword [esp + 4], 0xffffffff
mov eax, dword [0x40d024]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
sub esp, 8
mov edi, eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
cmp edi, 0x102
je 0x401cd6
cmp edi, 0xffffffff
je 0x401cfe
test edi, edi
je 0x401cef
mov dword [esp + 8], edi
mov dword [esp + 4], 0x40a0f5
mov dword [esp], 0
call dbg.report
jmp 0x401b59
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.Cant_create_event_object:__d
mov dword [esp], 0
mov dword [esp + 8], eax
call dbg.report
jmp 0x401b59
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.Cant_create_GUI_thread:__d
mov dword [esp], 0
mov dword [esp + 8], eax
call dbg.report
jmp 0x401b59
mov dword [esp + 4], str.GUI_creation_timed_out
mov dword [esp], 0
call dbg.report
jmp 0x401b59
mov dword [global_funcs], 0x40a260
jmp 0x401b59
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.Wait_for_GUI_failed:__d
mov dword [esp], 0
mov dword [esp + 8], eax
call dbg.report
jmp 0x401b59
Function at 0x401f60
Capabilities:
Inspect load icon resource
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
call dword [sym.imp.comctl32.dll_InitCommonControls]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], dbg.DlgProc
mov dword [esp + 8], 0
mov dword [esp + 4], 0x64
mov dword [esp], eax
call dword [sym.imp.user32.dll_DialogBoxParamA]
sub esp, 0x14
cmp eax, 1
je 0x401fd8
cmp eax, 3
je 0x402020
test eax, eax
je 0x402000
mov dword [esp + 8], eax
mov dword [esp + 4], str.Dialog_exited:__d
mov dword [esp], 0
call dbg.report
xor eax, eax
leave
ret 4
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.DialogBox_failed:__d
mov dword [esp], 7
mov dword [esp + 8], eax
call dbg.report
xor eax, eax
leave
ret 4
mov dword [esp + 4], str.Cannot_display_dialog
mov dword [esp], 9
call dbg.report
xor eax, eax
leave
ret 4
mov dword [esp], 0
call dword [sym.imp.msvcrt.dll_exit]
lea esi, [esi]
Function at 0x4026b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
lea ecx, [ebp - 0x14]
push ebx
mov ebx, eax
mov eax, esi
sub esp, 0x28
mov dword [ebp - 0x18], edx
mov edx, str.TESTRES
call dbg.extract_rcdata
mov edi, eax
test eax, eax
je 0x402820
mov dword [esp], esi
call dbg.xstrdup
mov dword [ebx], eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], str._s_s
mov dword [esp + 8], eax
mov dword [esp], 0
call dbg.strmake
mov edx, dword [ebx]
mov dword [ebx + 0xc], eax
mov dword [esp], edx
mov dword [esp + 4], str._test.exe
mov dword [ebp - 0x18], edx
call dword [sym.imp.msvcrt.dll_strstr]
mov edx, dword [ebp - 0x18]
test eax, eax
mov esi, eax
je 0x402850
mov byte [esi], 0
mov eax, dword [ebx]
sub esi, eax
mov dword [esp], eax
add esi, 1
mov dword [esp + 4], esi
call sym._xrealloc
mov dword [ebx], eax
mov dword [esp + 8], eax
mov dword [esp + 4], str.Extracting:__s
mov dword [esp], 2
call dbg.report
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0000000
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x1c
mov esi, eax
cmp eax, 0xffffffff
je 0x402800
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x4027e0
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0xc]
mov dword [esp + 4], str.Failed_to_write_file__s.
mov dword [esp], 9
mov dword [esp + 8], eax
call dbg.report
jmp 0x4027c8
mov eax, dword [ebx + 0xc]
mov dword [esp + 4], str.Failed_to_open_file__s.
mov dword [esp], 9
mov dword [esp + 8], eax
call dbg.report
jmp 0x40279e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 8], esi
mov dword [esp + 4], str.Cant_find_test_resource__s:__d
mov dword [esp + 0xc], eax
mov dword [esp], 9
call dbg.report
jmp 0x4026d9
mov dword [esp + 8], edx
mov dword [esp + 4], str.Not_an_.exe_file:__s
mov dword [esp], 9
call dbg.report
jmp 0x402728
Function at 0x402910
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x24
mov dword [esp], str.user32.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
sub esp, 4
mov ebx, eax
mov dword [esp + 4], str.GetProcessWindowStation
mov dword [esp], eax
call esi
sub esp, 8
mov edi, eax
mov dword [esp], ebx
mov dword [esp + 4], str.GetUserObjectInformationA
call esi
sub esp, 8
mov esi, eax
call dword [sym.imp.user32.dll_GetDesktopWindow]
mov dword [esp + 4], 0xfffffffc
mov dword [esp], eax
mov ebx, eax
call dword [sym.imp.user32.dll_GetWindowLongW]
sub esp, 8
test eax, eax
je 0x4029b7
test edi, edi
je 0x4029b7
test esi, esi
je 0x4029b7
call edi
lea edx, [ebp - 0x1c]
mov dword [esp + 0xc], 0xc
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x18]
mov dword [esp + 8], edx
mov dword [esp + 4], 1
mov dword [esp], eax
call esi
sub esp, 0x14
test eax, eax
je 0x4029c3
mov eax, dword [ebp - 0x10]
and eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
call dword [sym.imp.user32.dll_IsWindowVisible]
push edx
jmp 0x4029af
mov dword [esp + 8], 0x126
mov dword [esp + 4], str..._programs_winetest_main.c
mov dword [esp], str.pGetUserObjectInformationA_wstation__UOI_FLAGS__uoflags__sizeof_uoflags___len_
call dword [sym.imp.msvcrt.dll__assert]

Function at 0x4029e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, 1
sub esp, 0x128
mov ecx, dword [0x40d2d8]
mov dword [ebp - 0x110], 0x104
test ecx, ecx
jne 0x402a0a
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
lea eax, [ebp - 0x10c]
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersion
xor ebx, ebx
mov dword [esp + 8], eax
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyA]
sub esp, 0xc
test eax, eax
jne 0x402a03
lea eax, [ebp - 0x110]
mov dword [esp + 4], str.ProgramFilesDir__x86_
xor ebx, ebx
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x108]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x114]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
sub esp, 0x18
test eax, eax
mov eax, dword [ebp - 0x10c]
sete bl
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
push edx
jmp 0x402a03

Function at 0x402a90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea esi, [ebp - 0x10c]
mov ebx, eax
sub esp, 0x114
mov dword [esp + 4], esi
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
sub esp, 8
test eax, eax
je 0x402adf
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40a846
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
sub esp, 0x10
test eax, eax
jne 0x402af3
mov dword [esp + 4], str.Cant_name_temp_file.
mov dword [esp], 9
call dbg.report
mov eax, ebx
call dbg.create_output_file
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x402b40
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
lea eax, [ebp - 0x18]
push ebx
sub esp, 0x24
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.version.dll_GetFileVersionInfoSizeA]
sub esp, 8
test eax, eax
jne 0x402bc8
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 2
je 0x402ba0
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.version_not_present__lu
mov dword [esp], global_version
mov dword [esp + 8], eax
call dbg.sprintf
lea esp, [ebp - 0xc]
mov eax, global_version
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.dll_is_missing
mov dword [esp], global_version
call dbg.sprintf
lea esp, [ebp - 0xc]
mov eax, global_version
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], eax
mov ebx, eax
call sym._xalloc
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov edi, eax
mov eax, dword [ebp - 0x18]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.version.dll_GetFileVersionInfoA]
sub esp, 0x10
test eax, eax
je 0x402c58
lea eax, [ebp - 0x10]
mov dword [esp + 4], global_backslash
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x14]
mov dword [esp + 8], eax
mov dword [esp], edi
call dword [sym.imp.version.dll_VerQueryValueA]
sub esp, 0x10
test eax, eax
je 0x402c90
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov dword [esp + 4], str._ld._ld._ld._ld
mov dword [esp], global_version
movzx ecx, dx
shr edx, 0x10
mov dword [esp + 0x10], edx
movzx edx, ax
shr eax, 0x10
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
call dbg.sprintf
jmp 0x402c79
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.version_error__lu
mov dword [esp], global_version
mov dword [esp + 8], eax
call dbg.sprintf
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll_free]
lea esp, [ebp - 0xc]
mov eax, global_version
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.version_not_found
mov dword [esp], global_version
call dbg.sprintf
jmp 0x402c79
Function at 0x402d80
Capabilities:
Delete file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, edx
sub esp, 0x20
mov ecx, dword [sym.imp.kernel32.dll_SetFilePointer]
mov dword [ebp - 0x10], eax
mov dword [esp], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [ebp - 0x18], ecx
call ecx
sub esp, 0x10
mov edx, eax
add eax, 1
mov dword [ebp - 0x14], edx
mov dword [esp], eax
call sym._xalloc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov esi, eax
mov dword [esp + 4], 0
mov dword [esp], ebx
mov ecx, dword [ebp - 0x18]
call ecx
sub esp, 0x10
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov edx, dword [ebp - 0x14]
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
test eax, eax
jne 0x402e1b
mov dword [edi], 0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov eax, dword [edi]
sub esp, 4
mov byte [esi + eax], 0
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402e50
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
lea ebx, [ebp - 0x250]
sub esp, 0x25c
mov dword [ebp - 0x258], eax
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_strlen]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov edi, eax
mov dword [esp], ebx
call sym._memcpy
lea eax, [edi + 1]
add edi, ebx
mov dword [ebp - 0x254], eax
mov eax, 0x2a5c
mov word [edi], ax
mov byte [edi + 2], 0
lea edi, [ebp - 0x14c]
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_FindFirstFileA]
sub esp, 8
cmp eax, 0xffffffff
je 0x402f30
mov esi, eax
movzx eax, byte [ebp - 0x120]
lea edx, [ebp - 0x120]
test al, al
jne 0x402ed1
movzx eax, byte [ebp - 0x1c]
lea edx, [ebp - 0x1c]
cmp al, 0x2e
je 0x402f40
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x254]
add eax, ebx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_strcpy]
test byte [ebp - 0x14c], 0x10
je 0x402f58
mov eax, ebx
call dbg.remove_dir
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_FindNextFileA]
sub esp, 8
test eax, eax
jne 0x402eb9
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_FindClose]
mov eax, dword [ebp - 0x258]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_RemoveDirectoryA]
sub esp, 4
test eax, eax
je 0x402f98
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, byte [edx + 1]
test al, al
je 0x402efa
cmp al, 0x2e
jne 0x402ed5
cmp byte [edx + 2], 0
je 0x402efa
jmp 0x402ed5
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_DeleteFileA]
sub esp, 4
test eax, eax
jne 0x402efa
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Cant_delete_file__s:_error__d
mov dword [esp + 0xc], eax
mov dword [esp], 7
call dbg.report
jmp 0x402efa
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x258]
mov dword [esp + 4], str.Cant_remove_directory__s:_error__d
mov dword [esp + 8], eax
mov dword [esp], 7
call dbg.report
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x406e30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea ecx, [ebp + 0xc]
lea eax, [ebp - 0x14]
push ebx
sub esp, 0x24
mov edx, dword [ebp + 8]
call dbg.vstrfmtmake
mov ebx, dword [ebp - 0x14]
mov ecx, eax
test ebx, ebx
je 0x406eca
mov edi, ebx
mov dword [ebp - 0x1c], ecx
lea esi, [ebp - 0x10]
mov ebx, ecx
mov eax, dword fs:[0x18]
mov dword [ebp - 0x18], eax
jmp 0x406e74
mov eax, dword [ebp - 0x10]
add ebx, eax
sub edi, eax
mov dword [ebp - 0x14], edi
je 0x406ec7
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov eax, dword [0x40d340]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
test eax, eax
jne 0x406e68
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.Cant_write_logs:__u
mov dword [esp], 9
mov dword [esp + 8], eax
call dbg.report
mov eax, dword [ebp - 0x10]
add ebx, eax
sub edi, eax
mov dword [ebp - 0x14], edi
jne 0x406e74
mov ecx, dword [ebp - 0x1c]
mov dword [esp], ecx
call dword [sym.imp.msvcrt.dll_free]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x406fb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 8]
mov dword [esp + 8], eax
lea eax, [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x10]
mov dword [esp], eax
mov dword [esp + 0xc], 0
call sym.___getmainargs
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.___set_app_type
mov eax, dword [ebp - 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dbg.main
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop