joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004f60
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
and dword [ebp - 4], 0
push esi
lea esi, [ecx*4 + 0x1042c50]
mov edx, dword [esi]
test edx, edx
jne 0x1021ffe
mov eax, dword [ebp - 4]
pop esi
leave
ret 4
push ebx
push edi
mov eax, dword [0x1040184]
mov ebx, 0x1040184
mov edi, 0x102605c
cmp eax, ebx
je 0x102202f
test byte [eax + 0x1c], 0x20
je 0x102202f
cmp byte [eax + 0x19], 4
jb 0x102202f
push edx
push ecx
push edi
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002a94
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10220f9
push 0
push dword [esi]
push 0x1034a79
call dword [sym.imp.ntdll.dll_TpSimpleTryPost]
test eax, eax
jl 0x1022067
and dword [esi], 0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10220f9
mov ecx, dword [0x1040184]
cmp ecx, ebx
je 0x102208c
test byte [ecx + 0x1c], 0x20
je 0x102208c
cmp byte [ecx + 0x19], 2
jb 0x102208c
push eax
push edi
push 0x1c
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01001f65
push 0x3e3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x10220d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x1040184]
cmp eax, ebx
je 0x10220f9
test byte [eax + 0x1c], 0x20
je 0x10220d6
cmp byte [eax + 0x19], 2
jb 0x10220d6
push dword [ebp - 4]
push dword [esi]
push dword [ebp + 8]
push edi
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01031ed2
mov eax, dword [0x1040184]
cmp eax, ebx
je 0x10220f9
test byte [eax + 0x1c], 0x20
je 0x10220f9
cmp byte [eax + 0x19], 4
jb 0x10220f9
push dword [esi]
push dword [ebp + 8]
push edi
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002a94
mov eax, dword [esi]
pop edi
pop ebx
test eax, eax
je 0x1022108
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi], 0
jmp 0x1004f7f

Function at 0x10053a9
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
push 0x1005428
call fcn.010015a0
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], edi
push 4
pop esi
mov dword [ebp - 0x24], esi
lea eax, [ebp - 0x20]
push eax
push 0x20019
push edi
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x100540e
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x28]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x20]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x101eb21
mov dword [ebp - 4], 0xfffffffe
call fcn.01005449
mov eax, dword [ebp - 0x1c]
call fcn.01001580
ret 0x10
cmp dword [ebp - 0x28], esi
je 0x100540e
mov dword [ebp - 0x1c], 2
jmp 0x100540e
Function at 0x1005834
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 0x1002958
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
mov edi, eax
cmp edi, esi
je 0x101eb8a
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_GetEventLogInformation]
test eax, eax
je 0x101eb43
cmp dword [ebp - 4], esi
jne 0x101eb3d
push edi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
pop edi
mov eax, esi
pop esi
leave
ret
inc esi
jmp 0x1005878
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x1005878
test byte [eax + 0x1c], 8
je 0x1005878
cmp byte [eax + 0x19], 2
jb 0x1005878
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1040184]
push 0x1025f2c
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001f65
jmp 0x1005878
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x100587f
test byte [eax + 0x1c], 8
je 0x100587f
cmp byte [eax + 0x19], 2
jb 0x100587f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1040184]
push 0x1025f2c
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001f65
jmp 0x100587f

