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

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x4c
mov byte [ebp - 0x1d], 0x1a
test byte [0x425010], 8
jne 0x403da0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov ebx, eax
cmp eax, 0xffffffff
je 0x403dd2
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
lea eax, [ebp - 0x1c]
sub esp, 0x10
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x1d]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov esi, eax
test eax, eax
jne 0x403d80
test byte [0x425010], 2
jne 0x403e23
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
mov esi, 1
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, esi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._wine_dbgstr_wn.constprop.5
mov dword [esp + 0xc], str.Appending_EOF_to__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.WCMD_AppendEOF
mov dword [esp + 4], 0x425010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.9
jmp 0x403cbc
xor esi, esi
test byte [0x425010], 2
je 0x403d70
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
mov eax, edi
call sym._wine_dbgstr_wn.constprop.5
mov dword [esp + 0xc], str.Failed_to_open__s___ld__n
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.WCMD_AppendEOF
mov dword [esp + 4], 0x425010
mov dword [esp], 1
call sym._wine_dbg_log.constprop.9
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x34]
mov eax, edi
mov dword [ebp - 0x2c], edx
call sym._wine_dbgstr_wn.constprop.5
mov edx, dword [ebp - 0x2c]
mov dword [esp + 0xc], str.Failed_to_append_EOF_to__s___ld__n
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 8], str.WCMD_AppendEOF
mov dword [esp + 4], 0x425010
mov dword [esp], 1
call sym._wine_dbg_log.constprop.9
jmp 0x403d64
Function at 0x403e70
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push eax
mov eax, 0x4028
call fcn.004240d8
sub esp, eax
mov eax, dword [esp + eax]
mov esi, dword [eax]
mov ebx, dword [esi]
test ebx, ebx
je 0x403ed1
movzx eax, byte [0x425010]
mov ebx, dword [esi + 8]
and eax, 8
test al, al
je 0x403ec7
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.Peeked_number__d_n
mov dword [esp + 8], str.WCMD_peeknumber
mov dword [esp + 4], 0x425010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.9
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x4018]
mov dword [esp + 8], 0x2000
mov dword [esp + 4], edi
mov eax, dword [esi + 4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
sub esp, 0xc
test eax, eax
jne 0x403f42
test byte [0x425010], 8
je 0x403ec7
mov eax, dword [esi + 4]
call sym._wine_dbgstr_wn.constprop.5
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Envvar__s_converted_to__d_n
mov dword [esp + 8], str.WCMD_peeknumber
mov dword [esp + 4], 0x425010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.9
movzx eax, byte [0x425010]
and eax, 8
jmp 0x403e9b
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcstol]
mov ebx, eax
jmp 0x403ef6

Function at 0x403f60
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [eax]
call dbg.WCMD_peeknumber
mov esi, eax
mov eax, dword [ebx]
test eax, eax
je 0x403ff2
mov eax, dword [ebx + 0xc]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [edi], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
test byte [0x425010], 8
jne 0x403fc0
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.Popped_number__d_n
mov dword [esp + 8], str.WCMD_popnumber
mov dword [esp + 4], 0x425010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.9
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebx + 4]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x403f7a
Function at 0x404020
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov edx, dword [eax]
mov ecx, dword [edx + 8]
movzx ebx, word [edx + 4]
mov dword [eax], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
test byte [0x425010], 8
jne 0x404070
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
movzx eax, bx
mov dword [esp + 0xc], str.Popped_operator__c_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.WCMD_popoperator
mov dword [esp + 4], 0x425010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.9
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x407840
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov dword [esp], 0xfffffff5
call dword [sym.imp.kernel32.dll_GetStdHandle]
sub esp, 4
mov ebx, eax
lea eax, [ebp - 0x2e]
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetConsoleScreenBufferInfo]
sub esp, 8
test eax, eax
jne 0x407880
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
movsx esi, word [ebp - 0x2c]
movsx eax, word [ebp - 0x2e]
lea edi, [ebp - 0x34]
mov dword [esp], ebx
mov dword [esp + 0x10], edi
add esi, 1
mov dword [esp + 0xc], 0
imul esi, eax
mov dword [esp + 4], 0x20
mov dword [esp + 8], esi
call dword [sym.imp.kernel32.dll_FillConsoleOutputCharacterW]
movzx eax, word [ebp - 0x26]
sub esp, 0x14
mov dword [esp + 0x10], edi
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FillConsoleOutputAttribute]
sub esp, 0x14
mov dword [esp], ebx
mov dword [esp + 4], 0
call dword [sym.imp.kernel32.dll_SetConsoleCursorPosition]
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40a070
Capabilities:
Create directory

Disassembly:
push ebp
mov ecx, dword fs:[0x18]
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x1c], eax
xor eax, eax
cmp word [0x4331e0], 0
je 0x40a1c1
lea esi, [esi]
lea ecx, [eax + 1]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x1c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
mov dword [esp], eax
call sym._WCMD_parameter
mov ebx, dword [ebp - 0x1c]
mov edi, eax
test ebx, ebx
je 0x40a1d5
movzx ebx, word [eax + 2]
lea edx, [eax + 4]
cmp bx, 0x3a
cmovne edx, eax
cmp word [eax], 0
mov esi, edx
jne 0x40a0f8
jmp 0x40a1e0
movzx ebx, word [eax + 2]
add eax, 2
test bx, bx
jne 0x40a0f4
sub eax, edi
sar eax, 1
lea eax, [eax + eax - 2]
add eax, edi
cmp eax, esi
jne 0x40a11d
jmp 0x40a123
xor ecx, ecx
sub eax, 2
mov word [eax + 2], cx
cmp eax, esi
je 0x40a123
cmp word [eax], 0x5c
je 0x40a110
movzx eax, word [esi]
mov ebx, dword [sym.imp.kernel32.dll_CreateDirectoryW]
lea esi, [esi]
cmp ax, 0x5c
je 0x40a183
test ax, ax
je 0x40a190
lea esi, [esi]
nop
add esi, 2
movzx eax, word [esi]
test ax, ax
je 0x40a151
cmp ax, 0x5c
jne 0x40a140
test ax, ax
je 0x40a190
xor eax, eax
mov word [esi], ax
mov dword [esp + 4], 0
mov dword [esp], edi
call ebx
mov edx, 0x5c
sub esp, 8
mov word [esi], dx
test eax, eax
jne 0x40a183
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x34], 0xb7
jne 0x40a1b0
movzx eax, word [esi + 2]
add esi, 2
jmp 0x40a130
mov dword [esp + 4], 0
mov dword [esp], edi
call ebx
sub esp, 8
test eax, eax
je 0x40a1b0
mov eax, dword [ebp - 0x2c]
jmp 0x40a0a0
call dbg.WCMD_print_error
mov dword [0x437470], 1
jmp 0x40a1a4
mov dword [esp], 0x3f2
call sym._WCMD_LoadMessage
mov dword [esp], eax
call dbg.WCMD_output_stderr
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xfffffffe
jmp 0x40a108
Function at 0x40a2b0
Capabilities:
Get process heap flags

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 8]
movzx edx, word [ebx]
lea ecx, [edx - 0x20]
cmp cx, 0x1b
ja 0x40a2d4
mov eax, 0xc00c001
shr eax, cl
and eax, 1
cmp dx, 9
je 0x40a2e2
test al, al
je 0x40a3c3
lea esi, [ebx + 2]
mov eax, esi
call dbg.WCMD_strtrim
mov edi, eax
test eax, eax
je 0x40a355
cmp word [eax], 0
je 0x40a360
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x40a300
cmp edi, eax
je 0x40a360
mov dword [esp + 4], 0x427036
mov ebx, dword [sym.imp.kernel32.dll_lstrcmpiW]
mov dword [esp], edi
call ebx
sub esp, 8
test eax, eax
jne 0x40a3a0
mov dword [0x425030], 1
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, word [ebx]
lea edx, [eax - 0x2e]
cmp dx, 1
jbe 0x40a30d
sub eax, 0x3a
cmp ax, 1
jbe 0x40a30d
mov eax, dword [0x425030]
mov dword [esp], 0x400
test eax, eax
je 0x40a3e9
call sym._WCMD_LoadMessage
mov dword [esp + 4], 0x427036
mov dword [esp], eax
call dbg.WCMD_output
jmp 0x40a331
mov dword [esp + 4], 0x42703c
mov dword [esp], edi
call ebx
sub esp, 8
test eax, eax
jne 0x40a3d0
mov dword [0x425030], 0
jmp 0x40a331
mov esi, ebx
jmp 0x40a2e5
mov dword [esp], esi
call sym._WCMD_output_asis
mov dword [esp], 0x426120
call sym._WCMD_output_asis
jmp 0x40a331
call sym._WCMD_LoadMessage
mov dword [esp + 4], 0x42703c
mov dword [esp], eax
call dbg.WCMD_output
jmp 0x40a331
Function at 0x40ffd0
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov eax, dword [0x42e0c4]
test eax, eax
je 0x410150
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x23c
mov ebx, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov dword [esp + 4], str.ENABLEDELAYEDEXPANSION
mov dword [esp], 0x4331e0
call ebx
test eax, eax
jne 0x4100e0
mov edi, 1
test byte [0x425010], 8
jne 0x4100b3
mov dword [esp + 4], 0x14
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_LocalAlloc]
sub esp, 8
mov ebx, eax
test eax, eax
je 0x410115
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
mov esi, eax
call sym._WCMD_dupenv
mov dword [ebx + 8], eax
test eax, eax
je 0x410151
mov eax, dword [0x42e0c4]
mov eax, dword [eax + 4]
mov dword [ebx + 0xc], eax
mov eax, dword [0x42f1c0]
mov dword [0x42f1c0], ebx
mov dword [ebx], eax
mov eax, dword [0x42e0c0]
mov dword [0x42e0c0], edi
mov dword [ebx + 0x10], eax
lea eax, [ebp - 0x220]
mov dword [esp + 4], eax
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
movzx eax, word [ebp - 0x220]
sub esp, 8
mov word [ebx + 4], ax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.Setting_delayed_expansion_to__d_n
mov dword [esp + 8], str.WCMD_setlocal
mov dword [esp + 4], 0x425010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.9
jmp 0x41001a
mov dword [esp + 4], str.ENABLEDELAYEDEXPANSION
mov dword [esp], 0x42f1e0
call ebx
test eax, eax
je 0x410008
mov dword [esp + 4], str.DISABLEDELAYEDEXPANSION
mov dword [esp], 0x4331e0
call ebx
test eax, eax
jne 0x410162
xor edi, edi
jmp 0x41000d
test byte [0x425010], 2
je 0x4100ab
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.WCMD_setlocal
mov dword [esp + 4], 0x425010
mov dword [esp], 1
call sym._wine_dbg_log.constprop.9
jmp 0x4100ab
ret
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_LocalFree]
sub esp, 4
jmp 0x41009f
mov dword [esp + 4], str.DISABLEDELAYEDEXPANSION
mov dword [esp], 0x42f1e0
call ebx
test eax, eax
je 0x41010e
mov edi, dword [0x42e0c0]
jmp 0x41000d
Function at 0x410e90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 8]
mov dword [esp + 4], 0x2f
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcschr]
test eax, eax
je 0x410ed0
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x57
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp dbg.WCMD_print_error
mov edi, dword [sym.imp.kernel32.dll_LocalAlloc]
mov dword [esp + 4], 0x14
mov dword [esp], 0
call edi
sub esp, 8
mov esi, eax
mov dword [esp + 4], 0x800
mov dword [esp], 0
call edi
sub esp, 8
mov edi, eax
test esi, esi
je 0x410f83
xor eax, eax
mov edx, 0x2f
test edi, edi
jne 0x410f1a
jmp 0x410f83
movzx edx, word [eax + 0x42773e]
mov word [eax + 0x437480], dx
add eax, 2
test dx, dx
jne 0x410f13
mov dword [esp + 4], edi
mov dword [esp], 0x400
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov dword [0x437470], 0
sub esp, 8
mov dword [esp], ebx
call dbg.WCMD_setshow_default
mov eax, dword [0x437470]
test eax, eax
jne 0x410fd0
mov edx, dword [0x42f1c4]
mov dword [esi + 8], edi
mov eax, 1
mov dword [esi], edx
test edx, edx
je 0x410f72
mov eax, dword [edx + 4]
add eax, 1
mov dword [esi + 4], eax
mov dword [0x42f1c4], esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [sym.imp.kernel32.dll_LocalFree]
mov dword [esp], esi
call ebx
sub esp, 4
mov dword [esp], edi
call ebx
sub esp, 4
test byte [0x425010], 2
je 0x410f7b
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.WCMD_pushd
mov dword [esp + 4], 0x425010
mov dword [esp], 1
call sym._wine_dbg_log.constprop.9
jmp 0x410f7b
mov ebx, dword [sym.imp.kernel32.dll_LocalFree]
mov dword [esp], esi
call ebx
sub esp, 4
mov dword [esp], edi
call ebx
sub esp, 4
jmp 0x410f7b
Function at 0x411650
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x814
movzx edx, word [0x4331e0]
mov eax, dword [ebp + 8]
or dx, word [0x42f1e0]
je 0x4116a0
cmp word [eax], 0x3d
lea edx, [eax + 2]
mov dword [esp], 0x427818
cmove eax, edx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
sub esp, 8
test eax, eax
je 0x411694
mov ebx, dword [ebp - 4]
leave
ret
call dbg.WCMD_print_error
mov ebx, dword [ebp - 4]
leave
ret
lea ebx, [ebp - 0x808]
mov dword [esp + 8], 0x400
mov dword [esp + 4], ebx
mov dword [esp], 0x427818
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
sub esp, 0xc
test eax, eax
je 0x4116f0
mov dword [esp], 0x427822
call sym._WCMD_output_asis
mov dword [esp], ebx
call sym._WCMD_output_asis
mov dword [esp], 0x426120
call sym._WCMD_output_asis
jmp 0x41168f
mov dword [esp], 0x406
call sym._WCMD_LoadMessage
mov dword [esp], eax
call dbg.WCMD_output_stderr
jmp 0x41168f

