joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001fcf0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x224], ecx
push 0xc
lea ecx, [ebp - 0x21c]
call fcn.10005000
push 0
lea ecx, [ebp - 0x21c]
call fcn.10009930
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.100096a0
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x1001fd7c
mov edx, dword [ebp - 0x220]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x21c]
call fcn.10009910
mov eax, dword [ebp - 0x228]
jmp 0x1001fe31
mov dword [ebp - 0x208], 0x100
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x208]
push ecx
lea edx, [ebp - 0x204]
push edx
push 0
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1001fe00
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.1001fcf0
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x1001fdf4
mov edx, dword [ebp - 0x220]
mov dword [ebp - 0x22c], edx
lea ecx, [ebp - 0x21c]
call fcn.10009910
mov eax, dword [ebp - 0x22c]
jmp 0x1001fe31
mov dword [ebp - 0x208], 0x100
jmp 0x1001fd86
lea ecx, [ebp - 0x21c]
call fcn.100098c0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x224]
call fcn.1001fc40
mov dword [ebp - 0x230], eax
lea ecx, [ebp - 0x21c]
call fcn.10009910
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10153588
mov esp, ebp
pop ebp
ret 4
Function at 0x100203e0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017d4c7
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x10202870
call fcn.100055d0
test eax, eax
jne 0x10020469
push 0x78
call fcn.101535ca
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x2c], 0
je 0x10020447
push 0x78
mov ecx, dword [ebp - 0x2c]
call fcn.10005000
mov ecx, dword [ebp - 0x2c]
call fcn.1000f800
mov dword [ebp - 0x30], eax
jmp 0x1002044e
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x34]
push ecx
mov ecx, 0x10202870
call fcn.10023450
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [ebp - 0x28]
call fcn.10004f90
mov dword [ebp - 4], 1
push 0
push 0x101e23b4
lea ecx, [ebp - 0x28]
call fcn.10005240
mov dword [ebp - 0x38], eax
push 0
push 0x101e23b8
lea ecx, [ebp - 0x28]
call fcn.10005240
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x100204af
cmp dword [ebp - 0x3c], 0xffffffff
je 0x100204b6
mov dword [ebp + 0x10], 1
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, 0x10202870
call fcn.1000e850
mov ecx, eax
call fcn.1000fad0
cmp dword [ebp + 8], 0
je 0x10020533
cmp dword [ebp + 0x10], 0
jne 0x100204f8
push 0
mov ecx, 0x10202870
call fcn.1000e850
mov ecx, eax
call fcn.100105a0
jmp 0x1002050b
push 1
mov ecx, 0x10202870
call fcn.1000e850
mov ecx, eax
call fcn.100105a0
mov ecx, 0x10202870
call fcn.1000e850
mov ecx, eax
call fcn.10010610
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004780
mov eax, dword [ebp - 0x40]
jmp 0x1002055f
push 2
mov ecx, 0x10202870
call fcn.1000e850
mov ecx, eax
call fcn.100105a0
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004780
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10153588
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1002bbf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017dc08
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x40], 0xffffffff
lea eax, [ebp + 0xc]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0x10]
call fcn.1000b2d0
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x1002bc6b
push 0x101dee4f
mov ecx, dword [ebp + 8]
call fcn.10004f90
mov edx, dword [ebp - 0x38]
or edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp + 8]
jmp 0x1002bd5f
lea ecx, [ebp - 0x30]
call fcn.10004650
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0x400
mov dword [ebp - 0x18], 1
push 0
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x30]
call fcn.10009480
lea ecx, [ebp - 0x14]
push ecx
push 0
lea ecx, [ebp - 0x30]
call fcn.10004160
push eax
lea edx, [ebp - 0x18]
push edx
push 0
mov ecx, dword [ebp + 0x14]
call fcn.1000b2d0
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x40], 0
je 0x1002bcfb
push 0x101deea6
mov ecx, dword [ebp + 8]
call fcn.10004f90
mov edx, dword [ebp - 0x38]
or edx, 1
mov dword [ebp - 0x38], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.10004780
mov eax, dword [ebp + 8]
jmp 0x1002bd5f
lea ecx, [ebp - 0x30]
call fcn.1000b2d0
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x3c]
mov dl, byte [ecx]
mov byte [ebp - 0x31], dl
add dword [ebp - 0x3c], 1
cmp byte [ebp - 0x31], 0
jne 0x1002bd0f
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
push 0
mov ecx, dword [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x30]
call fcn.10009480
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp + 8]
call fcn.100045d0
mov eax, dword [ebp - 0x38]
or eax, 1
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.10004780
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10153588
mov esp, ebp
pop ebp
ret
Function at 0x1002d4b0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017e202
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x101fd398]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.1002d990
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x14], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.1002de60
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.10007640
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x10], 0
jne 0x1002d57d
push 0x14
call fcn.101535ca
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x14], 0
je 0x1002d55a
push 0x14
mov ecx, dword [ebp - 0x14]
call fcn.10005000
push 0
push 0x10000
mov ecx, dword [ebp - 0x14]
call fcn.1002e210
mov dword [ebp - 0x18], eax
jmp 0x1002d561
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x10], 0
jne 0x1002d593
push str.error_
call fcn.1001f550
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10031490
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
add ecx, 0xc
call fcn.1000aff0
movzx eax, al
test eax, eax
jne 0x100314fb
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
jne 0x100314de
push 0x101e424c
mov ecx, dword [ebp - 4]
add ecx, 0xc
call fcn.1000b2d0
push eax
call fcn.10163679
add esp, 8
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x100314de
xor eax, eax
jmp 0x1003151c
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1016390f
add esp, 0x10
jmp 0x10031515
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0xb4
call fcn.1000b1d0
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100344c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0
lea eax, [ebp - 0x110]
push eax
push 0x101
push 0
push str.SOFTWAREMicrosoftCryptography
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x10034538
push 0x101df093
mov ecx, dword [ebp + 8]
call fcn.10004f90
mov ecx, dword [ebp - 0x114]
or ecx, 1
mov dword [ebp - 0x114], ecx
mov eax, dword [ebp + 8]
jmp 0x100345e7
push 0x104
push 0
lea edx, [ebp - 0x108]
push edx
call fcn.10155de0
add esp, 0xc
mov dword [ebp - 0x10c], 0x104
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x108]
push ecx
push 0
push 0
push str.MachineGuid
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x11c], 0
je 0x100345c6
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x101df0a3
mov ecx, dword [ebp + 8]
call fcn.10004f90
mov edx, dword [ebp - 0x114]
or edx, 1
mov dword [ebp - 0x114], edx
mov eax, dword [ebp + 8]
jmp 0x100345e7
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp + 8]
call fcn.10004f90
mov ecx, dword [ebp - 0x114]
or ecx, 1
mov dword [ebp - 0x114], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10153588
mov esp, ebp
pop ebp
ret

Function at 0x10034600
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0
lea eax, [ebp - 0x110]
push eax
push 0x101
push 0
push str.SOFTWAREMicrosoftSQMClient
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x10034678
push 0x101df0b6
mov ecx, dword [ebp + 8]
call fcn.10004f90
mov ecx, dword [ebp - 0x114]
or ecx, 1
mov dword [ebp - 0x114], ecx
mov eax, dword [ebp + 8]
jmp 0x10034727
push 0x104
push 0
lea edx, [ebp - 0x108]
push edx
call fcn.10155de0
add esp, 0xc
mov dword [ebp - 0x10c], 0x104
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x108]
push ecx
push 0
push 0
push str.MachineId
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x11c], 0
je 0x10034706
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x101df0b7
mov ecx, dword [ebp + 8]
call fcn.10004f90
mov edx, dword [ebp - 0x114]
or edx, 1
mov dword [ebp - 0x114], edx
mov eax, dword [ebp + 8]
jmp 0x10034727
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp + 8]
call fcn.10004f90
mov ecx, dword [ebp - 0x114]
or ecx, 1
mov dword [ebp - 0x114], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10153588
mov esp, ebp
pop ebp
ret
Function at 0x10034c00
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017e783
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0xffffffff
jne 0x10034c4b
xor al, al
jmp 0x10034d4c
mov dword [ebp - 0x254], 0x22c
lea eax, [ebp - 0x254]
push eax
mov ecx, dword [ebp - 0x258]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x10034c81
mov edx, dword [ebp - 0x258]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x10034d4c
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x280]
call fcn.10005180
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x280]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.10028eb0
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x280]
call fcn.10009870
push fcn.101622e1
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000e870
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x260]
push edx
lea ecx, [ebp - 0x28]
call fcn.100193f0
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x28]
call fcn.1000e870
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x268]
push eax
call fcn.10036b50
add esp, 0x14
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 8]
call fcn.1002d9e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004780
lea edx, [ebp - 0x254]
push edx
mov eax, dword [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x10034c81
mov ecx, dword [ebp - 0x258]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10153588
mov esp, ebp
pop ebp
ret
Function at 0x10037230
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov byte [eax + 0x68], 0
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx + 0x10], 0
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx + 0x10], 0
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx], 0x67452301
mov eax, 4
shl eax, 0
mov ecx, dword [ebp - 4]
mov dword [ecx + eax], 0xefcdab89
mov edx, 4
shl edx, 1
mov eax, dword [ebp - 4]
mov dword [eax + edx], 0x98badcfe
mov ecx, 4
imul edx, ecx, 3
mov eax, dword [ebp - 4]
mov dword [eax + edx], 0x10325476
mov esp, ebp
pop ebp
ret

Function at 0x10038750
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017eba8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], 0
mov ecx, dword [ebp - 0x4c]
call fcn.10037200
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x40], 0x10
lea ecx, [ebp - 0x28]
call fcn.10004650
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x40]
shl eax, 1
push eax
lea ecx, [ebp - 0x28]
call fcn.100073e0
mov byte [ebp - 0x3c], 0x30
mov byte [ebp - 0x3b], 0x31
mov byte [ebp - 0x3a], 0x32
mov byte [ebp - 0x39], 0x33
mov byte [ebp - 0x38], 0x34
mov byte [ebp - 0x37], 0x35
mov byte [ebp - 0x36], 0x36
mov byte [ebp - 0x35], 0x37
mov byte [ebp - 0x34], 0x38
mov byte [ebp - 0x33], 0x39
mov byte [ebp - 0x32], 0x61
mov byte [ebp - 0x31], 0x62
mov byte [ebp - 0x30], 0x63
mov byte [ebp - 0x2f], 0x64
mov byte [ebp - 0x2e], 0x65
mov byte [ebp - 0x2d], 0x66
mov dword [ebp - 0x2c], 0
jmp 0x10038803
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x40]
jae 0x10038861
mov eax, dword [ebp - 0x50]
add eax, dword [ebp - 0x2c]
movzx ecx, byte [eax]
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x44]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x44]
and edx, reloc.WS2_32.dll_ntohs
jns 0x10038836
dec edx
or edx, 0xfffffff0
inc edx
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x54]
movzx ecx, byte [ebp + eax - 0x3c]
push ecx
push 1
lea ecx, [ebp - 0x28]
call fcn.100093e0
mov edx, dword [ebp - 0x58]
movzx eax, byte [ebp + edx - 0x3c]
push eax
push 1
lea ecx, [ebp - 0x28]
call fcn.100093e0
jmp 0x100387fa
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 8]
call fcn.100045d0
mov edx, dword [ebp - 0x48]
or edx, 1
mov dword [ebp - 0x48], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004780
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10153588
mov esp, ebp
pop ebp
ret 4
Function at 0x1003dc00
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x18]
mov esi, ecx
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
neg eax
mov dword [ebp - 0x14], 1
sbb edi, edi
lea eax, [ebp - 0x10]
and edi, 1
neg esi
push eax
sbb esi, esi
push 0x101e96a0
and esi, 2
push 0
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x18]
xor ecx, ecx
test eax, eax
cmovne edi, ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.10153588
mov esp, ebp
pop ebp
ret

Function at 0x1003dcf0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017f168
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push esi
push edi
mov eax, dword [0x101fd398]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
push 0x44
lea eax, [ebp - 0x64]
mov dword [ebp - 0x10], 0
push 0
push eax
call fcn.10155de0
mov ax, word [ebp + 8]
lea ecx, [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 0x5c], str.winsta0default
mov dword [ebp - 0x38], 1
mov word [ebp - 0x34], ax
push esi
call fcn.1000af00
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp + 8]
call fcn.10005590
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1003dd95
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x10], esi
jmp 0x1003ddbf
push edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x20]
call esi
mov esi, dword [ebp - 0x10]
lea ecx, [ebp + 8]
call fcn.10009c10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1003dde0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017f198
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x101fd398]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x10]
call fcn.10007cc0
push 0xf003f
push str.ServicesActive
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x1003de59
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push str.OpenSCManager_failed___d_
push eax
call fcn.10012d40
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.100055d0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor esi, esi
jmp 0x1003deaa
push 2
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
jne 0x1003de99
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push str.OpenService_failed___d_
push eax
call fcn.10012d40
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.100055d0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
jmp 0x1003deaa
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
push edi
call esi
mov esi, 1
lea ecx, [ebp - 0x10]
call fcn.10009c10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1003ded0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x234], ecx
push 0
push eax
call fcn.10155de0
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x23c], ebx
cmp ebx, 0xffffffff
jne 0x1003df28
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10153588
mov esp, ebp
pop ebp
ret
push esi
push edi
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1003dfa1
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop dword [eax]
lea eax, [ebp - 0x20c]
mov esi, str.EXPLORER.EXE
push eax
call fcn.10166bc9
add esp, 4
mov cx, word [eax]
cmp cx, word [esi]
jne 0x1003df8a
test cx, cx
je 0x1003df86
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x1003df8a
add eax, 4
add esi, 4
test cx, cx
jne 0x1003df64
xor eax, eax
jmp 0x1003df8f
sbb eax, eax
or eax, 1
test eax, eax
je 0x1003dfbb
lea eax, [ebp - 0x230]
push eax
push ebx
call edi
test eax, eax
jne 0x1003df50
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10153588
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x228]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [ebp - 0x234]
mov edi, eax
push ecx
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
test ebx, ebx
je 0x1003e031
lea eax, [ebp - 0x238]
mov dword [ebp - 0x238], 0
push eax
mov eax, dword [ebp - 0x234]
push 1
push 2
push 0
push 0xf01ff
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov eax, dword [ebp - 0x234]
push dword [eax]
call esi
mov ecx, dword [ebp - 0x234]
mov eax, dword [ebp - 0x238]
mov dword [ecx], eax
push edi
call esi
push dword [ebp - 0x23c]
call esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10153588
mov esp, ebp
pop ebp
ret