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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x48a1d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 0x10]
push eax
push 0x20219
push 0
lea ecx, [ebp + 0xc]
call fcn.00402da0
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x412aeb
lea edx, [ebp - 8]
push edx
push 0
lea eax, [ebp - 0xc]
push eax
push 0
lea ecx, [ebp + 0x24]
call fcn.00402da0
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x412ae1
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0x3c]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
lea ecx, [ebp + 0x24]
call fcn.00402da0
push eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp + 0xc]
call fcn.00402d70
lea ecx, [ebp + 0x24]
call fcn.00402d70
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043715b
mov esp, ebp
pop ebp
ret

Function at 0x412b20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x48a1d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 0x10]
push eax
push 0x20219
push 0
lea ecx, [ebp + 0xc]
call fcn.004077f0
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x412bbb
lea edx, [ebp - 8]
push edx
push 0
lea eax, [ebp - 0xc]
push eax
push 0
lea ecx, [ebp + 0x24]
call fcn.004077f0
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x412bb1
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0x3c]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
lea ecx, [ebp + 0x24]
call fcn.004077f0
push eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp + 0xc]
call fcn.00406810
lea ecx, [ebp + 0x24]
call fcn.00406810
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043715b
mov esp, ebp
pop ebp
ret
Function at 0x412bf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46af30
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x48a1d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x1c]
push eax
push 0x20219
push 0
lea ecx, [ebp + 0xc]
call fcn.00402da0
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x412cc6
lea edx, [ebp - 0x14]
push edx
push 0
lea eax, [ebp - 0x18]
push eax
push 0
lea ecx, [ebp + 0x24]
call fcn.00402da0
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x412cbc
mov edx, dword [ebp - 0x14]
sub edx, 1
mov dword [ebp - 0x24], edx
je 0x412c93
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0x3c]
call fcn.004042d0
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 0x3c]
call fcn.00402da0
push eax
lea edx, [ebp - 0x18]
push edx
push 0
lea ecx, [ebp + 0x24]
call fcn.00402da0
push eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00402d70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.00402d70
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043715b
mov esp, ebp
pop ebp
ret
Function at 0x412d10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46af70
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x48a1d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x1c]
push eax
push 0x20219
push 0
lea ecx, [ebp + 0xc]
call fcn.004077f0
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x412de8
lea edx, [ebp - 0x14]
push edx
push 0
lea eax, [ebp - 0x18]
push eax
push 0
lea ecx, [ebp + 0x24]
call fcn.004077f0
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x412dde
mov edx, dword [ebp - 0x14]
shr edx, 1
sub edx, 1
mov dword [ebp - 0x24], edx
je 0x412db5
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0x3c]
call fcn.004102d0
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 0x3c]
call fcn.004077f0
push eax
lea edx, [ebp - 0x18]
push edx
push 0
lea ecx, [ebp + 0x24]
call fcn.004077f0
push eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00406810
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.00406810
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043715b
mov esp, ebp
pop ebp
ret
Function at 0x412e30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46afb3
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x48a1d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x42c]
push eax
push 0x20219
push 0
lea ecx, [ebp + 0xc]
call fcn.004077f0
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0
jne 0x412ffd
mov dword [ebp - 0x430], 0
xor edx, edx
mov word [ebp - 0x420], dx
push 0x206
push 0
lea eax, [ebp - 0x41e]
push eax
call fcn.004369a0
add esp, 0xc
mov dword [ebp - 0x424], 0x208
xor ecx, ecx
mov word [ebp - 0x218], cx
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call fcn.004369a0
add esp, 0xc
mov dword [ebp - 0x428], 0x208
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x448], eax
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x218]
push edx
push 0
push 0
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x420]
push ecx
mov edx, dword [ebp - 0x448]
push edx
mov eax, dword [ebp - 0x42c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x438], eax
mov ecx, dword [ebp - 0x430]
add ecx, 1
mov dword [ebp - 0x430], ecx
cmp dword [ebp - 0x438], 0x103
je 0x412ff0
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x480]
call fcn.00411790
mov dword [ebp - 0x444], eax
mov ecx, dword [ebp - 0x444]
mov dword [ebp - 0x440], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x440]
push edx
lea eax, [ebp - 0x450]
push eax
mov ecx, dword [ebp + 0x24]
call fcn.004126f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x480]
call fcn.004127d0
mov dword [ebp - 0x424], 0x208
mov dword [ebp - 0x428], 0x208
push 0x208
push 0
lea ecx, [ebp - 0x420]
push ecx
call fcn.004369a0
add esp, 0xc
push 0x208
push 0
lea edx, [ebp - 0x218]
push edx
call fcn.004369a0
add esp, 0xc
jmp 0x412ef2
mov eax, dword [ebp - 0x42c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x434]
mov dword [ebp - 0x43c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00406810
mov eax, dword [ebp - 0x43c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043715b
mov esp, ebp
pop ebp
ret
Function at 0x413040
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46aff3
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x48a1d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x21c]
push eax
push 0x20219
push 0
lea ecx, [ebp + 0xc]
call fcn.004077f0
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x413178
xor edx, edx
mov word [ebp - 0x218], dx
push 0x206
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.004369a0
add esp, 0xc
mov dword [ebp - 0x220], 0
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x228], ecx
push 0x208
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp - 0x228]
push eax
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov dword [ebp - 0x22c], eax
mov edx, dword [ebp - 0x220]
add edx, 1
mov dword [ebp - 0x220], edx
cmp dword [ebp - 0x22c], 0x103
je 0x41316b
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00406660
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x248]
push ecx
mov ecx, dword [ebp + 0x24]
call fcn.00413c60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.00406810
push 0x208
push 0
lea edx, [ebp - 0x218]
push edx
call fcn.004369a0
add esp, 0xc
jmp 0x4130cf
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x230], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00406810
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043715b
mov esp, ebp
pop ebp
ret

Function at 0x4131c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x48a1d0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0x2021f
push 0
lea ecx, [ebp + 0xc]
call fcn.00402da0
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x41322d
mov ecx, dword [ebp + 0x3c]
call fcn.004036d0
push eax
mov ecx, dword [ebp + 0x3c]
call fcn.00402da0
push eax
push 1
push 0
lea ecx, [ebp + 0x24]
call fcn.00402da0
push eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
lea ecx, [ebp + 0xc]
call fcn.00402d70
lea ecx, [ebp + 0x24]
call fcn.00402d70
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043715b
mov esp, ebp
pop ebp
ret
Function at 0x413260
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x48a1d0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0x2021f
push 0
lea ecx, [ebp + 0xc]
call fcn.004077f0
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4132cf
mov ecx, dword [ebp + 0x3c]
call fcn.0040f710
shl eax, 1
push eax
mov ecx, dword [ebp + 0x3c]
call fcn.004077f0
push eax
push 1
push 0
lea ecx, [ebp + 0x24]
call fcn.004077f0
push eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
lea ecx, [ebp + 0xc]
call fcn.00406810
lea ecx, [ebp + 0x24]
call fcn.00406810
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043715b
mov esp, ebp
pop ebp
ret

Function at 0x413e40
Capabilities:
Create thread
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x48a1d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x40], 0
je 0x413e6a
xor al, al
jmp 0x413f51
push 0x10
push 0
lea ecx, [ebp - 0x14]
push ecx
call fcn.004369a0
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0xc], eax
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x44
push ecx
mov edx, dword [ebp + 0x10]
or edx, 4
push edx
lea eax, [ebp - 0x14]
push eax
push 0x413fb0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x40], eax
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x40], 0
je 0x413ee5
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x40], 0xffffffff
jne 0x413ee9
xor al, al
jmp 0x413f51
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xc], 0
mov edx, dword [ebp + 0x10]
and edx, 4
je 0x413f2e
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [ebp - 0x24], 0
jne 0x413f47
mov dword [ebp - 0x1c], 1
jmp 0x413f4e
mov dword [ebp - 0x1c], 0
mov al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043715b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x414520
Capabilities:
Enumerate processes
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x640
mov eax, dword [0x48a1d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x640], ecx
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x634], eax
cmp dword [ebp - 0x634], 0xffffffff
jne 0x41456c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x475ee4
call fcn.0043b572
add esp, 8
xor eax, eax
jmp 0x414651
xor eax, eax
mov word [ebp - 0x404], ax
push 0x3fe
push 0
lea ecx, [ebp - 0x402]
push ecx
call fcn.004369a0
add esp, 0xc
mov dword [ebp - 0x630], 0x22c
lea edx, [ebp - 0x630]
push edx
mov eax, dword [ebp - 0x634]
push eax
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 0x63c], eax
mov dword [ebp - 0x638], 0
cmp dword [ebp - 0x63c], 0
je 0x41463e
lea ecx, [ebp - 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x60c]
push eax
call fcn.00414bd0
add esp, 8
test eax, eax
je 0x414620
mov ecx, dword [ebp - 0x628]
mov dword [ebp - 0x638], ecx
mov edx, dword [ebp - 0x638]
push edx
push 0x475f14
push 0x200
lea eax, [ebp - 0x404]
push eax
call fcn.0043afb1
add esp, 0x10
lea ecx, [ebp - 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x41463e
lea edx, [ebp - 0x630]
push edx
mov eax, dword [ebp - 0x634]
push eax
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 0x63c], eax
jmp 0x4145b8
mov ecx, dword [ebp - 0x634]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x638]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043715b
mov esp, ebp
pop ebp
ret 4
Function at 0x414670
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b100
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x20
mov eax, dword [0x48a1d0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x28]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x414767
mov eax, dword [ebp - 0x20]
push eax
call fcn.0043860e
add esp, 4
mov dword [ebp - 0x24], eax
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043860e
add esp, 4
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x24], 0
je 0x41472a
cmp dword [ebp - 0x28], 0
jne 0x414733
push 0
push 0
call fcn.0043716a
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x28]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x414760
push 0
push 0
call fcn.0043716a
mov dword [ebp - 0x2c], 1
jmp 0x41476f
mov dword [ebp - 4], 0xffffffff
jmp 0x41477f
cmp dword [ebp - 0x28], 0
je 0x414791
mov eax, dword [ebp - 0x28]
push eax
call fcn.004385d6
add esp, 4
cmp dword [ebp - 0x2c], 0
jne 0x4147a9
cmp dword [ebp - 0x24], 0
je 0x4147a9
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.004385d6
add esp, 4
cmp dword [ebp - 0x2c], 0
je 0x4147b7
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x24]
mov dword [edx], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043715b
mov esp, ebp
pop ebp
ret 8
Function at 0x4147e0
Capabilities:
Get session user name
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x48a1d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x628], ecx
mov dword [ebp - 0x620], 0
push 0x475e80
mov ecx, dword [ebp - 0x628]
call fcn.00414520
mov dword [ebp - 0x624], eax
cmp dword [ebp - 0x624], 0
jne 0x414846
push 0x475e9c
mov ecx, dword [ebp + 8]
call fcn.00406660
mov eax, dword [ebp - 0x620]
or eax, 1
mov dword [ebp - 0x620], eax
mov eax, dword [ebp + 8]
jmp 0x41499b
mov ecx, dword [ebp - 0x624]
push ecx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x62c], eax
lea edx, [ebp - 0x61c]
push edx
push 0xa
mov eax, dword [ebp - 0x62c]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov ecx, dword [ebp - 0x61c]
push ecx
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov dx, word [0x475ea0]
mov word [ebp - 0x20c], dx
push 0x206
push 0
lea eax, [ebp - 0x20a]
push eax
call fcn.004369a0
add esp, 0xc
mov dword [ebp - 0x610], 0x104
lea ecx, [ebp - 0x610]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov word [ebp - 0x60c], ax
push 0x3fe
push 0
lea ecx, [ebp - 0x60a]
push ecx
call fcn.004369a0
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
push 0x475ea4
push 0x200
lea eax, [ebp - 0x60c]
push eax
call fcn.0043afb1
add esp, 0x10
lea ecx, [ebp - 0x60c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov dword [ebp - 0x618], 0
lea edx, [ebp - 0x618]
push edx
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp - 0x628]
call fcn.00414670
lea ecx, [ebp - 0x614]
push ecx
mov edx, dword [ebp - 0x618]
push edx
call sub.ADVAPI32.dll_ConvertSidToStringSidW
mov eax, dword [ebp - 0x614]
push eax
push 0x475ec4
push 0x200
lea ecx, [ebp - 0x60c]
push ecx
call fcn.0043afb1
add esp, 0x10
lea edx, [ebp - 0x60c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x614]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406660
mov ecx, dword [ebp - 0x620]
or ecx, 1
mov dword [ebp - 0x620], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043715b
mov esp, ebp
pop ebp
ret 4
Function at 0x418d00
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b690
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x48a1d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x424], ecx
mov dword [ebp - 4], 1
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.004369a0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x420], dx
push 0x206
push 0
lea eax, [ebp - 0x41e]
push eax
call fcn.004369a0
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp + 8]
call fcn.004077f0
push eax
call fcn.0040dc80
add esp, 8
lea edx, [ebp - 0x420]
push edx
lea ecx, [ebp + 0x20]
call fcn.004077f0
push eax
call fcn.0040dc80
add esp, 8
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x420]
push ecx
call fcn.00437104
add esp, 8
test eax, eax
je 0x418dda
push 0
lea ecx, [ebp + 0x20]
call fcn.004077f0
push eax
lea ecx, [ebp + 8]
call fcn.004077f0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00406810
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.00406810
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043715b
mov esp, ebp
pop ebp
ret 0x30
Function at 0x419f60
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b880
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x48a1d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x30], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x419faf
jmp 0x41a0c6
mov dword [ebp - 0x34], 0
push 0xf01ff
push 0x476eec
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x419fe2
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x41a0c6
lea edx, [ebp - 0x2c]
push edx
push 1
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x41a012
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x38], ecx
cmp dword [ebp - 0x38], 3
jne 0x41a012
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x48], esp
push 0x476f0c
call fcn.00406660
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x5c], edx
mov dword [ebp - 4], 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x54], esp
push str.SYSTEMCurrentControlSet_services
call fcn.00406660
mov dword [ebp - 0x64], eax
push SysStringLen
mov dword [ebp - 4], 0xffffffff
call fcn.004129d0
add esp, 0x34
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x4c], esp
push str.LEGACY_BBInputService
call fcn.00406660
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 1
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x58], esp
push str.SYSTEMCurrentControlSetEnumRoot
call fcn.00406660
mov dword [ebp - 0x60], eax
push SysStringLen
mov dword [ebp - 4], 0xffffffff
call fcn.004129d0
add esp, 0x34
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043715b
mov esp, ebp
pop ebp
ret