Function at 0x1005a8b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
mov dword [ebp - 4], edi
cmp eax, 0xffffffff
jne 0x1005b65
lea eax, [ebp + 8]
push eax
push 0x20019
push edi
push 0x1004b68
push 0x80000002
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov esi, 0x1005b6c
test eax, eax
jne 0x1005af3
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push dword [ebp + 8]
mov dword [ebp - 8], 4
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
push dword [ebp + 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
mov ecx, ebx
push esi
push 0x1002970
call fcn.01004bd9
mov eax, dword [0x1040184]
mov edi, 0x1040184
mov esi, 0x100186c
cmp eax, edi
je 0x1005b52
test byte [eax + 0x1c], 0x20
je 0x1005b52
cmp byte [eax + 0x19], 4
jb 0x1005b52
mov ecx, dword [ebx + 0x80]
mov ecx, dword [ecx + 0x68]
mov edx, ecx
shr edx, 0xe
and edx, 1
push edx
shr ecx, 2
and ecx, 1
push ecx
push esi
push 0x61
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002a94
mov eax, dword [0x1040184]
cmp dword [ebp - 4], 0
jne 0x102031e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
mov dword [ebp - 4], eax
jmp 0x1005b07
cmp eax, edi
je 0x102033c
test byte [eax + 0x1c], 0x20
je 0x102033c
cmp byte [eax + 0x19], 4
jb 0x102033c
push esi
push 0x62
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001848
mov ecx, ebx
call fcn.0102bf20
jmp 0x1005b5e
Function at 0x1006263
Capabilities:
Query or enumerate registry value

Disassembly:
cmp dword [ebp - 0x20], 7
je 0x10062d0
jmp 0x1006303
cmp dword [ebp - 0x20], 7
je 0x1006328
jmp 0x1006359
push 0x14
push 0x10063b8
call fcn.010015a0
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov edi, dword [ebp + 0xc]
mov dword [edi + 4], ebx
mov dword [edi], ebx
lea eax, [ebp - 0x24]
push eax
push 0x20019
push ebx
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x1006359
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push 0x1006390
push dword [ebp - 0x24]
mov esi, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
call esi
cmp eax, ebx
jne 0x1006303
cmp dword [ebp - 0x20], 1
jne 0x1006240
cmp dword [ebp - 0x1c], ebx
jbe 0x10062e0
push dword [ebp - 0x1c]
call fcn.01001fd2
mov dword [edi + 4], eax
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x1006303
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push 0x1006390
push dword [ebp - 0x24]
call esi
cmp eax, ebx
jne 0x101bf6e
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push 0x1006370
push dword [ebp - 0x24]
call esi
cmp eax, ebx
jne 0x1006359
cmp dword [ebp - 0x20], 1
jne 0x100624f
cmp dword [ebp - 0x1c], ebx
jbe 0x1006337
push dword [ebp - 0x1c]
call fcn.01001fd2
mov dword [edi], eax
mov eax, dword [edi]
cmp eax, ebx
je 0x1006359
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push 0x1006370
push dword [ebp - 0x24]
call esi
cmp eax, ebx
jne 0x101bf7b
mov dword [ebp - 4], 0xfffffffe
call fcn.01006208
call fcn.01001580
ret 8
mov eax, dword [edi + 4]
xor ecx, ecx
mov word [eax], cx
jmp 0x1006303
mov eax, dword [edi + 4]
xor ecx, ecx
mov word [eax], cx
jmp 0x1006359
Function at 0x10078e8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, 0x3c
lea eax, [esi + esi]
push eax
call fcn.01001fd2
mov dword [ebp - 4], eax
test eax, eax
je 0x101b9de
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
push eax
push dword [ebp + 8]
call edi
mov ebx, eax
test ebx, ebx
je 0x101ba5a
cmp ebx, esi
jg 0x101ba0f
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
leave
ret 4
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x101ba08
test byte [eax + 0x1c], 0x20
je 0x101ba08
cmp byte [eax + 0x19], 2
jb 0x101ba08
push 0x1007168
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001848
xor eax, eax
jmp 0x1007937
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x101ba39
test byte [eax + 0x1c], 0x20
je 0x101ba39
cmp byte [eax + 0x19], 2
jb 0x101ba39
push 0x1007168
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001848
lea eax, [ebp - 4]
push eax
call fcn.01001fac
lea eax, [ebx + ebx]
push eax
call fcn.01001fd2
mov dword [ebp - 4], eax
mov esi, ebx
test eax, eax
je 0x101ba92
push ebx
jmp 0x100791a
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x101ba84
test byte [eax + 0x1c], 0x20
je 0x101ba84
cmp byte [eax + 0x19], 2
jb 0x101ba84
push 0x1007168
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001848
lea eax, [ebp - 4]
push eax
call fcn.01001fac
jmp 0x1007932
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x1007932
test byte [eax + 0x1c], 0x20
je 0x1007932
cmp byte [eax + 0x19], 2
jb 0x1007932
push 0x1007168
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001848
jmp 0x1007932
Function at 0x1008643
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
push 0x10086f0
call fcn.010015a0
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov eax, dword [edi + 0x48]
cmp eax, ebx
je 0x101fb10
lea ecx, [ebp - 0x20]
push ecx
push ebx
lea ecx, [ebp - 0x24]
push ecx
push ebx
push dword [ebp + 8]
push eax
mov esi, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
call esi
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x10086d3
push dword [ebp - 0x20]
call fcn.01001fd2
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp eax, ebx
je 0x101fb28
lea ecx, [ebp - 0x20]
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push dword [ebp + 8]
push dword [edi + 0x48]
call esi
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x10086d3
cmp dword [ebp - 0x24], 1
jne 0x100871b
mov eax, dword [ebp - 0x20]
cmp eax, 2
jb 0x100871b
shr eax, 1
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
cmp word [ecx + eax*2 - 2], bx
jne 0x100871b
mov dword [ebp - 4], 0xfffffffe
call fcn.01008711
mov eax, dword [ebp - 0x1c]
call fcn.01001580
ret 8
mov dword [ebp - 0x1c], 2
jmp 0x10086d3
call fcn.01012151
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x48]
cmp eax, ebx
jne 0x100866c
jmp 0x10086d3
mov dword [ebp - 0x1c], 0xe
jmp 0x10086d3
Function at 0x10094bf
Capabilities:
Get number of processors
Listen for remote procedure calls

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x1040190]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push edi
push 0xa
push 0x1004e68
call dword [sym.imp.RPCRT4.dll_RpcServerUseProtseqW]
mov esi, eax
cmp esi, edi
jne 0x10095e3
push 0x103bf93
push 0x4d2
push 0x28
push edi
push edi
push dword [0x1042c80]
call dword [sym.imp.RPCRT4.dll_RpcServerRegisterIfEx]
mov esi, eax
cmp esi, edi
jne 0x10095e3
xor ebx, ebx
inc ebx
push 0x104023c
mov dword [0x1040240], ebx
call dword [sym.imp.RPCRT4.dll_RpcServerInqBindings]
mov esi, eax
cmp esi, edi
jne 0x10095e3
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
lea ecx, [ebp - 0x50]
push ecx
push dword [eax + 0x1d4]
call fcn.0100962d
mov esi, eax
cmp esi, edi
jne 0x10095e3
mov edi, 0x1040874
push edi
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.RPCRT4.dll_UuidFromStringW]
mov esi, eax
test esi, esi
jne 0x10095e3
mov dword [0x1040280], ebx
mov dword [0x1040284], edi
mov edi, dword [sym.imp.RPCRT4.dll_RpcEpRegisterW]
mov dword [ebp - 0x54], 0x64
mov ebx, 0x1040280
push 0x10095ec
push ebx
push dword [0x104023c]
push dword [0x1042c80]
call edi
mov esi, eax
test esi, esi
jne 0x10095d8
inc eax
push eax
push 0x4d2
push eax
mov dword [0x1040244], eax
call dword [sym.imp.RPCRT4.dll_RpcServerListen]
mov esi, eax
cmp esi, 0x6b1
jne 0x10095bf
xor esi, esi
test esi, esi
jne 0x10095e3
test esi, esi
jne 0x10095e3
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.010024b0
leave
ret
dec dword [ebp - 0x54]
jne 0x1025992
jmp 0x10095c3
call fcn.01017960
jmp 0x10095c7
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1009586
Function at 0x1009750
Capabilities:
Query environment variable
Query or enumerate registry value
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10098e0
push 0x1037045
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, 0x1020
call fcn.01009720
mov eax, dword [0x1040190]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x102c], edi
mov dword [ebp - 0x1030], edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x1030]
push eax
push 0x20019
push edi
push 0x1009888
push 0x80000002
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov dword [ebp - 0x102c], eax
cmp eax, edi
jne 0x1009902
mov dword [ebp - 0x1028], edi
mov esi, 0x401
mov eax, dword [ebp - 0x1028]
cmp eax, 2
jae 0x10098fc
mov dword [ebp - 0x1034], 0x802
lea ecx, [ebp - 0x1034]
push ecx
lea ecx, [ebp - 0x1024]
push ecx
lea ecx, [ebp - 0x1038]
push ecx
push edi
push dword [eax*8 + 0x1042c88]
push dword [ebp - 0x1030]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov dword [ebp - 0x102c], eax
cmp eax, edi
jne 0x100987b
push esi
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x1024]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, edi
je 0x100987b
cmp eax, esi
jae 0x100987b
cmp ebx, edi
je 0x1009861
push 1
lea eax, [ebp - 0x820]
push eax
mov eax, dword [ebp - 0x1028]
push dword [eax*8 + 0x1042c8c]
push ebx
call fcn.010074d4
lea eax, [ebp - 0x820]
push eax
mov eax, dword [ebp - 0x1028]
push dword [eax*8 + 0x1042c8c]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
inc dword [ebp - 0x1028]
jmp 0x10097d8
mov dword [ebp - 0x102c], edi
mov dword [ebp - 4], 0xfffffffe
call 0x1009935
mov eax, dword [ebp - 0x102c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.010024b0
leave
ret 4
Function at 0x100b1e9
Capabilities:
Create thread
Query or enumerate registry value
Resume thread

Disassembly:
push 0x1c
push 0x100b2f0
call fcn.010015a0
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], 0x80
mov dword [ebp - 4], edi
xor ebx, ebx
inc ebx
cmp dword [0x104019c], 0xffffffff
jne 0x100b287
lea eax, [ebp - 0x20]
push eax
push ebx
push edi
push 0x1009fb8
push 0x80000002
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x10250d7
mov eax, dword [ebp - 0x24]
add eax, eax
push eax
call fcn.0100643a
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x100b2c0
push 0x30
pop ecx
mov word [eax], cx
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x28]
push eax
push edi
push 0x100b2d4
push dword [ebp - 0x20]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov dword [0x104019c], edi
mov eax, dword [ebp - 0x1c]
cmp word [eax], 0x30
je 0x100b27e
mov dword [0x104019c], ebx
lea eax, [ebp - 0x1c]
push eax
call fcn.01006414
cmp dword [0x104019c], ebx
jne 0x100b2c0
lea eax, [ebp - 0x2c]
push eax
push 4
push edi
push 0x100a446
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, edi
je 0x100b320
push 0xfffffffffffffffe
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
call fcn.0100b311
call fcn.01001580
ret
push ebx
call dword [sym.imp.ADVAPI32.dll_NotifyBootConfigStatus]
jmp 0x100b2c0
mov ecx, dword [0x1040184]
cmp ecx, 0x1040184
je 0x100b2c0
test byte [ecx + 0x1c], bl
je 0x100b2c0
cmp byte [ecx + 0x19], 2
jb 0x100b2c0
push eax
push 0x100e9a0
push 0xe
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01001f65
jmp 0x100b2c0
Function at 0x100b8d0
Capabilities:
Get token membership

Disassembly:
push 0x14
push 0x100b968
call fcn.010015a0
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x1c]
push eax
push 2
push 2
push ebx
push 0x2000c
push dword [esi + 0x48]
call dword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_DuplicateTokenEx]
test eax, eax
je 0x1020125
add esi, 0x4c
push esi
push dword [0x1040820]
push dword [ebp - 0x1c]
call dword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_CheckTokenMembership]
test eax, eax
je 0x1020133
cmp dword [esi], ebx
jne 0x100b951
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
call fcn.0100b99d
mov edi, eax
cmp edi, ebx
jl 0x102017d
cmp dword [ebp - 0x24], ebx
je 0x100b94c
cmp dword [ebp - 0x24], 1
jne 0x10193f1
xor eax, eax
inc eax
mov dword [esi], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.0100b989
mov eax, dword [ebp - 0x20]
call fcn.01001580
ret
xor eax, eax
jmp 0x100b94f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
jmp 0x100b951
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x100b951
test dword [eax + 0x1c], 0x1000
je 0x100b951
cmp byte [eax + 0x19], 4
jb 0x100b951
push dword [ebp - 0x20]
push 0x100186c
push 0x3a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001f65
jmp 0x100b951
push edi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [ebp - 0x20], eax
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x100b951
test dword [eax + 0x1c], 0x1000
je 0x100b951
cmp byte [eax + 0x19], 4
jb 0x100b951
push edi
push 0x100186c
push 0x3b
jmp 0x102016d

Function at 0x100baa9
Capabilities:
Create process on windows

Disassembly:
push 0x54
push 0x100bb00
call fcn.010015a0
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x64], esi
push 0x40
push esi
lea eax, [ebp - 0x60]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 4], esi
call fcn.0100a4f4
test eax, eax
je 0x102477a
mov dword [ebp - 0x1c], 0x15
mov dword [ebp - 4], 0xfffffffe
call fcn.0100bb21
mov eax, dword [ebp - 0x1c]
call fcn.01001580
ret 8
call fcn.01039b31
mov dword [ebp - 0x20], eax
cmp eax, esi
jne 0x1024792
mov dword [ebp - 0x1c], 2
jmp 0x100bae6
mov dword [ebp - 0x64], 0x44
push 0xb
pop ecx
mov word [ebp - 0x34], cx
mov dword [ebp - 0x5c], 0x1012cb4
push dword [ebp + 0xc]
lea ecx, [ebp - 0x64]
push ecx
push esi
push esi
mov ecx, dword [ebp + 8]
or ecx, 0x400
push ecx
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, esi
jne 0x100bae6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
jmp 0x100bae6
Function at 0x100dc0d
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
lea ecx, [ebp - 4]
push ecx
push 0x1000b
push dword [eax + 0x1d4]
call fcn.010103bd
test eax, eax
jl 0x100dc48
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegDeleteTreeW]
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
cmp dword [ebp + 0xc], 0
je 0x100dc69
call fcn.0100d921
push 0x104021c
push 1
push 0
push 0
push 0xb
push dword [ebp + 0xc]
call dword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_DuplicateTokenEx]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.010128a7
leave
ret 0xc
Function at 0x100f7c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, dword [ebp + 0x14]
jmp 0x100f7f6
push esi
call fcn.01006887
jmp 0x100f7f6
mov dword [esi], ebx
jmp 0x100f7f6
push 0xc
push 0x100f858
call fcn.010015a0
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
cmp eax, ebx
je 0x100ea80
push eax
call fcn.0100ea66
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp + 0x14]
cmp eax, 0xffffffff
je 0x100f7b7
cmp eax, dword [edi]
jb 0x100f7af
cmp dword [esi], ebx
je 0x100f874
mov eax, dword [esi]
cmp eax, ebx
je 0x1023543
push edi
push eax
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x10235b4
mov eax, dword [edi]
cmp eax, 2
jb 0x102357b
shr eax, 1
mov ecx, dword [esi]
xor edx, edx
cmp dx, word [ecx + eax*2 - 2]
jne 0x102357b
mov dword [ebp - 4], 0xfffffffe
call fcn.0100ea8d
mov eax, dword [ebp - 0x1c]
call fcn.01001580
ret 0x10
push dword [edi]
call fcn.010068b2
mov dword [esi], eax
jmp 0x100f7fa
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x102356f
test byte [eax + 0x1c], 1
je 0x102356f
cmp byte [eax + 0x19], 2
jb 0x102356f
push dword [edi]
push 0x1003b94
push 0x55
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001f65
mov dword [ebp - 0x1c], 0xe
jmp 0x100f83b
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x10235a8
test byte [eax + 0x1c], 1
je 0x10235a8
cmp byte [eax + 0x19], 2
jb 0x10235a8
push dword [ebp + 0xc]
push 0x1003b94
push 0x56
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010020c5
mov dword [ebp - 0x1c], 0x64a
jmp 0x100f83b
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x100f83b
test byte [eax + 0x1c], 1
je 0x100f83b
cmp byte [eax + 0x19], 2
jb 0x100f83b
push dword [edi]
push 0x1003b94
push 0x57
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001f65
jmp 0x100f83b