joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100fb02
Capabilities:
Listen for remote procedure calls

Disassembly:
push 0x5c
push 0x100fc20
call fcn.010027c0
mov dword [ebp - 0x6c], 0xd
xor esi, esi
mov dword [ebp - 4], esi
push 0x101410d
mov edi, 0x4d2
push edi
push 0x28
push esi
push esi
push dword [0x1042c9c]
call dword [sym.imp.RPCRT4.dll_RpcServerRegisterIfEx]
mov dword [ebp - 0x6c], eax
cmp eax, esi
jne 0x1025c7c
xor ebx, ebx
inc ebx
mov dword [0x1040250], ebx
push 0x1040248
call dword [sym.imp.RPCRT4.dll_RpcServerInqBindings]
mov dword [ebp - 0x6c], eax
cmp eax, esi
jne 0x1025caf
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x1d4]
push 0x100da38
push 0x25
lea eax, [ebp - 0x68]
push eax
call fcn.01004e02
add esp, 0x10
mov esi, 0x1040884
push esi
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.RPCRT4.dll_UuidFromStringW]
mov dword [ebp - 0x6c], eax
test eax, eax
jne 0x1025ce1
mov dword [0x1040288], ebx
mov dword [0x104028c], esi
push dword [ebp + 8]
call fcn.0100fdbe
mov dword [ebp - 0x6c], eax
xor esi, esi
cmp eax, esi
jne 0x1025d13
push esi
push 0x1040288
push dword [0x1040248]
push dword [0x1042c9c]
call dword [sym.imp.RPCRT4.dll_RpcEpRegisterW]
mov dword [ebp - 0x6c], eax
cmp eax, esi
jne 0x1025d42
mov dword [0x104024c], ebx
push ebx
push edi
push ebx
call dword [sym.imp.RPCRT4.dll_RpcServerListen]
mov dword [ebp - 0x6c], eax
cmp eax, 0x6b1
jne 0x100fbfc
mov dword [ebp - 0x6c], esi
cmp dword [ebp - 0x6c], esi
jne 0x1025d71
mov dword [ebp - 4], 0xfffffffe
call fcn.0100fc41
mov eax, dword [ebp - 0x6c]
call fcn.01002808
ret 4
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x100fc05
test byte [eax + 0x1c], 1
je 0x100fc05
cmp byte [eax + 0x19], 2
jb 0x100fc05
push dword [ebp - 0x6c]
push 0x10140f8
push 0x15
jmp 0x1025d9e
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x100fc05
test byte [eax + 0x1c], bl
je 0x100fc05
cmp byte [eax + 0x19], 2
jb 0x100fc05
push dword [ebp - 0x6c]
push 0x10140f8
push 0x16
jmp 0x1025d9e
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x100fc05
test byte [eax + 0x1c], bl
je 0x100fc05
cmp byte [eax + 0x19], 2
jb 0x100fc05
push dword [ebp - 0x6c]
push 0x10140f8
push 0x17
jmp 0x1025d9e
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x100fc05
test byte [eax + 0x1c], bl
je 0x100fc05
cmp byte [eax + 0x19], 2
jb 0x100fc05
push dword [ebp - 0x6c]
push 0x10140f8
push 0x18
jmp 0x1025d9e
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x100fc05
test byte [eax + 0x1c], bl
je 0x100fc05
cmp byte [eax + 0x19], 2
jb 0x100fc05
push dword [ebp - 0x6c]
push 0x10140f8
push 0x19
jmp 0x1025d9e
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x100fc05
test byte [eax + 0x1c], bl
je 0x100fc05
cmp byte [eax + 0x19], 2
jb 0x100fc05
push dword [ebp - 0x6c]
push 0x10140f8
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001f65
jmp 0x100fc05
Function at 0x100ff2d
Capabilities:
Get process heap force flags

