joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d150
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
mov ebx, eax
lea eax, [ebp - 0x4c]
sub esp, 0xd0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
lea edx, [ebp - 0x8c]
xor eax, eax
mov ecx, 0x10
mov dword [ebp - 0x90], 0x44
mov edi, edx
sub esp, 4
rep stosd dword es:[edi], eax
mov dword [ebp - 0x64], 1
mov eax, 1
test byte [ebp - 0x20], 1
je 0x41d19d
movzx eax, word [ebp - 0x1c]
mov word [ebp - 0x60], ax
cmp dword [0x4422b0], 1
lea edx, [ebp - 0xa0]
mov dword [esp + 0x24], edx
lea edx, [ebp - 0x90]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], edx
sbb eax, eax
mov dword [esp + 0x18], 0
and eax, 2
mov dword [esp + 0x10], 0
add eax, 0x11
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateProcessA]
sub esp, 0x28
test eax, eax
je 0x41d2a0
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x41d270
mov dword [0x4425ac], eax
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], fcn.0041ce10
call fcn.00424600
mov dword [0x4425b8], eax
test eax, eax
je 0x41d2b0
mov dword [eax + 0x2c], 1
mov eax, dword [0x442208]
cmp eax, ebx
je 0x41d25b
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov dword [0x442208], ebx
mov eax, 1
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret
mov dword [esp + 4], ebx
mov dword [esp], str.Debuggee_has_been_started___s__nBut_WineDbg_isnt_attached_to_it._Maybe_youre_trying_to_debug_a_winelib_wrapper____nTry_to_attach_to_one_of_those_processes:_n
call fcn.004242a0
mov dword [esp], 0x64
call dword [sym.imp.kernel32.dll_Sleep]
sub esp, 4
call fcn.00415740
jmp 0x41d25b
mov dword [esp + 4], ebx
mov dword [esp], str.Couldnt_start_process__s_n
call fcn.004242a0
xor eax, eax
jmp 0x41d260

