joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43252e
Capabilities:
List user account groups
List user accounts for group

Disassembly:
mov eax, 0x446fdc
call fcn.00417a9e
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
push esi
mov dword [eax], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
push ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
call sub.NETAPI32.dll_NetLocalGroupEnum
cmp eax, ebx
je 0x43258c
jle 0x432575
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], ebx
je 0x432588
push dword [ebp - 0x10]
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, esi
jmp 0x43260b
push edi
xor edi, edi
cmp dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
jbe 0x43263d
mov eax, dword [ebp - 0x10]
mov esi, dword [eax + edi*4]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push ebx
call sub.NETAPI32.dll_NetLocalGroupGetMembers
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call fcn.0043245a
test al, al
je 0x4325e0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
inc dword [ebp - 0x18]
mov dword [eax + ecx*4], esi
mov byte [ebp - 4], bl
cmp dword [ebp - 0x14], ebx
je 0x4325f0
push dword [ebp - 0x14]
call sub.NETAPI32.dll_NetApiBufferFree
inc edi
cmp edi, dword [ebp - 0x1c]
jb 0x43259b
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
jbe 0x43263d
jmp 0x43261b
push dword [ebp - 0x10]
call sub.NETAPI32.dll_NetApiBufferFree
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], ebx
mov dword [eax], ecx
or dword [ebp - 4], 0xffffffff
cmp ebx, ebx
je 0x432639
push ebx
call sub.NETAPI32.dll_NetApiBufferFree
xor eax, eax
jmp 0x43260a
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], ebx
je 0x432607
jmp 0x4325ff
Function at 0x433881
Capabilities:
Get user security identifier

Disassembly:
mov eax, 0x447183
call fcn.00417a9e
sub esp, 0xdc
mov eax, dword [0x44de1c]
mov dword [ebp - 0x10], eax
xor eax, eax
cmp dword [ebp + 8], eax
push esi
mov esi, ecx
jne 0x43388d
xor al, al
jmp 0x433a51
push ebx
push edi
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xdc], eax
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
lea eax, [ebp - 0x54]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xe8], eax
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xe0]
push eax
lea ebx, [ebp - 0x54]
mov eax, ebx
push eax
push dword [ebp + 8]
mov dword [ebp - 0xe0], 0x44
push dword [ebp + 0xc]
mov dword [ebp - 0xe4], 0x80
call edi
test eax, eax
jne 0x433977
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x433a15
cmp dword [ebp - 0xe0], 0x44
jbe 0x433925
push dword [ebp - 0xe0]
lea ecx, [ebp - 0x58]
call fcn.00430d65
mov ebx, dword [ebp - 0x58]
cmp dword [ebp - 0xe4], 0x80
jbe 0x43394e
push dword [ebp - 0xe4]
lea ecx, [ebp - 0xdc]
call fcn.00430d12
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xe8], eax
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0xe4]
push eax
push dword [ebp - 0xe8]
lea eax, [ebp - 0xe0]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp + 0xc]
call edi
test eax, eax
je 0x433a15
push ebx
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
push dword [esi + 4]
mov dword [ebp - 0xe0], eax
call fcn.00417b09
push dword [ebp - 0xe0]
call fcn.00407e8b
test eax, eax
pop ecx
pop ecx
mov dword [esi + 4], eax
jne 0x4339aa
push 0x8007000e
call fcn.0042461c
push ebx
push eax
push dword [ebp - 0xe0]
call dword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x433a15
push dword [ebp - 0xe8]
lea ecx, [esi + 0x10]
call fcn.004024b5
push dword [ebp + 8]
lea ecx, [esi + 0xc]
call fcn.004024b5
push dword [ebp + 0xc]
lea ecx, [esi + 0x18]
call fcn.004024b5
mov byte [ebp - 4], 0
lea eax, [ebp - 0xd8]
cmp dword [ebp - 0xdc], eax
je 0x4339fd
lea ecx, [ebp - 0xdc]
call fcn.00424667
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x54]
cmp dword [ebp - 0x58], eax
je 0x433a11
lea ecx, [ebp - 0x58]
call fcn.00424667
mov al, 1
jmp 0x433a4f
mov ecx, esi
call fcn.004040c9
mov byte [ebp - 4], 0
lea eax, [ebp - 0xd8]
cmp dword [ebp - 0xdc], eax
je 0x433a39
lea ecx, [ebp - 0xdc]
call fcn.00424667
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x54]
cmp dword [ebp - 0x58], eax
je 0x433a4d
lea ecx, [ebp - 0x58]
call fcn.00424667
xor al, al
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.00417bd0
leave
ret 8
Function at 0x4356e9
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
je 0x4357f8
lea eax, [ebp + 0xc]
push eax
push 0x60019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov edi, 0xffff
mov esi, 0x80070000
jle 0x435725
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jne 0x4357fd
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
xor ecx, ecx
cmp eax, ecx
jle 0x435748
and eax, edi
or eax, esi
mov ebx, eax
cmp ebx, ecx
jne 0x4357ed
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ecx
push ecx
push ecx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jle 0x435774
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jne 0x4357ed
and dword [ebp + 8], eax
mov eax, dword [ebp - 8]
inc ebx
inc eax
push eax
mov dword [ebp - 0xc], eax
call fcn.00417bc2
mov esi, eax
xor edi, edi
cmp esi, edi
pop ecx
je 0x4357e8
cmp dword [ebp - 4], edi
jbe 0x4357d5
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4357cf
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
call fcn.004356e9
test eax, eax
jne 0x4357cf
inc dword [ebp + 8]
inc edi
cmp edi, dword [ebp - 4]
jb 0x435799
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jne 0x4357df
xor ebx, ebx
push esi
call fcn.00417b09
pop ecx
jmp 0x4357ed
mov ebx, 0x8007000e
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4357fd
mov ebx, 0x80070057
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x10

Function at 0x435806
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
or dword [ebp - 0xc], 0xffffffff
or dword [ebp - 0x10], 0xffffffff
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
mov edi, 0xffff
mov esi, 0x80070000
jle 0x435843
and eax, edi
or eax, esi
cmp eax, ebx
jne 0x435898
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp eax, ebx
jle 0x435867
and eax, edi
or eax, esi
push dword [ebp - 4]
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], ebx
jne 0x435898
cmp dword [ebp - 0xc], ebx
jne 0x435898
cmp dword [ebp - 0x10], ebx
jne 0x435898
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp eax, ebx
jle 0x43589b
and eax, edi
or eax, esi
jmp 0x43589b
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x435a67
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
mov edi, 0xffff
mov esi, 0x80070000
jle 0x435a9a
and eax, edi
or eax, esi
cmp eax, ebx
mov dword [ebp + 0xc], eax
jne 0x435b6e
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp eax, ebx
jle 0x435ac7
and eax, edi
or eax, esi
cmp eax, ebx
mov dword [ebp + 0xc], eax
jne 0x435b65
cmp dword [ebp + 0x10], ebx
mov edi, dword [ebp + 0x14]
je 0x435b60
cmp dword [edi], ebx
je 0x435b60
mov eax, dword [ebp - 0xc]
inc eax
push eax
mov dword [ebp + 8], ebx
mov dword [ebp - 0x10], eax
call fcn.00417bc2
mov esi, eax
cmp esi, ebx
pop ecx
je 0x435b54
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x10], eax
mov eax, dword [edi]
cmp eax, dword [ebp - 4]
jb 0x435b0c
mov eax, dword [ebp - 4]
cmp dword [ebp + 0x14], eax
jae 0x435b4b
mov eax, dword [ebp - 0xc]
push ebx
push ebx
push ebx
inc eax
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp + 0x14]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x435b46
push dword [ebp + 0x10]
mov eax, esi
call fcn.004359fe
test eax, eax
jne 0x435b46
inc dword [ebp + 8]
add dword [ebp + 0x10], 0x10
inc dword [ebp + 0x14]
jmp 0x435b02
push esi
call fcn.00417b09
pop ecx
jmp 0x435b5b
mov dword [ebp + 0xc], 0x8007000e
mov eax, dword [ebp + 8]
jmp 0x435b63
mov eax, dword [ebp - 4]
mov dword [edi], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x43607b
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
je 0x43618a
lea eax, [ebp + 0xc]
push eax
push 0x60019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov edi, 0xffff
mov esi, 0x80070000
jle 0x4360b7
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jne 0x43618f
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
xor ecx, ecx
cmp eax, ecx
jle 0x4360da
and eax, edi
or eax, esi
mov ebx, eax
cmp ebx, ecx
jne 0x43617f
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ecx
push ecx
push ecx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jle 0x436106
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jne 0x43617f
and dword [ebp + 8], eax
mov eax, dword [ebp - 8]
inc ebx
inc eax
push eax
mov dword [ebp - 0xc], eax
call fcn.00417bc2
mov esi, eax
xor edi, edi
cmp esi, edi
pop ecx
je 0x43617a
cmp dword [ebp - 4], edi
jbe 0x436167
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x436161
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
call fcn.0043607b
test eax, eax
jne 0x436161
inc dword [ebp + 8]
inc edi
cmp edi, dword [ebp - 4]
jb 0x43612b
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jne 0x436171
xor ebx, ebx
push esi
call fcn.00417b09
pop ecx
jmp 0x43617f
mov ebx, 0x8007000e
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x43618f
mov ebx, 0x80070057
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x10
Function at 0x436980
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x44795e
call fcn.00417a9e
sub esp, 0x214
mov eax, dword [0x44de1c]
push ebx
push edi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x10], eax
inc edi
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 4], ebx
push 0x20019
push 0x436ab0
push SysReAllocStringLen
lea ecx, [ebp - 0x21c]
call fcn.004025ea
test eax, eax
jne 0x436a87
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x118]
push eax
push ebx
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x220], 0x105
call fcn.0042b878
cmp eax, ebx
jle 0x4369fc
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jne 0x436a87
lea eax, [ebp - 0x118]
xor edi, edi
push eax
inc edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x436a87
mov dword [ebp - 0x220], ebx
mov byte [ebp - 4], 1
push ebx
lea eax, [ebp - 0x218]
push eax
push ebx
lea eax, [ebp - 0x118]
push ebx
push eax
call fcn.0043b9ff
lea eax, [ebp - 0x218]
push 0x423230
push eax
call fcn.004078ee
add esp, 0x1c
test eax, eax
je 0x436a7d
xor edi, edi
cmp dword [ebp + 0xc], 0x7fffffff
push esi
mov esi, dword [ebp + 8]
ja 0x436a76
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 0xc]
push esi
call fcn.004113c0
cmp eax, ebx
je 0x436a7c
cmp esi, ebx
je 0x436a7c
mov byte [esi], bl
pop esi
mov byte [ebp - 4], bl
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.004025d3
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00417bd0
leave
ret 8

