joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4adf93
Capabilities:
Encode data using xor

Disassembly:
sub edx, 0x559e4365
lodsd eax, dword [esi]
pop eax
cmp al, 0xe5
invalid
std
mov edx, 0xaebc9dbd
sub al, 0x9a
std
dec ebp
loop 0x4adf1d
cmp eax, 0x97ad81c9
add al, 0x9e
push 0x79
in eax, dx
or byte [0xd5918d4d], cl
lodsd eax, dword [esi]
mov word [edi - 0x301f7e64], cs
stc
test eax, 0x3053616a
mov al, byte [0xb0ab060d]
jge 0x4adfec
into
cwde
push esi
out dx, al
dec eax
pop es
sbb al, 0x51
jo 0x4adff9
adc eax, 0x65edf3c8
cmp eax, 0xe19199fc
in eax, dx
cmp eax, 0xe19199fc
idiv byte [esi + ecx*8 + 0x5aa35f18]
leave
mov esi, dword [eax - 0x5219f724]
jg 0x4adf57
mov al, byte [0xe79cc1c]
sar dword [esp + ebp - 0x73], 1
out dx, al
pushal
in al, 0x15
mov ebp, 0x8928b765
mov esp, 0xcd3c09e1
movsb byte es:[edi], byte [esi]
cdq
sub ebp, dword [esi*8 - 0x523a56a7]
test al, 0x8c
mov al, byte [0x9ef47673]
sub ebp, dword [ebp + ebx - 0x65]
nop
ror dword [ebx - 0x28435218], cl
popal
nop
jl 0x4ae01e
push eax
sub edx, dword [ecx + 0x31]
jecxz 0x4ae062
cmp eax, 0x53b5d7cc
push ebx
pushfd
sbb al, 0x4a
out dx, eax
cdq
les edi, [esi - 0x13856241]
mov edi, 0xe8cc88d
invalid
test al, 0xa7
dec esi
xchg edi, eax
pop ds
pop ebp
lodsd eax, dword [esi]
ret
sbb eax, 0x13ddb9ed
inc byte [esi - 0x23]
std
fld qword [esi]
push es
inc edi
mov byte [0xa9ac4c6f], al
dec esp
and al, 0x9d
imul esi, dword [esi + 0x48e6cd0f], 0xffffffb9
mov ebp, 0xcfb5b815
mov ebp, 0xff8dcc1b
or al, 0xd9
sbb dword [ebx - 0x622db229], ebp
sbb eax, 0x5bfdd3e9
xor byte [esp + ebp*8], bh
pop esp
jo 0x4ae028
fldcw word [esi]
sbb byte [esi], dh
push es
in eax, dx
push ebp
xchg edi, eax
mov eax, 0x7f970dd6
jg 0x4ae0e2
jg 0x4ae0e3
jge 0x4adffd
xchg edi, eax
bound esi, qword [edx + 0xa]
xchg edi, eax
les edi, [eax + 0x2d]
hlt
ror byte [esi], cl
push cs
fnsave dword [edi*4 - 0xfef460e]
mov ecx, 0x6ced7d6d
mov byte [ebp - 0x10], al
test eax, 0x492181fd
dec ebp
retf
Function at 0x4025e0
Capabilities:
Encrypt data using aes mixcolumns step

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov ecx, 0x51700c
call fcn.004bd4ad
mov byte [ebp - 1], 0
mov eax, 1
imul ecx, eax, 0
mov dl, byte [ebp + 0xc]
mov byte [ebp + ecx - 0xc], dl
mov dword [ebp - 8], 1
jmp 0x402618
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
jge 0x402653
mov ecx, dword [ebp - 8]
movzx edx, byte [ebp + ecx - 0xd]
shl edx, 1
mov eax, dword [ebp - 8]
mov byte [ebp + eax - 0xc], dl
mov ecx, dword [ebp - 8]
movzx edx, byte [ebp + ecx - 0xd]
and edx, 0x80
je 0x402651
mov eax, dword [ebp - 8]
movzx ecx, byte [ebp + eax - 0xc]
xor ecx, 0x1b
mov edx, dword [ebp - 8]
mov byte [ebp + edx - 0xc], cl
jmp 0x40260f
mov dword [ebp - 8], 0
jmp 0x402665
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
jge 0x40268c
movzx edx, byte [ebp + 8]
mov ecx, dword [ebp - 8]
sar edx, cl
and edx, 1
je 0x40268a
mov eax, dword [ebp - 8]
movzx ecx, byte [ebp + eax - 0xc]
movzx edx, byte [ebp - 1]
xor edx, ecx
mov byte [ebp - 1], dl
jmp 0x40265c
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 8
Function at 0x40a860
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov dword [ebp - 8], ecx
mov ecx, 0x517153
call fcn.004bd4ad
push 0
lea ecx, [ebp - 0x18]
call fcn.00407040
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0040a300
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40a8be
mov edx, dword [ebp - 4]
mov dword [ebp - 0x1c], edx
lea ecx, [ebp - 0x18]
call fcn.00407220
mov eax, dword [ebp - 0x1c]
jmp 0x40a940
mov dword [ebp - 0xc], 0x100
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x22c]
push edx
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40a91e
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0040a860
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40a915
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
lea ecx, [ebp - 0x18]
call fcn.00407220
mov eax, dword [ebp - 0x20]
jmp 0x40a940
mov dword [ebp - 0xc], 0x100
jmp 0x40a8c5
lea ecx, [ebp - 0x18]
call fcn.00408140
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.00408620
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x18]
call fcn.00407220
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret 4

Function at 0x40a950
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov ecx, 0x517151
call fcn.004bd4ad
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x40a9b9
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40a986
mov eax, 1
jmp 0x40a9d7
push str.RegDeleteKeyTransactedW
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40a9b7
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0xc]
jmp 0x40a9d7
jmp 0x40a9d2
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x40a9d2
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x40a9d7
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x40b700
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1015
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov ecx, 0x51719f
call fcn.004bd4ad
lea ecx, [ebp - 0x40]
call fcn.00406ef0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x4e7818
call fcn.004067e0
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
mov edx, dword [ebp + 8]
push edx
call fcn.00406780
mov byte [ebp - 4], 0
call fcn.0040df80
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.0040f5a0
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x10]
call fcn.00406750
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], 0
jmp 0x40b793
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x1c]
jae 0x40b854
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x40]
call fcn.00407530
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x14], 0
jne 0x40b825
push 1
mov ecx, dword [ebp - 0x18]
call fcn.00409210
movzx eax, ax
cmp eax, 0x3a
je 0x40b7e6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00407110
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004071b0
jmp 0x40b86f
push 0x4e781c
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.00407620
add esp, 0xc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00407890
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00407110
jmp 0x40b78a
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x10]
call fcn.00407890
push 0
lea ecx, [ebp - 0x10]
call fcn.00407560
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x4e7820
lea ecx, [ebp - 0x10]
call fcn.004078c0
jmp 0x40b78a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00407110
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004071b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40bd80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e10fd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov ecx, 0x51719f
call fcn.004bd4ad
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 1
lea eax, [ebp + 8]
push eax
push 0x4e7af4
lea ecx, [ebp - 0x2c]
push ecx
call fcn.004076c0
add esp, 0xc
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov byte [ebp - 4], 2
push 0x4e7af0
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00407620
add esp, 0xc
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp + 8]
call fcn.004073c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00407110
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00407110
push 0x3c
push 0
lea ecx, [ebp - 0x70]
push ecx
call fcn.004c0800
add esp, 0xc
mov dword [ebp - 0x70], 0x3c
movzx edx, byte [ebp + 0x1c]
test edx, edx
je 0x40be4e
mov dword [ebp - 0x6c], 0x440
jmp 0x40be55
mov dword [ebp - 0x6c], 0x40
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
lea ecx, [ebp + 8]
call fcn.00407560
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp + 0xc]
call fcn.00407560
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 0
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x40be91
mov dword [ebp - 0x54], 5
jmp 0x40be98
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x70]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp dword [ebp + 0x14], 0
je 0x40bebe
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
movzx edx, byte [ebp + 0x10]
test edx, edx
je 0x40bee2
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00407110
mov eax, dword [ebp - 0x30]
jmp 0x40bf2b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c1e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0efe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov ecx, 0x51719f
call fcn.004bd4ad
push 0x208
push 0
lea eax, [ebp - 0x21c]
push eax
call fcn.004c0800
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea edx, [ebp - 0x21c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406860
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
push 0x4e80ac
mov ecx, dword [ebp + 8]
call fcn.004078c0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x40c500
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1246
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x238
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov ecx, 0x51719f
call fcn.004bd4ad
mov eax, dword [ebp + 8]
push eax
call fcn.0040ce60
add esp, 4
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
or ecx, 1
mov dword [ebp - 0x18], ecx
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x40c693
lea edx, [ebp - 0x10]
push edx
call fcn.0040c6b0
add esp, 4
mov dword [ebp - 4], 1
push 0x208
push 0
lea eax, [ebp - 0x244]
push eax
call fcn.004c0800
add esp, 0xc
mov dword [ebp - 0x20], 0x104
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x244]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x14]
call fcn.00406860
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.00409d20
movzx ecx, al
test ecx, ecx
jne 0x40c67b
lea ecx, [ebp - 0x14]
call fcn.00409d20
movzx edx, al
test edx, edx
jne 0x40c67b
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.004074f0
add esp, 8
movzx edx, al
test edx, edx
je 0x40c67b
lea eax, [ebp - 0x1c]
push eax
call fcn.0040cf10
add esp, 4
mov byte [ebp - 4], 3
push str.AppDataRoamingMicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar_
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x38]
push eax
call fcn.00407580
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x28]
push edx
lea eax, [ebp - 0x34]
push eax
call fcn.00407620
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x30]
push edx
mov ecx, dword [ebp + 8]
call fcn.004073c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call fcn.00407110
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.00407110
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00407110
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00407110
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00407110
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40c6b0
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e127e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov ecx, 0x51719f
call fcn.004bd4ad
mov ecx, dword [ebp + 8]
call fcn.00406750
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
or eax, 1
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x14]
push edx
push 1
push 0
push 0
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
je 0x40c790
mov dword [ebp - 0x10], 0
jmp 0x40c727
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x20]
jae 0x40c759
imul edx, dword [ebp - 0x10], 0xc
mov eax, dword [ebp - 0x14]
cmp dword [eax + edx + 8], 0
jne 0x40c757
imul ecx, dword [ebp - 0x10], 0xc
add ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov dword [ebp - 0x34], edx
mov eax, dword [ecx + 4]
mov dword [ebp - 0x30], eax
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x2c], ecx
jmp 0x40c759
jmp 0x40c71e
mov edx, dword [ebp - 0x14]
push edx
call sub.WTSAPI32.dll_WTSFreeMemory
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 5
mov edx, dword [ebp - 0x34]
push edx
push 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x40c790
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00407480
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x40cb00
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, 0x51719f
call fcn.004bd4ad
xor eax, eax
mov dword [ebp - 4], eax
mov ecx, 1
imul edx, ecx, 0
movzx eax, byte [ebp + 8]
mov byte [ebp + edx - 4], al
mov ecx, 1
shl ecx, 0
mov byte [ebp + ecx - 4], 0x3a
mov edx, 1
shl edx, 1
mov byte [ebp + edx - 4], 0x5c
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov eax, dword [ebp - 8]
imul eax, dword [ebp - 0xc]
mul dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x40cbe0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e11e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov ecx, 0x51719f
call fcn.004bd4ad
mov ecx, dword [ebp + 8]
call fcn.00406750
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
push 0x104
push 0
lea ecx, [ebp - 0x124]
push ecx
call fcn.004c0800
add esp, 0xc
push 0x104
lea edx, [ebp - 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x124]
push eax
mov ecx, dword [ebp + 8]
call fcn.004073f0
push 2
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00409f80
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
call fcn.004073c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00407110
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40ccb0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1246
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x238
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov ecx, 0x51719f
call fcn.004bd4ad
mov eax, dword [ebp + 8]
push eax
call fcn.0040c1e0
add esp, 4
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
or ecx, 1
mov dword [ebp - 0x18], ecx
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x40ce43
lea edx, [ebp - 0x10]
push edx
call fcn.0040c6b0
add esp, 4
mov dword [ebp - 4], 1
push 0x208
push 0
lea eax, [ebp - 0x244]
push eax
call fcn.004c0800
add esp, 0xc
mov dword [ebp - 0x20], 0x104
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x244]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x14]
call fcn.00406860
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.00409d20
movzx ecx, al
test ecx, ecx
jne 0x40ce2b
lea ecx, [ebp - 0x14]
call fcn.00409d20
movzx edx, al
test edx, edx
jne 0x40ce2b
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.004074f0
add esp, 8
movzx edx, al
test edx, edx
je 0x40ce2b
lea eax, [ebp - 0x1c]
push eax
call fcn.0040cf10
add esp, 4
mov byte [ebp - 4], 3
push 0x4e814c
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x38]
push eax
call fcn.00407580
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x28]
push edx
lea eax, [ebp - 0x34]
push eax
call fcn.00407620
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x30]
push edx
mov ecx, dword [ebp + 8]
call fcn.004073c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call fcn.00407110
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.00407110
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00407110
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00407110
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00407110
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x40ce60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0efe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov ecx, 0x51719f
call fcn.004bd4ad
push 0x208
push 0
lea eax, [ebp - 0x21c]
push eax
call fcn.004c0800
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea edx, [ebp - 0x21c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406860
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
push 0x4e7af8
mov ecx, dword [ebp + 8]
call fcn.004078c0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40d0e0
Capabilities:
Check if file exists
Create service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e12b5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov dword [ebp - 4], 1
mov ecx, 0x51719f
call fcn.004bd4ad
push 0x4e7c1c
push 0x4e7c48
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00407620
add esp, 0xc
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.00407620
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.00407110
lea ecx, [ebp - 0x10]
call fcn.00407560
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40d18e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00407110
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00407110
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00407110
jmp 0x40d2b0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40d1d2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00407110
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00407110
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00407110
jmp 0x40d2b0
lea edx, [ebp + 0xc]
push edx
lea ecx, [ebp - 0x18]
call fcn.00406780
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x10]
call fcn.00407560
push eax
push 1
push 2
push 0x110
push 0xf01ff
lea ecx, [ebp - 0x18]
call fcn.00407560
push eax
lea ecx, [ebp - 0x18]
call fcn.00407560
push eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40d25f
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [ebp - 0x18]
call fcn.00407110
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00407110
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00407110
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00407110
jmp 0x40d2b0
push 0
push 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [ebp - 0x18]
call fcn.00407110
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00407110
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00407110
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00407110
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40d3a0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0f8d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
mov ecx, 0x51719f
call fcn.004bd4ad
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x40d492
lea eax, [ebp - 0x18]
push eax
call fcn.0040c6b0
add esp, 4
mov dword [ebp - 4], 0
push 0x208
push 0
lea ecx, [ebp - 0x224]
push ecx
call fcn.004c0800
add esp, 0xc
mov dword [ebp - 0x1c], 0x104
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00406860
lea ecx, [ebp - 0x18]
call fcn.00409d20
movzx edx, al
test edx, edx
jne 0x40d47b
lea ecx, [ebp - 0x14]
call fcn.00409d20
movzx eax, al
test eax, eax
jne 0x40d47b
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.004074f0
add esp, 8
movzx eax, al
test eax, eax
je 0x40d47b
mov byte [ebp - 0xd], 1
lea ecx, [ebp - 0x14]
call fcn.00407110
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00407110
mov al, byte [ebp - 0xd]
jmp 0x40d494
lea ecx, [ebp - 0x14]
call fcn.00407110
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00407110
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret