joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55e360
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x55e393
push esi
call fcn.005632c0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x55e38c
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x55e419
mov eax, dword [esi + 0x1b8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x55e402
mov eax, dword [esi + 8]
test eax, eax
je 0x55e3b7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b8]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x55e3fe
cmp eax, 2
je 0x55e402
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x55e3aa
cmp eax, 3
je 0x55e3dd
cmp eax, 1
jne 0x55e3aa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x55e3aa
mov edx, dword [esi + 0x144]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x55e3aa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0055e450
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x55e439
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.0055e450
add esp, 4
pop esi
ret

Function at 0x58ee20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x58ee2b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x58ef2e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0xb1de10]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0xb1de10]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0xb1de10]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0xb1de10]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0xb1de10]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0xb1de10]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0xb1de10]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0xb1de10]
xor eax, edx
inc ecx
dec edi
jne 0x58ee46
pop edi
test esi, esi
je 0x58ef50
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0xb1de10]
xor eax, edx
inc ecx
dec esi
jne 0x58ef32
pop esi
pop ebx
not eax
ret
Function at 0x5c85e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5e6ee0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.005bd586
mov eax, dword [0xb35b18]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.005bd4b8
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.005c90e0
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x5c8687
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x5c867e
cmp al, 0xff
je 0x5c867e
dec al
mov byte [ecx], al
jmp 0x5c8687
push ecx
call fcn.005d2371
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x5c86b8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x5c86af
cmp al, 0xff
je 0x5c86af
dec al
mov byte [ecx], al
jmp 0x5c86b8
push ecx
call fcn.005d2371
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x5d4a12
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5d4a4a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005d2a62
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005d2a3a
jmp 0x5d4a56
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5d6108
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5d614a
call fcn.005dc874
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5d614a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5d6141
xor eax, eax
jmp 0x5d6152
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005d6158
pop edi
pop esi
pop ebx
ret 4

