joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010a0
Capabilities:
Create thread
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x45c
mov eax, dword [0x40400c]
xor eax, esp
mov dword [esp + 0x458], eax
mov eax, dword [0x403670]
movq xmm0, qword [str.sqlservrs.exe]
push ebx
push esi
push edi
mov dword [esp + 0x140], eax
mov ax, word [0x403674]
push 0x105
mov word [esp + 0x148], ax
lea eax, [esp + 0x14c]
push 0
push eax
movq qword [esp + 0x144], xmm0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0x250]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor ecx, ecx
mov al, byte [esp + ecx + 0x250]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x147], al
test al, al
jne 0x401116
lea eax, [esp + 0x148]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_strrchr]
lea edi, [esp + 0x150]
add esp, 8
dec edi
mov byte [eax], 0
nop dword [eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x401150
mov ax, word [0x403678]
lea edx, [esp + 0x138]
mov word [edi], ax
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x401170
lea edi, [esp + 0x148]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401181
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x250]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4011a1
sub edx, ecx
lea ecx, [edx - 1]
test ecx, ecx
js 0x4011e5
cmp byte [esp + ecx + 0x250], 0x5c
je 0x4011c2
sub ecx, 1
jns 0x4011b1
jmp 0x4011e5
inc ecx
cmp ecx, edx
jg 0x4011e5
sub edx, ecx
lea eax, [esp + 0x250]
inc edx
add eax, ecx
push edx
push eax
lea eax, [esp + 0x360]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
xor ebx, ebx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [esp + 0x10], 0x128
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x40128e
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x18], 0x128
call edi
test eax, eax
je 0x401283
nop dword [eax + eax]
lea eax, [esp + 0x138]
lea ecx, [esp + 0x34]
nop dword [eax + eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x401260
test dl, dl
je 0x40125c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x401260
add ecx, 2
add eax, 2
test dl, dl
jne 0x401240
xor eax, eax
jmp 0x401265
sbb eax, eax
or eax, 1
test eax, eax
je 0x40127f
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x128
push eax
push esi
call edi
test eax, eax
jne 0x401230
jmp 0x401283
mov ebx, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x4012cd
lea eax, [esp + 0x358]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [esp + 0x150]
push eax
push section..text
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
call esi
jmp 0x4012c4
mov ecx, dword [esp + 0x464]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004021ab
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401760
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
add eax, 0x18
add eax, ecx
movzx ecx, word [ecx + 6]
lea ecx, [ecx + ecx*4]
lea edi, [eax + ecx*8]
cmp eax, edi
je 0x40179e
mov esi, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
cmp esi, edx
jb 0x401797
mov ecx, dword [eax + 8]
add ecx, edx
cmp esi, ecx
jb 0x4017a0
add eax, 0x28
cmp eax, edi
jne 0x401787
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x401f00
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x40400c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x401f27
mov ecx, 5
int 0x29
push 2
call fcn.00401cb0
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x402032
test esi, esi
jne 0x402032
push 2
call fcn.00401cb0
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004021ab
mov esp, ebp
pop ebp
ret
Function at 0x41ffdf
Capabilities:
Encode data using xor

Disassembly:
lodsb al, byte [esi]
fucompi st(0)
ja 0x41fffc
pop edi
push 0xffffffffffffffa8
cmovo esi, dword [esi]
push eax
aas
xor al, 4
pushal
dec eax
xor byte [eax + 0x50], ah
mov al, byte [0x4386c7cd]
fdivrp st(7)
inc eax
sahf
xor dword [ebx + 0x7150ccaa], ecx
push ecx
xor bl, byte es:[ebx + eax*2]
adc eax, 0x361bbabb
mov gs, word [eax + 0x50]
and byte [eax - 0x6a571f1c], bh
das
mov al, byte [0xeb2bf050]
test al, 0xf5
out 0xf0, eax
cwde
and al, 0x25
or al, 0x6d
xor bl, dh
adc cl, cl
pop ebp
cdq
movsd dword es:[edi], dword [esi]
mov al, byte [0xf9b856d1]
pop es
fadd dword [ecx + ebx*8 - 0x7a397382]
sbb dword [eax - 0x2f], eax
mov dword [0x46aede1b], eax
cmpsb byte [esi], byte es:[edi]
cmp bh, ch
jo 0x420022
sub eax, 0x442f0dab
enter 0x2797, 0xffffffffffffffd8
xchg edi, eax
daa
fsubr st(5)
sbb byte [ebx + 0x792d8128], dl
mov esp, 0xdeeb8cad
pushal
xlatb
sub eax, 0x8ed03568
or byte [eax], al
imul edx, ebx, 0x54f0b98a
push edi
jo 0x420080
aaa
invalid
and bh, 0x7c

Function at 0x4bad51
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c5398
cmp edx, dword [eax]
je 0x4bad73
add eax, 8
inc ecx
cmp eax, 0x4c5428
jl 0x4bad64
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c5398]
jne 0x4baea1
mov eax, dword [0x4c9d24]
cmp eax, 1
je 0x4bae7b
test eax, eax
jne 0x4bada4
cmp dword [0x4c52c0], 1
je 0x4bae7b
cmp edx, 0xfc
je 0x4baea1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4baddb
lea eax, [ebp - 0x1a4]
push 0x4c0d58
push eax
call fcn.004bb730
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bbbc0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bae1e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bbbc0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c0d54
push edi
call fcn.004bda90
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c0d38
push eax
call fcn.004bb730
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bb740
lea eax, [ebp - 0xa0]
push 0x4c0d34
push eax
call fcn.004bb740
push dword [esi + 0x4c539c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bb740
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c0d0c
push eax
call fcn.004bda04
add esp, 0x2c
pop edi
jmp 0x4baea1
lea eax, [ebp + 8]
lea esi, [esi + 0x4c539c]
push 0
push eax
push dword [esi]
call fcn.004bbbc0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x409ebd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x409ebd
lcall 0x5de5, 0x8b10c483
jmp fcn.0076d6b4
Function at 0x473230
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x43000]
push edi
jmp 0x47324a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x473251
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x473240
mov eax, 1
add ebx, ebx
jne 0x473263
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x473274
jne 0x473293
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x473293
dec eax
add ebx, ebx
jne 0x473280
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x473258
add ebx, ebx
jne 0x47328f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4732e5
xor ecx, ecx
sub eax, 3
jb 0x4732ab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x47331a
sar eax, 1
mov ebp, eax
jmp 0x4732b6
add ebx, ebx
jne 0x4732b6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x473284
inc ecx
add ebx, ebx
jne 0x4732c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x473284
add ebx, ebx
jne 0x4732d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4732c6
jne 0x4732e2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4732c6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x473304
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4732f6
jmp 0x473246
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x473304
add edi, ecx
jmp 0x473246
pop esi
mov edi, esi
mov ecx, 0x2c07
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x473322
cmp byte [edi], 9
jne 0x473322
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x473327
lea edi, [esi + 0x70000]
mov eax, dword [edi]
or eax, eax
je 0x47339f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x749c4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x74a8c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x473354
mov ecx, edi
jns 0x473383
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 + 0x74a90]
or eax, eax
je 0x473399
mov dword [ebx], eax
add ebx, 4
jmp 0x473371
call dword [esi + 0x74aa0]
mov ebp, dword [esi + 0x74a94]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x4733d3
sub esp, 0xffffff80
jmp 0x42ff0f
Function at 0x47b8b5
Capabilities:
Encode data using xor

Disassembly:
cld
mov byte [edx + 0x3b], ah
mov cl, 0x3d
js 0x47b874
mov bl, 0xe2
loop 0x47b863
and dword [0x5ca99d0b], edx
add eax, 0xe4a450b2
lahf
movsb byte es:[edi], byte [esi]
in al, 0x9f
or dword [ecx - 0x66f6ff7f], ecx
xlatb
aad 0x91
mov cl, 0x1f
sti
adc al, 0x9e
rcr dword [esp + edi*4 + 0x7d], 1
inc esp
dec esp
nop
jae 0x47b84e
rol esi, cl
fsubr qword cs:[ecx - 0x37]
xor dword [eax + 0x438dfc], ebx
out 0x61, al
mov word [0x68ac5516], ss
outsb dx, byte [esi]
test dword [esp + ecx*4 - 0x17], ecx
invalid
jl 0x47b90d

Function at 0x4bad41
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c5390
cmp edx, dword [eax]
je 0x4bad63
add eax, 8
inc ecx
cmp eax, 0x4c5420
jl 0x4bad54
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c5390]
jne 0x4bae91
mov eax, dword [0x4c9d24]
cmp eax, 1
je 0x4bae6b
test eax, eax
jne 0x4bad94
cmp dword [0x4c52b8], 1
je 0x4bae6b
cmp edx, 0xfc
je 0x4bae91
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4badcb
lea eax, [ebp - 0x1a4]
push 0x4c0d50
push eax
call fcn.004bb720
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bbbb0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bae0e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bbbb0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c0d4c
push edi
call fcn.004bda80
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c0d30
push eax
call fcn.004bb720
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bb730
lea eax, [ebp - 0xa0]
push 0x4c0d2c
push eax
call fcn.004bb730
push dword [esi + 0x4c5394]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bb730
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c0d04
push eax
call fcn.004bd9f4
add esp, 0x2c
pop edi
jmp 0x4bae91
lea eax, [ebp + 8]
lea esi, [esi + 0x4c5394]
push 0
push eax
push dword [esi]
call fcn.004bbbb0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401240
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 [0x404000], 8
jne 0x4012b8
test ebx, ebx
jne 0x4012a5
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x401281
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 0x40126b
Function at 0x4019d0
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 [0x404000], 8
jne 0x401a40
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 0x401b38
mov eax, ebx
mov dword [ebp - 0x28], edx
shr eax, 0x10
mov dword [ebp - 0x24], ecx
je 0x401b18
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], str.marshal_MarshalInterface
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 0x401a09
movzx eax, bx
mov dword [esp], str._guid_0x_04hx_
mov dword [esp + 4], eax
call dbg.wine_dbg_sprintf
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
jmp 0x401ac1
mov eax, str._null_
jmp 0x401ac1
Function at 0x402040
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 [0x404000], 8
jne 0x402190
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 0x40225f
mov dword [eax], dbg.factory_QueryInterface
mov dword [eax + 4], 0x405340
mov eax, dword [edi]
mov dword [ebx + 0x18], 1
mov dword [ebx + 8], eax
mov eax, dword [edi + 4]
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0xc], eax
mov eax, dword [edi + 8]
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 0x14], eax
lea eax, [ebx + 0x1c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x40b4a8
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 0x402120
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 0x4020fd
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 0x402258
mov eax, edi
shr eax, 0x10
je 0x402240
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], str.surrogate_LoadDllServer
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x402069
movzx eax, di
mov dword [esp], str._guid_0x_04hx_
mov dword [esp + 4], eax
call dbg.wine_dbg_sprintf
jmp 0x402205
mov eax, str._null_
jmp 0x402205
mov esi, 0x8007000e
jmp 0x402108
Function at 0x402520
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 0x40257b
cmp byte [esi + ebx - 1], 0xa
je 0x40254f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x40d084], 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 0x402ac0
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 [0x40d094]
mov esi, dword [ebp + 8]
test edi, edi
je 0x402c80
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x40d094]
movzx eax, al
bt eax, esi
jae 0x402ce0
mov ecx, dword [0x40d084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x402b86
test byte [0x404018], 8
jne 0x402c20
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x404028], 8
jne 0x402bd0
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 0x402b55
cmp esi, 3
jbe 0x402b90
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 + 0x40b580]
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 0x402b55
mov ecx, dword [0x40d094]
test ecx, ecx
je 0x402cc0
mov dword [esp], 0x404028
call dword [0x40d094]
test al, 8
je 0x402b2c
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 0x402b2c
mov ebx, dword [0x40d094]
test ebx, ebx
je 0x402ca0
mov dword [esp], 0x404018
call dword [0x40d094]
test al, 8
je 0x402b19
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 0x402b1f
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x40d094
call sym._load_func.part.0
jmp 0x402ae0
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x40d094
call sym._load_func.part.0
jmp 0x402c2a
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x40d094
call sym._load_func.part.0
jmp 0x402bde
mov eax, 0xffffffff
jmp 0x402b86