joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402c50
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x99754c]
sub esp, 0x11c
test eax, eax
jne 0x402d4c
push ebx
push esi
push edi
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x30]
push eax
call fcn.004042c0
add esp, 0xc
xor edi, edi
xor eax, eax
lea ebx, [ebx]
mov byte [esp + eax + 0x28], al
inc eax
cmp eax, 0x100
jb 0x402ca0
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x28]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41e100]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x28]
mov byte [esp + esi + 0x28], al
inc esi
mov byte [esp + edi + 0x28], dl
cmp esi, 0x100
jb 0x402cb0
xor edi, edi
xor ebx, ebx
xor esi, esi
lea eax, [edi + 1]
movzx edi, al
mov cl, byte [esp + edi + 0x28]
movzx edx, cl
lea eax, [edx + ebx]
movzx ebx, al
movzx eax, byte [esp + ebx + 0x28]
mov byte [esp + edi + 0x28], al
mov byte [esp + ebx + 0x28], cl
movzx eax, byte [esp + edi + 0x28]
add eax, edx
movzx eax, al
movzx eax, byte [esp + eax + 0x28]
xor al, byte [esi + 0x41e104]
mov byte [esp + esi + 0xc], al
inc esi
cmp esi, 0x1a
jb 0x402ce5
lea edx, [esp + 0xc]
call fcn.004012e0
pop edi
pop esi
pop ebx
test eax, eax
je 0x402d47
mov eax, dword [eax + 0x18]
test eax, eax
je 0x402d47
mov dword [0x99754c], eax
add esp, 0x11c
ret
mov eax, dword [0x99754c]
add esp, 0x11c
ret
Function at 0x403c70
Capabilities:
Check os version