Function at 0x5dcda4
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x5dcdd2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5dcdf0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005dcd0a
jmp 0x5dcdf0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5dcdf0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005dcd0a
test edi, edi
mov eax, edi
jne 0x5dcdda
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x406f40
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 0x406f80
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
inc esi
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 0x40ac40
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x20]
push ebx
sub esp, 0x4c
mov dword [ebp - 0x20], 0x3a0063
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x28]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x30]
mov dword [esp + 8], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x1c], 0x5c
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetDiskFreeSpaceExW]
sub esp, 0x10
test byte [0x423020], 8
jne 0x40ad00
mov eax, dword [0x423164]
or eax, dword [0x4231f0]
jne 0x40acef
mov eax, dword [0x434420]
test eax, eax
je 0x40ad50
mov edx, dword [0x4231c4]
mov eax, dword [0x4231c0]
call sym._WCMD_filesize64
mov dword [esp], str._n_____Total_files_listed:_n_1_8d__files_2_25s__bytes_n
mov dword [esp + 8], eax
mov eax, dword [0x4231f8]
mov dword [esp + 4], eax
call sym._WCMD_output
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
call sym._WCMD_filesize64
mov dword [esp], str._1_8d__directories__2_18s__bytes_free_n_n
mov dword [esp + 8], eax
mov eax, dword [0x4231e4]
mov dword [esp + 4], eax
call sym._WCMD_output
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, eax
mov eax, dword fs:[0x18]
mov edi, dword [eax + 0x34]
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Writing_trailer_for__s_gave__ld__ld__n
mov dword [esp + 8], str.WCMD_dir_trailer
mov dword [esp + 4], 0x423020
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x40ac88
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
call sym._WCMD_filesize64
mov dword [esp], str.__1_18s__bytes_free_n_n
mov dword [esp + 4], eax
call sym._WCMD_output
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40e6f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x24]
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadConsoleW]
sub esp, 0x14
test eax, eax
je 0x40e770
mov esi, dword [ebp - 0x24]
xor eax, eax
test esi, esi
je 0x40e767
lea esi, [esi]
movzx edx, word [ebx + eax*2]
cmp dx, 0xa
je 0x40e8e0
cmp dx, 0xd
je 0x40e8e0
inc eax
cmp esi, eax
jne 0x40e738
xor eax, eax
cmp esi, dword [ebp + 0xc]
sete al
sub esi, eax
xor eax, eax
mov word [ebx + esi*2], ax
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x34], eax
call dword [sym.imp.kernel32.dll_GetOEMCP]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov dword [esp], edi
call sym._xalloc
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x20], 0
mov edi, eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 0
mov dword [esp], ecx
mov ecx, dword [sym.imp.kernel32.dll_SetFilePointerEx]
mov dword [esp + 0x10], 1
mov dword [ebp - 0x30], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0
call ecx
mov ecx, dword [ebp + 0xc]
sub esp, 0x14
mov dword [esp + 8], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 4], edi
mov dword [esp], ecx
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x40e900
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40e900
lea edx, [edi + eax]
movzx esi, word [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
mov eax, edi
cmp edi, edx
jae 0x40e910
lea esi, [esi]
nop
movzx ecx, byte [eax]
cmp cl, 0xd
sete dl
cmp cl, 0xa
je 0x40e8f0
test dl, dl
jne 0x40e8f0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.user32.dll_CharNextExA]
mov edx, dword [ebp - 0x24]
sub esp, 0xc
add edx, edi
cmp eax, edx
jb 0x40e820
mov ecx, eax
sub ecx, edi
cmp byte [eax], 0xd
sete dl
lea eax, [ecx + 1]
movzx edx, dl
mov dword [ebp - 0x34], ecx
add eax, edx
mov dword [esp + 0x10], 0
cdq
add dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
adc dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], edx
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0xc], 0
call eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x34]
sub esp, 0x14
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
sub esp, 0x18
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x40e755
mov esi, eax
jmp 0x40e755
sub eax, edi
mov ecx, eax
lea eax, [eax + 1]
jmp 0x40e868
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
xor eax, eax
jmp 0x40e767
cmp byte [edi], 0xd
mov eax, 1
sete dl
jmp 0x40e868
Function at 0x4128b0
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x12c
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._WCMD_skip_leading_spaces
cmp word [eax], 0
je 0x412938
mov esi, eax
mov ebx, 0x438140
xor edi, edi
jmp 0x4128e9
inc edi
add ebx, 0x14
cmp edi, 0x2f
je 0x412948
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0x1001
mov dword [esp], 0x400
call dword [sym.imp.kernel32.dll_CompareStringW]
sub esp, 0x18
cmp eax, 2
jne 0x4128e0
mov dword [esp], edi
call sym._WCMD_LoadMessage
mov dword [ebp + 8], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp sym._WCMD_output_asis
mov dword [esp], 0x3e8
jmp 0x412921
mov ebx, str.ATTRIB
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0x1001
mov dword [esp], 0x400
call dword [sym.imp.kernel32.dll_CompareStringW]
sub esp, 0x18
cmp eax, 2
je 0x4129ad
add ebx, 0x14
cmp ebx, 0x4380fc
jne 0x41294d
mov dword [esp], 0x3f5
call sym._WCMD_LoadMessage
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._WCMD_output
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
lea ecx, [ebp - 0x118]
lea esi, [esi]
movzx edx, word [esi + eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x4129b8
cmp word [ebp - 0x118], 0
mov edx, ecx
je 0x4129e1
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x4129d8
xor eax, eax
mov ebx, 0x20
jmp 0x4129f7
movzx ebx, word [eax + 0x436408]
mov word [edx + eax], bx
add eax, 2
test bx, bx
jne 0x4129f0
mov dword [esp + 4], 0
mov dword [esp], ecx
call sym._WCMD_run_program
jmp 0x4129a5
Function at 0x417150
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov eax, 0xfffffff5
mov ebp, esp
mov edx, dword [ebp + 8]
pop ebp
jmp sym._WCMD_output_asis_handle

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

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
push ebx
sub esp, 0x83c
mov dword [ebp - 0x830], edx
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_GetStdHandle]
mov dword [ebp - 0x838], eax
call eax
mov dword [ebp - 0x834], eax
mov eax, dword [0x4243e4]
sub esp, 4
test eax, eax
jne 0x4171e8
cmp word [edi], 0
mov edx, edi
je 0x417332
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x4171b8
sub edx, dword [ebp - 0x830]
sar edx, 1
mov ecx, dword [ebp - 0x834]
mov eax, dword [ebp - 0x830]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp sym._WCMD_output_asis_len
mov eax, dword [ebp - 0x830]
movzx edx, word [eax]
test dx, dx
je 0x4172ad
lea esi, [esi]
cmp dx, 0xa
je 0x4172ad
mov edi, dword [0x42338c]
mov ecx, dword [0x4243a4]
xor eax, eax
mov ebx, dword [ebp - 0x830]
jmp 0x417241
movzx edx, word [ebx + 2]
add ebx, 2
inc ecx
test dx, dx
setne byte [ebp - 0x829]
cmp dx, 0xa
setne al
and al, byte [ebp - 0x829]
je 0x417249
cmp ecx, edi
jl 0x417220
test al, al
je 0x41724f
mov dword [0x4243a4], ecx
cmp dx, 0xa
lea eax, [ebx + 2]
mov ecx, dword [ebp - 0x834]
cmove ebx, eax
mov eax, dword [ebp - 0x830]
mov edx, ebx
sub edx, eax
sar edx, 1
call sym._WCMD_output_asis_len
mov eax, dword [0x4232ec]
mov edi, dword [0x423384]
mov dword [0x4243a4], 0
inc eax
lea edx, [edi - 1]
mov dword [0x4232ec], eax
cmp eax, edx
jge 0x4172b8
movzx edx, word [ebx]
test dx, dx
je 0x41732a
mov dword [ebp - 0x830], ebx
test dx, dx
jne 0x417200
mov ebx, dword [ebp - 0x830]
jmp 0x41724f
mov eax, dword [0x4243dc]
mov dword [0x4232ec], 0
cmp word [eax], 0
je 0x417339
mov edx, eax
nop
add edx, 2
cmp word [edx], 0
jne 0x4172d0
sub edx, eax
sar edx, 1
mov ecx, dword [ebp - 0x834]
lea edi, [ebp - 0x81c]
call sym._WCMD_output_asis_len
mov dword [esp], 0xfffffff6
mov eax, dword [ebp - 0x838]
call eax
lea edx, [ebp - 0x818]
sub esp, 4
mov dword [esp + 4], edx
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x400
mov dword [esp], eax
call sym._WCMD_ReadFile
movzx edx, word [ebx]
test dx, dx
jne 0x41729e
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor edx, edx
jmp 0x4171c9
xor edx, edx
jmp 0x4172dd
Function at 0x417340
Capabilities:
Terminate process
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 0x417360
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x20]
mov dword [esp + 0x10], 0
mov esi, eax
mov ebx, edx
mov dword [esp + 0xc], edi
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [ebp - 0x2c], ecx
call dword [sym.imp.kernel32.dll_WriteConsoleW]
sub esp, 0x14
test eax, eax
jne 0x417354
mov eax, dword [0x434434]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
test eax, eax
jne 0x417420
mov eax, dword [0x4243c8]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x417450
mov dword [ebp - 0x30], ecx
call dword [sym.imp.kernel32.dll_GetConsoleOutputCP]
lea edx, [ebp - 0x1c]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x1c], edx
mov edx, dword [ebp - 0x2c]
mov dword [esp + 0x18], 0x43705e
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], 0xffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
sub esp, 0x20
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], ecx
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
jmp 0x417354
add ebx, ebx
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp + 0x10], 0
mov dword [esp], ecx
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x30], ecx
mov dword [esp], 0xffff
call dword [sym.imp.ucrtbase.dll_malloc]
mov ecx, dword [ebp - 0x30]
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x417477
mov eax, dword [ebp - 0x2c]
mov dword [0x4243c8], eax
jmp 0x4173b1
test byte [0x423030], 2
jne 0x41748d
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.Out_of_memory_n
mov dword [esp + 8], str.xalloc
mov dword [esp + 4], 0x423030
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_3
jmp 0x417480

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

