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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54da78
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 0x5a1c30
lea ecx, [ebp - 0x58]
call fcn.00404c20
mov dword [ebp - 4], 0
push 0x5a1c4c
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.00416e10
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 0x5a1c68
lea ecx, [ebp - 0x70]
call fcn.00404c20
mov dword [ebp - 4], 2
push 0x5a1cbc
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.00472312
mov esp, ebp
pop ebp
ret

Function at 0x417160
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d338
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 0x5a1cc4
lea ecx, [ebp - 0x28]
call fcn.004064c0
push 0x5a1cc8
lea ecx, [ebp - 0x28]
call fcn.004064c0
push 1
push 0x5a1cec
push 0x5a1cf0
lea ecx, [ebp - 0x28]
call fcn.00401c20
push eax
push 0x5a1cf4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x2c]
call fcn.004169c0
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.00472312
mov esp, ebp
pop ebp
ret
Function at 0x4173b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54daeb
mov eax, dword fs:[0]
push eax
sub esp, 0x98
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 - 0x98], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xa4], eax
push 0x5a1da8
mov ecx, dword [ebp - 0x98]
add ecx, 0x4c
call fcn.004758f0
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x9c]
mov eax, dword [edx + 0x184]
call eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0xa4]
push ecx
lea ecx, [ebp - 0x94]
call fcn.00484410
mov dword [ebp - 4], 0
push 0x5a1dc4
mov ecx, dword [ebp - 0x98]
add ecx, 0x4c
call fcn.004758f0
mov dword [ebp - 0xa0], eax
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ebp - 0xa0]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xa0]
mov eax, dword [edx + 0x3c]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00484540
push 0
push 0x5a1df0
mov ecx, dword [ebp - 0xa4]
push ecx
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x417ee0
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.004f3400
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 0x417f4b
xor eax, eax
jmp 0x417fec
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 0x417f9a
xor eax, eax
jmp 0x417fec
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.00472312
mov esp, ebp
pop ebp
ret
Function at 0x418000
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d738
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 0x5a2150
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x30], eax
push 0x5a2134
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 0x5a21c8
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x30], eax
cmp dword [0x1343ca0], 0
je 0x4180b7
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401c60
push 0x5a21e0
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 0x5a21fc
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x30], eax
cmp dword [0x1343ca0], 0
je 0x418103
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x28]
call fcn.00401c60
push 0x5a221c
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 0x5a2240
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x30], eax
cmp dword [0x1343ca0], 0
je 0x41816c
mov ecx, dword [0x1343ca0]
add ecx, 0x34
call fcn.00404890
shl eax, 1
push eax
mov ecx, dword [0x1343ca0]
add ecx, 0x34
call fcn.00401c20
push eax
push 1
push 0
push 0x5a2258
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 0x41817c
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.00472312
mov esp, ebp
pop ebp
ret
Function at 0x4181b0
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 0x418280
lea ecx, [ebp - 0x810]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x41826c
xor edx, edx
mov word [ebp - 0x804], dx
push 0x7fe
push 0
lea eax, [ebp - 0x802]
push eax
call fcn.004f3400
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 0x418251
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 0x41829f
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 0x5a2278
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.00472312
mov esp, ebp
pop ebp
ret
Function at 0x418720
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54dd0d
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.004f3400
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 0x418967
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x828]
call fcn.00404c20
mov dword [ebp - 4], 0
push 0x5a2380
lea ecx, [ebp - 0x828]
call fcn.004064c0
push 0x5a2384
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 0x418955
push 0x5a23a0
lea edx, [ebp - 0x828]
push edx
lea eax, [ebp - 0x858]
push eax
call fcn.00407220
add esp, 0xc
mov byte [ebp - 4], 1
push 0x5a23a8
lea ecx, [ebp - 0x858]
call fcn.004064c0
push 0x5a23c4
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.00417ee0
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 0x5a23d0
lea eax, [ebp - 0x828]
push eax
lea ecx, [ebp - 0x840]
push ecx
call fcn.00407220
add esp, 0xc
mov byte [ebp - 4], 4
push 0x5a23d8
lea ecx, [ebp - 0x840]
call fcn.004064c0
push 0x5a23f4
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.00417ee0
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.00472312
mov esp, ebp
pop ebp
ret
Function at 0x419f50
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 0x419f9c
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 0x419fb7
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 0x41a016
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 0x419f8d
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 0x41a031
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.00472312
mov esp, ebp
pop ebp
ret