Function at 0x411710
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
movzx eax, word [0x4331e0]
test ax, ax
je 0x411763
cmp ax, 0x20
sete cl
cmp ax, 0x3d
sete dl
or cl, dl
mov edx, 0x4331e0
jne 0x411740
cmp ax, 9
jne 0x411780
add edx, 2
movzx eax, word [edx]
cmp ax, 0x3d
sete bl
cmp ax, 0x20
sete cl
or bl, cl
jne 0x411740
cmp ax, 9
je 0x411740
test ax, ax
jne 0x411780
mov dword [esp + 4], 0
mov dword [esp], 0x42782e
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
mov ebx, dword [ebp - 4]
sub esp, 8
leave
ret
mov dword [esp + 4], edx
mov dword [esp], 0x42782e
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
mov ebx, dword [ebp - 4]
sub esp, 8
leave
ret
Function at 0x412d70
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value
Set registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], 0x4331e0
call dword [sym.imp.ucrtbase.dll_wcstol]
mov ebx, eax
mov eax, dword [0x42e0c4]
test eax, eax
je 0x412ddb
mov dword [esp + 4], 0x42799a
mov dword [esp], 0x437480
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
jne 0x412ddb
mov eax, dword [0x42e0c4]
mov dword [0x437470], ebx
mov dword [eax + 0x38], 1
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ebx, dword [ebp - 4]
leave
ret
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x418ab0
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov eax, dword fs:[0x18]
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x418ae3
leave
ret
test byte [0x425038], 2
jne 0x418af9
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.Out_of_memory_n
mov dword [esp + 8], global___func__.6
mov dword [esp + 4], 0x425038
mov dword [esp], 1
call sym._wine_dbg_log.constprop.11
jmp 0x418aec

