joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100131ec
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ac
push ebx
push esi
push edi
mov byte [ebp - 0xa0], 0x53
mov byte [ebp - 0x9f], 0x6c
mov byte [ebp - 0x9e], 0x65
mov byte [ebp - 0x9d], 0x65
mov byte [ebp - 0x9c], 0x70
mov byte [ebp - 0x9b], 0
lea eax, [ebp - 0xa0]
push eax
push 0x100244a8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xa4], eax
push 0x104
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
push 0x10026fb8
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
push 0x104
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
push 0x10026fb8
call dword [sym.imp.MSVCRT.dll_wcstombs]
add esp, 0xc
push 0x10013424
push 0x10026fb8
call dword [0x10025cd4]
mov dword [0x10026fb4], eax
cmp dword [0x10026fb4], 0
jne 0x10013296
jmp 0x100133c9
call dword [sym.imp.KERNEL32.dll_FreeConsole]
nop
nop
nop
nop
nop
push 1
push 0
push 2
call fcn.100133d0
add esp, 0xc
push 0
push 0
push 4
call fcn.100133d0
add esp, 0xc
push 0x10026fb8
call fcn.100084ae
add esp, 4
mov dword [0x10026eac], eax
mov dword [ebp - 0x98], 0x94
lea edx, [ebp - 0x98]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 6
jae 0x1001336b
push 0
push 0
push 0
push 0x10026fb8
push fcn.10012c37
push 0
push 0
call fcn.10014717
add esp, 0x1c
mov dword [ebp - 0xa8], eax
push 0x64
call dword [ebp - 0xa4]
cmp dword [0x100270bc], 3
je 0x1001332b
cmp dword [0x100270bc], 1
jne 0x10013311
push 0xffffffffffffffff
mov eax, dword [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0xa8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x10026eac], 0x120
jne 0x10013369
mov edx, 1
test edx, edx
je 0x10013369
push 0x2710
call dword [ebp - 0xa4]
jmp 0x10013353
jmp 0x100133c9
push 0x10026fb8
push 0x100244b8
push 0x10026eb0
call dword [0x10025e7c]
add esp, 0xc
push 0x104
lea eax, [ebp - 0x2ac]
push eax
mov ecx, dword [0x10026ea0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x10026fb8
lea edx, [ebp - 0x2ac]
push edx
push str.rundll32.exe__s_CodeMain__s
lea eax, [ebp - 0x1a8]
push eax
call dword [0x10025e7c]
add esp, 0x10
lea ecx, [ebp - 0x1a8]
push ecx
call fcn.1001288a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10013e5b
Capabilities:
Acquire debug privileges
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x30], ecx
mov byte [ebp - 0x14], 0x54
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0x72
mov byte [ebp - 0x11], 0x6d
mov byte [ebp - 0x10], 0x69
mov byte [ebp - 0xf], 0x6e
mov byte [ebp - 0xe], 0x61
mov byte [ebp - 0xd], 0x74
mov byte [ebp - 0xc], 0x65
mov byte [ebp - 0xb], 0x50
mov byte [ebp - 0xa], 0x72
mov byte [ebp - 9], 0x6f
mov byte [ebp - 8], 0x63
mov byte [ebp - 7], 0x65
mov byte [ebp - 6], 0x73
mov byte [ebp - 5], 0x73
mov byte [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
push 0x10024714
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x24], 0x53
mov byte [ebp - 0x23], 0x6c
mov byte [ebp - 0x22], 0x65
mov byte [ebp - 0x21], 0x65
mov byte [ebp - 0x20], 0x70
mov byte [ebp - 0x1f], 0
lea ecx, [ebp - 0x24]
push ecx
push 0x10024724
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], 0
push 1
push 0x10024734
call fcn.10014389
add esp, 8
mov dword [ebp - 0x1c], 0
jmp 0x10013f1d
mov edx, dword [ebp - 0x1c]
add edx, 4
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0xc]
jae 0x10013f53
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
push edx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x18], eax
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10013f14
push 0
push 0x10024748
call fcn.10014389
add esp, 8
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 0x64
call dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
call fcn.10013bb1
mov ecx, dword [ebp - 0x30]
call fcn.10013c28
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10014717
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x10], ecx
mov dl, byte [ebp + 0x20]
mov byte [ebp - 0xc], dl
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0x10014680
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [ebp - 4], eax
push 0xffffffffffffffff
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10014789
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov byte [ebp - 0x28], 0x50
mov byte [ebp - 0x27], 0x72
mov byte [ebp - 0x26], 0x6f
mov byte [ebp - 0x25], 0x63
mov byte [ebp - 0x24], 0x65
mov byte [ebp - 0x23], 0x73
mov byte [ebp - 0x22], 0x73
mov byte [ebp - 0x21], 0x33
mov byte [ebp - 0x20], 0x32
mov byte [ebp - 0x1f], 0x46
mov byte [ebp - 0x1e], 0x69
mov byte [ebp - 0x1d], 0x72
mov byte [ebp - 0x1c], 0x73
mov byte [ebp - 0x1b], 0x74
mov byte [ebp - 0x1a], 0
lea eax, [ebp - 0x28]
push eax
push 0x10024808
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
mov byte [ebp - 0x18], 0x50
mov byte [ebp - 0x17], 0x72
mov byte [ebp - 0x16], 0x6f
mov byte [ebp - 0x15], 0x63
mov byte [ebp - 0x14], 0x65
mov byte [ebp - 0x13], 0x73
mov byte [ebp - 0x12], 0x73
mov byte [ebp - 0x11], 0x33
mov byte [ebp - 0x10], 0x32
mov byte [ebp - 0xf], 0x4e
mov byte [ebp - 0xe], 0x65
mov byte [ebp - 0xd], 0x78
mov byte [ebp - 0xc], 0x74
mov byte [ebp - 0xb], 0
lea ecx, [ebp - 0x18]
push ecx
push 0x10024818
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
mov dword [ebp - 0x34], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x30], eax
push 0x128
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov dword [eax], 0x128
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call dword [ebp - 4]
test eax, eax
je 0x100148d0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x24
push ecx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x1001489c
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
jmp 0x100148d3
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call dword [ebp - 8]
test eax, eax
je 0x100148d0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x24
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x100148ce
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
jmp 0x100148d3
jmp 0x1001489c
mov eax, dword [ebp - 0x34]
mov esp, ebp
pop ebp
ret

Function at 0x10014b1d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push 0x9c
push 0
lea eax, [ebp - 0x9c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x9c], 0x9c
lea ecx, [ebp - 0x9c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x10014b76
mov dword [ebp - 0x9c], 0x94
lea edx, [ebp - 0x9c]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x10014b76
xor eax, eax
jmp 0x10014b94
cmp dword [ebp - 0x98], 5
jne 0x10014b8f
cmp dword [ebp - 0x94], 0
jne 0x10014b8f
call fcn.1001493a
jmp 0x10014b94
call fcn.100148d7
mov esp, ebp
pop ebp
ret
Function at 0x10014da9
Capabilities:
Contain obfuscated stackstrings
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x420], 0
mov dword [ebp - 8], 1
mov dword [ebp - 4], 1
mov byte [ebp - 0x18], 0x4d
mov byte [ebp - 0x17], 0x6f
mov byte [ebp - 0x16], 0x7a
mov byte [ebp - 0x15], 0x69
mov byte [ebp - 0x14], 0x6c
mov byte [ebp - 0x13], 0x6c
mov byte [ebp - 0x12], 0x61
mov byte [ebp - 0x11], 0x2f
mov byte [ebp - 0x10], 0x34
mov byte [ebp - 0xf], 0x2e
mov byte [ebp - 0xe], 0x30
mov byte [ebp - 0xd], 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
call dword [0x10025ea0]
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jne 0x10014e2c
xor al, al
jmp 0x10014f3f
push 0
push 0x80000000
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x41c]
push edx
call dword [0x10025ea4]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10014e58
xor al, al
jmp 0x10014f3f
push 0
push 0
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0xffffffff
je 0x10014f1f
push 0x400
push 0
lea ecx, [ebp - 0x418]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea edx, [ebp - 0x428]
push edx
push 0x400
lea eax, [ebp - 0x418]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [0x10025e9c]
cmp dword [ebp - 8], 0
je 0x10014eda
mov edx, dword [ebp - 0x418]
and edx, 0xffff
cmp edx, 0x5a4d
je 0x10014eda
mov dword [ebp - 4], 0
jmp 0x10014f12
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 0x420]
push eax
mov ecx, dword [ebp - 0x428]
push ecx
lea edx, [ebp - 0x418]
push edx
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x428], 0
ja 0x10014e84
mov ecx, dword [ebp - 0x424]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xc]
push edx
call dword [0x10025e98]
mov eax, dword [ebp - 0x41c]
push eax
call dword [0x10025e98]
xor eax, eax
cmp dword [ebp - 4], 0
setne al
mov esp, ebp
pop ebp
ret
Function at 0x40c8a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
jmp 0x40c8ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40c8c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40c8b0
mov eax, 1
add ebx, ebx
jne 0x40c8d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40c8c8
jne 0x40c8e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c8c8
xor ecx, ecx
sub eax, 3
jb 0x40c8f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40c96a
mov ebp, eax
add ebx, ebx
jne 0x40c903
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40c910
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40c934
inc ecx
add ebx, ebx
jne 0x40c920
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40c915
jne 0x40c931
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c915
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40c954
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40c945
jmp 0x40c8b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40c954
add edi, ecx
jmp 0x40c8b6
pop esi
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40c9bc
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xcea8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xcee4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40c971
mov ecx, edi
jns 0x40c9a0
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xceec]
or eax, eax
je 0x40c9b6
mov dword [ebx], eax
add ebx, 4
jmp 0x40c98e
call dword [esi + 0xcee8]
mov ebp, dword [esi + 0xcef0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40c9f0
sub esp, 0xffffff80
jmp 0x4014c0
Function at 0x3c5a5d
Capabilities:
Parse pe header

Disassembly:
jmp 0x4737ec
push 0
call dword [0x4d1310]
test eax, eax
je 0x47382b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47382b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47382b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x47382b
cmp dword [ecx + 0x74], 0xe
jbe 0x47382b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4011c0
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, 0xffffffff
push ecx
sub esp, 0x2c
mov esi, dword [ecx]
lock xadd dword [esi + 0x18], ebx
sub ebx, 1
test byte [0x403000], 8
jne 0x401238
test ebx, ebx
jne 0x401225
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x401201
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
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 - 0xc]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.__p____lu_n
mov dword [esp + 8], str.factory_Release
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4011eb
Function at 0x401af0
Capabilities:
Enumerate pe sections

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
mov eax, ecx
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x48
mov esi, dword [eax + 4]
mov edi, dword [eax + 0xc]
mov ecx, dword [ecx]
mov ebx, dword [eax + 8]
mov dword [ebp - 0x1c], esi
mov edx, dword [eax + 0x18]
mov dword [ebp - 0x20], edi
mov esi, dword [eax + 0x10]
mov edi, dword [eax + 0x14]
test byte [0x403000], 8
jne 0x401b60
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], edx
mov eax, dword [ecx + 0x18]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._CoMarshalInterface_24
sub esp, 0x18
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x1c
test ebx, ebx
je 0x401c50
mov eax, ebx
mov dword [ebp - 0x28], edx
shr eax, 0x10
mov dword [ebp - 0x24], ecx
je 0x401c38
movzx eax, byte [ebx + 0xf]
mov dword [esp + 0x2c], eax
movzx eax, byte [ebx + 0xe]
mov dword [esp + 0x28], eax
movzx eax, byte [ebx + 0xd]
mov dword [esp + 0x24], eax
movzx eax, byte [ebx + 0xc]
mov dword [esp + 0x20], eax
movzx eax, byte [ebx + 0xb]
mov dword [esp + 0x1c], eax
movzx eax, byte [ebx + 0xa]
mov dword [esp + 0x18], eax
movzx eax, byte [ebx + 9]
mov dword [esp + 0x14], eax
movzx eax, byte [ebx + 8]
mov dword [esp + 0x10], eax
movzx eax, word [ebx + 6]
mov dword [esp + 0xc], eax
movzx eax, word [ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp], str._08x__04x__04x__02x_02x__02x_02x_02x_02x_02x_02x
mov dword [esp + 4], eax
call dbg.wine_dbg_sprintf
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x28], ecx
mov dword [esp + 0x24], edx
mov dword [ebp - 0x24], edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], esi
mov edx, dword [ebp - 0x20]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], str.__p__s__p__08lx__p__08lx__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], global___FUNCTION__.8
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
jmp 0x401b29
mov dword [esp + 4], ebx
mov dword [esp], str._guid_0x_04hx_
call dbg.wine_dbg_sprintf
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
jmp 0x401be1
mov eax, str._null_
jmp 0x401be1
Function at 0x402020
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]
mov edi, dword [ecx + 4]
mov dword [ebp - 0x1c], eax
test byte [0x403000], 8
jne 0x402170
mov dword [esp + 8], 0x20
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 0x40223f
mov dword [eax], dbg.factory_QueryInterface
mov dword [eax + 4], 0x404340
mov eax, dword [edi]
mov dword [ebx + 8], eax
mov eax, dword [edi + 4]
mov dword [ebx + 0xc], eax
mov eax, dword [edi + 8]
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 0x18], 1
mov dword [ebx + 0x14], eax
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x1c], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x40a408
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], edi
call sym._CoGetClassObject_20
sub esp, 0x14
mov esi, eax
test eax, eax
jns 0x402100
mov eax, dword [ebx]
mov dword [esp], ebx
call dword [eax + 8]
sub esp, 4
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], 8
mov dword [esp + 8], 4
add eax, 8
mov dword [esp + 4], ebx
mov dword [esp + 0x10], eax
mov dword [esp], edi
call sym._CoRegisterClassObject_20
sub esp, 0x14
mov esi, eax
test eax, eax
js 0x4020dd
mov edi, dword [ebp - 0x1c]
mov dword [edi + 4], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateEventW]
mov dword [edi + 0xc], eax
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 8
test edi, edi
je 0x402238
mov eax, edi
shr eax, 0x10
je 0x402220
movzx eax, byte [edi + 0xf]
mov dword [esp + 0x2c], eax
movzx eax, byte [edi + 0xe]
mov dword [esp + 0x28], eax
movzx eax, byte [edi + 0xd]
mov dword [esp + 0x24], eax
movzx eax, byte [edi + 0xc]
mov dword [esp + 0x20], eax
movzx eax, byte [edi + 0xb]
mov dword [esp + 0x1c], eax
movzx eax, byte [edi + 0xa]
mov dword [esp + 0x18], eax
movzx eax, byte [edi + 9]
mov dword [esp + 0x14], eax
movzx eax, byte [edi + 8]
mov dword [esp + 0x10], eax
movzx eax, word [edi + 6]
mov dword [esp + 0xc], eax
movzx eax, word [edi + 4]
mov dword [esp + 8], eax
mov eax, dword [edi]
mov dword [esp], str._08x__04x__04x__02x_02x__02x_02x_02x_02x_02x_02x
mov dword [esp + 4], eax
call dbg.wine_dbg_sprintf
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], str.__p__s__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], global___FUNCTION__.2
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x402049
mov dword [esp + 4], edi
mov dword [esp], str._guid_0x_04hx_
call dbg.wine_dbg_sprintf
jmp 0x4021e5
mov eax, str._null_
jmp 0x4021e5
mov esi, 0x8007000e
jmp 0x4020e8
Function at 0x402500
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 0x40255b
cmp byte [esi + ebx - 1], 0xa
je 0x40252f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x40b084], 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 0x402ab0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov edi, dword [0x40b094]
mov esi, dword [ebp + 8]
test edi, edi
je 0x402c70
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x40b094]
movzx eax, al
bt eax, esi
jae 0x402cd0
mov ecx, dword [0x40b084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x402b76
test byte [0x403018], 8
jne 0x402c10
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x403028], 8
jne 0x402bc0
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 0x402b45
cmp esi, 3
jbe 0x402b80
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
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 + 0x14], edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 8], str._s:_s:_s
lea edx, [edi + 1]
mov dword [esp], eax
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x40a4d8]
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 0x402b45
mov ecx, dword [0x40b094]
test ecx, ecx
je 0x402cb0
mov dword [esp], 0x403028
call dword [0x40b094]
test al, 8
je 0x402b1c
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 0x402b1c
mov ebx, dword [0x40b094]
test ebx, ebx
je 0x402c90
mov dword [esp], 0x403018
call dword [0x40b094]
test al, 8
je 0x402b09
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [esp + 0x28]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
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 0x402b0f
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x40b094
call sym._load_func.part.0
jmp 0x402ad0
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x40b094
call sym._load_func.part.0
jmp 0x402c1a
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x40b094
call sym._load_func.part.0
jmp 0x402bce
mov eax, 0xffffffff
jmp 0x402b76