Disassembly:
push ebp
mov eax, 0xfffffff4
mov ebp, esp
mov edx, dword [ebp + 8]
pop ebp
jmp sym._WCMD_output_asis_handle
Function at 0x419030
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 0x419070
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x57
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp sym._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 0x419148
test eax, eax
je 0x419148
xor eax, eax
mov edx, 0x2f
jmp 0x4190c7
movzx edx, word [eax + 0x4366e2]
mov word [eax + 0x430420], dx
add eax, 2
test dx, dx
jne 0x4190c0
mov dword [esp + 4], edi
mov dword [esp], 0x400
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov dword [0x4231f0], 0
sub esp, 8
mov dword [esp], ebx
call sym._WCMD_setshow_default
mov eax, dword [0x4231f0]
test eax, eax
jne 0x419130
mov edx, dword [0x430408]
mov dword [esi + 8], edi
mov eax, 1
mov dword [esi], edx
test edx, edx
je 0x41911d
mov eax, dword [edx + 4]
inc eax
mov dword [esi + 4], eax
mov dword [0x430408], 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
jmp 0x419126
mov ebx, dword [sym.imp.kernel32.dll_LocalFree]
mov dword [esp], esi
call ebx
push edx
mov dword [esp], edi
call ebx
push ecx
test byte [0x423010], 2
je 0x419126
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.WCMD_pushd
mov dword [esp + 4], 0x423010
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x419126
Function at 0x41b7d0
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov eax, dword [0x4231c8]
test eax, eax
je 0x41b940
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], 0x428400
call ebx
test eax, eax
jne 0x41b8f0
mov edi, 1
test byte [0x423010], 8
jne 0x41b8c0
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 0x41b968
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
mov esi, eax
test eax, eax
je 0x41b928
call sym._WCMD_dupenv.part.0
mov dword [ebx + 8], eax
test eax, eax
je 0x41b92f
mov eax, dword [0x4231c8]
mov eax, dword [eax + 4]
mov dword [ebx + 0xc], eax
mov eax, dword [0x434424]
mov dword [0x434424], ebx
mov dword [ebx], eax
mov eax, dword [0x4231d8]
mov dword [0x4231d8], 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], 0x423010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x41b81a
mov dword [esp + 4], str.ENABLEDELAYEDEXPANSION
mov dword [esp], 0x42c400
call ebx
test eax, eax
je 0x41b808
mov dword [esp + 4], str.DISABLEDELAYEDEXPANSION
mov dword [esp], 0x428400
call ebx
test eax, eax
jne 0x41b948
xor edi, edi
jmp 0x41b80d
mov dword [ebx + 8], 0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_LocalFree]
sub esp, 4
jmp 0x41b8a7
ret
mov dword [esp + 4], str.DISABLEDELAYEDEXPANSION
mov dword [esp], 0x42c400
call ebx
test eax, eax
je 0x41b91e
mov edi, dword [0x4231d8]
jmp 0x41b80d
test byte [0x423010], 2
je 0x41b8b3
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.WCMD_setlocal
mov dword [esp + 4], 0x423010
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x41b8b3