Function at 0x41d2c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea ebx, [ebp - 0x418]
sub esp, 0x430
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathW]
sub esp, 8
test eax, eax
jne 0x41d2f8
lea esp, [ebp - 8]
mov eax, 0xffffffff
pop ebx
pop esi
pop ebp
ret
lea esi, [ebp - 0x210]
mov dword [esp + 8], 0
mov dword [esp + 0xc], esi
mov dword [esp + 4], 0x438a3e
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
sub esp, 0x10
test eax, eax
je 0x41d2e9
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x4000080
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov dword [esp + 4], 0xc0010000
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x41efe0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov dword [0x4422d4], 0
jmp fcn.0041db00
Function at 0x41eff0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x4425b8]
mov ebx, dword [ebp + 8]
test eax, eax
jne 0x41f0c0
mov esi, dword [0x44220c]
test esi, esi
je 0x41f100
test ebx, ebx
je 0x41f0d8
mov eax, ebx
mov edx, 2
lea esi, [esi]
lea esi, [esi]
mov eax, dword [eax + 4]
add edx, 1
test eax, eax
jne 0x41f030
shl edx, 2
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
test eax, eax
je 0x41f0b4
mov dword [eax], esi
mov eax, 1
lea esi, [esi]
nop
mov edx, dword [ebx]
mov ebx, dword [ebx + 4]
mov dword [edi + eax*4], edx
add eax, 1
test ebx, ebx
jne 0x41f058
mov dword [edi + eax*4], 0
mov eax, edi
call fcn.0041cf60
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], edi
mov ebx, eax
call esi
test ebx, ebx
je 0x41f0f0
mov eax, ebx
call fcn.0041d150
test eax, eax
je 0x41f0f0
mov dword [0x4422d4], 0
call fcn.0041db00
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00419e90
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp + 8], str.Already_attached_to_a_process._Use_detach_or_kill_before_using_run_n
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004242a0
mov eax, dword [0x442208]
test eax, eax
je 0x41f109
call fcn.0041d150
jmp 0x41f091
mov dword [ebp + 8], ebx
add esp, 0x1c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
jmp eax
mov dword [ebp + 8], str.No_active_target_to_be_restarted_n
jmp 0x41f0c7
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll__strdup]
mov dword [0x442208], eax
jmp 0x41f0e1
Function at 0x41f600
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x230
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], 0xfffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov dword [0x442260], 0
sub esp, 4
mov dword [0x4422d0], eax
lea edx, [ebx + 4]
cmp esi, 3
je 0x41f660
lea eax, [esi - 1]
cmp eax, 3
je 0x41f780
cmp eax, 1
je 0x41f760
mov eax, 1
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 4], edx
mov dword [esp], 2
call fcn.0041f120
test eax, eax
jne 0x41f7f8
mov dword [ebp - 0x117], 0x696e696d
mov eax, 0x2220
mov dword [ebp - 0x113], 0x706d7564
lea ebx, [ebp - 0x117]
mov word [ebp - 0x10f], ax
lea esi, [ebp - 0x21b]
mov dword [esp], 0x104
mov dword [esp + 4], esi
call dword [sym.imp.kernel32.dll_GetTempPathA]
lea eax, [ebp - 0x10d]
sub esp, 8
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x43917b
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
sub esp, 0x10
mov dword [esp], ebx
call sub.ucrtbase.dll_strlen
mov ecx, 0x22
mov word [ebx + eax], cx
lea eax, [ebp - 0x10e]
mov dword [esp + 4], eax
mov dword [esp], str.Capturing_program_state_in__s_n
call fcn.004242a0
mov dword [esp], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.detach
call fcn.00427d30
mov ebx, eax
cmp eax, 0xffffffff
je 0x41f64d
mov eax, dword [0x4425b8]
mov eax, dword [eax + 0x2c]
test eax, eax
jne 0x41f810
mov dword [0x4422d4], 1
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.00425650
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 4], edx
mov dword [esp], 1
call fcn.0041f120
test eax, eax
je 0x41f678
jmp 0x41f652
mov esi, dword [ebx + 4]
add ebx, 8
mov dword [esp], 2
mov dword [esp + 4], ebx
call fcn.0041f120
test eax, eax
jne 0x41f652
lea ebx, [ebp - 0x117]
mov eax, 0x2220
mov dword [ebp - 0x117], 0x696e696d
mov dword [ebp - 0x113], 0x706d7564
mov word [ebp - 0x10f], ax
test esi, esi
je 0x41f69e
lea eax, [ebp - 0x10d]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strcpy]
mov dword [esp], ebx
call sub.ucrtbase.dll_strlen
mov edx, 0x22
mov word [ebx + eax], dx
jmp 0x41f705
mov esi, dword [ebx + 4]
add ebx, 8
mov dword [esp], 1
mov dword [esp + 4], ebx
call fcn.0041f120
jmp 0x41f796
mov dword [0x4422d4], 0
call fcn.0041db00
jmp 0x41f738

Function at 0x41fa40
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
sub esp, 0x14
mov eax, dword [eax]
test eax, eax
je 0x41fa5b
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
sub esp, 4
mov eax, dword [ebx + 8]
test eax, eax
je 0x41fa6e
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0x41fa82
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov dword [esp + 8], ebx
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]
mov ebx, dword [ebp - 4]
sub esp, 0xc
leave
ret
Function at 0x420960
Capabilities:
Create process memory minidump

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x40
mov esi, dword [ebp + 0xc]
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 [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x420a20
mov ebx, eax
test esi, esi
je 0x4209da
mov eax, dword [0x4425b4]
mov dword [ebp - 0x1c], esi
lea esi, [ebp - 0x14]
mov dword [ebp - 0x18], 0x4422e0
mov dword [ebp - 0xc], 0
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [0x4425b8]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov edx, dword [eax + 0xc]
mov dword [esp + 4], edx
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.dbghelp.dll_MiniDumpWriteDump
sub esp, 0x1c
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x420a30
Capabilities:
Get process heap flags
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x94
cmp dword [ebp + 8], 1
mov dword [ebp - 0x6c], 1
jne 0x420bba
test byte [0x42c824], 8
jne 0x420bc8
mov dword [esp + 8], 0xc
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_HeapAlloc]
sub esp, 0xc
mov dword [ebp - 0x70], eax
test eax, eax
je 0x420c20
mov ebx, dword [ebp - 0x70]
xor eax, eax
mov edx, 0xffffffff
mov dword [ebx], eax
mov dword [ebx + 8], 0
mov dword [ebx + 4], edx
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], 1
mov dword [esp + 4], 0x80000000
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x1c
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x420c00
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
sub esp, 0x18
mov dword [ebx + 8], eax
test eax, eax
je 0x420c00
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
sub esp, 0x14
mov dword [ebx], eax
test eax, eax
je 0x420c00
lea eax, [ebp - 0x60]
mov dword [ebp - 0x5c], 0x42aa60
mov dword [ebp - 0x6c], 1
mov dword [esp + 4], eax
lea eax, [ebp - 0x50]
mov dword [esp], eax
call fcn.0042ab30
test eax, eax
jne 0x420c40
lea eax, [ebp - 0x60]
mov edx, dword fs:[0]
mov dword [eax], edx
mov dword fs:[0], eax
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
cmp dword [eax], 0x504d444d
je 0x420c29
mov eax, dword [ebp - 0x60]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x6c]
test eax, eax
jne 0x420c07
mov eax, dword [ebp - 0x6c]
mov ebx, dword [ebp - 4]
leave
ret
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esp + 0xc], str.Processing_Minidump_file__s_n
mov dword [esp + 8], str.minidump_reload
mov dword [esp + 4], 0x42c824
mov dword [esp], 3
mov dword [esp + 0x10], eax
call fcn.0041fb40
jmp 0x420a58
mov dword [ebp - 0x6c], 1
mov eax, dword [ebp - 0x70]
call fcn.0041fa40
mov eax, dword [ebp - 0x6c]
mov ebx, dword [ebp - 4]
leave
ret
mov dword [ebp - 0x6c], 2
jmp 0x420bba
mov eax, dword [ebp - 0x70]
call fcn.0041fbd0
mov dword [ebp - 0x6c], eax
jmp 0x420baa
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esp], str.Unexpected_fault_while_reading_minidump__s_n
mov dword [esp + 4], eax
call fcn.004242a0
mov dword [0x4425ac], 0
jmp 0x420bb3
Function at 0x420cd0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, 2
push ebx
sub esp, 0x3c
call sub.dbghelp.dll_SymGetOptions
mov ebx, eax
and eax, 0xfffeffe9
or eax, 0x10010
mov dword [esp], eax
call sub.dbghelp.dll_SymSetOptions
sub esp, 4
mov dword [esp + 4], 1
mov dword [esp], 0x3e8
call sub.dbghelp.dll_SymSetExtendedOption
sub esp, 8
mov dword [ebp - 0x1c], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x87654321
call fcn.00424820
test eax, eax
je 0x420eaa
mov ecx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp], 0
mov edi, dword fs:[0x18]
mov dword [esp + 8], eax
mov dword [ebp - 0x24], ecx
call ecx
sub esp, 0x18
mov edx, eax
lea eax, [eax + eax]
mov dword [ebp - 0x20], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x420ec1
mov edx, dword [ebp - 0x20]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x14], edx
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0x24]
call ecx
sub esp, 0x18
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0x87654321
call fcn.00424990
mov dword [esp + 8], esi
mov dword [esp + 4], 0
test eax, eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
je 0x420eb8
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
sub esp, 0xc
test eax, eax
je 0x420f00
mov dword [esp], str.Non_supported_mode..._errors_may_occur_nUse_at_your_own_risks_n
xor esi, esi
call fcn.004242a0
mov dword [esp + 4], 1
mov dword [esp], 0x3e8
call sub.dbghelp.dll_SymSetExtendedOption
sub esp, 8
mov dword [esp + 8], 0x87654321
mov dword [esp + 4], 1
mov dword [esp], 0x42c834
call fcn.00424600
mov dword [0x4425ac], 1
mov dword [0x4425b8], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.00424a90
mov dword [0x4425b4], eax
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov esi, 2
mov dword [esp], 0x87654321
call sub.dbghelp.dll_SymCleanup
sub esp, 4
mov dword [esp], ebx
call sub.dbghelp.dll_SymSetOptions
mov eax, dword [ebp - 0x1c]
sub esp, 4
mov dword [esp], 0x3e8
mov dword [esp + 4], eax
call sub.dbghelp.dll_SymSetExtendedOption
mov eax, esi
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor esi, esi
jmp 0x420ec6
Function at 0x4221a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x55c
mov eax, dword [ebp + 8]
add eax, 0x18
mov dword [ebp - 0x53c], eax
mov ecx, eax
lea eax, [ebp - 0x538]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00421b20
test eax, eax
je 0x4221d9
cmp dword [ebp - 0x538], 0xb
je 0x4221e8
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x534]
mov dword [esp + 4], 0xd
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x53c]
mov dword [esp], eax
call fcn.00421100
test eax, eax
je 0x4221d9
mov dword [ebp - 0x420], 0
mov eax, dword [ebp - 0x534]
test eax, eax
je 0x4221d9
lea ebx, [ebp - 0x424]
jmp 0x422250
mov edx, 0x100
cmp eax, edx
cmovbe edx, eax
add dword [ebp - 0x420], 0x100
sub eax, edx
mov dword [ebp - 0x534], eax
test eax, eax
je 0x4221d9
mov edx, 0x100
cmp eax, edx
cmova eax, edx
mov dword [ebp - 0x424], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 7
mov eax, dword [ebp - 0x53c]
mov dword [esp], eax
call fcn.00421100
mov edx, eax
mov eax, dword [ebp - 0x534]
test edx, edx
je 0x422230
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x1c]
mov dword [ebp - 0x528], edx
mov edx, dword [ebp - 0x424]
cmp eax, edx
cmovbe edx, eax
test edx, edx
je 0x422230
lea edi, [ebp - 0x52c]
xor esi, esi
jmp 0x4222cc
mov eax, dword [ebp - 0x534]
add esi, 1
mov edx, dword [ebp - 0x424]
cmp eax, edx
cmovbe edx, eax
cmp esi, edx
jae 0x422230
mov eax, dword [ebx + esi*4 + 8]
mov dword [ebp - 0x52c], eax
lea eax, [ebp - 0x530]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], edi
call fcn.00421100
test eax, eax
je 0x4222b0
mov eax, dword [ebp - 0x530]
test eax, eax
je 0x4222b0
lea edx, [ebp - 0x524]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x100
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 0x530]
sub esp, 0x20
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]
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x524]
sub esp, 0xc
mov dword [esp], edx
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_strcmp]
test eax, eax
jne 0x4222b0
mov eax, dword [ebp + 8]
mov edx, edi
call fcn.004220b0
jmp 0x4221db
Function at 0x4234a0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov dword [esp + 8], eax
lea eax, [ebp - 0x20]
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.00421100
mov ebx, eax
test eax, eax
jne 0x4234e0
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
lea eax, [ebp - 0xc]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
lea eax, [ebp + 8]
mov dword [esp], eax
call fcn.00421100
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov ebx, eax
test eax, eax
jne 0x423538
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, ebx
sub esp, 0xc
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov ebx, 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcscmp]
xor edx, edx
test eax, eax
mov eax, dword [ebp + 0x10]
sete dl
mov dword [eax], edx
mov edx, dword [ebp - 0xc]
mov eax, dword fs:[0x18]
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 esi
sub esp, 0xc
jmp 0x423506
Function at 0x424090
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended
Get common file path
Terminate process

Disassembly:
push ebp
xor eax, eax
mov ecx, 0x10
mov ebp, esp
push edi
lea edx, [ebp - 0x250]
push ebx
lea ebx, [ebp - 0x210]
mov edi, edx
sub esp, 0x2a0
mov dword [ebp - 0x254], 0x44
rep stosd dword es:[edi], eax
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
mov edx, ebx
sub esp, 8
cmp word [ebp - 0x210], 0
je 0x4240e9
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x4240e0
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + str.winedbg.exe]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4240f0
lea eax, [ebp - 0x26c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64DisableWow64FsRedirection]
sub esp, 4
call dword [sym.imp.kernel32.dll_GetCommandLineW]
lea edx, [ebp - 0x264]
mov dword [esp], ebx
mov dword [esp + 0x24], edx
lea edx, [ebp - 0x254]
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
jne 0x4241d3
test byte [0x42c85c], 2
jne 0x424195
mov eax, dword [ebp - 0x26c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64RevertWow64FsRedirection]
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret
mov eax, dword fs:[0x18]
mov edi, dword [eax + 0x34]
mov eax, ebx
call fcn.00423e50
mov dword [esp + 0xc], str.failed_to_restart_64_bit__s__err__ld_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.restart_if_wow64
mov dword [esp + 0x14], edi
mov dword [esp + 4], 0x42c85c
mov dword [esp], 1
call fcn.00423d60
jmp 0x42417c
test byte [0x42c85c], 8
jne 0x424234
xor eax, eax
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetConsoleCtrlHandler]
push edx
push edx
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x264]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
lea eax, [ebp - 0x268]
push ecx
push ecx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x264]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
push ebx
push ebx
mov eax, dword [ebp - 0x268]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ExitProcess]
mov eax, ebx
call fcn.00423e50
mov dword [esp + 0xc], str.restarting__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.restart_if_wow64
mov dword [esp + 4], 0x42c85c
mov dword [esp], 3
call fcn.00423d60
jmp 0x4241dc
Function at 0x4242a0
Capabilities:
Write file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
add ecx, 4
sub esp, 0x48
mov eax, dword [ecx - 4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0x1000
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x4435e0
mov dword [esp], 6
mov dword [esp + 4], 0
call dword [sym.imp.ucrtbase.dll___stdio_common_vsprintf]
mov edx, 0xffffffff
test eax, eax
cmovns edx, eax
mov dword [ebp - 0x34], edx
cmp edx, 0xfff
ja 0x424444
test eax, eax
jle 0x42445a
mov edi, dword [0x4435c0]
mov dword [ebp - 0x2c], 0x4435e0
mov esi, dword [ebp - 0x34]
lea eax, [edi + 0x4425c0]
mov ecx, 0x1000
sub ecx, edi
cmp ecx, esi
cmova ecx, esi
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x2c]
mov ebx, ecx
mov dword [esp], eax
sub esi, ebx
mov dword [esp + 4], edx
call sub.ucrtbase.dll_memcpy
lea ecx, [ebx + edi]
add dword [ebp - 0x2c], ebx
mov dword [0x4435c0], ecx
mov ebx, ecx
jmp 0x42436e
cmp byte [ebx + 0x4425bf], 0xa
lea eax, [ebx - 1]
je 0x4243d8
mov ebx, eax
test ebx, ebx
jne 0x424360
test esi, esi
jle 0x424435
lea eax, [ebp - 0x1c]
mov dword [esp + 8], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [ebp - 0x30], ecx
mov dword [esp + 4], 0x4425c0
mov eax, dword [0x4422d0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov ecx, dword [ebp - 0x30]
mov edi, dword [0x4435c0]
sub esp, 0x14
mov dword [esp], 0x4425c0
sub edi, ecx
add ecx, 0x4425c0
mov dword [esp + 8], edi
mov dword [esp + 4], ecx
call dword [sym.imp.ucrtbase.dll_memmove]
jmp 0x424320
lea eax, [ebp - 0x1c]
mov dword [esp + 8], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x4425c0
mov eax, dword [0x4422d0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov edi, dword [0x4435c0]
sub esp, 0x14
mov dword [esp], 0x4425c0
sub edi, ebx
add ebx, 0x4425c0
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
call dword [sym.imp.ucrtbase.dll_memmove]
test esi, esi
mov dword [0x4435c0], edi
jg 0x424320
mov eax, dword [ebp - 0x34]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [0x43a614]
mov dword [ebp - 0x34], 0xfff
mov dword [0x4445dc], eax
jmp 0x424310
mov dword [ebp - 0x34], 0
jmp 0x424435