joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402952
Capabilities:
Encode data using xor

Disassembly:
inc eax
pop esi
xor dword [esi + 0xe], 0x1df6627
sub esi, 0xfffffffc
loop 0x402955
int3

Function at 0x40b718
Capabilities:
Terminate process

Disassembly:
call fcn.004097e6
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
fmul qword [ecx]
xchg ecx, eax
dec ebp
rcl byte [eax - 0xd]
call fcn.0040b916
push eax
pop ecx
push ebx
mov ecx, dword [eax + ebp*8 - 1]
ljmp 0xcbc0
Function at 0x40375c
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x403785
cmp al, 0x22
je 0x40377d
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x403771
cmp byte [esi], 0x22
jne 0x40378f
inc esi
jmp 0x40378f
cmp al, 0x20
jle 0x40378f
inc esi
cmp byte [esi], 0x20
jg 0x403789
mov al, byte [esi]
test al, al
je 0x403799
cmp al, 0x20
jle 0x403782
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
call fcn.00403807
push 0x405004
push section..data
call fcn.004037ed
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x4037c9
movzx eax, word [ebp - 0x14]
jmp 0x4037cc
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.0040381f
push esi
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x161bd98
Capabilities:
Encode data using xor

Disassembly:
neg cl
push edi
mov bl, 0xf7
xor eax, dword [eax]
jmp 0x161bda2
pushal
call 0x161bda8
pop ebp
sub ebp, 0x10
sub ebp, 0x121bd98
jmp 0x161bdbe
in eax, dx
cwde
mov ebp, 0x4e90121
add byte [eax], al
add byte [edi - 0x35], ah
sub byte [esi + 0x21bd98b8], al
add dword [ebx], eax
lds eax, [ecx + 0x4cc0]
add byte [ecx + 0x5f5], bh
mov eax, 0x121bd98
add eax, ebp
add eax, 0x4c
mov ecx, 0x5f5
mov edx, 0xe1d4a12d
xor byte [eax], dl
inc eax
dec ecx
jne 0x161bdd5
jmp 0x161bde8
cmpsb byte [esi], byte es:[edi]
loopne 0x161bd91
movsb byte es:[edi], byte [esi]
adc dword [0xecac2d2d], ebp
aad 0x2d
sub eax, 0x95e02e2d
sub dword [0x5972d2d], ebp
sub eax, 0xcfda2d2d
in eax, 0xa6
lodsb al, byte [esi]
and dword [0xe82e2d2d], ebp
jge 0x161bdb0
dec ecx
or ecx, edx
movsb byte es:[edi], byte [esi]
sub dword [ecx], ecx
inc ebp
xor dword [edx + 0x56452d23], eax
and edi, dword [esi]
sub al, 0x2c
add dword [ecx], ecx
inc ebp
aad 0xfe
ficomp dword [esi]
lds ebp, [eax]
sub eax, 0x1dc42d2d
sub eax, 0xa0782d2d
inc ecx
or dword [0x2d25a8a6], ebp
sub eax, 0x21b8a62d
sub eax, 0xa0a62d2d
cmp eax, 0xec2d2d2d
les ebp, [edi]
sbb al, 0x2f
scasb al, byte es:[edi]
out dx, eax
sub dword [edx - 0x58], esp
invalid
Function at 0x402e30
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x20
test byte [0x416010], 8
jne 0x402e80
movzx eax, byte [ebx]
cmp al, 0x5c
je 0x402e70
cmp al, 0x7b
je 0x402e70
cmp al, 0x7d
je 0x402eb8
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_strlen]
add esp, 0x20
mov edx, ebx
mov ecx, eax
pop ebx
mov eax, esi
pop esi
pop ebp
jmp dbg.HLPFILE_RtfAddRawString
mov dword [esi], 0
jmp 0x402e54
mov eax, edx
call sym._wine_dbgstr_an.constprop.0_1
mov dword [esp + 0xc], 0x417393
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.HLPFILE_RtfAddControl
mov dword [esp + 4], 0x416010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x402e45
mov dword [esi], 1
jmp 0x402e54
Function at 0x402f50
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x3c
cmp dword [ebp + 0x14], 1
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], ecx
sbb edi, edi
mov dword [ebp - 0x20], edx
and edi, 0xfffffff0
add edi, 0x31
cmp dword [ebp + 0x14], 1
sbb ecx, ecx
and ecx, 0xfffffff0
add ecx, 0x30
cmp esi, 0xffffffff
jne 0x402f95
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], ecx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov ecx, dword [ebp - 0x24]
mov esi, eax
lea edx, [esi + edi]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x24], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x403090
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov dword [edi], eax
mov eax, dword [ebp - 0x1c]
add ecx, edi
mov dword [edi + 4], ecx
mov dword [esp], ecx
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [ebp - 0x1c], ecx
call sym._memcpy
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0xc]
mov byte [ecx + esi], 0
movzx ecx, byte [edi + 0xc]
mov dword [edi + 8], eax
movzx eax, byte [ebp + 0x14]
and ecx, 0xfffffffc
add eax, eax
or al, byte [ebp + 0x10]
and eax, 3
or eax, ecx
mov ecx, dword [ebx + 0x20]
mov byte [edi + 0xc], al
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x10], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebx + 0x1c], edi
mov dword [edi + 0x1c], eax
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x24], eax
movzx eax, byte [0x416010]
test ecx, ecx
je 0x40303e
test al, 1
jne 0x4030b0
mov edx, dword [ebp + 0x14]
test edx, edx
jne 0x4030a0
mov dword [ebx + 0x20], edi
test al, 8
je 0x403090
mov eax, dword [edi + 4]
mov esi, dword [edi + 0x10]
mov ebx, dword [edi + 8]
call sym._wine_dbgstr_an.constprop.0_1
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov eax, dword [edi]
mov dword [esp + 0xc], str.Link__d__to__s__08lx:_d_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.HLPFILE_AllocLink
mov dword [esp + 4], 0x416010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebx + 0x10]
mov dword [edi + 0x18], ecx
jmp 0x403048
mov dword [esp + 0xc], str.Pending_link_n
mov dword [esp + 8], str.HLPFILE_AllocLink
mov dword [esp + 4], 0x416010
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
mov edx, dword [ebp + 0x14]
movzx eax, byte [0x416010]
test edx, edx
je 0x403045
jmp 0x4030a0
Function at 0x407b80
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x407ba0
sub dword [eax + 0x48], 1
jne 0x407ba0
pop ebp
jmp sym._HLPFILE_FreeHlpFile.part.0
pop ebp
ret
Function at 0x40aa60
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
push ebx
sub esp, 0x10
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 4], 0
add eax, 1
mov dword [esp + 8], eax
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
mov ebx, eax
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strcpy]
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret

Function at 0x40b0e0
Capabilities:
Hide graphical window

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x34
test byte [0x416750], 8
jne 0x40b118
mov eax, dword [0x41678c]
test eax, eax
je 0x40b10a
mov edx, dword [eax + 0x10]
test edx, edx
je 0x40b140
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
mov dword [esp + 0xc], 0x418704
mov dword [esp + 8], str.MACRO_History
mov dword [esp + 4], 0x416750
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x40b0fa
mov dword [esp + 0x2c], eax
mov eax, dword [0x416784]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xcf0000
mov dword [esp + 8], 0x418711
mov dword [esp + 4], str.WHHistory
mov dword [esp], 0
call sym._CreateWindowExA_48
sub esp, 0x30
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._ShowWindow_8
mov ecx, dword [ebp - 4]
sub esp, 8
leave
lea esp, [ecx - 4]
ret

Function at 0x40bcaa
Capabilities:
Check if file exists
Get file attributes

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
push ecx
sub esp, 0x20
mov ebx, dword [ecx]
test byte [0x416750], 8
jne 0x40bce0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
sub esp, 4
cmp eax, 0xffffffff
setne al
lea esp, [ebp - 8]
pop ecx
movzx eax, al
pop ebx
pop ebp
lea esp, [ecx - 4]
ret 4
mov eax, ebx
call sym._wine_dbgstr_an.constprop.0_2
mov dword [esp + 0xc], str.__s__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.MACRO_FileExist
mov dword [esp + 4], 0x416750
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x40bcbd
Function at 0x40c28a
Capabilities:
Get process heap flags

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
sub esp, 0x38
mov esi, dword [ecx]
call dbg.MACRO_CurrentWindow
mov ebx, dword [eax + 8]
test byte [0x416750], 8
jne 0x40c340
mov eax, dword [ebx + 0x28]
mov edi, dword fs:[0x18]
mov eax, dword [eax + 0xa0]
mov dword [esp + 4], 0
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]
sub esp, 0xc
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov edx, dword [ebx + 0x28]
mov dword [esp + 4], 0
add eax, 1
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x1c], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [edx + 0xa0], eax
mov eax, dword [ebx + 0x28]
mov eax, dword [eax + 0xa0]
test eax, eax
je 0x40c32c
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strcpy]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 4
mov eax, esi
call sym._wine_dbgstr_an.constprop.0_2
mov dword [esp + 0xc], str.__s__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.MACRO_SetHelpOnFile
mov dword [esp + 4], 0x416750
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x40c2ab
Function at 0x40c52a
Capabilities:
Get process heap flags

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
sub esp, 0x38
mov ebx, dword [ecx]
mov edi, dword [ecx + 4]
test byte [0x416750], 8
jne 0x40c670
test ebx, ebx
je 0x40c640
mov dword [esp + 4], 0x3e
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_strchr]
test eax, eax
mov dword [ebp - 0x1c], eax
je 0x40c640
mov eax, dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp], ebx
mov dword [ebp - 0x20], eax
call eax
mov dword [esp + 4], 0
add eax, 1
mov dword [esp + 8], eax
mov ecx, dword fs:[0x18]
mov eax, dword [ecx + 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 0x40c65f
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strcpy]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov ecx, edx
sub ecx, ebx
mov byte [esi + ecx], 0
mov ecx, esi
sub ecx, ebx
add edx, ecx
lea ebx, [edx + 1]
mov dword [ebp - 0x1c], edx
mov dword [esp], ebx
call eax
test eax, eax
je 0x40c5ef
mov edx, dword [ebp - 0x1c]
add eax, edx
jmp 0x40c5ea
mov byte [eax], 0
sub eax, 1
cmp eax, edx
je 0x40c5ef
cmp byte [eax], 0x20
je 0x40c5e0
mov dword [esp], edi
call dbg.HLPFILE_Hash
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], esi
call dbg.MACRO_JumpHash@12
sub esp, 0xc
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]
sub esp, 0xc
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov dword [esp], edi
call dbg.HLPFILE_Hash
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], ebx
call dbg.MACRO_JumpHash@12
sub esp, 0xc
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov eax, edi
call sym._wine_dbgstr_an.constprop.0_2
mov esi, eax
mov eax, ebx
call sym._wine_dbgstr_an.constprop.0_2
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__s___s__n
mov dword [esp + 8], str.MACRO_JumpID
mov dword [esp + 4], 0x416750
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x40c546
Function at 0x40de00
Capabilities:
Get process heap flags

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
sub esp, 0x48
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x20], eax
call dbg.MACRO_CurrentWindow
mov dword [ebp - 0x24], eax
test byte [0x416750], 8
jne 0x40df50
mov esi, dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp], edi
call esi
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call esi
mov ecx, dword [ebp - 0x20]
mov ebx, eax
mov dword [esp], ecx
call esi
mov edx, dword [ebp - 0x28]
mov dword [esp + 4], 0
mov ecx, dword fs:[0x18]
lea edx, [edx + ebx + 0x2b]
add eax, edx
mov dword [esp + 8], eax
mov eax, dword [ecx + 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 0x40df3f
mov edx, dword [sym.imp.ucrtbase.dll_strcpy]
lea ecx, [eax + 0x28]
mov dword [eax + 0x24], 0
mov dword [eax], 0
mov dword [ebp - 0x2c], edx
mov dword [esp + 4], edi
mov dword [esp], ecx
mov dword [ebp - 0x28], ecx
call edx
mov ecx, dword [ebp - 0x28]
mov dword [ebx + 4], ecx
mov dword [esp], edi
call esi
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
lea edi, [ecx + eax + 1]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], edx
mov dword [esp], edi
mov dword [esp + 4], eax
call edx
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 8], edi
mov dword [esp], eax
call esi
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
lea esi, [edi + eax + 1]
mov dword [esp + 4], ecx
mov dword [esp], esi
call edx
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], 0x1f4
lea ecx, [eax + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x40df32
mov edx, 0x1f4
lea esi, [esi]
mov eax, dword [eax + 0x10]
add eax, 1
cmp edx, eax
cmovb edx, eax
mov dword [ebx + 0x10], edx
mov eax, dword [ecx]
lea ecx, [eax + 0x24]
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x40df18
mov eax, dword [ebp - 0x24]
mov dword [ecx], ebx
mov dword [esp], eax
call dbg.WINHELP_LayoutMainWindow
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov eax, dword [ebp - 0x20]
call sym._wine_dbgstr_an.constprop.0_2
mov esi, eax
mov eax, dword [ebp - 0x1c]
call sym._wine_dbgstr_an.constprop.0_2
mov ebx, eax
mov eax, edi
call sym._wine_dbgstr_an.constprop.0_2
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__s___s___s__n
mov dword [esp + 8], global___func__.5
mov dword [esp + 4], 0x416750
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x40de37
Function at 0x40e340
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x6c
mov dword [esp + 0xc], global_emptyW
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb
mov dword [esp], ebx
call sym._SendMessageW_16
mov eax, dword [esi + 0x28]
sub esp, 0x10
mov eax, dword [eax + 0x60]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x443
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x448
mov dword [esp], ebx
call sym._SendMessageW_16
mov eax, dword [esi + 8]
sub esp, 0x10
test eax, eax
je 0x40e483
mov dword [esp + 0xc], edi
mov edx, dword [esi + 0x210]
lea edi, [ebp - 0x48]
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [esp], eax
call dbg.HLPFILE_BrowsePage
mov esi, eax
test eax, eax
jne 0x40e4d8
mov edx, dword [ebp - 0x44]
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 dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea eax, [ebp - 0x64]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 0xd6
mov dword [esp], ebx
call sym._SendMessageW_16
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x5c], 0
sub esp, 0x10
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x5c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x4de
mov dword [esp], ebx
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0xb
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp], ebx
mov dword [esp + 0xc], 0x401
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call sym._RedrawWindow_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x44]
mov dword [esp + 8], 2
mov dword [esp + 4], 0x449
mov dword [rd.allocated], eax
lea eax, [ebp - 0x54]
mov dword [esp + 0xc], eax
mov dword [esp], ebx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], dbg.WINHELP_RtfStreamIn
call sym._SendMessageW_16
mov edx, dword [ebp - 0x44]
mov esi, dword [rd.force_color]
sub esp, 0x10
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
test esi, esi
je 0x40e547
sub esi, 1
jmp 0x40e436
xor esi, esi
jmp 0x40e436
Function at 0x40f3a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3dc
test byte [0x416988], 8
jne 0x40f538
mov eax, dword [0x416784]
lea esi, [ebp - 0x27a]
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], esi
mov dword [esp + 4], 0x12c
mov dword [esp], eax
call sym._LoadStringA_16
mov edi, dword [sym.imp.ucrtbase.dll_strlen]
sub esp, 0x10
mov dword [esp], esi
call edi
lea ebx, [esi + eax + 1]
mov eax, 0x70
mov word [ebx + 4], ax
mov eax, dword [0x416784]
add ebx, 6
mov dword [ebx - 6], 0x6c682e2a
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0xff
mov dword [esp + 4], 0x12b
mov dword [esp], eax
call sym._LoadStringA_16
sub esp, 0x10
mov dword [esp], ebx
call edi
lea eax, [ebx + eax + 1]
lea ebx, [ebp - 0x37e]
mov dword [eax], 0x2a2e2a
mov byte [eax + 4], 0
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3d6], 0x58
sub esp, 8
mov byte [eax], 0
mov eax, dword [0x41678c]
test eax, eax
je 0x40f472
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x3d2], eax
mov eax, dword [0x416784]
mov dword [ebp - 0x3ca], esi
mov dword [ebp - 0x3ce], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3aa], ebx
mov dword [ebp - 0x3ba], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c6], 0
mov dword [ebp - 0x3b6], eax
lea eax, [ebp - 0x3d6]
mov dword [esp], eax
mov dword [ebp - 0x3c2], 0
mov dword [ebp - 0x3be], 1
mov dword [ebp - 0x3b2], 0
mov dword [ebp - 0x3ae], 0
mov dword [ebp - 0x3a6], 0
mov dword [ebp - 0x3a2], 0x800005
mov dword [ebp - 0x39e], 0
mov dword [ebp - 0x39a], 0
mov dword [ebp - 0x396], 0
mov dword [ebp - 0x392], 0
mov dword [ebp - 0x38e], 0
call sym._GetOpenFileNameA_4
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0x41959d
mov dword [esp + 8], global___func__
mov dword [esp + 4], 0x416988
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x40f3b9
Function at 0x412f30
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], 0x419a57
mov dword [esp], eax
call sym._fprintf.constprop.0
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll_exit]
lea esi, [esi]
nop
Function at 0x4152d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x41532b
cmp byte [esi + ebx - 1], 0xa
je 0x4152ff
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x41c204], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x415950
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call dbg.__wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x415b18
mov edi, dword [0x41c204]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x415a38
test byte [0x416a28], 8
jne 0x415ac0
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x416a38], 8
jne 0x415a88
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4159da
cmp esi, 3
jbe 0x415a40
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x4159eb
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x41a2a8]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x4159da
mov dword [esp], 0x416a38
call dbg.__wine_dbg_get_channel_flags
test al, 8
je 0x4159b1
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x4159b1
mov dword [esp], 0x416a28
call dbg.__wine_dbg_get_channel_flags
test al, 8
je 0x41599e
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [esp + 0x28]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x4159a4
mov eax, 0xffffffff
jmp 0x415a38

Function at 0x415c00
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 sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__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 sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.main
mov dword [esp], eax
call sym._exit