Function at 0x41a080
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 0x41a126
push 0x34
push 0x5a2eac
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 0x41a11c
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x41a112
cmp dword [ebp - 0x1c], 1
jne 0x41a112
push 0
push 0
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x41a112
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x41a112
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x1c], 4
jne 0x41a110
jmp 0x41a112
jmp 0x41a0ec
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.00472312
mov esp, ebp
pop ebp
ret
Function at 0x41a140
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.0041a080
push 0x20000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x41a1eb
push 0x34
push 0x5a2eb4
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 0x41a1e1
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x41a1d7
cmp dword [ebp - 0x1c], 1
jne 0x41a1d7
push 0
push 0
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x41a1d7
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x41a1d7
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x1c], 4
jne 0x41a1d5
jmp 0x41a1d7
jmp 0x41a1b1
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.00472312
mov esp, ebp
pop ebp
ret
Function at 0x41b650
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.004f3400
add esp, 0xc
mov dword [ebp - 0x120], 0x104
lea ecx, [ebp - 0x118]
push ecx
push 0x20019
push 0
push 0x5a3428
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jne 0x41b788
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push 0x5a344c
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 0x41b77b
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 0x41b727
mov eax, dword [ebp - 0x110]
sub eax, dword [ebp - 0x124]
mov dword [ebp - 0x128], eax
je 0x41b77b
push 0x5a3460
lea ecx, [ebp - 0x108]
push ecx
call fcn.0041a650
add esp, 8
test eax, eax
je 0x41b77b
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.00472312
mov esp, ebp
pop ebp
ret

Function at 0x41b840
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 0x41b88f
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 0x41b8a0
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.004f3400
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 0x41b931
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
je 0x41b91d
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 0x41b940
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.004f3400
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x41b9d2
mov edx, dword [ebp + 8]
push edx
push 0x5a3468
lea eax, [ebp - 0x108]
push eax
call fcn.00404200
add esp, 0xc
push 1
push 0
lea ecx, [ebp - 0x108]
push ecx
call fcn.0041b8a0
add esp, 0xc
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472312
mov esp, ebp
pop ebp
ret
Function at 0x41b9e0
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x13413f8]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x124], 0
mov byte [ebp - 0x108], 0
push 0x103
push 0
lea eax, [ebp - 0x107]
push eax
call fcn.004f3400
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x118], ecx
lea edx, [ebp - 0x108]
mov dword [ebp - 0x110], edx
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 0x118]
mov dl, byte [ecx]
mov byte [ebp - 0x109], dl
mov eax, dword [ebp - 0x110]
mov cl, byte [ebp - 0x109]
mov byte [eax], cl
mov edx, dword [ebp - 0x118]
add edx, 1
mov dword [ebp - 0x118], edx
mov eax, dword [ebp - 0x110]
add eax, 1
mov dword [ebp - 0x110], eax
cmp byte [ebp - 0x109], 0
jne 0x41ba3c
lea ecx, [ebp - 0x108]
add ecx, 0xffffffff
mov dword [ebp - 0x114], ecx
mov edx, dword [ebp - 0x114]
mov al, byte [edx + 1]
mov byte [ebp - 0x10a], al
add dword [ebp - 0x114], 1
cmp byte [ebp - 0x10a], 0
jne 0x41ba8e
mov edi, dword [ebp - 0x114]
mov ecx, dword [0x5a3480]
mov dword [edi], ecx
mov edx, dword [0x5a3484]
mov dword [edi + 4], edx
mov al, byte [0x5a3488]
mov byte [edi + 8], al
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x41bb44
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 1
push 2
push 0x110
push 0xf01ff
lea edx, [ebp - 0x108]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
je 0x41bb44
mov edx, dword [ebp - 0x120]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x124], 1
mov eax, dword [ebp - 0x11c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x124]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472312
mov esp, ebp
pop ebp
ret

Function at 0x41bb70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0xc]
push eax
push 0x2011f
push 0
push 0x5a348c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41bbf9
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov cl, byte [eax]
mov byte [ebp - 1], cl
add dword [ebp - 8], 1
cmp byte [ebp - 1], 0
jne 0x41bbb2
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 1
push 0
push 0x5a34a0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret