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

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46bc08]
cmp dword [eax + 0x30], 0
je 0x45705a
cmp dword [ebx + 0x94], 0
jne 0x457054
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x456f40
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x457054
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 0x45701a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x457054
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.00416418
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x457029
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x457b38
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 0x457b6d
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.004047cc
jmp 0x457b7a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404730
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x458bb0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x458bf1
mov eax, esi
call fcn.0043f084
test al, al
je 0x458bf1
mov eax, dword [ebx + 0x84]
call fcn.0043ed80
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x458bf1
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043ed80
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45ab58
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x4133fc]
call fcn.004050c0
xor eax, eax
push ebp
push 0x45ac9c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x469d74], 0
jne 0x45abab
mov ecx, dword [0x469f6c]
mov dl, 1
mov eax, dword [0x407a94]
call fcn.0040c1bc
call fcn.0040413c
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00403078
mov eax, ebx
call fcn.00404f30
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x45acac
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406428
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404f40
test eax, eax
jle 0x45ac43
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x45ac3c
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.0040495c
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404944
mov eax, dword [ebp - 0x48]
pop edx
call fcn.0040890c
test eax, eax
jne 0x45ac3c
mov ebx, 0x15
jmp 0x45ac48
mov ebx, 0x10
jmp 0x45ac48
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x469d74]
call fcn.0045aab0
mov eax, dword [ebp - 8]
call fcn.0045aab0
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406440
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45aca3
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404700
lea eax, [ebp - 0x10]
mov edx, dword [0x4133fc]
call fcn.00405190
ret
Function at 0x465ac8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b7c
lea esi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x465c37
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 0xf
call fcn.00459660
mov ebx, eax
mov dword [esi], 0x128
mov edx, esi
mov eax, ebx
call fcn.00459680
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x465c09
lea eax, [ebp - 0x134]
lea edx, [esi + 0x24]
mov ecx, 0x104
call fcn.00404944
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00408760
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x138]
mov eax, dword [ebp - 4]
call fcn.00408760
mov edx, dword [ebp - 0x138]
pop eax
call fcn.00404ad8
je 0x465be5
lea eax, [ebp - 0x144]
lea edx, [esi + 0x24]
mov ecx, 0x104
call fcn.00404944
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00408ef8
mov eax, dword [ebp - 0x140]
lea edx, [ebp - 0x13c]
call fcn.00408760
mov eax, dword [ebp - 0x13c]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00408760
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00404ad8
jne 0x465bfa
push 1
mov eax, dword [esi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov edx, esi
mov eax, ebx
call fcn.004596a0
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x465b46
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465c3e
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.00404700
lea eax, [ebp - 4]
call fcn.004046dc
ret
Function at 0x468638
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
xor ecx, ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404b7c
xor eax, eax
push ebp
push 0x46874e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [0x469f30]
call fcn.00408e34
test al, al
je 0x468683
lea eax, [ebp - 8]
mov edx, dword [0x469f30]
call fcn.00404774
jmp 0x46868b
lea eax, [ebp - 8]
call fcn.004046dc
cmp dword [ebp - 8], 0
je 0x46872b
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x44
call fcn.00403078
mov dword [ebp - 0x50], 0x44
xor eax, eax
mov dword [ebp - 0x4c], eax
xor eax, eax
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x24], 1
mov ax, word [0x46bd38]
mov word [ebp - 0x20], ax
mov word [ebp - 0x1e], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
push dword [ebp - 8]
push 0x468764
push dword [ebp - 4]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404a54
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 8]
call fcn.00408ec4
mov eax, dword [ebp - 0x64]
call fcn.00404b8c
push eax
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404b8c
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x46872b
mov ebx, dword [ebp - 0x60]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468755
lea eax, [ebp - 0x64]
call fcn.004046dc
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404700
ret
Function at 0x40127c
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x4010a8
call fcn.004014bc
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x4012b7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4012b7
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4012cf
cmp eax, 0x20b
je 0x4012bc
mov dword [ebp - 0x1c], edi
jmp 0x4012e3
cmp dword [ecx + 0x84], 0xe
jbe 0x4012b7
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x4012dd
cmp dword [ecx + 0x74], 0xe
jbe 0x4012b7
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x402018], 0xffffffff
or dword [0x40201c], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x402014]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x402010]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x402020], eax
call fcn.004014b2
cmp dword [section..data], edi
jne 0x401340
push fcn.004014b2
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0040149b
push 0x401078
push 0x401074
call sub.msvcrt.dll__initterm
mov eax, dword [0x40200c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x402008]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x401070
push 0x40106c
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x4013a6
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x401460
mov dword [ebp - 0x20], esi
cmp word [esi], 0x22
jne 0x4013f4
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x4013c2
cmp ax, 0x22
jne 0x4013af
cmp word [esi], 0x22
jne 0x4013cd
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x4013db
cmp ax, 0x20
jbe 0x4013c8
mov dword [ebp - 0x54], edi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x54], 1
je 0x401401
movzx eax, word [ebp - 0x50]
jmp 0x401404
cmp word [esi], 0x20
jbe 0x4013cd
add esi, ebx
mov dword [ebp - 0x20], esi
jmp 0x4013f4
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], edi
jne 0x401425
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x40145a
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004014f7
ret
Function at 0x401000
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x428]
push ebx
mov ebx, edx
sub esp, 0x45c
mov edx, dword [eax]
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x104
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0x14
test eax, eax
jne 0x401049
cmp word [ebp - 0x428], 0
jne 0x401058
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x220]
mov dword [esp], esi
lea esi, [ebp - 0x42c]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
sub esp, 0xc
mov dword [esp], edi
call sym._PathFindExtensionW_4
sub esp, 4
mov dword [esp + 4], 0x40e000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
jne 0x401190
cmp ebx, 5
je 0x401190
lea eax, [ebp - 0x430]
mov dword [esp + 0xc], 0x415118
mov dword [esp + 0x10], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x414c48
call sym._CoCreateInstance_20
sub esp, 0x14
test eax, eax
js 0x401178
mov eax, dword [ebp - 0x430]
mov ecx, dword [eax]
mov dword [esp + 8], esi
mov dword [esp + 4], 0x416678
mov dword [esp], eax
call dword [ecx]
sub esp, 0xc
test eax, eax
js 0x401178
mov eax, dword [ebp - 0x42c]
mov ecx, dword [eax]
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [ecx + 0x14]
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp - 0x42c]
sub esp, 0xc
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x43c]
sub esp, 4
test edx, edx
js 0x401178
mov ecx, dword [ebp - 0x430]
test ecx, ecx
je 0x401190
lea edx, [ebx + 1]
mov eax, ecx
mov dword [ebp - 0x43c], ecx
call dbg.cx_link_is_64_bit
mov ecx, dword [ebp - 0x43c]
mov ebx, eax
mov eax, dword [ecx]
mov dword [esp], ecx
call dword [eax + 8]
sub esp, 4
jmp 0x40104b
mov eax, dword [ebp - 0x430]
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
sub esp, 4
lea esi, [esi]
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_GetBinaryTypeW]
sub esp, 8
test eax, eax
je 0x401049
xor ebx, ebx
cmp dword [ebp - 0x42c], 6
sete bl
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401210
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x2c
movzx eax, word [edx]
test ax, ax
je 0x401350
mov ecx, 1
jmp 0x40123f
movzx eax, word [edx + 2]
add edx, 2
add ecx, 1
test ax, ax
je 0x40125a
cmp ax, 0x22
je 0x40124b
cmp ax, 0x5c
jne 0x401230
movzx eax, word [edx + 2]
add edx, 2
add ecx, 2
test ax, ax
jne 0x40123f
add ecx, ecx
mov dword [esp + 8], ecx
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]
mov edi, eax
movzx eax, word [esi]
sub esp, 0xc
mov edx, edi
test ax, ax
jne 0x4012ac
jmp 0x4012c6
cmp ax, 0x5c
je 0x401340
mov word [edx], ax
add edx, 2
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
je 0x4012c6
cmp ax, 0x22
jne 0x401290
add esi, 2
mov dword [edx], 0x22005c
add edx, 4
movzx eax, word [esi]
test ax, ax
jne 0x4012ac
xor eax, eax
mov word [edx], ax
mov dword [esp], edi
call dbg.wchars_to_utf8_chars
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov esi, eax
mov dword [esp], str.__s___s__n
call dbg.printf
mov dword [esp + 8], edi
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x1c], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [edx], 0x5c005c
add edx, 4
jmp 0x4012a0
mov ecx, 2
jmp 0x40125c
Function at 0x4023d0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
lea ebx, [ebp - 0x224]
sub esp, 0x24c
mov dword [ebp - 0x22c], 1
mov esi, dword [edi*4 + 0x40e280]
mov dword [esp + 0xc], 0
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
mov dword [esp], 0
call sym._SHGetSpecialFolderPathW_16
sub esp, 0x10
test eax, eax
jne 0x402440
test byte [global___dbch.0], 8
jne 0x402500
add edi, 1
cmp edi, 4
jne 0x4023ee
mov eax, dword [ebp - 0x22c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp word [ebp - 0x224], 0
mov eax, ebx
je 0x402480
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x402450
sub eax, ebx
cmp eax, 0x206
jbe 0x402480
test byte [global___dbch.0], 8
jne 0x402530
mov dword [ebp - 0x22c], 0
jmp 0x402425
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x402499
test al, 0x10
jne 0x402590
test byte [global___dbch.0], 8
je 0x402425
mov eax, ebx
shr eax, 0x10
je 0x4025b6
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x40e022
test edx, edx
jne 0x4024d3
mov eax, ebx
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._s_is_not_a_directory__skipping_it_n
mov dword [esp + 8], global___FUNCTION__
mov dword [esp + 4], global___dbch.0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x402425
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.unable_to_get_the_path_of_folder__08x_n
mov dword [esp + 8], global___FUNCTION__
mov dword [esp + 4], global___dbch.0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x402425
mov eax, ebx
shr eax, 0x10
je 0x4025a4
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, 0x40e022
test ecx, ecx
jne 0x40255d
mov eax, ebx
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.Ignoring_special_folder__08x_because_its_path_is_too_long:__s_n
mov dword [esp + 8], global___FUNCTION__
mov dword [esp + 4], global___dbch.0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x40246f
mov eax, ebx
call dbg.cx_process_dir
test eax, eax
je 0x40246f
jmp 0x402425
mov dword [esp + 4], ebx
mov dword [esp], 0x40e015
call sym._wine_dbg_sprintf.constprop.0
jmp 0x40255d
mov dword [esp + 4], ebx
mov dword [esp], 0x40e015
call sym._wine_dbg_sprintf.constprop.0
jmp 0x4024d3
Function at 0x402650
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x1c
mov dword [esp], eax
call sym._PathSkipRootW_4
mov edi, dword [sym.imp.kernel32.dll_CreateDirectoryW]
sub esp, 4
test eax, eax
je 0x4026c8
mov ebx, eax
movzx eax, word [eax]
mov edi, dword [sym.imp.kernel32.dll_CreateDirectoryW]
test ax, ax
jne 0x402694
jmp 0x4026c8
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x4026c8
cmp ax, 0x5c
jne 0x402688
xor eax, eax
add ebx, 2
mov word [ebx - 2], ax
mov dword [esp + 4], 0
mov dword [esp], esi
call edi
mov edx, 0x5c
mov word [ebx - 2], dx
movzx eax, word [ebx]
sub esp, 8
test ax, ax
jne 0x402694
lea esi, [esi]
mov dword [esp + 4], 0
mov dword [esp], esi
call edi
mov edx, eax
sub esp, 8
mov eax, 1
test edx, edx
jne 0x4026f6
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xb7
sete al
movzx eax, al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402a30
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov edx, eax
mov eax, dword fs:[0x18]
mov ebp, esp
sub esp, 0x18
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x402a62
leave
ret
test byte [0x40d014], 2
jne 0x402a78
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.xmalloc
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x402a6b
Function at 0x402ec0
Capabilities:
Check if process is running under wine
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
lea eax, [ebp - 0x1c]
sub esp, 0x3c
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareWineMenuFiles
mov dword [esp], 0x80000001
call sym._RegCreateKeyW_12
sub esp, 0xc
test eax, eax
jne 0x402f50
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x402f5a
cmp word [esi], 0
mov eax, esi
je 0x402f6d
nop
add eax, 2
cmp word [eax], 0
jne 0x402f00
sub eax, esi
add eax, 2
mov dword [esp + 0x10], esi
mov dword [esp + 4], ebx
mov dword [esp], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
call sym._RegSetValueExW_24
sub esp, 0x18
mov ebx, eax
mov dword [esp], edi
call sym._RegCloseKey_4
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword fs:[0x18]
mov dword [edx + 0x34], eax
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 2
jmp 0x402f0e

Function at 0x403030
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x3c
movzx ecx, word [edx]
test cx, cx
je 0x40308e
lea edi, [edx + 2]
xor edx, edx
lea esi, [esi]
mov dword [ebp - 0x1c], edi
mov ebx, 0x10
lea esi, [esi]
nop
mov edi, edx
shr dx, 1
xor edi, ecx
shr cx, 1
and edi, 1
neg edi
and di, 0xa001
xor edx, edi
sub ebx, 1
jne 0x403060
mov edi, dword [ebp - 0x1c]
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x403050
mov ebx, eax
movzx edi, dx
mov edx, dword [sym.imp.ucrtbase.dll_wcsrchr]
mov dword [esp], esi
mov dword [esp + 4], 0x5c
mov dword [ebp - 0x1c], edx
call edx
mov dword [esp + 4], 0x2e
mov edx, dword [ebp - 0x1c]
test eax, eax
lea ecx, [eax + 2]
cmovne esi, ecx
mov dword [esp], esi
call edx
mov ecx, eax
sub ecx, esi
sar ecx, 1
test eax, eax
je 0x4030ea
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 4], edi
mov dword [esp + 8], ecx
mov dword [esp], str._04X__.s._d
call dbg.heap_wprintf
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp word [esi], 0
je 0x403109
mov eax, esi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4030f8
sub eax, esi
sar eax, 1
mov ecx, eax
jmp 0x4030c6
xor ecx, ecx
jmp 0x4030c6
Function at 0x4031c0
Capabilities:
Get process heap flags
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
mov eax, 0x800
push ebx
mov edi, dword fs:[0x18]
mov ebx, edi
sub esp, 0x4c
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x1c], 0x800
jmp 0x403217
cmp eax, 0xea
jne 0x403270
shl dword [ebp - 0x1c], 1
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x1c]
sub esp, 0xc
call sym._xmalloc
mov dword [esp + 0x1c], 0
mov edi, eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov eax, dword [ebp - 0x2c]
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._RegEnumKeyExW_32
sub esp, 0x20
test eax, eax
jne 0x4031e8
lea esp, [ebp - 0xc]
mov ebx, edi
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], edi
xor ebx, 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]
mov eax, ebx
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4034d0
Capabilities:
Get process heap flags
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x1c]
mov esi, ecx
push ebx
mov ebx, edx
sub esp, 0x4c
mov dword [ebp - 0x2c], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 2
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._RegGetValueW_28
sub esp, 0x1c
test eax, eax
jne 0x403584
mov eax, dword [ebp - 0x1c]
call sym._xmalloc
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
mov dword [ebp - 0x30], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 2
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._RegGetValueW_28
mov edx, dword [ebp - 0x30]
sub esp, 0x1c
test eax, eax
jne 0x403560
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
xor edx, edx
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
Function at 0x404050
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x1c]
mov esi, ecx
push ebx
mov ebx, edx
sub esp, 0x4c
mov dword [ebp - 0x1c], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [ebp - 0x2c], eax
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._AssocQueryStringW_24
sub esp, 0x18
test eax, eax
js 0x404108
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + ecx]
call sym._xmalloc
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [ebp - 0x30], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov eax, dword [ebp - 0x2c]
mov dword [esp], 0
mov dword [esp + 4], eax
call sym._AssocQueryStringW_24
mov edx, dword [ebp - 0x30]
sub esp, 0x18
test eax, eax
js 0x4040e0
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esi, [esi]
xor edx, edx
jmp 0x4040d0