joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f41c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44f5c7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44f5a8
mov dl, 1
mov eax, dword [0x4125d4]
call fcn.004038c0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404640
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44f597
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043d450
test al, al
je 0x44f58a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44f5d8
lea eax, [ebp - 0x254]
call fcn.004093fc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44f58a
xor eax, eax
push ebp
push 0x44f583
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44f610
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44f56c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004048b0
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44f56c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004048b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44f58a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44f48d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004160b0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44f5ce
lea eax, [ebp - 0x260]
call fcn.00404640
ret

Function at 0x44fefc
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x457bdc]
cmp byte [eax + 0xa5], 0
jne 0x44ff6d
cmp dword [0x457bf4], 0
jne 0x44ff2e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44feb8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x457bf4], eax
cmp dword [0x457bf0], 0
jne 0x44ff49
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x457bf0], eax
cmp dword [0x457bf8], 0
jne 0x44ff6d
push esp
push 0
push 0
push 0x44fe5c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x457bf8], eax
pop edx
ret
Function at 0x450064
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45007b
add esp, 0xfffffff0
call fcn.00403c14
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419ec0
mov eax, dword [0x455f9c]
cmp word [eax + 2], 0
jne 0x4500a3
mov eax, dword [0x455f9c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00451754
mov eax, dword [0x456048]
cmp word [eax + 2], 0
jne 0x4500bd
mov eax, dword [0x456048]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045194c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4121b8]
call fcn.004038c0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4121b8]
call fcn.004038c0
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41c3f4]
call fcn.0042376c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x450244
mov eax, dword [0x455ec0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00423b3c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x451efc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x455ec0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040cc28
test eax, eax
je 0x4501b2
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408ddc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cc50
test eax, eax
je 0x4501c6
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004048b0
mov eax, dword [0x455db4]
cmp byte [eax], 0
jne 0x4501fa
mov eax, ebx
call fcn.0045036c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004520d8
mov eax, ebx
call fcn.00452a9c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45023a
call fcn.00403c6c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4505ec
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x457bdc]
cmp dword [eax + 0x30], 0
je 0x450696
cmp dword [ebx + 0x94], 0
jne 0x450690
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45057c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x450690
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x450656
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x450690
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414520
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x450665
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4511f8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45122d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404730
jmp 0x45123a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404694
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4522b4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4522f5
mov eax, esi
call fcn.00438b10
test al, al
je 0x4522f5
mov eax, dword [ebx + 0x84]
call fcn.00438838
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4522f5
push 0
mov eax, dword [ebx + 0x84]
call fcn.00438838
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x452fd0
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef4
mov edi, ecx
mov esi, edx
mov ebx, eax
push esp
push esi
mov eax, ebx
call fcn.00438838
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov edx, edi
lea eax, [esp + 4]
call fcn.00408f8c
add esp, 0x10c
pop edi
pop esi
pop ebx
ret
Function at 0x453440
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404af0
mov eax, dword [ebp - 8]
call fcn.00404af0
mov eax, dword [ebp + 8]
call fcn.00404af0
xor eax, eax
push ebp
push 0x453519
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x26]
mov edx, 0x1e
call fcn.00406fd0
mov eax, dword [0x45602c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], 2
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.0040ca70
push dword [ebp - 0x30]
push dword [ebp + 8]
push 0x453534
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.004049c0
mov eax, dword [ebp - 0x2c]
call fcn.00404b00
mov dword [ebp - 0x1e], eax
mov eax, dword [ebp - 8]
call fcn.00404b00
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], 0x200
lea eax, [ebp - 0x26]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453520
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00404664
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404664
lea eax, [ebp + 8]
call fcn.00404640
ret
Function at 0x412d80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UzBUtnck
lea edi, [esi - 0xe000]
push edi
or ebp, 0xffffffff
jmp 0x412da2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x412da9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x412d98
mov eax, 1
add ebx, ebx
jne 0x412dbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x412db0
jne 0x412dcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x412db0
xor ecx, ecx
sub eax, 3
jb 0x412de0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x412e52
mov ebp, eax
add ebx, ebx
jne 0x412deb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x412df8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x412e1c
inc ecx
add ebx, ebx
jne 0x412e08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x412dfd
jne 0x412e19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x412dfd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x412e3c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x412e2d
jmp 0x412d9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x412e3c
add edi, ecx
jmp 0x412d9e
pop esi
mov edi, esi
mov ecx, 0x2ad
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x412e5a
cmp byte [edi], 0
jne 0x412e5a
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 0x412e5f
lea edi, [esi + 0x10000]
mov eax, dword [edi]
or eax, eax
je 0x412ece
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x120b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1211c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x412e8c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12124]
or eax, eax
je 0x412ec8
mov dword [ebx], eax
add ebx, 4
jmp 0x412ea9
call dword [esi + 0x12120]
mov ebp, dword [esi + 0x12128]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x412f02
sub esp, 0xffffff80
jmp 0x406f9c

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x6b0436d0
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
push ecx
sub esp, 0x2c
mov ebx, dword [ecx]
test byte [0x6b0450a0], 8
jne 0x6b043780
test ebx, ebx
je 0x6b0437fa
cmp word [ebx], 0
je 0x6b0437f0
mov eax, ebx
lea esi, [esi]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x6b043710
sub eax, ebx
add eax, 2
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x6b043760
xor eax, eax
lea esi, [esi]
nop
movzx edx, word [ebx + eax]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x6b043750
test byte [0x6b0450a0], 8
jne 0x6b0437b8
lea esp, [ebp - 0xc]
mov eax, esi
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 4
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0xc], str.__s__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x6b04747c
mov dword [esp + 4], 0x6b0450a0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x6b0436f2
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.returning__p_n
mov dword [esp + 8], 0x6b04747c
mov dword [esp + 4], 0x6b0450a0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
lea esp, [ebp - 0xc]
mov eax, esi
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 4
mov eax, 2
jmp 0x6b04371e
xor esi, esi
jmp 0x6b043769

Function at 0x6b043880
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov eax, dword fs:[0x18]
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x2c
mov esi, dword [ecx]
mov dword [esp + 4], 8
mov dword [esp + 8], esi
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 byte [0x6b0450a0], 8
jne 0x6b0438d8
lea esp, [ebp - 0xc]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 4
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.__ld_____p_n
mov dword [esp + 8], str.DllAllocSplMem
mov dword [esp + 4], 0x6b0450a0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
lea esp, [ebp - 0xc]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 4

Function at 0x6b043920
Capabilities:
Get process heap flags

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 [0x6b0450a0], 8
jne 0x6b043970
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__p__n
mov dword [esp + 8], str.DllFreeSplMem
mov dword [esp + 4], 0x6b0450a0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x6b04393d
Function at 0x6b0439a0
Capabilities:
Get process heap flags

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 [0x6b0450a0], 8
jne 0x6b0439f0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret 4
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__s__PTR:__p_n
mov dword [esp + 8], str.DllFreeSplStr
mov dword [esp + 4], 0x6b0450a0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x6b0439bd

Function at 0x6b043b80
Capabilities:
Link many functions at runtime

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x2c
mov ebx, dword [ecx]
test byte [0x6b0450a0], 8
jne 0x6b043cd0
mov dword [esp], str.winspool.drv
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov dword [0x6b049014], eax
sub esp, 4
test eax, eax
je 0x6b043cc0
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [esp + 4], str.OpenPrinterW
mov dword [esp], eax
call esi
mov dword [ebx], eax
mov eax, dword [0x6b049014]
sub esp, 8
mov dword [esp + 4], str.ClosePrinter
mov dword [esp], eax
call esi
mov dword [ebx + 4], eax
mov eax, dword [0x6b049014]
sub esp, 8
mov dword [esp + 4], str.SpoolerDevQueryPrintW
mov dword [esp], eax
call esi
mov dword [ebx + 8], eax
mov eax, dword [0x6b049014]
sub esp, 8
mov dword [esp + 4], str.SpoolerPrinterEvent
mov dword [esp], eax
call esi
mov dword [ebx + 0xc], eax
mov eax, dword [0x6b049014]
sub esp, 8
mov dword [esp + 4], str.DocumentPropertiesW
mov dword [esp], eax
call esi
mov dword [ebx + 0x10], eax
mov eax, dword [0x6b049014]
sub esp, 8
mov dword [esp + 4], 0xd4
mov dword [esp], eax
call esi
mov dword [ebx + 0x14], eax
mov eax, dword [0x6b049014]
sub esp, 8
mov dword [esp + 4], 0xd5
mov dword [esp], eax
call esi
mov dword [ebx + 0x18], eax
mov eax, dword [0x6b049014]
sub esp, 8
mov dword [esp + 4], 0xd6
mov dword [esp], eax
call esi
mov dword [ebx + 0x1c], eax
mov eax, dword [0x6b049014]
sub esp, 8
mov dword [esp + 4], 0xd7
mov dword [esp], eax
call esi
lea edx, [ebx + 0x24]
mov dword [ebx + 0x20], eax
sub esp, 8
mov eax, ebx
lea esi, [esi]
mov ecx, dword [eax]
test ecx, ecx
je 0x6b043cc0
add eax, 4
cmp eax, edx
jne 0x6b043ca0
lea esp, [ebp - 0xc]
mov eax, 1
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 4
lea esp, [ebp - 0xc]
xor eax, eax
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__p__n
mov dword [esp + 8], str.SplInitializeWinSpoolDrv
mov dword [esp + 4], 0x6b0450a0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x6b043ba2
Function at 0x6b043ed0
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 0x6b043f2b
cmp byte [esi + ebx - 1], 0xa
je 0x6b043eff
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x6b0490c4], 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 0x401114
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x813004]
jne 0x40111e
repz ret
jmp fcn.0040178f

Function at 0x40c171
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405909
and dword [ebp - 4], 0
cmp dword [0x8155fc], 0
mov ebx, eax
jne 0x40c222
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c2d3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40c2d3
push eax
call fcn.00405897
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x8155fc], eax
call esi
push eax
call fcn.00405897
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x815600], eax
call esi
push eax
call fcn.00405897
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x815604], eax
call esi
push eax
call fcn.00405897
pop ecx
mov dword [0x81560c], eax
test eax, eax
je 0x40c222
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405897
pop ecx
mov dword [0x815608], eax
mov eax, dword [0x815608]
cmp eax, ebx
je 0x40c27a
cmp dword [0x81560c], ebx
je 0x40c27a
push eax
call fcn.00405912
push dword [0x81560c]
mov esi, eax
call fcn.00405912
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c27a
test edi, edi
je 0x40c27a
call esi
test eax, eax
je 0x40c271
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c271
test byte [ebp - 0xc], 1
jne 0x40c27a
or dword [ebp + 0x10], 0x200000
jmp 0x40c2b3
mov eax, dword [0x815600]
cmp eax, ebx
je 0x40c2b3
push eax
call fcn.00405912
pop ecx
test eax, eax
je 0x40c2b3
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c2b3
mov eax, dword [0x815604]
cmp eax, ebx
je 0x40c2b3
push eax
call fcn.00405912
pop ecx
test eax, eax
je 0x40c2b3
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x8155fc]
call fcn.00405912
pop ecx
test eax, eax
je 0x40c2d3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c2d5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x80e598
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
cmp esi, 0x5026c
jne 0x80e635
mov dword [ebp - 4], 0x20
add dword [ebp - 4], 0x20
push 0x8156e8
mov byte [0x8156e8], 0x6b
mov byte [0x8156e9], 0x65
mov byte [0x8156ea], 0x72
mov byte [0x8156eb], 0x6e
mov byte [0x8156ec], 0x65
mov byte [0x8156ed], 0x6c
mov byte [0x8156ee], 0x33
mov byte [0x8156ef], 0x32
mov byte [0x8156f0], 0x2e
mov byte [0x8156f1], 0x64
mov byte [0x8156f2], 0x6c
mov byte [0x8156f3], 0x6c
mov byte [0x8156f4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [ebp - 8]
push eax
push 0x40
push dword [0x816ed0]
push dword [0x815be8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
inc esi
cmp esi, 0x36edcb
jl 0x80e5a0
pop esi
leave
ret
Function at 0x80e80f
Capabilities:
Clear file content
Create pipe
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x816ed0]
push ebx
mov ebx, dword [0x815be8]
push esi
xor esi, esi
mov dword [ebp - 0x10], eax
cmp eax, 0x5dd
jne 0x80e835
push esi
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.0080e739
cmp dword [0x816ed0], 0x2f
pop ecx
jne 0x80e89a
push edi
xor eax, eax
mov word [ebp - 0xc], ax
lea edi, [ebp - 0xa]
stosw word es:[edi], ax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push dword [ebp - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputW]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
push ebx
mov ebx, dword [ebp - 0x10]
call fcn.0080e783
cmp dword [0x816ed0], 0x568
pop ecx
jne 0x80e8b7
push esi
call dword [sym.imp.KERNEL32.dll_InitAtomTable]
pop esi
pop ebx
leave
ret