joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a1f0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov edi, dword fs:[0x18]
sub esp, 0x1c
mov esi, dword [ebp + 8]
cmp dword [edi + 0x20], esi
je 0x41a270
mov dword [esp + 8], 0
xor ebx, ebx
mov dword [esp + 4], esi
mov dword [esp], dbg.tgt_process_active_close_process
call dbg.dbg_add_process
mov dword [0x4ad5f8], eax
test eax, eax
je 0x41a266
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_DebugActiveProcess]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41a290
mov dword [esp + 4], 0
mov ebx, 1
mov dword [esp], str.DBGHELP_NOLIVE
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
mov eax, dword [0x4ad5f8]
sub esp, 8
mov dword [eax + 0x34], 1
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.WineDbg_cant_debug_its_own_process._Please_use_another_process_ID._n
xor ebx, ebx
call dbg.dbg_printf
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [edi + 0x34]
mov dword [esp + 4], esi
mov dword [esp], str.Cant_attach_process__04lx:_error__lu_n
mov dword [esp + 8], eax
call dbg.dbg_printf
mov eax, dword [0x4ad5f8]
mov dword [esp], eax
call dbg.dbg_del_process
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x41b7d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x4ad5f8]
mov ebx, dword [ebp + 8]
test eax, eax
jne 0x41b8a0
mov esi, dword [0x4ad24c]
test esi, esi
je 0x41b8e0
test ebx, ebx
je 0x41b8b8
mov eax, ebx
mov edx, 2
lea esi, [esi]
lea esi, [esi]
mov eax, dword [eax + 4]
add edx, 1
test eax, eax
jne 0x41b810
shl edx, 2
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
test eax, eax
je 0x41b894
mov dword [eax], esi
mov eax, 1
lea esi, [esi]
nop
mov edx, dword [ebx]
mov dword [edi + eax*4], edx
mov ebx, dword [ebx + 4]
add eax, 1
test ebx, ebx
jne 0x41b838
mov dword [edi + eax*4], 0
mov eax, edi
call dbg.dbg_build_command_line
mov dword [esp], edi
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov ebx, eax
call esi
test ebx, ebx
je 0x41b8d0
mov eax, ebx
call dbg.dbg_start_debuggee
test eax, eax
je 0x41b8d0
mov dword [0x4ad314], 0
call dbg.wait_exception
mov dword [esp + 4], 0
mov dword [esp], 0
call dbg.source_list_from_addr
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 dbg.dbg_printf
mov eax, dword [0x4ad248]
test eax, eax
je 0x41b8e9
call dbg.dbg_start_debuggee
jmp 0x41b871
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 0x41b8a7
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll__strdup]
mov dword [0x4ad248], eax
jmp 0x41b8c1
Function at 0x41bdf0
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]
lea ecx, [ebx + 4]
mov dword [0x4ad2a0], 0
mov dword [0x4ad310], eax
sub esp, 4
cmp esi, 3
je 0x41be50
lea edx, [esi - 1]
cmp edx, 3
je 0x41bf70
mov eax, 1
cmp edx, 1
je 0x41bf50
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 4], ecx
mov dword [esp], 2
call dbg.dbg_active_attach
test eax, eax
jne 0x41bfe8
mov eax, 0x2220
lea ebx, [ebp - 0x117]
mov dword [ebp - 0x117], 0x696e696d
mov dword [ebp - 0x113], 0x706d7564
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], 0x4407e7
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
sub esp, 0x10
mov dword [esp], ebx
call sym._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 dbg.dbg_printf
mov dword [esp], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.detach
call dbg.parser_generate_command_file
mov ebx, eax
cmp eax, 0xffffffff
je 0x41c018
mov eax, dword [0x4ad5f8]
mov eax, dword [eax + 0x34]
test eax, eax
jne 0x41c000
mov dword [esp + 4], ebx
mov dword [esp], 0
mov dword [0x4ad314], 1
call dbg.parser_handle
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 4], ecx
mov dword [esp], 1
call dbg.dbg_active_attach
test eax, eax
je 0x41be68
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov esi, dword [ebx + 4]
add ebx, 8
mov dword [esp], 2
mov dword [esp + 4], ebx
call dbg.dbg_active_attach
test eax, eax
jne 0x41be42
mov eax, 0x2220
lea ebx, [ebp - 0x117]
mov dword [ebp - 0x117], 0x696e696d
mov dword [ebp - 0x113], 0x706d7564
mov word [ebp - 0x10f], ax
test esi, esi
je 0x41be8e
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 sym._strlen
mov edx, 0x22
mov word [ebx + eax], dx
jmp 0x41bef5
mov esi, dword [ebx + 4]
add ebx, 8
mov dword [esp], 1
mov dword [esp + 4], ebx
call dbg.dbg_active_attach
jmp 0x41bf86
mov dword [0x4ad314], 0
call dbg.wait_exception
jmp 0x41bf28
mov eax, 1
jmp 0x41be42
Function at 0x41d100
Capabilities:
Create process memory minidump

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x40
mov eax, dword [ebp + 8]
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 dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x41d1c0
mov ebx, eax
test esi, esi
je 0x41d17a
mov eax, dword [0x4ad5f4]
mov dword [ebp - 0x18], 0x4ad320
mov dword [ebp - 0xc], 0
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x1c], esi
lea esi, [ebp - 0x14]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [0x4ad5f8]
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 sym._MiniDumpWriteDump_28
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 0x41f410
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 [esp + 8], eax
lea eax, [ebp - 0x20]
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [ebp - 0x1c], edx
call dbg.types_get_info
mov ebx, eax
test eax, eax
jne 0x41f450
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 dbg.types_get_info
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov ebx, eax
test eax, eax
jne 0x41f4a8
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 [type2.id]
sete dl
mov dword [eax], edx
mov edx, dword [ebp - 0xc]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
jmp 0x41f476
Function at 0x41f570
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x538]
push ebx
sub esp, 0x55c
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0xffffffff
lea ebx, [eax + 0x18]
jne 0x41f5b3
jmp 0x41f5cb
mov eax, dword [ebp - 0x538]
cmp eax, 0x11
jne 0x41f5d8
mov dword [esp + 8], ebx
mov dword [esp + 4], 3
mov dword [esp], ebx
call dbg.types_get_info
test eax, eax
je 0x41f5cb
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], ebx
call dbg.types_get_info
test eax, eax
jne 0x41f590
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0xb
jne 0x41f5cb
lea eax, [ebp - 0x534]
mov dword [esp + 4], 0xd
mov dword [esp + 8], eax
mov dword [esp], ebx
call dbg.types_get_info
test eax, eax
je 0x41f5cb
mov dword [ebp - 0x420], 0
mov eax, dword [ebp - 0x534]
test eax, eax
je 0x41f5cb
mov dword [ebp - 0x53c], ebx
lea esi, [ebp - 0x424]
jmp 0x41f640
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 0x41f5cb
mov edx, 0x100
mov dword [esp + 8], esi
cmp eax, edx
mov dword [esp + 4], 7
cmova eax, edx
mov dword [ebp - 0x424], eax
mov eax, dword [ebp - 0x53c]
mov dword [esp], eax
call dbg.types_get_info
mov edx, eax
mov eax, dword [ebp - 0x534]
test edx, edx
je 0x41f620
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 0x528], edx
mov edx, dword [ebp - 0x424]
cmp eax, edx
cmovbe edx, eax
test edx, edx
je 0x41f620
xor ebx, ebx
lea edi, [ebp - 0x530]
jmp 0x41f6bc
mov eax, dword [ebp - 0x534]
mov edx, dword [ebp - 0x424]
add ebx, 1
cmp eax, edx
cmovbe edx, eax
cmp edx, ebx
jbe 0x41f620
mov eax, dword [esi + ebx*4 + 8]
mov dword [esp + 8], edi
mov dword [esp + 4], 1
mov dword [ebp - 0x52c], eax
lea eax, [ebp - 0x52c]
mov dword [esp], eax
call dbg.types_get_info
test eax, eax
je 0x41f6a0
mov eax, dword [ebp - 0x530]
test eax, eax
je 0x41f6a0
lea ecx, [type.id]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], ecx
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 edx, dword [ebp - 0x530]
sub esp, 0x20
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]
mov eax, dword [ebp + 0xc]
sub esp, 0xc
mov dword [esp + 4], eax
lea eax, [type.id]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strcmp]
test eax, eax
jne 0x41f6a0
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x52c]
call dbg.types_get_udt_element_lvalue
jmp 0x41f5cd
Function at 0x421300
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
push ebx
lea edx, [ebp - 0x250]
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 0x421359
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x421350
xor eax, eax
mov ecx, 0x5c
jmp 0x42136f
movzx ecx, word [eax + str.winedbg.exe]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x421368
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 0x42144b
test byte [0x43a85c], 2
jne 0x42140d
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 sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0xc], str.failed_to_restart_64_bit__s__err__ld_n
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.restart_if_wow64
mov dword [esp + 4], 0x43a85c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_10
jmp 0x4213f4
test byte [0x43a85c], 8
jne 0x4214ae
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_SetConsoleCtrlHandler]
push eax
push eax
mov eax, dword [ebp - 0x264]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
lea eax, [ebp - 0x268]
push edx
push edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x264]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x268]
push ecx
push ecx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ExitProcess]
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0_1
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], 0x43a85c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_10
jmp 0x421454
Function at 0x421520
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 + 0x10], eax
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], global_buf
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 - 0x38], edx
cmp edx, 0xfff
ja 0x421718
test eax, eax
jle 0x421709
mov ebx, dword [0x4ae600]
mov eax, dword [ebp - 0x38]
mov edx, global_buf
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ebx
lea esi, [esi]
mov ecx, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
mov eax, 0x1000
sub eax, ecx
cmp eax, ebx
cmova eax, ebx
add ecx, 0x4ad600
cmp eax, 4
jae 0x421670
test eax, eax
je 0x4215da
movzx ebx, byte [edx]
mov byte [ecx], bl
test al, 2
jne 0x42172e
mov edi, dword [ebp - 0x2c]
sub dword [ebp - 0x30], eax
add edx, eax
add edi, eax
mov dword [0x4ae600], edi
mov esi, edi
jmp 0x421602
cmp byte [esi + 0x4ad5ff], 0xa
lea eax, [esi - 1]
je 0x4216a0
mov esi, eax
test esi, esi
jne 0x4215f0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], edx
test eax, eax
jle 0x421709
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [0x4ad310]
mov dword [esp + 8], edi
mov dword [esp + 4], 0x4ad600
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov ebx, dword [0x4ae600]
lea eax, [edi + 0x4ad600]
sub esp, 0x14
sub ebx, edi
mov dword [esp + 4], eax
mov dword [ebp - 0x2c], ebx
mov dword [esp + 8], ebx
mov dword [esp], 0x4ad600
call dword [sym.imp.ucrtbase.dll_memmove]
mov edx, dword [ebp - 0x34]
jmp 0x4215a8
mov esi, dword [edx]
mov edi, dword [ebp - 0x2c]
mov dword [edi + 0x4ad600], esi
lea edi, [ecx + 4]
mov esi, dword [edx + eax - 4]
and edi, 0xfffffffc
mov dword [ecx + eax - 4], esi
sub ecx, edi
mov esi, edx
sub esi, ecx
add ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x4215da
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x34], edx
mov dword [esp + 0xc], eax
mov eax, dword [0x4ad310]
mov dword [esp + 8], esi
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0x4ad600
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov ebx, dword [0x4ae600]
sub esp, 0x14
sub ebx, esi
add esi, 0x4ad600
mov dword [esp], 0x4ad600
mov dword [ebp - 0x2c], ebx
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
call dword [sym.imp.ucrtbase.dll_memmove]
mov edx, dword [ebp - 0x30]
mov dword [0x4ae600], ebx
test edx, edx
mov edx, dword [ebp - 0x34]
jg 0x4215a8
mov eax, dword [ebp - 0x38]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [0x4af61c], 0x2e2e2e
mov dword [ebp - 0x38], 0xfff
jmp 0x421590
movzx esi, word [edx + eax - 2]
mov word [ecx + eax - 2], si
jmp 0x4215da
Function at 0x4225e0
Capabilities:
Check if process is running under wine
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov edx, dword [0x4ad5f8]
test edx, edx
je 0x422618
mov eax, dword [0x4ad5ec]
mov dword [esp], str.WineDbg_starting_on_pid__04lx_n
mov dword [esp + 4], eax
call dbg.dbg_printf
mov eax, dword [0x4ad5f8]
mov eax, dword [eax + 0x34]
test eax, eax
jne 0x422748
mov dword [0x4ad314], 1
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.parser_handle
mov eax, dword [global_list.0]
mov ebx, dword [eax]
cmp eax, global_list.0
je 0x422663
lea esi, [esi]
mov edx, dword [eax + 0x10]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx]
mov eax, ebx
mov ebx, dword [ebx]
cmp eax, global_list.0
jne 0x422648
lea eax, [ebp - 0x20]
mov dword [esp + 4], str.SoftwareWineWineDbg
mov dword [esp + 8], eax
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegCreateKeyA]
sub esp, 0xc
test eax, eax
jne 0x422710
mov esi, dword [sym.imp.advapi32.dll_RegSetValueExA]
mov ebx, 0x4ad260
lea edi, [ebp - 0x1c]
jmp 0x4226ab
add ebx, 0x10
cmp ebx, 0x4ad310
je 0x4226f0
cmp dword [ebx + 8], ebx
jne 0x4226a0
mov eax, dword [ebx]
mov dword [esp + 0x14], 4
add ebx, 0x10
mov dword [esp + 0x10], edi
mov dword [ebp - 0x1c], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov eax, dword [ebx - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call esi
sub esp, 0x18
cmp ebx, 0x4ad310
jne 0x4226ab
nop
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x43a85c], 2
je 0x4226ff
mov dword [esp + 0xc], str.Cannot_create_WineDbg_key_in_registry_n
mov dword [esp + 8], str.dbg_save_internal_vars
mov dword [esp + 4], 0x43a85c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._dbg_active_wait_for_first_exception
jmp 0x422618
Function at 0x4228a0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x4c
mov dword [ebp - 0x30], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strlen]
lea edx, [ebp - 0x1c]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [0x43a874]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov dword [esp], 0x10
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x4229c1
add dword [0x43a878], 1
mov edi, 2
mov ebx, 0x10
jmp 0x422929
movzx ecx, byte [ebp - 0x1d]
mov edx, dword [ebp - 0x2c]
lea eax, [edi - 1]
add edi, 1
mov byte [edx + esi], cl
cmp cl, 0xa
je 0x4229b0
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], 0
lea esi, [edi - 2]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x1d]
mov dword [esp + 4], eax
mov eax, dword [0x43a870]
mov dword [esp + 8], 1
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x422990
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x422990
cmp ebx, edi
jae 0x422910
lea esi, [esi]
add ebx, ebx
cmp ebx, edi
jb 0x422970
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
test eax, eax
je 0x422990
mov dword [ebp - 0x2c], eax
jmp 0x422910
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp - 0x30]
mov byte [edx + eax], 0
mov dword [ecx], edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x1f6
mov dword [esp + 4], str._home_ubuntu_buildbot_runners_wine_wine_src_programs_winedbg_dbg.y
mov dword [esp], str.buffer___NULL
call dword [sym.imp.ucrtbase.dll__assert]
nop
Function at 0x425550
Capabilities:
Get common file path
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
lea edx, [ebp - 0x220]
lea esi, [ebp - 0x11c]
push ebx
mov ebx, ecx
push ecx
sub esp, 0x248
mov edi, dword [ecx]
mov dword [esp + 4], edx
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
lea edx, [ebp - 0x220]
sub esp, 8
mov dword [esp + 0xc], esi
mov dword [esp], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x442838
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
sub esp, 0x10
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_CreateFileA]
sub esp, 0x1c
mov esi, eax
cmp eax, 0xffffffff
je 0x425701
mov eax, dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp], edi
mov dword [ebp - 0x230], eax
call eax
lea ecx, [ebp - 0x224]
mov dword [esp + 4], edi
mov edi, dword [sym.imp.kernel32.dll_WriteFile]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov dword [esp], esi
call edi
lea edx, [ebx + 8]
mov dword [ebp - 0x22c], esi
sub esp, 0x14
mov ebx, edx
jmp 0x4256a3
lea eax, [ebp - 0x224]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x44225b
mov dword [esp], eax
call edi
mov ecx, dword [ebp - 0x230]
sub esp, 0x14
mov dword [esp], esi
call ecx
lea edx, [ebp - 0x224]
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call edi
sub esp, 0x14
mov esi, dword [ebx - 4]
add ebx, 4
test esi, esi
jne 0x425640
mov esi, dword [ebp - 0x22c]
lea eax, [ebp - 0x224]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 6
mov dword [esp + 4], str._nquit_n
mov dword [esp], esi
call edi
sub esp, 0x14
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_SetFilePointer]
sub esp, 0x10
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret

Function at 0x4258b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
sub esp, 0x14
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x443fa0
mov dword [esp], eax
call sym._fprintf.constprop.0
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll_exit]
lea esi, [esi]
nop