joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4552a0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x470bbc]
cmp dword [eax + 0x30], 0
je 0x45534a
cmp dword [ebx + 0x94], 0
jne 0x455344
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x455230
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x455344
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 0x45530a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x455344
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.00414230
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x455319
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x455ea8
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 0x455edd
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.00404428
jmp 0x455eea
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040438c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x456ffc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45703d
mov eax, esi
call fcn.0043d0dc
test al, al
je 0x45703d
mov eax, dword [ebx + 0x84]
call fcn.0043cdd8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45703d
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043cdd8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45c3ac
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x45c3da
mov eax, ebx
call fcn.0045ce60
cmp dword [ebx + 0x40], 0
je 0x45c3d3
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x45c44b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x45c43d
cmp dword [ebx + 8], 0
je 0x45c3fc
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x45c40e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45c43d
cmp dword [ebx + 8], 0
je 0x45c3ef
cmp eax, 3
je 0x45c421
dec eax
jne 0x45c3ef
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x45c3ef
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x45c3ef
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x45c469
cmp dword [ebx + 0x14], 0xcc
je 0x45c469
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0045c474
pop ebx
ret
Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
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
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x6dd0c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1d6000]
push edi
or ebp, 0xffffffff
jmp 0x6dd0e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6dd0e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6dd0d8
mov eax, 1
add ebx, ebx
jne 0x6dd0fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6dd10c
jne 0x6dd12b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6dd12b
dec eax
add ebx, ebx
jne 0x6dd118
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6dd0f0
add ebx, ebx
jne 0x6dd127
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6dd17d
xor ecx, ecx
sub eax, 3
jb 0x6dd143
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6dd1b2
sar eax, 1
mov ebp, eax
jmp 0x6dd14e
add ebx, ebx
jne 0x6dd14e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6dd11c
inc ecx
add ebx, ebx
jne 0x6dd15c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6dd11c
add ebx, ebx
jne 0x6dd169
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6dd15e
jne 0x6dd17a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6dd15e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6dd19c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6dd18e
jmp 0x6dd0de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6dd19c
add edi, ecx
jmp 0x6dd0de
pop esi
mov edi, esi
mov ecx, 0x65f9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6dd1ba
cmp byte [edi], 0xe
jne 0x6dd1ba
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 0x6dd1bf
lea edi, [esi + 0x2d4000]
mov eax, dword [edi]
or eax, eax
je 0x6dd237
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2e1b64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2e1ca4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6dd1ec
mov ecx, edi
jns 0x6dd21b
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 + 0x2e1ca8]
or eax, eax
je 0x6dd231
mov dword [ebx], eax
add ebx, 4
jmp 0x6dd209
call dword [esi + 0x2e1cb8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x6dd268
cmp al, 0xef
ja 0x6dd25b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x6dd23d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x6dd24a
mov ebp, dword [esi + 0x2e1cac]
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 0x6dd29c
sub esp, 0xffffff80
jmp 0x4aba95
Function at 0x10004b00
Capabilities:
Terminate process

Disassembly:
push esi
sub esp, 0x4c
mov eax, dword [esp + 0x58]
mov ecx, dword [0x1003f418]
xor ecx, esp
mov dword [esp + 0x48], ecx
cmp eax, 1
mov ecx, 0x2be10e89
mov eax, 0x50cadf12
cmove eax, ecx
mov ecx, 0xaf97b6df
nop dword [eax]
cmp ecx, 0xaf97b6df
je 0x10004b4a
cmp ecx, 0x50cadf12
je 0x10004b4e
cmp ecx, 0x2be10e89
jne 0x10004b30
jmp 0x10004b65
mov ecx, eax
jmp 0x10004b30
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.1000daa7
mov eax, 1
add esp, 0x4c
pop esi
ret 0xc
call fcn.10001000
call fcn.10001740
call fcn.10001740
call fcn.10001000
call fcn.10001140
lea esi, [esp + 0x30]
push 0x49
push esi
call fcn.10001270
add esp, 8
mov ecx, esi
call fcn.10001600
lea esi, [esp + 0x18]
push 0x3a
push esi
call fcn.10001270
add esp, 8
mov ecx, esi
call fcn.10001600
mov esi, esp
push 0x1d
push esi
call fcn.10001270
add esp, 8
mov ecx, esi
call fcn.10001600
call fcn.10001000
call fcn.10001020
call fcn.10001740
call fcn.10001740
call fcn.10001000
call fcn.10001890
call fcn.10001610
call fcn.10001000
call fcn.10001740
call fcn.10001740
push 1
call fcn.10014056
int3
Function at 0x100211ca
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100211d5
Function at 0x10003660
Capabilities:
Check mutex on windows

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, 0x54
mov eax, dword [ecx + 8]
mov ebx, dword [ecx]
mov edi, dword [ecx + 4]
mov dword [ebp - 0x3c], eax
test byte [0x10016018], 8
jne 0x1000379e
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], sym._wine_vk_init_12
mov dword [esp], 0x1002b004
call dword [sym.imp.kernel32.dll_InitOnceExecuteOnce]
sub esp, 0x10
test eax, eax
je 0x100037de
movd xmm3, ebx
movd xmm4, edi
mov esi, 8
punpckldq xmm3, xmm4
movq qword [ebp - 0x48], xmm3
lea esi, [esi]
mov eax, esi
mov dword [esp], 1
shl eax, 4
add eax, 0x18
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_calloc]
movd xmm1, dword [ebp - 0x3c]
movq xmm0, qword [ebp - 0x48]
movd xmm2, eax
mov dword [eax], 0x1cdc0de
mov edi, eax
punpckldq xmm1, xmm2
mov dword [eax + 4], 0
mov dword [eax + 0x10], esi
punpcklqdq xmm0, xmm1
xor eax, eax
lea esi, cs:[esi]
mov edx, eax
add eax, 1
shl edx, 4
mov dword [edi + edx + 0x18], 0x1cdc0de
mov dword [edi + edx + 0x1c], 0
cmp esi, eax
jne 0x10003720
lea eax, [ebp - 0x38]
movups xmmword [ebp - 0x38], xmm0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x12c
mov eax, dword [0x1002b0c0]
mov edx, dword [0x1002b0c4]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [0x10016060]
sub esp, 0x10
test eax, eax
jne 0x100037e5
mov ebx, dword [edi + 0x10]
cmp esi, ebx
jae 0x10003785
mov dword [esp], edi
mov esi, ebx
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x100036d8
mov eax, dword [edi + 8]
or eax, dword [edi + 0xc]
je 0x100037d3
mov eax, dword [ebp - 0x28]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.create_info__p__allocator__p__instance__p_n
mov dword [esp + 8], str.vkCreateInstance
mov dword [esp + 4], 0x10016018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x1000368c
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x1000378d
mov eax, 0xfffffffd
jmp 0x10003790
mov dword [esp + 8], 0x10f
mov dword [esp + 4], str._home_runner_build_wine_wine_dlls_winevulkan_loader.c
mov dword [esp], str._status
call dword [sym.imp.ucrtbase.dll__assert]
lea esi, cs:[esi]
lea esi, [esi]
Function at 0x10003810
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x2c
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test byte [0x10016018], 8
jne 0x100038b8
test esi, esi
jne 0x10003900
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], sym._wine_vk_init_12
mov dword [esp], 0x1002b004
call dword [sym.imp.kernel32.dll_InitOnceExecuteOnce]
sub esp, 0x10
test eax, eax
je 0x100038f0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x174
mov eax, dword [0x1002b0c0]
mov edx, dword [0x1002b0c4]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [0x10016060]
sub esp, 0x10
test eax, eax
jne 0x10003936
mov eax, dword [ebp - 0xc]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], str._p___p___p_n
mov dword [esp + 8], str.vkEnumerateInstanceExtensionProperties
mov dword [esp + 4], 0x10016018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x1000382b
mov dword [ebx], 0
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0xc
test byte [0x10016018], 4
jne 0x10003910
mov eax, 0xfffffffa
jmp 0x100038a8
mov dword [esp + 0xc], str.Layer_enumeration_not_supported_from_ICD._n
mov dword [esp + 8], str.vkEnumerateInstanceExtensionProperties
mov dword [esp + 4], 0x10016018
mov dword [esp], 2
call sym._wine_dbg_log.constprop.1
jmp 0x10003909
mov dword [esp + 8], 0x13f
mov dword [esp + 4], str._home_runner_build_wine_wine_dlls_winevulkan_loader.c
mov dword [esp], str._status
call dword [sym.imp.ucrtbase.dll__assert]
lea esi, cs:[esi]
lea esi, cs:[esi]

Function at 0x10003960
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 8]
test byte [0x10016018], 8
jne 0x100039f0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], sym._wine_vk_init_12
mov dword [esp], 0x1002b004
call dword [sym.imp.kernel32.dll_InitOnceExecuteOnce]
sub esp, 0x10
test eax, eax
je 0x100039e0
lea eax, [ebp - 0xc]
mov edx, dword [0x1002b0c4]
mov dword [ebp - 0xc], ebx
mov dword [esp + 0xc], eax
mov eax, dword [0x1002b0c0]
mov dword [esp + 8], 0x175
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [0x10016060]
sub esp, 0x10
test eax, eax
jne 0x10003a1d
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 4]
leave
ret 4
mov dword [ebx], 0x400000
mov ebx, dword [ebp - 4]
leave
ret 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x100181c7
mov dword [esp + 8], str.vkEnumerateInstanceVersion
mov dword [esp + 4], 0x10016018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10003973
mov dword [esp + 8], 0x152
mov dword [esp + 4], str._home_runner_build_wine_wine_dlls_winevulkan_loader.c
mov dword [esp], str._status
call dword [sym.imp.ucrtbase.dll__assert]
lea esi, [esi]
Function at 0x100049e0
Capabilities:
Extract resource via kernel32 functions
Get common file path
Set registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x23c
mov dword [ebp - 0x21c], 0
test byte [0x10016018], 8
jne 0x10004bf0
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0x100182cc
mov eax, dword [0x1002b008]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], eax
mov eax, dword [0x1002b008]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LoadResource]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LockResource]
sub esp, 4
mov esi, eax
mov dword [esp + 4], ebx
mov eax, dword [0x1002b008]
lea ebx, [ebp - 0x214]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SizeofResource]
sub esp, 8
mov edi, eax
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
mov edx, ebx
sub esp, 8
cmp word [ebp - 0x214], 0
je 0x10004a99
lea esi, cs:[esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x10004a90
xor eax, eax
lea esi, cs:[esi]
movzx ecx, word [eax + str.winevulkan.json]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x10004aa0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov edx, eax
cmp eax, 0xffffffff
je 0x10004c19
lea eax, [ebp - 0x220]
mov dword [esp], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [ebp - 0x224], edx
call dword [sym.imp.kernel32.dll_WriteFile]
mov edx, dword [ebp - 0x224]
sub esp, 0x14
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_CloseHandle]
lea eax, [ebp - 0x218]
sub esp, 4
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareKhronosVulkanDrivers
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
sub esp, 0x24
test eax, eax
je 0x10004ba0
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x21c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x218]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x218]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x10004b8e
mov dword [esp + 0xc], 0x100182c8
mov dword [esp + 8], str.DllRegisterServer
mov dword [esp + 4], 0x10016018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10004a03
test byte [0x10016018], 2
jne 0x10004c2c
mov eax, 0x8000ffff
jmp 0x10004b90
mov dword [esp + 0xc], str.Unable_to_create_JSON_manifest._n
mov dword [esp + 8], str.DllRegisterServer
mov dword [esp + 4], 0x10016018
mov dword [esp], 1
call sym._wine_dbg_log.constprop.1
jmp 0x10004c22
Function at 0x10004c60
Capabilities:
Delete file
Delete registry value
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x220
test byte [0x10016018], 8
jne 0x10004d10
lea ebx, [ebp - 0x20c]
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
mov edx, ebx
sub esp, 8
cmp word [ebp - 0x20c], 0
je 0x10004ca9
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x10004ca0
xor eax, eax
lea esi, cs:[esi]
movzx ecx, word [eax + str.winevulkan.json]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x10004cb0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_DeleteFileW]
lea eax, [ebp - 0x210]
sub esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareKhronosVulkanDrivers
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
je 0x10004d40
mov ebx, dword [ebp - 4]
xor eax, eax
leave
ret
mov dword [esp + 0xc], 0x100182c8
mov dword [esp + 8], str.DllUnregisterServer
mov dword [esp + 4], 0x10016018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10004c77
mov eax, dword [ebp - 0x210]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
mov eax, dword [ebp - 0x210]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ebx, dword [ebp - 4]
xor eax, eax
sub esp, 4
leave
ret

Function at 0x10015390
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
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 0x100153e8
cmp byte [esi + ebx - 1], 0xa
je 0x100153bc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x1002b0a4], 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]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0xee7bb0
Capabilities:
Encode data using xor

Disassembly:
jmp 0xee7bba
or byte [eax], al
or byte [edi], cl
add byte [eax], al
add byte [eax], al
add byte [eax - 0x18], ah
add byte [eax], al
add byte [eax], al
pushal
call 0xee7bc0
pop ebp
sub ebp, 0x10
sub ebp, 0xae7bb0
jmp 0xee7bd6
mov eax, 0xae7bb0
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c5
mov edx, 0x9f6e3897
xor byte [eax], dl
inc eax
dec ecx
jne 0xee7bed
jmp 0xee7c00
sbb al, 0x5a
sbb al, 0x1e
stosd dword es:[edi], eax
xchg edi, eax
xchg edi, eax
xchg edi, eax
push ss
push esi
outsd dx, dword [esi]
xchg edi, eax
xchg edi, eax
xchg edi, eax
xchg esp, eax
pop edx
das
xchg ecx, eax
xchg edi, eax
xchg edi, eax
xchg edi, eax
sub eax, 0x979797bf
pushal
jne 0xee7bb1
pop edi
sbb al, 0x16
wait
xchg edi, eax
xchg edi, eax
xchg edi, eax
xchg esp, eax
push edx
sbb dh, bl
mov bl, 0x6b
push ds
xchg ebx, eax
mov bl, 0x1a
mov bl, 0x6b
push ds
xchg ebx, eax
mov bl, 0xff
cmpsd dword [esi], dword es:[edi]
adc esi, dword [esi + 0x60e9ff97]
sbb edx, dword [edi - 0x4c446a]
push eax
pop ecx
retf 0x7f89

Function at 0x404000
Capabilities:
Terminate process

Disassembly:
push 0x40
push str.Test
push str.Hello
push 0
call dword [sym.imp.USER32.DLL_MessageBoxA]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x4021f0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x148
mov eax, dword [0x40e3e0]
xor eax, esp
mov dword [esp + 0x144], eax
push ebp
mov ebp, dword [esp + 0x154]
push esi
push edi
push 0x104
lea eax, [esp + 0x50]
push 0
push eax
call fcn.00404c50
mov eax, dword [esp + 0x164]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0xc
sub eax, 1
je 0x4022b0
sub eax, 1
je 0x40229e
sub eax, 1
jne 0x402300
lea ecx, [esp + 0x4c]
push ecx
push eax
push eax
push 0x23
push eax
call fcn.00403140
add esp, 0x14
lea edx, [esp + 0x4c]
push edx
call edi
cmp byte [esp + eax + 0x4b], 0x5c
je 0x40226c
mov byte [esp + eax + 0x4c], 0x5c
mov byte [esp + eax + 0x4d], 0
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402300
mov byte [ebp], 0
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.00404c23
add esp, 0x148
ret
lea ecx, [esp + 0x4c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x402254
push 0x104
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x4c]
push edx
call edi
cmp byte [esp + eax + 0x4b], 0x5c
je 0x4022d4
mov byte [esp + eax + 0x4c], 0x5c
inc eax
lea esi, [esp + eax + 0x4c]
push str.Temp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402280
push 0x40b28c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.2408031812334318217652932
call edi
dec eax
cmp eax, 8
jl 0x402284
mov al, byte [eax + str.2408031812334318217652932]
cmp al, 0x30
jl 0x402284
cmp al, 0x39
jg 0x402284
movsx esi, al
sub esi, 0x30
and esi, reloc.WS2_32.dll_closesocket
jns 0x40233a
dec esi
or esi, 0xfffffffc
inc esi
push str.2408031812334318217652932
add esi, 4
call edi
sub eax, esi
dec eax
xor ecx, ecx
lea eax, [eax + str.2408031812334318217652932]
nop
mov dl, byte [eax]
test dl, dl
je 0x4023b5
test esi, esi
jle 0x4023b5
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xc], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023aa
test esi, esi
jle 0x4023aa
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xd], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023ad
test esi, esi
jle 0x4023ad
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xe], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023b2
test esi, esi
jle 0x4023b2
add dl, dl
inc dl
mov byte [esp + ecx + 0xf], dl
add ecx, 4
dec esi
inc eax
cmp ecx, 0x40
jb 0x402350
jmp 0x4023b5
inc ecx
jmp 0x4023b5
add ecx, 2
jmp 0x4023b5
add ecx, 3
mov byte [esp + ecx + 0xc], 0x2e
push 0x40b288
lea ecx, [esp + ecx + 0x11]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x4c]
push edx
call edi
mov ecx, 0x104
sub ecx, eax
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x54]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + eax + 0x54]
push ecx
call esi
push 0x103
lea edx, [esp + 0x50]
push edx
push ebp
call esi
mov ecx, dword [esp + 0x150]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.00404c23
add esp, 0x148
ret