joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408d20
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push ebx
push esi
mov ecx, 0x5100a3
call fcn.004b532d
mov ebx, dword [ebp + 8]
or esi, 0xffffffff
mov byte [ebp - 1], 1
test ebx, ebx
je 0x408df2
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x408dd6
nop
mov eax, ebx
lea ecx, [ebp - 0x20c]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x408d9e
test dx, dx
je 0x408d9a
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x408d9e
add ecx, 4
add eax, 4
test dx, dx
jne 0x408d78
xor eax, eax
jmp 0x408da3
sbb eax, eax
or eax, 1
test eax, eax
jne 0x408dc5
mov esi, dword [ebp - 0x228]
push esi
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp eax, 1
jne 0x408dee
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x408d70
mov bl, byte [ebp - 1]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
cmp esi, 0xffffffff
je 0x408df2
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
xor bl, bl
jmp 0x408dd9
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408f30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d85ed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov ecx, 0x5100a3
mov dword [ebp - 4], 0
call fcn.004b532d
call fcn.004063a0
call fcn.00406670
mov eax, dword [eax + 8]
test eax, eax
je 0x409005
cmp eax, 0xa
ja 0x408f7c
jb 0x409005
mov esi, dword [ebp + 8]
mov ecx, esi
push 0
sub esp, 0x18
mov edx, esp
lea edi, [ecx + 2]
mov dword [edx], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408fa0
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.00403280
call fcn.0040e310
mov esi, dword [ebp + 8]
add esp, 0x1c
mov ecx, esi
push 1
sub esp, 0x18
lea edi, [ecx + 2]
mov edx, esp
mov dword [edx], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408fe3
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.00403280
call fcn.0040e310
add esp, 0x1c
jmp 0x40902f
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
push 0
push 0
push dword [ebp + 8]
push 0x4e024c
push 0
call esi
push 0
push 0
push 0
push dword [ebp + 8]
push str.taskbarpin
push 0
call esi
mov edx, dword [ebp + 8]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409051
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409b80
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, 0x5100a3
push edi
call fcn.004b532d
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x409be6
push esi
push 0xf01ff
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x409bc5
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x409be5
lea eax, [ebp - 0x1c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
mov edx, dword [ebp + 8]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
pop edi
test eax, eax
jg 0x409c02
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esp, ebp
pop ebp
ret

Function at 0x409c10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov ecx, 0x5100a3
call fcn.004b532d
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x409c6c
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ecx + 0x10]
jb 0x409c56
mov ecx, dword [ecx]
push 0
lea edx, [ebp - 4]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
pop esi
test eax, eax
jg 0x409c88
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esp, ebp
pop ebp
ret

Function at 0x409c90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d809e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x804
mov ecx, 0x5100a3
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.004b532d
call fcn.00405240
mov ecx, eax
test ecx, ecx
je 0x409d64
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x10], 1
call fcn.004b8400
add esp, 0xc
lea eax, [ebp - 0x810]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x409d53
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409d27
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00406280
push 1
push 0x4df8c8
mov ecx, esi
call fcn.004040d0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004042d0
int3
Function at 0x409d70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d809e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x804
mov ecx, 0x5100a3
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.004b532d
call fcn.00405240
mov ecx, eax
test ecx, ecx
je 0x409e44
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x10], 1
call fcn.004b8400
add esp, 0xc
lea eax, [ebp - 0x810]
push 0
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x409e33
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409e07
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00406280
push 1
push 0x4df8c4
mov ecx, esi
call fcn.004040d0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004042d0
int3

Function at 0x409e50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d809e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x804
mov ecx, 0x5100a3
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.004b532d
call fcn.00405240
mov ecx, eax
test ecx, ecx
je 0x409f24
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x10], 1
call fcn.004b8400
add esp, 0xc
lea eax, [ebp - 0x810]
push 0
push 2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x409f13
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409ee7
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00406280
push 1
push 0x4df8c0
mov ecx, esi
call fcn.004040d0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004042d0
int3
Function at 0x409f30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d8716
push eax
mov eax, 0x1008
mov dword fs:[0], esp
call fcn.004b5910
push esi
mov ecx, 0x5100a3
mov dword [ebp - 0x14], 0
call fcn.004b532d
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x40a013
mov dword [ebp - 4], 0
call fcn.00405240
mov ecx, eax
test ecx, ecx
je 0x40a0e4
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
push 0x800
push 0
mov dword [ebp - 0x14], 2
mov dword [esi], eax
lea eax, [ebp - 0x814]
push eax
call fcn.004b8400
add esp, 0xc
lea eax, [ebp - 0x814]
push 0
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40a0d3
lea ecx, [ebp - 0x814]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409fd6
sub ecx, edx
lea eax, [ebp - 0x814]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00406280
push 1
push 0x4df8c4
mov ecx, esi
call fcn.004040d0
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.00405240
mov ecx, eax
test ecx, ecx
je 0x40a0ee
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
push 0x800
lea eax, [ebp - 0x1014]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.004b8400
add esp, 0xc
lea eax, [ebp - 0x1014]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40a0a1
lea ecx, [ebp - 0x1014]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a070
sub ecx, edx
lea eax, [ebp - 0x1014]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00406280
push 1
push 0x4e0218
lea ecx, [ebp - 0x10]
call fcn.004040d0
mov esi, dword [ebp - 0x10]
push edi
lea edi, [esi - 0x10]
push edi
call fcn.004043f0
mov esi, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [esi], eax
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40a0d2
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004042d0
push 0x80004005
call fcn.004042d0
int3
Function at 0x40a100
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov ecx, 0x5100a3
call fcn.004b532d
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push dword [ebp + 8]
xor bl, bl
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40a193
movzx eax, word [ebp + 0xc]
push edi
push dword [ebp + 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40a18b
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x40a18b
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov edx, dword [ebp + 8]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a1b0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x40a1c8
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a1d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
mov ecx, 0x510085
call fcn.004b532d
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40a233
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40a233
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40a224
cmp esi, edx
jae 0x40a233
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40a212
cmp esi, edx
jae 0x40a233
cmp word [esi], 0
je 0x40a233
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40bcd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8885
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
mov ecx, 0x5100f6
mov dword [ebp - 4], 1
call fcn.004b532d
push 0xa
xor eax, eax
mov dword [ebp - 0x44], 0
push str.UserChoice
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.00403280
push 0x4e0458
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0040a8b0
add esp, 0xc
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
push ecx
mov ecx, eax
call fcn.0040cc80
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1c], xmm0
mov word [eax], cx
lea ecx, [ebp - 0x5c]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.0040cc00
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x10]
push ecx
push 0xf003f
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x10], 0
cmovae eax, dword [ebp - 0x2c]
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40be1c
push esi
mov esi, dword [ebp - 0x10]
push 0x1a
push 0x4e045c
push 1
push eax
push str.ProgId
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp + 0x34], 8
lea edx, [ebp + 0x20]
jb 0x40bdd1
mov edx, dword [ebp + 0x20]
test edx, edx
je 0x40be09
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x14], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bde0
sub ecx, dword [ebp - 0x14]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.Hash
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
test esi, esi
je 0x40be1b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x40be52
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40be48
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40beba
push edx
push ecx
call fcn.004b531f
add esp, 8
mov edx, dword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp edx, 8
jb 0x40be9c
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40be92
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40beba
push edx
push ecx
call fcn.004b531f
add esp, 8
lea ecx, [ebp + 8]
call fcn.0040cc00
lea ecx, [ebp + 0x20]
call fcn.0040cc00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.004bba0f
int3
Function at 0x40dc50
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push esi
mov ecx, 0x51012a
call fcn.004b532d
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40ddf0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ecx, dword [ebp - 8]
test eax, eax
mov edx, 0x64
cmovne ecx, edx
xor edi, edi
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x40ddef
push ebx
mov ebx, dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004b8400
push 0x104
lea eax, [ebp - 0x120]
mov dword [ebp - 0x14], 0
push 0
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0x104
call fcn.004b8400
push edi
push str._04u
lea eax, [ebp - 0x120]
push 0x104
push eax
call fcn.0040d240
add esp, 0x28
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ddca
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.NetCfgInstanceId
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ddc5
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x40dd8a
mov eax, dword [ebx]
lea ecx, [ebp - 0x224]
push ecx
push eax
call fcn.004bef08
add esp, 8
test eax, eax
jne 0x40ddc5
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 4
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.Characteristics
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40dde3
push dword [ebp - 4]
call esi
inc edi
cmp edi, dword [ebp - 8]
jb 0x40dce2
pop ebx
pop edi
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 0x1c]
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
push dword [ebp - 4]
mov dword [ebp - 0x1c], eax
call esi
pop ebx
pop edi
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 0x1c]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x410e60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
mov ecx, 0x5101ed
push 0xffffffffffffffff
push 0x4d8eb5
push eax
mov dword fs:[0], esp
sub esp, 0x24c
push esi
call fcn.004b532d
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x410fca
push 0x208
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.004b8400
add esp, 0xc
lea eax, [ebp - 0x258]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x38
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x50], 0x3c
push 0
push eax
call fcn.004b8400
add esp, 0xc
mov dword [ebp - 0x44], 0x4e2f58
lea eax, [ebp - 0x258]
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x40], eax
call fcn.00405240
mov ecx, eax
test ecx, ecx
je 0x41100b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov edx, 8
mov dword [ebp - 4], 0
mov cl, byte [eax]
mov eax, 0x13
test cl, cl
lea ecx, [ebp - 0x14]
cmove eax, edx
mov edx, str._upprivi__can_ins_d
push eax
mov eax, str._upprivi
cmovne eax, edx
push eax
call fcn.00406280
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x3c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x410fdb
push 0x4e2fa0
lea ecx, [ebp - 0x10]
call fcn.00403700
push 0x4e2fb8
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0040ec90
push 4
push 0x4e2fdc
push dword [ebp - 0x10]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x411015
mov edx, dword [ebp - 0x10]
push edi
or edi, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410fad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
pop edi
jg 0x410fca
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x410ffa
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
xor al, al
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004042d0
push 0
call fcn.004bf6f1
int3

Function at 0x411500
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, 0x5101ed
call fcn.004b532d
mov eax, dword [ebp + 8]
push 0
push 0
push eax
push 0x4146e0
push 0
push 0
mov dword [eax + 0x18], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp dword [sym.imp.KERNEL32.dll_CloseHandle]
Function at 0x414710
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d809e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x804
mov ecx, 0x5101ed
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.004b532d
call fcn.00405240
mov ecx, eax
test ecx, ecx
je 0x4147e2
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x10], 1
call fcn.004b8400
add esp, 0xc
lea eax, [ebp - 0x810]
push 0
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4147d1
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4147a7
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00406280
push 0x4e2c38
mov ecx, esi
call fcn.0040ec90
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004042d0
int3