joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401063
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4b31cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push 0x4a1ee0
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401138
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401127
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x401111
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x401127
push eax
push edi
push dword [ebp - 0x110]
call section..text
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x40113a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0046dfbe
leave
ret 4

Function at 0x403950
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x48c8e8
mov dword [ebp - 4], 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push 0
mov edi, eax
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 4]
push eax
push 0x4a1f9c
push 1
push 0
push 0x4a206c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jne 0x4039c0
mov eax, dword [ebp - 4]
push ebx
mov ebx, dword [ebp + 8]
push ebx
mov ecx, dword [eax]
push esi
push esi
push esi
push esi
push esi
push esi
push edi
push eax
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
jne 0x4039bf
push eax
push eax
push 3
push 4
push eax
push eax
push 0xa
push dword [ebx]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov esi, eax
pop ebx
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4039d4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408dd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, ecx
push edi
push 0
push 0
push 0x1200
push dword [ebx + 0x14]
call esi
inc eax
xor ecx, ecx
mov dword [ebp - 8], eax
mov edx, 4
add eax, eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046d699
mov edi, eax
mov byte [ebp - 1], 0
mov eax, dword [ebp - 8]
add esp, 4
shl eax, 3
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], edi
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x10], 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408ecb
cmp dword [ebp - 0x10], 3
jne 0x408ecb
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], eax
jne 0x408ecb
mov ecx, dword [ebp - 8]
lea eax, [ecx + 1]
lea eax, [edi + eax*4]
push eax
lea eax, [ecx - 1]
push eax
push 0x1212
push dword [ebx + 0x14]
call esi
mov eax, dword [ebp - 8]
xor esi, esi
test eax, eax
jle 0x408ec7
cmp dword [edi + esi*4], 0
jle 0x408ec2
mov edi, dword [edi + esi*4]
push 0x4e
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp edi, eax
jge 0x408ebc
mov dword [ebp - 0x44], 1
lea eax, [ebp - 0x44]
mov dword [ebp - 0x40], edi
push eax
test esi, esi
jne 0x408eaa
push esi
push 0x120c
push dword [ebx + 0xc]
jmp 0x408eb6
lea eax, [esi - 1]
push eax
push 0x120c
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
inc esi
cmp esi, eax
jl 0x408e78
mov byte [ebp - 1], 1
push edi
call fcn.0046e86a
mov al, byte [ebp - 1]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x408ee0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4b31cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 0
mov edi, ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
push 0
push 0x1200
push dword [edi + 0x14]
mov dword [ebp - 0x20], eax
call esi
inc eax
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov edx, 4
add eax, eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046d699
mov ebx, eax
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
lea ecx, [eax + 1]
mov dword [ebx + eax*4], 0
lea ecx, [ebx + ecx*4]
push ecx
lea ecx, [eax - 1]
push ecx
push 0x1211
push dword [edi + 0x14]
call esi
mov eax, dword [ebp - 0x18]
xor esi, esi
test eax, eax
jle 0x408fc2
mov ebx, dword [sym.imp.USER32.dll_MapWindowPoints]
lea eax, [ebp - 0x14]
push eax
test esi, esi
jne 0x408f8c
push esi
push 0x1207
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
push 2
lea eax, [ebp - 0x14]
push eax
push dword [edi + 8]
push dword [edi + 0xc]
jmp 0x408faa
lea eax, [esi - 1]
push eax
push 0x1207
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_SendMessageW]
push 2
lea eax, [ebp - 0x14]
push eax
push dword [edi + 8]
push dword [edi + 0x14]
call ebx
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
mov dword [ecx + esi*4], eax
inc esi
mov eax, dword [ebp - 0x18]
cmp esi, eax
jl 0x408f67
mov ebx, ecx
shl eax, 3
push eax
push ebx
push 3
push 0
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
call fcn.0046e86a
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.0046dfbe
mov esp, ebp
pop ebp
ret 8

Function at 0x409180
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4b31cc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 8], 0
push edi
mov edi, ecx
je 0x4091f4
lea eax, [ebp - 0x14]
push eax
push dword [edi + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
push 2
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 0xc]
sub ecx, eax
push 3
mov dword [ebp - 0x14], ecx
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 8]
mov edx, ecx
sub edx, eax
mov eax, dword [ebp - 0xc]
push 0x44
sub ecx, edx
mov dword [ebp - 0x10], edx
push ecx
mov ecx, dword [ebp - 0x14]
sub eax, ecx
push eax
push edx
push ecx
push 0
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046dfbe
mov esp, ebp
pop ebp
ret 4
push 0
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0046dfbe
mov esp, ebp
pop ebp
ret 4
Function at 0x409210
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4b31cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14]
mov esi, ecx
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov cl, byte [ebp + 0xc]
shr eax, 0x1c
and al, 1
cmp al, cl
setne bl
mov byte [ebp - 0x31], bl
test cl, cl
je 0x4092dd
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 3
call ebx
push 2
mov dword [ebp - 0x3c], eax
call ebx
mov ecx, dword [esi + 0x20]
mov dword [ebp - 0x40], eax
cmp edi, ecx
jne 0x40927a
mov dword [ebp - 0x38], 0
jmp 0x409283
mov eax, dword [esi + 0x90]
mov dword [ebp - 0x38], eax
cmp edi, ecx
jne 0x40928f
mov esi, dword [esi + 0x90]
jmp 0x409295
mov esi, dword [ebp - 0xc]
sub esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 8]
sub ebx, dword [ebp - 0x10]
sub ebx, dword [ebp - 0x3c]
push 3
call dword [sym.imp.USER32.dll_GetSystemMetrics]
add eax, ebx
cmp byte [ebp + 0x10], 0
je 0x4092b1
sub esi, dword [ebp - 0x40]
push 0x44
sub eax, ebx
push eax
mov eax, dword [ebp - 0x38]
sub esi, eax
push esi
push ebx
push eax
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov al, byte [ebp - 0x31]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046dfbe
mov esp, ebp
pop ebp
ret 0xc
test al, al
je 0x409327
push 1
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x1c
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push 2
movdqu xmmword [ebp - 0x28], xmm0
push edi
mov dword [ebp - 0x2c], 4
mov dword [ebp - 0x1c], 0
call dword [sym.imp.USER32.dll_SetScrollInfo]
push 0
push edi
mov ecx, esi
call fcn.00406dc0
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046dfbe
mov esp, ebp
pop ebp
ret 0xc
Function at 0x409340
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4b31cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
lea eax, [ebp - 0x14]
push eax
push dword [edi + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
push 0xfffffffffffffff0
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov cl, byte [ebp + 8]
shr eax, 0x1c
and al, 1
cmp al, cl
setne bl
test cl, cl
je 0x4093d1
push 3
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 2
mov dword [ebp - 0x34], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
mov edx, ecx
sub edx, eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
cmp byte [ebp + 0xc], 0
je 0x4093a9
sub eax, dword [ebp - 0x34]
push 0x44
push eax
sub ecx, edx
push ecx
push 0
push edx
push 0
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046dfbe
mov esp, ebp
pop ebp
ret 8
test al, al
je 0x40941e
push 1
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x1c
push eax
push 2
push dword [edi + 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movdqu xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x2c], 4
mov dword [ebp - 0x1c], 0
call dword [sym.imp.USER32.dll_SetScrollInfo]
push 0
mov ecx, edi
call fcn.00409980
push 0
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
xor ecx, ebp
pop ebx
call fcn.0046dfbe
mov esp, ebp
pop ebp
ret 8
Function at 0x40c200
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x4b31cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x40c330
push 0x2c
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.0046e870
add esp, 0xc
mov dword [ebp - 0xa0], 0x30
mov dword [ebp - 0x9c], 3
mov dword [ebp - 0x98], 0x40c010
push 0x7f89
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0x80], 0x10
mov dword [ebp - 0x78], 0x48f248
mov dword [ebp - 0x7c], 0
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push 0
push 0x31
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x70]
mov dword [ebx + 4], eax
push ecx
push 0x5c
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [ebp - 0x70]
mov byte [ebp - 0x5b], 1
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push esi
lea ecx, [ebx + 0x10]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edi
mov byte [ebx], 0
call fcn.00402100
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [sym.imp.USER32.dll_GetParent]
lea eax, [ebp - 0x14]
push 2
push eax
push edi
call esi
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0
push edi
call esi
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
sub eax, edx
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
push 0x50000000
push 0x48cc00
push 0x48f248
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046dfbe
mov esp, ebp
pop ebp
ret 8

Function at 0x40c350
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0
call dword [sym.imp.ole32.dll_CreateBindCtx]
mov edi, dword [ebp + 0xc]
mov esi, eax
test esi, esi
js 0x40c3bb
push 0x48f208
push 0x48f224
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c3a6
mov ecx, dword [edi]
test ecx, ecx
je 0x40c390
mov ecx, dword [ecx]
jmp 0x40c392
xor ecx, ecx
push 0
push 2
push 0
push dword [ebp - 4]
push 0
push 0
push 0
push ecx
call eax
mov esi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
js 0x40c3bb
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
test eax, eax
je 0x40c3c5
mov eax, dword [eax]
jmp 0x40c3c7
xor eax, eax
push 1
push 0
push 0
push eax
push 0x48f23c
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
pop edi
setge al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40c410
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4b31cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov dword [edi], eax
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
mov dword [edi + 8], eax
call fcn.00468d70
push eax
push esi
call fcn.00468f00
mov dword [edi + 0xc], eax
add esp, 0xc
cmp dword [edi], 0
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0
mov dword [edi + 0x24], 0
je 0x40c505
test ebx, ebx
je 0x40c495
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x14]
cdq
sub eax, edx
sar eax, 1
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
jmp 0x40c4ab
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
cdq
sub eax, edx
sar eax, 1
push 1
mov dword [edi + 0x18], eax
call esi
cdq
sub eax, edx
push 2
sar eax, 1
push ebx
mov dword [edi + 0x1c], eax
call dword [sym.imp.USER32.dll_GetAncestor]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push eax
call ebx
mov esi, eax
mov dword [edi + 0x24], esi
test esi, esi
je 0x40c4ec
mov edi, edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x40c4ec
push 0
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x40c4d0
lea eax, [ebp - 0x18]
push eax
push 0
push edi
push 0x40cc80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x20], eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046dfbe
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40e480
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
push eax
push 4
push 0
push 0x48f46c
push esi
mov dword [ebp - 4], 3
call edi
lea eax, [ebp - 0xc]
push eax
push 0x48f490
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
call esi
push 0x36
push 0x48f4a4
push 1
push 0
push 0x48f4dc
push dword [ebp - 0xc]
call edi
lea eax, [ebp - 8]
push eax
push 0x48f4a4
push dword [ebp - 0xc]
call esi
push 0xc
push 0x48f4fc
push 1
push 0
push 0x48f50c
push dword [ebp - 8]
call edi
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 4
push 0
push 0x48f520
push dword [ebp - 8]
call edi
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0xc]
call esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40e530
Capabilities:
Delete file
Delete registry key
Delete registry value
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483c5b
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4b31cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x21c]
push eax
push 0x48f5f8
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40e65b
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x48f880
push dword [ebp - 0x21c]
call esi
push 0x48f898
push dword [ebp - 0x21c]
call esi
push 0x48f8ac
push dword [ebp - 0x21c]
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x48f650
push dword [ebp - 0x21c]
call esi
push 0x48f65c
push dword [ebp - 0x21c]
call esi
push 0x48f678
push dword [ebp - 0x21c]
call esi
push 0x48f694
push dword [ebp - 0x21c]
call esi
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x48f8b8
lea ecx, [ebp - 0x224]
call fcn.00402030
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0040e340
add esp, 0xc
lea ecx, [ebp - 0x224]
call fcn.004039e0
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x40e647
mov eax, dword [eax]
jmp 0x40e649
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x220]
call fcn.004039e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046dfbe
mov esp, ebp
pop ebp
ret
Function at 0x40eab0
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4b31cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x414]
push 0x104
push eax
mov dword [ebp - 0x418], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x48f52c
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x48f548
push eax
call fcn.00401f70
lea eax, [ebp - 0x20c]
push eax
push 0x48f564
call fcn.0040ebe0
add esp, 0x18
test al, al
je 0x40eb24
lea eax, [ebp - 0x20c]
push eax
jmp 0x40ebc5
cmp byte [ebp + 0xc], 0
jne 0x40ebc3
push 0x48f52c
lea eax, [ebp - 0x414]
push 0x48f57c
push eax
call fcn.00401f70
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x20c]
push eax
push 0x48f564
call fcn.0040ebe0
add esp, 8
test al, al
jne 0x40eb18
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x48f52c
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x48f594
push eax
call fcn.00401f70
lea eax, [ebp - 0x20c]
push eax
push 0x48f564
call fcn.0040ebe0
add esp, 0x18
test al, al
jne 0x40eb18
push 0
mov ecx, esi
call fcn.00402030
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0046dfbe
mov esp, ebp
pop ebp
ret

Function at 0x40ebe0
Capabilities:
Extract resource via kernel32 functions
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0x48f420
push dword [ebp + 8]
mov dword [ebp - 4], 0
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40ec0b
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
push edi
mov dword [ebp - 8], eax
call esi
push 0x48f430
lea eax, [ebp - 4]
push edi
push eax
call fcn.0046fe74
add esp, 0xc
push 0x82
push edi
call esi
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40ec68
pop esi
pop ebx
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
push eax
push ebx
push 1
push dword [ebp - 8]
call fcn.004701bf
push dword [ebp - 4]
call fcn.0046ffef
add esp, 0x14
mov al, 1
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x40ec90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
mov dword [ebp - 4], 4
push eax
push 0x48f5f8
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40ece1
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x48f678
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40ecf0
Capabilities:
Delete registry key
Delete registry value
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4b31cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x48f5cc
call fcn.0040ea00
add esp, 4
lea eax, [ebp - 0x210]
push eax
push 0x48f5f8
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40ef0e
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x214]
push 4
push eax
push 4
push 0
push 0x48f650
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 2
call esi
push 4
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 1
push eax
push 4
push 0
push 0x48f65c
push dword [ebp - 0x210]
call esi
push 4
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 3
push eax
push 4
push 0
push 0x48f678
push dword [ebp - 0x210]
call esi
push edi
lea eax, [ebp - 0x20c]
push 0x48f684
push eax
call fcn.00401f70
lea ecx, [ebp - 0x20c]
add esp, 0xc
lea edx, [ecx + 2]
jmp 0x40edd0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40edd0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0x48f694
push dword [ebp - 0x210]
call esi
push dword [ebp - 0x210]
call fcn.0040e480
add esp, 4
push 0x48f6a8
push 0x48f40c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, 0x7a
mov dword [ebp - 0x218], 0x48f6b8
mov word [ebp - 0x21c], cx
lea ecx, [ebp - 0x21c]
push ecx
call eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
push 0x48f738
push reloc.WS2_32.dll_bind
call esi
push 0x48f7a0
push reloc.WS2_32.dll_bind
call esi
push 0x48f810
push reloc.WS2_32.dll_bind
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x48f650
push dword [ebp - 0x210]
call esi
push 0x48f65c
push dword [ebp - 0x210]
call esi
push 0x48f678
push dword [ebp - 0x210]
call esi
push 0x48f694
push dword [ebp - 0x210]
call esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
test edi, edi
je 0x40ef03
cmp edi, 0xc000010e
je 0x40ef03
mov eax, dword [0x4b4898]
test eax, eax
jne 0x40eee3
push 0x48f3f4
push 0x48f40c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4b4898], eax
push edi
call eax
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046dfbe
mov esp, ebp
pop ebp
ret
push 0
push ebx
call fcn.0040ef20
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0046dfbe
mov esp, ebp
pop ebp
ret