Function at 0x4377e8
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
call fcn.00415237
mov esi, eax
test esi, esi
jne 0x437827
cmp dword [ebp + 8], eax
push edi
mov edi, dword [ebp - 4]
je 0x437819
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x43781e
mov esi, 0x80070057
push edi
call fcn.004154c6
pop edi
jmp 0x43782e
cmp esi, 1
jne 0x43782e
xor esi, esi
mov eax, esi
pop esi
leave
ret 4
Function at 0x438040
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esi], eax
je 0x4380f2
mov eax, dword [ebp + 8]
or eax, dword [ebp + 0xc]
je 0x438092
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [esi + 0x15c]
push eax
call fcn.0040546b
test eax, eax
jl 0x438092
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
ja 0x4380f2
jb 0x438092
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jae 0x4380f2
push dword [ebp + 0x10]
push dword [esi]
push 0
push 1
call fcn.0040e28f
mov ebx, eax
test ebx, ebx
je 0x4380eb
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x4380b7
xor esi, esi
jmp 0x4380e2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x4380c9
call esi
mov esi, eax
jmp 0x4380d9
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jl 0x4380e2
mov esi, 0x80040956
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4380f5
mov esi, 0x80040955
jmp 0x4380f5
xor esi, esi
inc esi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4382a6
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 4]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, eax
test edi, edi
je 0x43830a
lea eax, [ebp - 0xc]
push eax
push 0x401958
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x43830a
push dword [ebp + 8]
and dword [ebp - 0x10], 0
xor eax, eax
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_PrivilegeCheck]
mov edi, eax
cmp dword [ebp - 4], 0
je 0x438319
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
leave
ret 4
Function at 0x438320
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 0x28
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, eax
cmp edi, esi
je 0x438398
lea eax, [ebp - 0xc]
push eax
push 0x401958
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x438398
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
neg eax
push esi
sbb eax, eax
push esi
and eax, 2
push 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x438398
xor edi, edi
cmp dword [ebp - 4], esi
je 0x4383a6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x4383f7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push 0
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call fcn.004383ae
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x43844a
mov eax, dword [ebp + 0x10]
cmp eax, 0x48
jbe 0x438429
push 0x48
pop eax
push 0
lea ecx, [ebp + 0x18]
push ecx
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 0xffffffff
je 0x43844a
xor eax, eax
inc eax
test byte [ebp - 0x38], al
jne 0x43844c
xor eax, eax
leave
ret 0x14
Function at 0x438a64
Capabilities:
Get token privileges