Disassembly:
mov ecx, 1
mov edx, 0x997548
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x403d99
cmp dword fs:[0xc0], eax
je 0x403c9b
mov dword [0x997544], 1
mov eax, dword fs:[0x18]
push ebx
push esi
mov ebx, 1
mov esi, dword [eax + 0x30]
mov eax, dword [esi + 0xa4]
mov dword [0x99742c], eax
mov eax, dword [esi + 0xa8]
mov dword [0x997430], eax
movzx edx, word [esi + 0xac]
mov dword [0x997434], edx
mov eax, dword [esi + 0xb0]
mov dword [0x997438], eax
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x403cfb
push 0x7f
push eax
push 0x99743c
call fcn.004042f0
mov edx, dword [0x997434]
add esp, 0xc
jmp 0x403d03
xor eax, eax
mov word [0x99743c], ax
movzx eax, byte [esi + 0xaf]
mov ecx, 0xff
mov word [0x99753c], ax
movzx eax, word [esi + 0xae]
and ax, cx
mov word [0x99753e], ax
movzx eax, word [0x7ffe02d0]
mov word [0x997540], ax
mov ecx, eax
mov byte [0x997542], 0
cmp byte [0x7ffe0268], 0
je 0x403d4a
mov ebx, dword [0x7ffe0264]
pop esi
mov byte [0x997542], bl
cmp ebx, 1
pop ebx
jne 0x403d64
and ecx, 0xffef
mov word [0x997540], cx
test edx, edx
jne 0x403d99
call fcn.00403c70
cmp dword [0x99742c], 6
ja 0x403d99
jb 0x403d81
cmp dword [0x997430], 4
jae 0x403d99
call fcn.00403c70
cmp dword [0x99742c], 0xa
jae 0x403d99
mov dword [0x997434], 1
ret
Function at 0x41d6e2
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret
Function at 0x10006c1a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10006c59
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10006c59
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10006c59
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10006c59
cmp dword [ecx + 0x74], 0xe
jbe 0x10006c59
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10009b68
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10009c05
push ebx
push esi
call fcn.10009b31
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10009ac5
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10009bb2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10009c04
push edi
push eax
call fcn.10008597
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10009bd2
call fcn.1000868e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10009c03
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10009ac5
add esp, 0x20
test eax, eax
jne 0x10009bf1
push edi
call fcn.1000868e
jmp 0x10009bf9
push ebx
call fcn.1000868e
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10009e72
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10012f68
push 0x10012f60
push str.FlsAlloc
push 0x1f
call fcn.10009d8e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10009ea6
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001012c]
call esi
jmp 0x10009eac
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10009ef0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10012f78
push 0x10012f70
push str.FlsGetValue
push 0x21
call fcn.10009d8e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10009f27
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001012c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10009f2f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10012f80
push 0x10012f78
push str.FlsSetValue
push 0x22
call fcn.10009d8e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10009f69
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001012c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000f620
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000f64d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000f64d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x432072
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x62905979
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x432060
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4320d2
nop
nop
nop
nop
mov ebx, 0x42f314
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x566b14c5
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x402b40
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 [0x415010], 8
jne 0x402b90
movzx eax, byte [ebx]
cmp al, 0x5c
je 0x402b80
cmp al, 0x7b
je 0x402b80
cmp al, 0x7d
je 0x402bc8
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 0x402b64
mov eax, edx
call sym._wine_dbgstr_an.constprop.0_1
mov dword [esp + 0xc], 0x41637a
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.HLPFILE_RtfAddControl
mov dword [esp + 4], 0x415010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x402b55
mov dword [esi], 1
jmp 0x402b64
Function at 0x402c60
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 dword [ebp - 0x20], edx
sbb edi, edi
mov dword [ebp - 0x1c], ecx
and edi, 0xfffffff0
add edi, 0x31
cmp dword [ebp + 0x14], 1
sbb esi, esi
and esi, 0xfffffff0
add esi, 0x30
cmp dword [ebp + 8], 0xffffffff
jne 0x402c9b
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [ebp + 8], eax
mov edx, dword [ebp + 8]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
add edx, edi
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_HeapAlloc]
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x402d99
mov eax, dword [ebp - 0x20]
lea ecx, [edi + esi]
mov dword [edi + 4], ecx
mov dword [edi], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [ebp - 0x1c], ecx
call sym._memcpy
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + eax], 0
mov eax, dword [ebp + 0xc]
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 byte [edi + 0xc], al
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x10], eax
mov eax, dword [ebx + 0x1c]
mov dword [edi + 0x1c], eax
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0x1c], edi
mov dword [edi + 0x14], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebx + 0x20]
mov dword [ebx + 0x24], eax
movzx eax, byte [0x415010]
test ecx, ecx
je 0x402d47
test al, 1
jne 0x402db0
mov edx, dword [ebp + 0x14]
test edx, edx
jne 0x402da8
mov dword [ebx + 0x20], edi
test al, 8
je 0x402d99
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], 0x415010
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 0x402d51
mov dword [esp + 0xc], str.Pending_link_n
mov dword [esp + 8], str.HLPFILE_AllocLink
mov dword [esp + 4], 0x415010
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
mov edx, dword [ebp + 0x14]
movzx eax, byte [0x415010]
test edx, edx
je 0x402d4e
jmp 0x402da8
Function at 0x407580
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x4075a0
sub dword [eax + 0x48], 1
jne 0x4075a0
pop ebp
jmp sym._HLPFILE_FreeHlpFile.part.0
pop ebp
ret
Function at 0x40a990
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 [0x415750], 8
jne 0x40a9c8
mov eax, dword [0x41578c]
test eax, eax
je 0x40a9ba
mov edx, dword [eax + 0x10]
test edx, edx
je 0x40a9f0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
mov dword [esp + 0xc], 0x417704
mov dword [esp + 8], str.MACRO_History
mov dword [esp + 4], 0x415750
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x40a9aa
mov dword [esp + 0x2c], eax
mov eax, dword [0x415784]
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], 0x417711
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 0x40b570
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 [0x415750], 8
jne 0x40b5b0
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], 0x415750
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x40b58d
Function at 0x40b6d0
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 [0x415750], 8
jne 0x40b790
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]
add eax, 1
mov dword [ebp - 0x1c], 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]
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 0x40b77c
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], 0x415750
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x40b6fb
Function at 0x40b970
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 edi, dword [ecx]
mov ebx, dword [ecx + 4]
test byte [0x415750], 8
jne 0x40bac0
test edi, edi
je 0x40ba90
mov dword [esp + 4], 0x3e
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_strchr]
test eax, eax
mov dword [ebp - 0x1c], eax
je 0x40ba90
mov eax, dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp], edi
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 0x40baaf
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strcpy]
mov edx, dword [ebp - 0x1c]
mov ecx, edx
sub ecx, edi
mov byte [esi + ecx], 0
mov ecx, esi
sub ecx, edi
add edx, ecx
lea edi, [edx + 1]
mov dword [ebp - 0x1c], edx
mov dword [esp], edi
mov eax, dword [ebp - 0x20]
call eax
test eax, eax
je 0x40ba3f
mov edx, dword [ebp - 0x1c]
add eax, edx
jmp 0x40ba3a
mov byte [eax], 0
sub eax, 1
cmp eax, edx
je 0x40ba3f
cmp byte [eax], 0x20
je 0x40ba30
mov dword [esp], ebx
call dbg.HLPFILE_Hash
mov dword [esp + 4], edi
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], ebx
call dbg.HLPFILE_Hash
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], edi
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, ebx
call sym._wine_dbgstr_an.constprop.0_2
mov esi, eax
mov eax, edi
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], 0x415750
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x40b996
Function at 0x40cfa0
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 [0x415750], 8
jne 0x40d0f0
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, eax
lea edx, [edx + ebx + 0x2b]
add edx, ecx
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 0x40d0df
mov edx, dword [sym.imp.ucrtbase.dll_strcpy]
lea ecx, [eax + 0x28]
mov dword [eax + 0x24], 0
mov dword [eax], 0
mov dword [esp + 4], edi
mov dword [esp], ecx
mov dword [ebp - 0x2c], edx
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]
lea edi, [ecx + eax + 1]
mov eax, dword [ebp - 0x1c]
mov dword [esp], edi
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], edx
call edx
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 8], edi
mov dword [esp], eax
call esi
mov ecx, dword [ebp - 0x20]
lea esi, [edi + eax + 1]
mov dword [esp + 4], ecx
mov dword [esp], esi
mov edx, dword [ebp - 0x28]
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 0x40d0d2
mov edx, 0x1f4
lea esi, [esi]
nop
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 0x40d0b8
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], 0x41803c
mov dword [esp + 4], 0x415750
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x40cfd7
Function at 0x40df30
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], 0x4189fa
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 0x40e0df
mov dword [esp + 0xc], edi
mov edx, dword [esi + 0x210]
lea esi, [ebp - 0x48]
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp], eax
call dbg.HLPFILE_BrowsePage
test eax, eax
jne 0x40e028
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
xor eax, eax
jmp 0x40e092
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], 0
mov dword [rd.allocated], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x4c], dbg.WINHELP_RtfStreamIn
mov dword [esp + 0xc], eax
mov dword [esp + 8], 2
mov dword [esp + 4], 0x449
mov dword [esp], ebx
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 0x40e020
lea eax, [esi - 1]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x64]
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
Function at 0x40ec50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3dc
test byte [0x415988], 8
jne 0x40ede8
lea esi, [ebp - 0x27a]
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], esi
mov dword [esp + 4], 0x12c
mov eax, dword [0x415784]
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
add ebx, 6
mov dword [ebx - 6], 0x6c682e2a
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0xff
mov dword [esp + 4], 0x12b
mov eax, dword [0x415784]
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 - 0x3d8], 0x58
sub esp, 8
mov byte [eax], 0
mov eax, dword [0x41578c]
test eax, eax
je 0x40ed22
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x3d4], eax
mov eax, dword [0x415784]
mov dword [ebp - 0x3cc], esi
mov dword [ebp - 0x3d0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3ac], ebx
mov dword [ebp - 0x3bc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c8], 0
mov dword [ebp - 0x3b8], eax
lea eax, [ebp - 0x3d8]
mov dword [ebp - 0x3c4], 0
mov dword [ebp - 0x3c0], 1
mov dword [ebp - 0x3b4], 0
mov dword [ebp - 0x3b0], 0
mov dword [ebp - 0x3a8], 0
mov dword [ebp - 0x3a4], 0x800005
mov dword [ebp - 0x3a0], 0
mov dword [ebp - 0x39c], 0
mov dword [ebp - 0x398], 0
mov dword [ebp - 0x394], 0
mov dword [ebp - 0x390], 0
mov dword [esp], eax
call sym._GetOpenFileNameA_4
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0x4185a1
mov dword [esp + 8], str.WINHELP_GetOpenFileName
mov dword [esp + 4], 0x415988
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x40ec69
Function at 0x412380
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], 0x418a80
mov dword [esp], eax
call sym._fprintf.constprop.0
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll_exit]
lea esi, [esi]
nop