Disassembly:
push 0x10
push 0x100ffe8
call fcn.010015a0
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
push 0x84
push 8
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
call edi
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x1022eda
lea eax, [esi + 0x14]
push 2
pop ebx
mov dword [eax], ebx
and dword [esi + 0x1c], 0
mov ecx, dword fs:[0x18]
mov esi, dword [ebp - 0x20]
mov eax, dword [eax]
shl eax, 2
push eax
push 8
mov eax, dword [ecx + 0x30]
push dword [eax + 0x18]
call edi
mov dword [esi + 0x18], eax
test eax, eax
je 0x1022f1c
and dword [esi], 0
push esi
mov edi, dword [ebp + 0x10]
push edi
call fcn.0100f947
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x100ffcd
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edi
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x10], eax
and dword [esi + 0x80], 0
mov dword [ebp - 4], 0xfffffffe
call fcn.01010009
mov eax, dword [ebp - 0x1c]
call fcn.01001580
ret 0x14
mov dword [ebp - 0x1c], 0xe
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x100ffcd
test byte [eax + 0x1c], 1
je 0x100ffcd
cmp byte [eax + 0x19], 2
jb 0x100ffcd
push 0x10023ac
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001848
jmp 0x100ffcd
mov dword [ebp - 0x1c], 0xe
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x100ffcd
test byte [eax + 0x1c], 1
je 0x100ffcd
cmp byte [eax + 0x19], bl
jb 0x100ffcd
push 0x10023ac
push 0x1c
jmp 0x1022f0c
Function at 0x1011249
Capabilities:
Accept command line arguments

Disassembly:
push 0x14
push 0x10112f8
call fcn.010015a0
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], edi
call fcn.01005f5e
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x101131a
lea eax, [esi + 0x70]
push eax
call fcn.01011eb8
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x101ec83
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.01011ca1
mov ebx, eax
mov dword [ebp - 0x20], ebx
cmp ebx, edi
je 0x101ecc1
mov eax, dword [ebp - 0x24]
dec eax
jne 0x101ecfa
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
push edi
push 0x10112cc
mov ecx, dword [ebp + 8]
call fcn.0100188c
jmp 0x101edbf
mov eax, dword [ebp + 8]
mov dword [esi + 0x38], eax
mov dword [ebp - 4], 0xfffffffe
call 0x1011336
mov eax, dword [ebp - 0x1c]
call fcn.01001580
ret 4
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x101131a
test byte [eax + 0x1c], 0x10
je 0x101131a
cmp byte [eax + 0x19], 1
jb 0x101131a
push dword [ebp - 0x1c]
push 0x1001f8c
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001f65
jmp 0x101131a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x101131a
test byte [eax + 0x1c], 0x10
je 0x101131a
cmp byte [eax + 0x19], 2
jb 0x101131a
push dword [ebp - 0x1c]
push 0x1001f8c
push 0xb
jmp 0x101ecb1
dec eax
dec eax
jne 0x101ed7d
push 0x101ee0c
push dword [ebx + 4]
mov edi, dword [sym.imp.msvcrt.dll__wcsicmp]
call edi
pop ecx
pop ecx
test eax, eax
jne 0x101ed7d
push 0x101ee00
push dword [ebx + 8]
call edi
pop ecx
pop ecx
test eax, eax
jne 0x101ed37
mov dword [esi + 0x5c], 1
mov dword [esi + 0x60], 0x101ee00
jmp 0x1011314
push 0x101edf4
push dword [ebx + 8]
call edi
pop ecx
pop ecx
test eax, eax
jne 0x101ed5a
mov dword [esi + 0x5c], 2
mov dword [esi + 0x60], 0x101ede8
jmp 0x1011314
mov ebx, 0x101eddc
push ebx
mov eax, dword [ebp - 0x20]
push dword [eax + 8]
call edi
pop ecx
pop ecx
test eax, eax
jne 0x101ed7d
mov dword [esi + 0x5c], 3
mov dword [esi + 0x60], ebx
jmp 0x1011314
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x101edb3
test byte [eax + 0x1c], 0x10
je 0x101edb3
cmp byte [eax + 0x19], 2
jb 0x101edb3
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0x1001f8c
push 0xc
mov eax, dword [0x1040184]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010020c5
mov dword [ebp - 0x1c], 0x667
jmp 0x101131a
test eax, eax
je 0x1011314
mov dword [esi + 0x5c], 3
mov dword [esi + 0x60], 0x101eddc
jmp 0x1011314
Function at 0x10116e2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1040190]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
push 0
push 5
call sub.profapi.dll_Ordinal_104
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
jl 0x102504b
lea eax, [ebp - 0x20c]
push eax
push 0x10117d8
call edi
push esi
lea eax, [ebp - 0x20c]
push eax
push 0
push 3
call sub.profapi.dll_Ordinal_104
test eax, eax
jl 0x101174e
lea eax, [ebp - 0x20c]
push eax
push 0x10117c8
call edi
push esi
lea eax, [ebp - 0x20c]
push eax
push 0
push 4
call sub.profapi.dll_Ordinal_104
test eax, eax
jl 0x101177f
lea eax, [ebp - 0x20c]
push eax
push 0x10117b0
call edi
lea eax, [ebp - 0x20c]
push eax
push 0x1011790
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.010024b0
leave
ret
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x101172b
test byte [eax + 0x1c], 1
je 0x101172b
cmp byte [eax + 0x19], 2
jb 0x101172b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1040184]
push 0x100e9a0
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001f65
jmp 0x101172b

Function at 0x1012070
Capabilities:
Get hostname

Disassembly:
push 0x18
push 0x10120e8
call fcn.010015a0
mov esi, ecx
mov dword [ebp - 0x28], esi
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], 0x10
mov dword [ebp - 0x1c], edi
call fcn.010024fb
cmp dword [esi + 0x24], edi
jne 0x10120d4
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x24]
add eax, eax
push eax
mov ecx, esi
call fcn.01003587
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x101eae4
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x101eaf0
mov dword [ebp - 4], 0xfffffffe
call fcn.01012109
mov ecx, esi
call fcn.010024eb
mov eax, dword [ebp - 0x20]
call fcn.01001580
ret
mov dword [ebp - 0x20], 0xe
jmp 0x10120c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
jmp 0x10120c8
Function at 0x1012251
Capabilities:
Check for peb beingdebugged flag
Check systemkerneldebuggerinformation
Get system information on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor ebx, ebx
push ebx
push 2
lea eax, [ebp - 4]
push eax
xor edi, edi
push 0x23
inc edi
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp byte [ebp - 4], bl
je 0x1025006
push esi
push 0x103a685
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push 0x1004b68
push 0x80000002
mov dword [ebp - 8], ebx
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x10122db
push 4
pop esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x101232c
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x102501d
push dword [ebp - 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
cmp edi, ebx
je 0x1012321
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x20
call dword [sym.imp.ntdll.dll_NtSystemDebugControl]
mov esi, eax
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x1012306
test byte [eax + 0x1c], 8
je 0x1012306
cmp byte [eax + 0x19], 5
jae 0x1025033
push ebx
mov eax, 0xea60
push eax
push eax
xor eax, eax
cmp esi, ebx
setl al
dec eax
push eax
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SetTimerQueueTimer]
pop esi
pop edi
xor eax, eax
pop ebx
leave
ret 4
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
cmp byte [eax + 2], bl
jne 0x1012278
jmp 0x1012322
cmp dword [ebp - 0x10], esi
jne 0x10122ce
cmp dword [ebp - 0x14], ebx
sete al
mov edi, eax
jmp 0x10122ce
push esi
push 0x1027ae8
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001f65
jmp 0x1012306
Function at 0x101234d
Capabilities:
Listen for remote procedure calls

Disassembly:
push 0x134
push 0x1012468
call fcn.010027c0
mov esi, dword [ebp + 8]
mov dword [ebp - 0x144], 0xd
xor edi, edi
mov dword [ebp - 4], edi
push esi
call dword [sym.imp.ntdll.dll_NtAllocateLocallyUniqueId]
cmp eax, edi
jl 0x1025ba8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x1d4]
push dword [esi]
push dword [esi + 4]
push 0x1012444
push 0x91
lea eax, [ebp - 0x140]
push eax
call fcn.01004e02
add esp, 0x18
test eax, eax
jl 0x1012429
push edi
lea eax, [ebp - 0x140]
push eax
push 0xa
push 0x1004e68
call dword [sym.imp.RPCRT4.dll_RpcServerUseProtseqEpW]
mov dword [ebp - 0x144], eax
cmp eax, edi
jne 0x1025bba
push 0x101543e
mov esi, 0x4d2
push esi
push 0x28
push edi
push edi
push dword [0x1042ca0]
call dword [sym.imp.RPCRT4.dll_RpcServerRegisterIfEx]
mov dword [ebp - 0x144], eax
cmp eax, edi
jne 0x1025bed
xor ebx, ebx
inc ebx
mov dword [0x1040254], ebx
push ebx
push esi
push ebx
call dword [sym.imp.RPCRT4.dll_RpcServerListen]
mov dword [ebp - 0x144], eax
cmp eax, 0x6b1
je 0x1025c20
cmp dword [ebp - 0x144], edi
jne 0x1025c2b
mov dword [ebp - 4], 0xfffffffe
call fcn.01012489
mov eax, dword [ebp - 0x144]
call fcn.01002808
ret 4
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [ebp - 0x144], eax
jmp 0x1012429
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x1012429
test byte [eax + 0x1c], 1
je 0x1012429
cmp byte [eax + 0x19], 2
jb 0x1012429
push dword [ebp - 0x144]
push 0x10140f8
push 0x12
jmp 0x1025c5b
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x1012429
test byte [eax + 0x1c], 1
je 0x1012429
cmp byte [eax + 0x19], 2
jb 0x1012429
push dword [ebp - 0x144]
push 0x10140f8
push 0x13
jmp 0x1025c5b
mov dword [ebp - 0x144], edi
jmp 0x101241d
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x1012429
test byte [eax + 0x1c], bl
je 0x1012429
cmp byte [eax + 0x19], 2
jb 0x1012429
push dword [ebp - 0x144]
push 0x10140f8
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001f65
jmp 0x1012429

Function at 0x10126e6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x1012498
push 0x80000002
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x101273d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1012744
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret
Function at 0x10131e4
Capabilities:
Get session user name

Disassembly:
push 0x240
push 0x1013290
call fcn.010027c0
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x250], eax
and dword [esi], 0
xor eax, eax
mov word [ebp - 0x240], ax
push 0x220
push eax
lea eax, [ebp - 0x23e]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x24c], 0x111
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x240]
push eax
push 2
call sub.SspiCli.dll_GetUserNameExW
push 0x15
pop edi
call fcn.01002061
test eax, eax
je 0x1013284
and dword [ebp - 4], 0
push dword [ebp - 0x250]
push esi
lea eax, [ebp - 0x240]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
push dword [0x104020c]
call fcn.010132b1
mov edi, eax
mov dword [ebp - 0x248], edi
mov dword [ebp - 4], 0xfffffffe
mov eax, edi
call fcn.01002808
ret 0x18

Function at 0x1014124
Capabilities:
Get token membership

Disassembly:
push 0x14
push 0x10141e8
call fcn.010015a0
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.RPCRT4.dll_I_RpcBindingIsClientLocal]
cmp eax, esi
jne 0x10259a2
cmp dword [ebp - 0x20], esi
je 0x10259e0
push esi
call dword [sym.imp.RPCRT4.dll_RpcImpersonateClient]
cmp eax, esi
jne 0x1025a1b
xor ebx, ebx
inc ebx
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x1c]
push eax
push 0x10141d8
push esi
call dword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_CheckTokenMembership]
test eax, eax
je 0x1025a4b
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x10141bf
test byte [eax + 0x1c], bl
je 0x10141bf
cmp byte [eax + 0x19], 2
jb 0x10141bf
cmp dword [ebp - 0x1c], esi
mov ecx, 0x1002c84
je 0x1025a7c
push ecx
push 0x10140f8
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010140ad
mov dword [ebp - 4], 0xfffffffe
call fcn.01014209
mov eax, dword [ebp - 0x1c]
call fcn.01001580
ret
mov ecx, dword [0x1040184]
cmp ecx, 0x1040184
je 0x10141bf
test byte [ecx + 0x1c], 1
je 0x10141bf
cmp byte [ecx + 0x19], 2
jb 0x10141bf
push eax
push 0x10140f8
push 0xc
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01001f65
jmp 0x10141bf
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x10141bf
test byte [eax + 0x1c], 1
je 0x10141bf
cmp byte [eax + 0x19], 2
jb 0x10141bf
push 0x10140f8
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001848
jmp 0x10141bf
mov ecx, dword [0x1040184]
cmp ecx, 0x1040184
je 0x10141bf
test byte [ecx + 0x1c], 1
je 0x10141bf
cmp byte [ecx + 0x19], 2
jb 0x10141bf
push eax
push 0x10140f8
push 0xe
jmp 0x10259d0
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x1025a74
test byte [eax + 0x1c], bl
je 0x1025a74
cmp byte [eax + 0x19], 2
jb 0x1025a74
push 0x10140f8
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001848
mov dword [ebp - 0x1c], esi
jmp 0x10141bf
mov ecx, 0x1012648
jmp 0x10141ac
Function at 0x1014d84
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1040190]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edx, dword [0x10402f4]
mov ebx, dword [ebp + 8]
mov esi, 0x1014e10
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 6
pop esi
xor eax, eax
inc dword [0x10402f0]
cmp dword [0x10402f0], 5
mov ecx, esi
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x38], edx
stosw word es:[edi], ax
ja 0x1020f25
mov ecx, dword [ebx]
lea eax, [edx*8 + 0x10402f0]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 4]
mov dword [eax + 0xc], ecx
mov eax, dword [0x10402f4]
add eax, 6
push 5
xor edx, edx
pop ecx
div ecx
xor eax, eax
inc eax
mov dword [0x10402f4], edx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010024b0
leave
ret 0xc
xor edi, edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], edi
cmp dword [ebp + 0xc], edi
jne 0x1020fc5
cmp dword [ebp + 0x10], edi
je 0x1020fc5
push 0x1021020
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov ebx, eax
cmp ebx, edi
je 0x1020fbe
push 0x8f8
call fcn.01001fd2
mov dword [ebp - 0x34], eax
cmp eax, edi
je 0x1020fb7
lea ecx, [ebp - 0x44]
push ecx
push 0x4c0
push eax
push esi
push 0xffffffffffffffff
push edi
call sub.WINSTA.dll_WinStationQueryInformationW
test al, al
je 0x1020f8b
mov eax, dword [ebp - 0x34]
add eax, 4
push eax
push 0x15
lea eax, [ebp - 0x30]
push eax
call fcn.010056eb
push edi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
push edi
push 1
push edi
push 0x400003f4
push edi
push 4
push ebx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
cmp dword [ebp - 0x34], edi
je 0x1020fb7
lea eax, [ebp - 0x34]
push eax
call fcn.01001fac
push ebx
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
xor eax, eax
jmp 0x1014dfc
lea eax, [ebp - 0x3c]
push eax
lea eax, [edx*8 + 0x10402f8]
mov dword [0x10402f0], esi
mov esi, dword [sym.imp.ntdll.dll_RtlTimeToSecondsSince1980]
push eax
call esi
test al, al
je 0x1020ff9
lea eax, [ebp - 0x40]
push eax
push ebx
call esi
test al, al
je 0x1020ff9
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x3c]
cmp eax, 0x3c
jae 0x1021018
push edi
push 0x10
push 2
push 0x3ea
call fcn.01003751
push 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 0x10], edi
je 0x1020fbe
mov edx, dword [ebp - 0x38]
jmp 0x1014dd2
Function at 0x1015751
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
push 0x20019
xor edi, edi
push edi
push 0x1004b68
push 0x80000002
mov ebx, ecx
mov dword [ebp - 4], edi
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov esi, 0x10157d4
test eax, eax
jne 0x10157ad
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push dword [ebp - 8]
mov dword [ebp - 0xc], 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]
cmp dword [ebp - 4], edi
jne 0x10157c4
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x1002970
mov ecx, ebx
call fcn.01004bd9
xor eax, eax
cmp dword [ebp - 4], edi
pop edi
pop esi
setne al
pop ebx
leave
ret

Function at 0x1016a21
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 0xc]
push 0x1016a88
call fcn.010028d6
mov eax, dword [0x1040184]
mov esi, 0x1040184
mov ebx, 0x100378c
cmp eax, esi
je 0x1016a5e
test dword [eax + 0x1c], 0x2000
je 0x1016a5e
cmp byte [eax + 0x19], 5
jae 0x101a491
xor edi, edi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x101a4a7
push edi
push 0x1016a98
call fcn.010028d6
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
push dword [ebp + 0xc]
push ebx
push 0x35
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001f65
jmp 0x1016a5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1040184]
cmp eax, esi
je 0x101a4d9
test dword [eax + 0x1c], 0x2000
je 0x101a4d9
cmp byte [eax + 0x19], 5
jb 0x101a4d9
push edi
push dword [ebp + 0xc]
push ebx
push 0x36
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002a94
test edi, edi
je 0x1016a72
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
xor eax, eax
cmp edi, 0x3e3
setne al
push 8
push 0xc0000fa4
mov dword [ebp - 8], edi
dec eax
and eax, 3
inc eax
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.0100899a
add esp, 0x18
jmp 0x1016a72

Function at 0x1017d54
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.010058db
test eax, eax
jne 0x1017d9c
push esi
push eax
push eax
push dword [ebp - 4]
push 0x80000002
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegDeleteKeyExW]
mov esi, eax
cmp esi, 2
jne 0x1017d88
xor esi, esi
test esi, esi
jne 0x102166b
lea eax, [ebp - 4]
push eax
call fcn.01001fac
mov eax, esi
pop esi
leave
ret 4
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x1017d90
test dword [eax + 0x1c], 0x40000
je 0x1017d90
cmp byte [eax + 0x19], 2
jb 0x1017d90
push esi
push 0x1002538
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001f65
jmp 0x1017d90