Disassembly:
push ebp
lea ebp, [esp - 0x1a8]
sub esp, 0x228
mov eax, dword [0x44de1c]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp + 0x1a4], eax
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x74], edi
call fcn.00438206
cmp eax, 2
je 0x438aef
call fcn.00438206
xor ebx, ebx
inc ebx
cmp eax, ebx
jne 0x438ae8
push 0x104
push dword [ebp + 0x1b0]
lea esi, [ebp - 0x64]
call fcn.00409894
test eax, eax
je 0x438ae8
push edi
lea eax, [ebp + 0xa0]
push eax
push edi
mov eax, esi
push edi
push eax
call fcn.0043b9ff
push 7
lea eax, [ebp + 0xa0]
push 0x438c60
push eax
call fcn.0043beaf
add esp, 0x20
test eax, eax
jne 0x438ae8
mov eax, ebx
jmp 0x438c20
xor eax, eax
jmp 0x438c20
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x1b0]
push edi
push 0x400
call fcn.0040e28f
cmp eax, edi
mov dword [ebp - 0x70], eax
je 0x438bfd
lea ecx, [ebp - 0x6c]
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x438bfd
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp + 0x1b0]
push eax
push edi
push edi
xor ebx, ebx
inc ebx
push ebx
push dword [ebp - 0x6c]
call esi
mov eax, dword [ebp + 0x1b0]
add eax, 3
and eax, 0xfffffffc
call fcn.0041763c
mov edi, esp
lea eax, [ebp + 0x1b0]
push eax
push dword [ebp + 0x1b0]
push edi
push ebx
push dword [ebp - 0x6c]
call esi
test eax, eax
je 0x438bf0
mov eax, pe_nt_image_headers32
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0xa4]
push eax
push dword [edi]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidA]
test eax, eax
je 0x438bf0
mov al, byte [ebp + 0xa4]
test al, al
je 0x438bf0
cmp al, 0x53
je 0x438bb1
cmp al, 0x4c
je 0x438bb1
cmp al, 0x4e
jne 0x438bf0
push 7
mov edi, 0x438c6c
lea esi, [ebp + 0xa4]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x438bed
push 0xe
mov edi, 0x438c50
lea esi, [ebp + 0xa4]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x438bed
push 0x10
mov edi, 0x438c40
lea esi, [ebp + 0xa4]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x438bf0
mov dword [ebp - 0x68], ebx
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x438c04
mov dword [ebp - 0x68], 1
cmp dword [ebp - 0x70], edi
je 0x438c12
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x74], edi
je 0x438c1d
push edi
call fcn.00438320
mov eax, dword [ebp - 0x68]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x1a4]
call fcn.00417bd0
pop edi
pop esi
pop ebx
add ebp, 0x1a8
leave
ret 4
Function at 0x438f2a
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
call fcn.0041780e
test eax, eax
je 0x438f3a
xor eax, eax
jmp 0x438f9b
push ebx
push edi
push SysReAllocStringLen
push 0x438fac
xor edi, edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, edi
je 0x438f97
push ebp
push esi
push 4
push 0x438fa0
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
cmp esi, edi
je 0x438f92
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov edi, eax
test edi, edi
je 0x438f8f
xor eax, eax
cmp dword [esp + 0x14], 4
sete al
mov edi, eax
push esi
call ebp
push ebx
call ebp
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
add esp, 0x1c
ret

Function at 0x43919c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4391f4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4391c1
xor eax, eax
jmp 0x4391f3
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4391e5
cmp esi, eax
jae 0x4391bd
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4391d7
cmp esi, eax
jae 0x4391bd
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x439ba7
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x44de1c]
push ebx
push esi
push edi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push 0x40
mov dword [ebp + 0x94], eax
pop ecx
xor ebx, ebx
xor eax, eax
mov byte [ebp - 0x70], bl
lea edi, [ebp - 0x6f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x74]
push eax
push 0x1a
push ebx
mov dword [ebp - 0x74], ebx
call esi
cmp dword [ebp - 0x74], ebx
jne 0x439c49
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push ebx
push 0x439cb0
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x439c36
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push 0x439ca8
push dword [ebp - 0x7c]
mov dword [ebp - 0x78], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x439c36
cmp dword [ebp - 0x80], 1
je 0x439c8f
cmp dword [ebp - 0x74], ebx
jne 0x439c49
lea eax, [ebp - 0x74]
push eax
push 5
push ebx
call esi
cmp dword [ebp - 0x74], ebx
je 0x439c84
push dword [ebp + 0xa0]
push dword [ebp - 0x74]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x78], ebx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x439c8f
mov eax, dword [ebp - 0x78]
cmp eax, ebx
je 0x439c8f
push dword [ebp - 0x74]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x439c8f
mov eax, dword [ebp + 0xa0]
mov word [eax], 0xa
mov ecx, dword [ebp + 0x94]
pop edi
pop esi
pop ebx
call fcn.00417bd0
add ebp, 0x98
leave
ret 4