joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416ea0
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d90e
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x13413f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea eax, [ebp - 0x90]
push eax
push 0
push 0x20006
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.00401c20
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4170b3
mov ecx, dword [ebp - 0x90]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xc]
call fcn.00404890
shl eax, 1
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00401c20
push eax
push 1
push 0
mov ecx, dword [ebp + 8]
call fcn.00401c20
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
push 0x5a1c80
lea ecx, [ebp - 0x58]
call fcn.00404c20
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x58]
call fcn.00404a20
push 0x5a1c84
lea ecx, [ebp - 0x58]
call fcn.004064c0
lea ecx, [ebp - 0x58]
call fcn.00404890
shl eax, 1
push eax
lea ecx, [ebp - 0x58]
call fcn.00401c20
push eax
push 1
push 0x5a1c8c
mov ecx, dword [ebp + 8]
call fcn.00401c20
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
push 0x5a1ca4
lea ecx, [ebp - 0x40]
call fcn.00404c20
mov byte [ebp - 4], 1
push 0x5a1cd4
lea ecx, [ebp - 0x28]
call fcn.00404c20
mov byte [ebp - 4], 2
mov dword [ebp - 0x8c], 0
jmp 0x416fcf
mov eax, dword [ebp - 0x8c]
add eax, 1
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 2
jge 0x41706f
mov ecx, dword [ebp + 0x10]
push ecx
push 0x22
lea edx, [ebp - 0x88]
push edx
call fcn.00419390
add esp, 0xc
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x98], eax
mov byte [ebp - 4], 3
push 0x5a1d08
mov ecx, dword [ebp - 0x98]
push ecx
lea edx, [ebp - 0x70]
push edx
call fcn.00414be0
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
call fcn.00401cd0
lea ecx, [ebp - 0x70]
call fcn.00404890
shl eax, 1
push eax
lea ecx, [ebp - 0x70]
call fcn.00401c20
push eax
push 1
push 0
imul eax, dword [ebp - 0x8c], 0x18
lea ecx, [ebp + eax - 0x40]
call fcn.00401c20
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
lea ecx, [ebp - 0x70]
call fcn.00401cd0
jmp 0x416fc0
push 0
push 0
push 1
mov ecx, dword [ebp + 8]
call fcn.00401c20
push eax
push 0x5a1d18
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov byte [ebp - 4], 0
push fcn.00401cd0
push 2
push 0x18
lea ecx, [ebp - 0x40]
push ecx
call fcn.0047275c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00401cd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472272
mov esp, ebp
pop ebp
ret
Function at 0x4170d0
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d958
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x13413f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x5a1d44
lea ecx, [ebp - 0x58]
call fcn.00404c20
mov dword [ebp - 4], 0
push 0x5a1d60
lea ecx, [ebp - 0x40]
call fcn.00404c20
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.00416ea0
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00401cd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00401cd0
push 0x5a1d80
lea ecx, [ebp - 0x70]
call fcn.00404c20
mov dword [ebp - 4], 2
push 0x5a1dd4
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00407220
add esp, 0xc
lea edx, [ebp - 0x74]
push edx
push 2
push 0
lea ecx, [ebp - 0x70]
call fcn.00401c20
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x28]
call fcn.00404890
shl eax, 1
push eax
lea ecx, [ebp - 0x28]
call fcn.00401c20
push eax
push 1
push 0
push 0
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x74]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x28]
call fcn.00401cd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00401cd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472272
mov esp, ebp
pop ebp
ret

Function at 0x4171f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d208
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x13413f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
add eax, 0x1c
push eax
lea ecx, [ebp - 0x28]
call fcn.00404d00
mov dword [ebp - 4], 0
push 0x5a1d7c
lea ecx, [ebp - 0x28]
call fcn.004064c0
push 0x5a1ddc
lea ecx, [ebp - 0x28]
call fcn.004064c0
push 1
push 0x5a1e00
push 0x5a1e04
lea ecx, [ebp - 0x28]
call fcn.00401c20
push eax
push 0x5a1e08
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x2c]
call fcn.00416a50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401cd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472272
mov esp, ebp
pop ebp
ret
Function at 0x417db0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x13413f8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.004f3280
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
push 0x5517f0
push 1
push 0
push 0x551820
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jge 0x417e1b
xor eax, eax
jmp 0x417ebc
mov ecx, dword [ebp + 8]
call fcn.00401c20
push eax
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x210]
push edx
mov eax, dword [ecx + 0x50]
call eax
lea ecx, [ebp - 0x218]
push ecx
push 0x551810
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x210]
push ecx
mov edx, dword [eax]
call edx
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jge 0x417e6a
xor eax, eax
jmp 0x417ebc
push 2
mov ecx, dword [ebp + 0xc]
call fcn.00401c20
push eax
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x218]
push edx
mov eax, dword [ecx + 0x18]
call eax
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x218]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x218]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x210]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472272
mov esp, ebp
pop ebp
ret
Function at 0x417ee0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d608
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x13413f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x5a2198
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x30], eax
push 0x5a217c
lea ecx, [ebp - 0x28]
call fcn.00404c20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00404890
shl eax, 1
push eax
lea ecx, [ebp - 0x28]
call fcn.00401c20
push eax
push 1
push 0
push 0x5a2210
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x30], eax
cmp dword [0x1343cd0], 0
je 0x417f97
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401c60
push 0x5a2228
lea ecx, [ebp - 0x28]
call fcn.004064c0
lea ecx, [ebp - 0x28]
call fcn.00404890
shl eax, 1
push eax
lea ecx, [ebp - 0x28]
call fcn.00401c20
push eax
push 1
push 0
push 0x5a2244
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x30], eax
cmp dword [0x1343cd0], 0
je 0x417fe3
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x28]
call fcn.00401c60
push 0x5a2264
lea ecx, [ebp - 0x28]
call fcn.004064c0
lea ecx, [ebp - 0x28]
call fcn.00404890
shl eax, 1
push eax
lea ecx, [ebp - 0x28]
call fcn.00401c20
push eax
push 1
push 0
push 0x5a2288
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x30], eax
cmp dword [0x1343cd0], 0
je 0x41804c
mov ecx, dword [0x1343cd0]
add ecx, 0x34
call fcn.00404890
shl eax, 1
push eax
mov ecx, dword [0x1343cd0]
add ecx, 0x34
call fcn.00401c20
push eax
push 1
push 0
push 0x5a22a0
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x2c], 0
je 0x41805c
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401cd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472272
mov esp, ebp
pop ebp
ret
Function at 0x418090
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x13413f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x80c], 0
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x418160
lea ecx, [ebp - 0x810]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x41814c
xor edx, edx
mov word [ebp - 0x804], dx
push 0x7fe
push 0
lea eax, [ebp - 0x802]
push eax
call fcn.004f3280
add esp, 0xc
lea ecx, [ebp - 0x804]
push ecx
mov edx, dword [ebp - 0x810]
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x418131
lea eax, [ebp - 0x804]
push eax
mov ecx, dword [ebp + 8]
call fcn.00404c20
mov ecx, dword [ebp - 0x80c]
or ecx, 1
mov dword [ebp - 0x80c], ecx
mov eax, dword [ebp + 8]
jmp 0x41817f
mov edx, dword [ebp - 0x810]
push edx
mov eax, dword [ebp - 0x808]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x808]
push edx
mov eax, dword [ecx + 0x14]
call eax
mov ecx, dword [ebp - 0x808]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x808]
push eax
mov ecx, dword [edx + 8]
call ecx
push 0x5a22c0
mov ecx, dword [ebp + 8]
call fcn.00404c20
mov edx, dword [ebp - 0x80c]
or edx, 1
mov dword [ebp - 0x80c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472272
mov esp, ebp
pop ebp
ret
Function at 0x418600
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54db6d
mov eax, dword fs:[0]
push eax
sub esp, 0x8b0
mov eax, dword [0x13413f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov word [ebp - 0x810], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x80e]
push ecx
call fcn.004f3280
add esp, 0xc
push 0
push 0xb
lea edx, [ebp - 0x810]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [ebp - 0x8bc], eax
cmp dword [ebp - 0x8bc], 0
je 0x418847
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x828]
call fcn.00404c20
mov dword [ebp - 4], 0
push 0x5a23c8
lea ecx, [ebp - 0x828]
call fcn.004064c0
push 0x5a23cc
lea ecx, [ebp - 0x828]
call fcn.004064c0
lea ecx, [ebp - 0x828]
push ecx
call fcn.00406a90
add esp, 4
mov dword [ebp - 0x8bc], eax
cmp dword [ebp - 0x8bc], 0
je 0x418835
push 0x5a23e8
lea edx, [ebp - 0x828]
push edx
lea eax, [ebp - 0x858]
push eax
call fcn.00407220
add esp, 0xc
mov byte [ebp - 4], 1
push 0x5a23f0
lea ecx, [ebp - 0x858]
call fcn.004064c0
push 0x5a240c
lea ecx, [ebp - 0x858]
call fcn.004064c0
lea ecx, [ebp - 0x858]
call fcn.00401c20
push eax
lea ecx, [ebp - 0x888]
call fcn.00404c20
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 8]
call fcn.00401c20
push eax
lea ecx, [ebp - 0x870]
call fcn.00404c20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x888]
push ecx
lea edx, [ebp - 0x870]
push edx
call fcn.00417db0
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x870]
call fcn.00401cd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x888]
call fcn.00401cd0
push 0x5a2418
lea eax, [ebp - 0x828]
push eax
lea ecx, [ebp - 0x840]
push ecx
call fcn.00407220
add esp, 0xc
mov byte [ebp - 4], 4
push 0x5a2420
lea ecx, [ebp - 0x840]
call fcn.004064c0
push 0x5a243c
lea ecx, [ebp - 0x840]
call fcn.004064c0
lea ecx, [ebp - 0x840]
call fcn.00401c20
push eax
lea ecx, [ebp - 0x8b8]
call fcn.00404c20
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 0xc]
call fcn.00401c20
push eax
lea ecx, [ebp - 0x8a0]
call fcn.00404c20
mov byte [ebp - 4], 6
lea edx, [ebp - 0x8b8]
push edx
lea eax, [ebp - 0x8a0]
push eax
call fcn.00417db0
add esp, 8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x8a0]
call fcn.00401cd0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8b8]
call fcn.00401cd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x840]
call fcn.00401cd0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x858]
call fcn.00401cd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x828]
call fcn.00401cd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472272
mov esp, ebp
pop ebp
ret
Function at 0x419e70
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x13413f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x118], 0xff
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov dword [ebp - 0x110], 0
jmp 0x419ebc
mov edx, dword [ebp - 0x110]
add edx, 1
mov dword [ebp - 0x110], edx
lea eax, [ebp - 0x104]
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x10c]
add ecx, 1
mov dword [ebp - 0x11c], ecx
mov edx, dword [ebp - 0x10c]
mov al, byte [edx]
mov byte [ebp - 0x105], al
add dword [ebp - 0x10c], 1
cmp byte [ebp - 0x105], 0
jne 0x419ed7
mov ecx, dword [ebp - 0x10c]
sub ecx, dword [ebp - 0x11c]
mov dword [ebp - 0x120], ecx
mov edx, dword [ebp - 0x110]
cmp edx, dword [ebp - 0x120]
jae 0x419f36
mov eax, dword [ebp - 0x110]
movsx cx, byte [ebp + eax - 0x104]
mov edx, dword [ebp - 0x110]
mov eax, dword [ebp + 8]
mov word [eax + edx*2], cx
jmp 0x419ead
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x114], ecx
mov edx, dword [ebp - 0x114]
add edx, 1
mov dword [ebp - 0x124], edx
mov eax, dword [ebp - 0x114]
mov cl, byte [eax]
mov byte [ebp - 0x106], cl
add dword [ebp - 0x114], 1
cmp byte [ebp - 0x106], 0
jne 0x419f51
mov edx, dword [ebp - 0x114]
sub edx, dword [ebp - 0x124]
mov dword [ebp - 0x128], edx
xor eax, eax
mov ecx, dword [ebp - 0x128]
mov edx, dword [ebp + 8]
mov word [edx + ecx*2], ax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472272
mov esp, ebp
pop ebp
ret

Function at 0x419fa0
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x13413f8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x20000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x41a046
push 0x34
push 0x5a2ec8
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x41a03c
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x41a032
cmp dword [ebp - 0x1c], 1
jne 0x41a032
push 0
push 0
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x41a032
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x41a032
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x1c], 4
jne 0x41a030
jmp 0x41a032
jmp 0x41a00c
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472272
mov esp, ebp
pop ebp
ret
Function at 0x41a060
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x13413f8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00419fa0
push 0x20000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x41a10b
push 0x34
push 0x5a2ed0
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x41a101
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x41a0f7
cmp dword [ebp - 0x1c], 1
jne 0x41a0f7
push 0
push 0
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x41a0f7
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x41a0f7
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x1c], 4
jne 0x41a0f5
jmp 0x41a0f7
jmp 0x41a0d1
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472272
mov esp, ebp
pop ebp
ret
Function at 0x41b570
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x13413f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
mov byte [ebp - 0x108], 0
push 0x103
push 0
lea eax, [ebp - 0x107]
push eax
call fcn.004f3280
add esp, 0xc
mov dword [ebp - 0x120], 0x104
lea ecx, [ebp - 0x118]
push ecx
push 0x20019
push 0
push 0x5a3444
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jne 0x41b6a8
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push 0x5a3468
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jne 0x41b69b
lea edx, [ebp - 0x108]
mov dword [ebp - 0x110], edx
mov eax, dword [ebp - 0x110]
add eax, 1
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x110]
mov dl, byte [ecx]
mov byte [ebp - 0x109], dl
add dword [ebp - 0x110], 1
cmp byte [ebp - 0x109], 0
jne 0x41b647
mov eax, dword [ebp - 0x110]
sub eax, dword [ebp - 0x124]
mov dword [ebp - 0x128], eax
je 0x41b69b
push 0x5a347c
lea ecx, [ebp - 0x108]
push ecx
call fcn.0041a570
add esp, 8
test eax, eax
je 0x41b69b
mov dword [ebp - 0x11c], 1
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472272
mov esp, ebp
pop ebp
ret

Function at 0x41b760
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41b7af
mov dword [ebp - 8], 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x41b7c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 4], 0
push 0x44
push 0
lea eax, [ebp - 0x58]
push eax
call fcn.004f3280
add esp, 0xc
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], 1
mov cx, word [ebp + 0xc]
mov word [ebp - 0x28], cx
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x58]
push ecx
push 0
push 0
push 0x10
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x41b851
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
je 0x41b83d
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x41b860
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x13413f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], 0xc
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
mov byte [ebp - 0x108], 0
push 0x103
push 0
lea eax, [ebp - 0x107]
push eax
call fcn.004f3280
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x41b8f2
mov edx, dword [ebp + 8]
push edx
push 0x5a3484
lea eax, [ebp - 0x108]
push eax
call fcn.00404200
add esp, 0xc
push 1
push 0
lea ecx, [ebp - 0x108]
push ecx
call fcn.0041b7c0
add esp, 0xc
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472272
mov esp, ebp
pop ebp
ret