joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424600
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [0x42c854]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
cmp ebx, 0x42c854
jne 0x42462a
jmp 0x424640
mov ebx, dword [ebx]
cmp ebx, 0x42c854
je 0x424640
cmp edi, dword [ebx + 0xc]
jne 0x424620
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
test esi, esi
je 0x42473f
mov dword [esp + 8], 0x1410
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 ebx, eax
test eax, eax
je 0x42462f
mov dword [eax + 8], esi
lea edx, [ebx + 0x30]
mov ecx, 0x4b0
mov dword [eax + 0xc], edi
mov eax, dword [ebp + 8]
mov edi, edx
mov edx, 0xffffffff
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x10], eax
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x1c], eax
xor eax, eax
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x12f0], 1
rep stosd dword es:[edi], eax
mov eax, 0xffffffff
mov byte [ebx + 0x1304], 0
mov dword [ebx + 0x1408], eax
mov eax, dword [0x42c854]
mov dword [ebx + 0x12f4], 0
mov dword [ebx + 0x12f8], 0
mov dword [ebx + 0x12fc], 0
mov dword [ebx], eax
mov dword [ebx + 0x1300], 0
mov dword [ebx + 0x140c], edx
mov dword [ebx + 4], 0x42c854
mov dword [eax + 4], ebx
lea eax, [ebp - 0x1c]
mov dword [0x42c854], ebx
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_IsWow64Process]
mov dword [ebx + 0x24], 0x42c000
mov eax, ebx
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0x1fffff
call dword [sym.imp.kernel32.dll_OpenProcess]
sub esp, 0xc
mov esi, eax
jmp 0x424648

Function at 0x424770
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x4247a2
mov dword [esp + 8], 0x134
mov dword [esp + 4], str._Users_gcenx_Documents_GitHub_wineskincx_programs_winedbg_winedbg.c
mov dword [esp], str.p__imageName__NULL
call dword [sym.imp.ucrtbase.dll__assert]
test esi, esi
je 0x424803
cmp word [esi], 0
je 0x424810
mov eax, esi
nop
add eax, 2
cmp word [eax], 0
jne 0x4247b0
sub eax, esi
add eax, 2
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x424803
xor edx, edx
lea esi, [esi]
movzx ecx, word [esi + edx]
mov word [eax + edx], cx
add edx, 2
test cx, cx
jne 0x4247f0
mov dword [ebx + 0x18], eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov eax, 2
jmp 0x4247be
Function at 0x424820
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.dbghelp.dll_SymInitialize
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x42488e
test esi, esi
je 0x42488e
cmp word [esi], 0
je 0x424980
mov eax, esi
nop
add eax, 2
cmp word [eax], 0
jne 0x424860
sub eax, esi
sub eax, 2
add eax, esi
jb 0x42488e
lea esi, [esi]
movzx edx, word [eax]
cmp dx, 0x2f
je 0x4248a0
cmp dx, 0x5c
je 0x4248a0
sub eax, 2
cmp eax, esi
jae 0x424878
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
sub eax, esi
mov dword [esp + 4], 0
mov edi, eax
lea edx, [edi + 0x804]
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 dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x424950
mov dword [esp + 8], 0x400
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.dbghelp.dll_SymGetSearchPathW
sub esp, 0xc
test eax, eax
je 0x424950
cmp word [ebx], 0
mov ecx, ebx
je 0x424909
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x424900
lea eax, [ecx + 2]
mov edx, 0x3b
mov dword [ebp - 0x1c], ecx
mov word [ecx], dx
mov dword [esp + 8], edi
mov dword [esp + 4], esi
xor esi, esi
mov dword [esp], eax
call sub.ucrtbase.dll_memcpy
mov ecx, dword [ebp - 0x1c]
mov word [ecx + edi + 2], si
mov dword [esp + 4], ebx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.dbghelp.dll_SymSetSearchPathW
sub esp, 8
mov edi, eax
jmp 0x424952
xor edi, edi
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 eax, edi
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xfffffffe
jmp 0x42486e

Function at 0x424a90
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
movd xmm2, dword [ebp + 0x10]
mov eax, dword fs:[0x18]
movd xmm1, ebx
punpckldq xmm1, xmm2
movq qword [ebp - 0x10], xmm1
mov dword [esp + 8], 0xd0
mov dword [esp + 4], 0
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 0x424b5f
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x18], 0
movq xmm0, qword [0x43a618]
mov dword [eax + 0x1c], 0
movq xmm1, qword [ebp - 0x10]
mov dword [eax + 0x24], 0xffffffff
and word [eax + 0x38], 6
mov byte [eax + 0x58], 0
mov dword [eax + 0x10], edx
mov edx, dword [ebp + 0x14]
movq qword [eax + 8], xmm1
mov dword [eax + 0x64], 0
mov dword [eax + 0x14], edx
lea edx, [ebx + 0x1c]
mov dword [eax + 0xbc], 0
movd xmm3, edx
movq qword [eax + 0xc0], xmm0
mov dword [eax + 0x20], 3
mov dword [eax + 0xc8], 0
movd xmm0, dword [ebx + 0x1c]
punpckldq xmm0, xmm3
movq qword [eax], xmm0
mov edx, dword [ebx + 0x1c]
mov dword [edx + 4], eax
mov dword [ebx + 0x1c], eax
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x424b70
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov eax, dword fs:[0x18]
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [ebx + 0xbc]
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
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
sub esp, 0xc
mov dword [edx + 4], eax
mov edx, dword [ebx]
mov dword [eax], edx
cmp dword [0x4425b4], ebx
je 0x424be8
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 esi
sub esp, 0xc
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov dword [0x4425b4], 0
jmp 0x424bbb

Function at 0x424c00
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x1c]
lea ebx, [esi + 0x1c]
mov edi, dword [eax]
cmp ebx, eax
je 0x424c30
lea esi, [esi]
nop
mov dword [esp], eax
call fcn.00424b70
mov eax, edi
mov edi, dword [edi]
cmp eax, ebx
jne 0x424c20
mov eax, dword [esi + 0x12f8]
xor ebx, ebx
mov edi, dword fs:[0x18]
mov ecx, dword [esi + 0x12f4]
test eax, eax
jg 0x424c5b
jmp 0x424c99
add ebx, 1
cmp dword [esi + 0x12f8], ebx
jle 0x424c99
lea eax, [ebx + ebx*2]
lea eax, [ecx + eax*8]
mov edx, dword [eax]
test edx, edx
je 0x424c50
mov eax, dword [eax + 0xc]
mov dword [esp + 4], 0
add ebx, 1
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [esi + 0x12f4]
sub esp, 0xc
cmp dword [esi + 0x12f8], ebx
jg 0x424c5b
mov dword [esp + 8], ecx
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
mov dword [esp], esi
call fcn.00419ca0
mov dword [esp], esi
call fcn.00419f20
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov edx, dword [esi]
mov dword [eax], edx
cmp dword [0x4425b8], esi
je 0x424d48
mov eax, dword [esi + 0x28]
test eax, eax
je 0x424cf4
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov eax, dword [esi + 0x18]
mov dword [esp + 4], 0
mov ebx, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword [ebx + 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
mov dword [0x4425b8], 0
jmp 0x424ce1
Function at 0x424d60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [esp + 4], str.module_load_mismatched
mov ebx, dword [sym.imp.ucrtbase.dll__stricmp]
mov dword [esp], esi
call ebx
test eax, eax
jne 0x424de8
call sub.dbghelp.dll_SymGetOptions
mov esi, eax
test edi, edi
je 0x424db0
mov dword [esp + 4], str.true
mov dword [esp], edi
call ebx
test eax, eax
jne 0x424e58
or esi, 0x40
jmp 0x424dcf
test al, 0x40
mov edx, str.false
mov eax, str.true
mov dword [esp], str.Option:_module_load_mismatched__s_n
cmove eax, edx
mov dword [esp + 4], eax
call fcn.004242a0
mov dword [esp], esi
call sub.dbghelp.dll_SymSetOptions
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.symbol_picker
mov dword [esp], esi
call ebx
test eax, eax
jne 0x424e78
test edi, edi
je 0x424e28
mov dword [esp + 4], str.interactive
mov dword [esp], edi
call ebx
test eax, eax
jne 0x424e90
mov dword [0x42c7e0], 0x41afa0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [0x42c7e0], 0x41afa0
mov eax, str.scoped
mov edx, str.interactive
mov dword [ebp + 8], str.Option:_symbol_picker__s_n
cmove eax, edx
mov dword [ebp + 0xc], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004242a0
mov dword [esp + 4], str.false
mov dword [esp], edi
call ebx
test eax, eax
jne 0x424ec8
and esi, 0xffffffbf
jmp 0x424dcf
mov dword [ebp + 0xc], esi
mov dword [ebp + 8], str.Unknown_option__s_n
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004242a0
mov dword [esp + 4], str.scoped
mov dword [esp], edi
call ebx
test eax, eax
jne 0x424eb0
mov dword [0x42c7e0], 0x41bd90
jmp 0x424dda
mov dword [ebp + 8], str.Syntax:_symbol_picker__interactivescoped__n
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004242a0
mov dword [ebp + 8], str.Syntax:_module_load_mismatched__truefalse__n
jmp 0x424eb7
Function at 0x424ff0
Capabilities:
Check if process is running under wine
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov edx, dword [0x4425b8]
test edx, edx
je 0x425027
mov eax, dword [0x4425ac]
mov dword [esp], str.WineDbg_starting_on_pid__04lx_n
mov dword [esp + 4], eax
call fcn.004242a0
mov eax, dword [0x4425b8]
mov eax, dword [eax + 0x2c]
test eax, eax
jne 0x425148
mov dword [0x4422d4], 1
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00425650
mov eax, dword [0x42c854]
mov ebx, dword [eax]
cmp eax, 0x42c854
je 0x425073
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, 0x42c854
jne 0x425058
lea eax, [ebp - 0x10]
mov dword [esp + 4], str.SoftwareWineWineDbg
mov ebx, 0x442220
mov dword [esp + 8], eax
lea esi, [ebp - 0xc]
mov dword [esp], 0x80000001
call sub.advapi32.dll_RegCreateKeyA
sub esp, 0xc
test eax, eax
je 0x4250ab
jmp 0x425110
add ebx, 0x10
cmp ebx, 0x4422d0
je 0x4250f8
cmp dword [ebx + 8], ebx
jne 0x4250a0
mov eax, dword [ebx]
add ebx, 0x10
mov dword [ebp - 0xc], eax
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov eax, dword [ebx - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.advapi32.dll_RegSetValueExA
sub esp, 0x18
cmp ebx, 0x4422d0
jne 0x4250ab
lea esi, [esi]
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
test byte [0x42c85c], 2
je 0x425106
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], 0x42c85c
mov dword [esp], 1
call fcn.00423d60
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
call fcn.0041efe0
jmp 0x425027
Function at 0x425260
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags
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 - 0x38], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strlen]
lea ecx, [ebp - 0x1c]
mov dword [esp + 4], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov eax, dword [0x42c878]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x34], eax
call eax
sub esp, 0xc
mov ecx, eax
test eax, eax
je 0x42541d
mov edi, 2
mov ebx, 0x10
mov dword [ebp - 0x2c], ecx
add dword [0x42c87c], 1
mov esi, edi
mov edi, ebx
mov eax, dword fs:[0x18]
mov dword [ebp - 0x30], eax
jmp 0x425317
movzx eax, byte [ebp - 0x1d]
mov edx, dword [ebp - 0x2c]
mov byte [edx + ebx], al
lea ebx, [esi + 1]
cmp al, 0xa
je 0x425408
mov esi, ebx
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x1d]
mov dword [esp + 8], 1
lea ebx, [esi - 2]
mov dword [esp + 4], eax
mov eax, dword [0x42c874]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x4253d0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4253d0
cmp edi, esi
jae 0x425300
lea esi, [esi]
add edi, edi
cmp edi, esi
jb 0x425360
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4253a0
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
sub esp, 0x10
mov dword [ebp - 0x2c], eax
jmp 0x425300
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
mov eax, dword [ebp - 0x34]
call eax
sub esp, 0xc
mov dword [ebp - 0x2c], eax
jmp 0x425300
mov ecx, dword [ebp - 0x2c]
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, 0xffffffff
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x38]
mov byte [edx + esi - 1], 0
mov dword [eax], edx
lea esp, [ebp - 0xc]
pop ebx
lea eax, [esi - 1]
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x2c], eax
mov dword [esp + 8], 0x1e0
mov dword [esp + 4], str._Users_gcenx_Documents_GitHub_wineskincx_programs_winedbg_dbg.y
mov dword [esp], str.buffer___NULL
call dword [sym.imp.ucrtbase.dll__assert]
mov ecx, dword [ebp - 0x2c]
jmp 0x4252d5
Function at 0x425450
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, dword [0x42c884]
mov edi, dword [0x42c880]
test esi, esi
je 0x4254d0
mov edx, dword [sym.imp.ucrtbase.dll_strlen]
lea ecx, [edi + esi]
mov dword [esp], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edx
call edx
mov ecx, dword [ebp + 0xc]
lea ebx, [ecx - 1]
cmp ebx, eax
cmova ebx, eax
mov dword [esp + 8], ebx
mov ecx, dword [ebp - 0x30]
add esi, ebx
mov dword [esp + 4], ecx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.ucrtbase.dll_memcpy
mov eax, dword [ebp + 8]
mov dword [0x42c884], esi
mov byte [eax + ebx], 0
mov dword [esp], edi
mov edx, dword [ebp - 0x2c]
call edx
cmp esi, eax
jb 0x4254c3
mov dword [0x42c884], 0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x1c], 0
xor ebx, ebx
call fcn.004282e0
lea edx, [ebp - 0x1c]
mov eax, str.Wine_dbg_
call fcn.00425260
test eax, eax
js 0x4254c3
cmp eax, 1
mov edi, dword [ebp - 0x1c]
mov edx, dword [0x42c880]
jle 0x425540
lea ecx, [edi + eax - 2]
cmp byte [ecx], 0xd
je 0x425580
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 dword [0x42c880], edi
sub esp, 0xc
mov esi, dword [0x42c884]
jmp 0x425469
test edx, edx
je 0x4255a8
test eax, eax
jne 0x425597
cmp dword [0x42c878], 0xffffffff
je 0x425506
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]
mov edi, dword [0x42c880]
sub esp, 0xc
jmp 0x425530
movzx ebx, word [0x43c21c]
mov word [ecx], bx
test edx, edx
je 0x4255a8
cmp eax, 2
jne 0x425506
cmp byte [edi], 0xa
jne 0x425506
jmp 0x425548
xor edx, edx
jmp 0x425506

Function at 0x4255b0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edx, [ebp - 0x1c]
push ebx
sub esp, 0x2c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], 0
mov edi, dword [ebp + 0x10]
call fcn.00425260
mov ebx, eax
xor eax, eax
test ebx, ebx
js 0x42563d
mov esi, dword [ebp - 0x1c]
jne 0x4255e5
jmp 0x4255f2
sub ebx, 1
je 0x4255f2
movzx eax, byte [esi + ebx - 1]
cmp al, 0xa
je 0x4255e0
cmp al, 0xd
je 0x4255e0
lea eax, [edi - 1]
cmp ebx, edi
mov dword [esp + 4], esi
cmovge ebx, eax
mov dword [esp + 8], ebx
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.ucrtbase.dll_memcpy
mov eax, dword [ebp + 0xc]
mov byte [eax + ebx], 0
mov dword [esp + 8], esi
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, 1
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x427d30
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
lea edx, [ebp - 0x220]
push esi
mov esi, ecx
push ebx
lea ebx, [ebp - 0x11c]
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], ebx
mov dword [esp], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x43ab98
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
sub esp, 0x10
mov dword [esp], ebx
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 ebx, eax
cmp eax, 0xffffffff
je 0x427ee9
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 + 0x10], 0
mov dword [esp + 8], eax
mov eax, dword [sym.imp.kernel32.dll_WriteFile]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], edi
mov dword [esp], ebx
mov dword [ebp - 0x22c], eax
call eax
lea edx, [esi + 8]
mov esi, dword [esi + 4]
sub esp, 0x14
test esi, esi
je 0x427e95
mov edi, edx
lea esi, [esi]
lea eax, [ebp - 0x224]
mov dword [esp], ebx
add edi, 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0x43a78d
mov eax, dword [ebp - 0x22c]
call eax
sub esp, 0x14
mov dword [esp], esi
mov ecx, dword [ebp - 0x230]
call ecx
lea edx, [ebp - 0x224]
mov dword [esp + 4], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp], ebx
mov eax, dword [ebp - 0x22c]
call eax
mov esi, dword [edi - 4]
sub esp, 0x14
test esi, esi
jne 0x427e28
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], ebx
mov eax, dword [ebp - 0x22c]
call eax
sub esp, 0x14
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_SetFilePointer]
sub esp, 0x10
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret

Function at 0x4280a0
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], 0x43c300
mov dword [esp], eax
call fcn.00428060
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll_exit]
lea esi, [esi]
nop
Function at 0x4281a0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov eax, dword [0x44465c]
test eax, eax
js 0x428210
mov edx, dword [0x444658]
cmp eax, edx
jg 0x428210
cmp eax, edx
mov ecx, dword [0x444660]
mov ebx, dword [sym.imp.kernel32.dll_HeapAlloc]
jge 0x428240
mov edx, dword fs:[0x18]
mov edx, dword [edx + 0x30]
lea esi, [eax + 1]
mov dword [0x44465c], esi
lea esi, [ecx + eax*4]
mov eax, dword [ebp + 8]
mov edx, dword [edx + 0x18]
mov dword [esp + 4], 0
add eax, 1
mov dword [esp + 8], eax
mov dword [esp], edx
call ebx
mov dword [esi], eax
sub esp, 0xc
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 8], 0x29
mov dword [esp + 4], str._Users_gcenx_Documents_GitHub_wineskincx_programs_winedbg_debug.l
mov dword [esp], str.0___next_lexeme__next_lexeme___alloc_lexeme__1
call dword [sym.imp.ucrtbase.dll__assert]
mov eax, dword [0x44465c]
mov edx, dword [0x444658]
jmp 0x4281bb
add edx, 0x20
mov dword [0x444658], edx
shl edx, 2
mov eax, dword fs:[0x18]
test ecx, ecx
je 0x428290
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
sub esp, 0x10
mov ecx, eax
mov dword [0x444660], ecx
test ecx, ecx
je 0x4282b0
mov eax, dword [0x44465c]
jmp 0x4281cb
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
mov ecx, eax
jmp 0x42827a
mov dword [esp + 8], 0x2e
mov dword [esp + 4], str._Users_gcenx_Documents_GitHub_wineskincx_programs_winedbg_debug.l
mov dword [esp], str.local_lexemes
call dword [sym.imp.ucrtbase.dll__assert]
mov ecx, dword [0x444660]
jmp 0x428284
Function at 0x42abc0
Capabilities:
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 sub.ucrtbase.dll__configure_narrow_argv
call sub.ucrtbase.dll__initialize_narrow_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___argv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_narrow_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 0x42ac30
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.0042b190
mov dword [esp], eax
call sub.ucrtbase.dll_exit
jmp dword [sym.imp.ucrtbase.dll__set_app_type]