Function at 0x418b20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov dword [ebp - 0x20], 0
test edx, edx
jne 0x418b40
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x20]
mov ebx, ecx
mov dword [ebp - 0x2c], edx
mov esi, eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], ecx
call dword [sym.imp.kernel32.dll_WriteConsoleW]
sub esp, 0x14
test eax, eax
jne 0x418b34
mov eax, dword [0x42f0fc]
mov dword [ebp - 0x1c], 0
test eax, eax
jne 0x418c01
mov edx, dword [0x42f0e0]
test edx, edx
je 0x418c30
mov dword [ebp - 0x30], edx
call dword [sym.imp.kernel32.dll_GetConsoleOutputCP]
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 0x30]
mov dword [esp + 8], esi
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], 0x42893c
mov dword [esp + 0x14], 0xffff
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov edx, dword [ebp - 0x30]
sub esp, 0x20
mov dword [esp + 0xc], edi
mov dword [esp], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov dword [esp + 4], edx
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp - 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
add edx, edx
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
jmp 0x418b34
mov dword [esp], 0xffff
call dbg.heap_xalloc
mov edx, eax
mov dword [0x42f0e0], eax
test eax, eax
je 0x418b34
jmp 0x418b90
Function at 0x418fa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, 1
push esi
push ebx
sub esp, 0x3c
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_ReadConsoleW]
sub esp, 0x14
test eax, eax
jne 0x419018
mov ebx, dword [0x42f0e0]
mov edi, eax
test ebx, ebx
je 0x419070
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
test eax, eax
jne 0x419022
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [ebp - 0x1c]
mov edi, 1
call dword [sym.imp.kernel32.dll_GetConsoleCP]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov edx, dword [ebp + 0x14]
sub esp, 0x18
mov dword [edx], eax
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0xffff
call dbg.heap_xalloc
mov ebx, eax
mov dword [0x42f0e0], eax
test eax, eax
jne 0x418fee
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4237a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_strlen]
mov esi, eax
xor eax, eax
test esi, esi
je 0x4237fb
cmp byte [ebx + esi - 1], 0xa
je 0x4237cf
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x42f1a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret