joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427c80
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x521e28]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [0x4f1c80]
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.004ad2c0
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x427d54
mov eax, dword [ebp + 8]
push eax
call fcn.004ade29
add esp, 4
sub eax, 1
mov dword [ebp - 0x214], eax
jmp 0x427cef
mov ecx, dword [ebp - 0x214]
sub ecx, 1
mov dword [ebp - 0x214], ecx
mov edx, dword [ebp - 0x214]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2]
test ecx, ecx
je 0x427d39
cmp dword [ebp - 0x214], 0xffffffff
jle 0x427d39
mov edx, dword [ebp - 0x214]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2]
cmp ecx, 0x5c
jne 0x427d37
mov edx, dword [ebp - 0x214]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.004b3edc
add esp, 0xc
jmp 0x427d39
jmp 0x427ce0
lea edx, [ebp - 0x210]
push edx
call fcn.00427c80
add esp, 4
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ad2aa
mov esp, ebp
pop ebp
ret

Function at 0x428630
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0x104
mov byte [ebp - 9], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x428682
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 9], al
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x4286a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4286f2
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x428710
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x428761
mov eax, dword [ebp + 0x14]
push eax
call fcn.004ade29
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push 1
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 5], al
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x42bd60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0
jne 0x42bd92
xor eax, eax
jmp 0x42be3c
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0xc], 1
jne 0x42bdaf
push str.CTISMSIPCClient___Windows_9X_ONLY_can_be_a_SMSIPCSVRTYPE_ACCESS_INBOUND_type__n
call fcn.00405640
add esp, 4
xor eax, eax
jmp 0x42be3c
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x42bdef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CTISMSIPCClient___CreateFile_failed_with__d._n
call fcn.00405640
add esp, 8
xor eax, eax
jmp 0x42be3c
push 0
lea eax, [ebp - 0x10]
push eax
push 0x10
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x42be21
push str.CTISMSIPCClient___WriteFile_failed_n
call fcn.00405640
add esp, 4
xor eax, eax
jmp 0x42be3c
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x42caf0
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2a64
call fcn.004ad6f0
mov eax, dword [0x521e28]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x42cb14
xor eax, eax
jmp 0x42cd7c
mov dword [ebp - 0x2a58], 0
mov ax, word [0x4f49cc]
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.004ad2c0
add esp, 0xc
mov dx, word [0x4f49d0]
mov word [ebp - 0x2a50], dx
push 0x206
push 0
lea eax, [ebp - 0x2a4e]
push eax
call fcn.004ad2c0
add esp, 0xc
mov word [ebp - 0x2848], 0
push 0x206
push 0
lea ecx, [ebp - 0x2846]
push ecx
call fcn.004ad2c0
add esp, 0xc
push 0x2424
push 0
lea edx, [ebp - 0x2640]
push edx
call fcn.004ad2c0
add esp, 0xc
lea eax, [ebp - 0x2848]
push eax
push 2
call fcn.00428a40
push 0x4f49d4
lea ecx, [ebp - 0x2640]
push ecx
call fcn.004ad71b
add esp, 8
test eax, eax
je 0x42cc0c
push 0x4f49d8
lea edx, [ebp - 0x2640]
push edx
push 0x4f49e8
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.00401cd0
add esp, 0x14
push 0x4f49f4
lea ecx, [ebp - 0x2640]
push ecx
push 0x4f4a04
push 0x104
lea edx, [ebp - 0x2a50]
push edx
call fcn.00401cd0
add esp, 0x14
jmp 0x42cc52
push 0x4f4a10
push 0x4f4a20
push 0x4f4a60
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.00401cd0
add esp, 0x14
push 0x4f4a6c
push 0x4f4a88
push 0x4f4a7c
push 0x104
lea ecx, [ebp - 0x2a50]
push ecx
call fcn.00401cd0
add esp, 0x14
mov dword [ebp - 0x2a54], 0
mov dword [ebp - 0x214], 0
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x2a54], eax
cmp dword [ebp - 0x2a54], 0
je 0x42cd76
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0
push 2
push 0x10
push 0xf01ff
lea eax, [ebp - 0x210]
push eax
push 0x4f4ac8
mov ecx, dword [ebp - 0x2a54]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x42cd5f
push 0x4f4ae0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x2a5c], eax
cmp dword [ebp - 0x2a5c], 0
je 0x42cd3e
push str.ChangeServiceConfig2W
mov edx, dword [ebp - 0x2a5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x2a60], eax
cmp dword [ebp - 0x2a60], 0
je 0x42cd27
lea eax, [ebp - 0x2a50]
mov dword [ebp - 0x2a64], eax
lea ecx, [ebp - 0x2a64]
push ecx
push 1
mov edx, dword [ebp - 0x214]
push edx
call dword [ebp - 0x2a60]
mov eax, dword [ebp - 0x2a5c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x2a5c], 0
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x2a58], 1
mov edx, dword [ebp - 0x2a54]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x2a54], 0
mov eax, dword [ebp - 0x2a58]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ad2aa
mov esp, ebp
pop ebp
ret
Function at 0x42d8b0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 8], 0
push SysReAllocString
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42d944
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
push 4
push 0x4f4d28
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x42d933
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x42d922
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x42d950
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42da13
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
push 0x104
push 0x4f4d40
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x42da02
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x42d9f1
cmp dword [ebp - 0x24], 4
jne 0x42d9f1
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x42d9f1
mov dword [ebp - 8], 1
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x42f370
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x521e28]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov ax, word [0x4f4f50]
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.004ad2c0
add esp, 0xc
mov dword [ebp - 8], 0xffffffff
push 0x104
lea edx, [ebp - 0x218]
push edx
call fcn.0042fb50
add esp, 8
lea eax, [ebp - 8]
push eax
call fcn.004304c0
add esp, 4
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x218]
push eax
call fcn.0042fbc0
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x42f5dc
mov dword [ebp - 0x21c], 0xffffffff
lea ecx, [ebp - 0x21c]
push ecx
push 1
push 1
push 0
push 0x2000000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x42f5cb
push 0x4f4f54
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x220], eax
push 0x4f4f6c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x220], 0
je 0x42f5ab
cmp dword [ebp - 0x224], 0
je 0x42f5ab
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
push 0x4f4f88
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
je 0x42f4b1
push 0
mov ecx, dword [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x230]
push edx
call dword [ebp - 0x22c]
push 4
lea eax, [ebp - 8]
push eax
push 0xc
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x42f545
mov dword [ebp - 0x234], 0x430
mov dword [ebp - 0x238], 0
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], 0x4f4fa0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
mov eax, dword [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x234]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x42f533
mov dword [ebp - 0xc], 1
jmp 0x42f53f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x238], eax
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov dword [ebp - 0x228], 0
push 0x4f4fc0
mov ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
je 0x42f57d
mov edx, dword [ebp - 0x230]
push edx
call dword [ebp - 0x228]
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x220], 0
mov ecx, dword [ebp - 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x224], 0
cmp dword [ebp - 0x21c], 0
je 0x42f5cb
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x21c], 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ad2aa
mov esp, ebp
pop ebp
ret
Function at 0x42f5f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x521e28]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov ax, word [0x4f4fd8]
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.004ad2c0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
call fcn.0042fb50
add esp, 8
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x218]
push edx
call fcn.0042fbc0
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x42f831
mov dword [ebp - 0x21c], 0xffffffff
lea eax, [ebp - 0x21c]
push eax
push 1
push 1
push 0
push 0x2000000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x42f820
push 0x4f4fdc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x220], eax
push 0x4f4ff4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x220], 0
je 0x42f800
cmp dword [ebp - 0x224], 0
je 0x42f800
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
push 0x4f5010
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
je 0x42f71e
push 0
mov eax, dword [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x230]
push ecx
call dword [ebp - 0x22c]
push 4
lea edx, [ebp + 0x14]
push edx
push 0xc
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x42f79a
mov dword [ebp - 0x234], 0x430
mov edx, dword [ebp + 0xc]
mov dword [edx + 8], 0x4f5028
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
mov edx, dword [ebp - 0x230]
push edx
mov eax, dword [ebp - 0x234]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x42f794
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov dword [ebp - 0x228], 0
push 0x4f5048
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
je 0x42f7d2
mov ecx, dword [ebp - 0x230]
push ecx
call dword [ebp - 0x228]
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x220], 0
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x224], 0
cmp dword [ebp - 0x21c], 0
je 0x42f820
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x21c], 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004ad2aa
mov esp, ebp
pop ebp
ret
Function at 0x42fb50
Capabilities:
Persist via winlogon helper dll registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42fba8
lea ecx, [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0
push str.Shell
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4303c0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 8], 0
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x430474
push 0x104
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x430463
mov dword [ebp - 0x28], 0
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x430452
cmp dword [ebp - 0x24], 4
jne 0x430452
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x430452
mov dword [ebp - 8], 1
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4304c0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x521e28]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
push 0x4f531c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x430633
mov dword [ebp - 0xc], 0
push 0x4f5338
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x430622
mov cx, word [0x4f5348]
mov word [ebp - 0x30], cx
xor edx, edx
mov dword [ebp - 0x2e], edx
mov dword [ebp - 0x2a], edx
mov dword [ebp - 0x26], edx
mov dword [ebp - 0x22], edx
mov dword [ebp - 0x1e], edx
mov dword [ebp - 0x1a], edx
mov dword [ebp - 0x16], edx
mov word [ebp - 0x12], dx
mov dword [ebp - 0x34], 0x10
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea edx, [ebp - 0x30]
push edx
call dword [ebp - 0xc]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x430622
mov dword [ebp - 0x40], 0
push 0x4f534c
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0
push 0x4f5364
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x40], 0
je 0x430622
cmp dword [ebp - 0x3c], 0
je 0x430622
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x48]
push eax
push 1
push 0
mov ecx, dword [ebp - 0x38]
push ecx
call dword [ebp - 0x40]
test eax, eax
je 0x43060e
mov dword [ebp - 0x4c], 0
jmp 0x4305da
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x44]
jae 0x43060e
mov ecx, dword [ebp - 0x4c]
imul ecx, ecx, 0xc
mov edx, dword [ebp - 0x48]
cmp dword [edx + ecx + 8], 0
jne 0x43060c
mov eax, dword [ebp - 0x4c]
imul eax, eax, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + eax]
mov dword [ecx], eax
mov dword [ebp - 8], 1
jmp 0x43060e
jmp 0x4305d1
cmp dword [ebp - 0x48], 0
je 0x43061b
mov ecx, dword [ebp - 0x48]
push ecx
call dword [ebp - 0x3c]
mov dword [ebp - 0x48], 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ad2aa
mov esp, ebp
pop ebp
ret
Function at 0x4306f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], 0
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov dword [ebp - 8], eax
push 0x60000
push 0
push str.winsta0
call dword [sym.imp.USER32.dll_OpenWindowStationW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x43085b
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
test eax, eax
je 0x430851
push 0x60081
push 0
push 0
push str.default
call dword [sym.imp.USER32.dll_OpenDesktopW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x430851
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x14], 0
cmp dword [ebp + 8], 0
jne 0x430799
lea edx, [ebp - 0x14]
push edx
push 0xffffffffffffffff
push 0
call fcn.0042fbc0
add esp, 0xc
test eax, eax
je 0x430792
mov eax, dword [ebp - 0x14]
mov dword [ebp + 8], eax
jmp 0x430799
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
je 0x430847
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00430870
add esp, 8
test eax, eax
je 0x430837
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.004309f0
add esp, 8
test eax, eax
je 0x43082b
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00430da0
add esp, 8
test eax, eax
je 0x43082b
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x43082b
mov edx, dword [ebp + 0x10]
mov dword [edx + 8], str.winsta0default
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
push 0
push 0x30
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [ebp - 0xc], eax
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
lea ecx, [ebp - 0x18]
push ecx
call fcn.004309d0
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x430847
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_CloseDesktop]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_CloseWindowStation]
mov eax, 1
mov esp, ebp
pop ebp
ret