joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10174cc
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x1049184], eax
cmp eax, esi
je 0x10175cb
push 4
lea ecx, [ebp - 4]
push ecx
push esi
push eax
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push esi
call fcn.010160d6
mov edi, eax
cmp edi, esi
je 0x10175d2
push dword [ebp + 8]
xor esi, esi
inc esi
mov dword [0x1049188], esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
push 0x80000000
push 0x10492e8
call ebx
mov edi, eax
test edi, edi
je 0x10175d2
push 0x80000000
push 0x1049300
mov dword [0x104918c], esi
call ebx
mov edi, eax
test edi, edi
je 0x10175d2
push 0x1049280
push esi
mov dword [0x1049190], esi
call fcn.0101200a
xor ecx, ecx
test eax, eax
setge cl
mov edi, ecx
test edi, edi
je 0x10175d2
call fcn.01017c91
xor ecx, ecx
test eax, eax
setge cl
mov edi, ecx
test edi, edi
je 0x10175d2
call fcn.01016055
mov edi, eax
test edi, edi
je 0x10175d2
mov dword [0x1049194], esi
call fcn.010175de
mov edi, eax
test edi, edi
je 0x10175d2
mov dword [0x1049198], esi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1049120], eax
cmp eax, 0xffffffff
je 0x101c1c9
test edi, edi
je 0x10175d2
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
xor edi, edi
jmp 0x101750a
call fcn.01032f40
jmp 0x10175c2
xor edi, edi
jmp 0x10175be

Function at 0x10175de
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 4
pop edi
mov esi, 0x10493a0
push esi
mov dword [ebp - 0xc], edi
call fcn.010160cb
test eax, eax
je 0x101cfbc
push 0x1049330
push esi
call fcn.01017711
test eax, eax
je 0x101cfc3
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push 0x10120b8
push 0x80000002
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1017692
lea eax, [ebp - 4]
push eax
push esi
mov esi, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
lea eax, [ebp - 0xc]
push eax
push 0
push 0x101769c
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
lea eax, [ebp - 4]
push eax
push 0x10493a4
lea eax, [ebp - 0xc]
push eax
push 0
push 0x10176bc
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
lea eax, [ebp - 4]
push eax
push 0x1049370
lea eax, [ebp - 0xc]
push eax
push 0
push 0x10176e8
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
push dword [ebp - 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
xor eax, eax
jmp 0x1017695
push esi
call fcn.0103d73f
jmp 0x101cfbc
Function at 0x1017a68
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebp + 8], edi
je 0x1017ae4
cmp dword [ebp + 0xc], edi
je 0x1017ae4
cmp dword [ebp + 0x10], edi
je 0x1017ae4
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push dword [0x1049edc]
push 0x80000002
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
push eax
call fcn.010035a1
mov esi, eax
cmp esi, edi
jl 0x1017adc
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
push eax
call fcn.010035a1
mov esi, eax
cmp esi, edi
jge 0x101bda4
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret 0x10
mov esi, 0x80004003
jmp 0x1017adc
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x1017ad3
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
jmp 0x1017ad3
Function at 0x1019655
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
neg esi
push edi
mov edi, ecx
push dword [edi + 0x30]
sbb esi, esi
and esi, 0x7ff8ffa9
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
add esi, 0x80070057
call fcn.0100bb3e
cmp esi, ebx
jl 0x101975f
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x1c]
push eax
call fcn.0100bde0
mov esi, eax
cmp esi, ebx
jne 0x1019785
mov ecx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.01019590
mov esi, eax
cmp esi, ebx
jl 0x101975f
mov ecx, dword [ebp - 8]
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], ebx
call fcn.010195d4
mov esi, eax
cmp esi, ebx
jl 0x1019747
push dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
call fcn.0100ccd4
mov esi, eax
cmp esi, ebx
jl 0x1019747
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp + 0x10], ebx
call fcn.010195fc
mov esi, eax
cmp esi, ebx
jl 0x1019747
push ebx
push dword [ebp - 0xc]
mov eax, 0x1019828
push eax
push 0x1019790
push eax
push dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
call fcn.0100d093
add esp, 0x1c
push eax
call fcn.010035a1
mov esi, eax
cmp esi, ebx
jl 0x1019747
push ebx
push ebx
push dword [ebp + 0x10]
push 0x80000003
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegDeleteKeyExW]
push dword [ebp + 0x10]
call sym.spoolsv.exe_PrvDllFreeSplMem
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x14], ebx
jne 0x101975f
mov edx, dword [ebp + 0xc]
xor eax, eax
inc eax
mov dword [edx], eax
dec dword [edi + 0x18]
mov edx, dword [ecx]
push eax
call dword [edx]
mov ecx, dword [ebp - 4]
cmp ecx, ebx
je 0x101976c
mov eax, dword [ecx]
push 1
call dword [eax]
cmp esi, ebx
jl 0x101f3ed
lea ecx, [ebp - 0x10]
call fcn.0100bb5c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
jl 0x101975f
jmp 0x101f3e3
mov esi, 0x80004005
jmp 0x10196be
mov eax, dword [0x1049104]
cmp eax, 0x1049104
je 0x1019774
test byte [eax + 0x1c], 1
je 0x1019774
push esi
push 0x1023c68
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01034754
jmp 0x1019774
Function at 0x1019b60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1049108]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
push edi
mov edi, 0x1019c80
mov eax, edi
mov dword [ebp - 0x218], edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1019b8a
and dword [ebp - 0x210], 0
and dword [ebp - 0x214], 0
sub eax, esi
sar eax, 1
lea esi, [eax + 0x208]
test edx, edx
je 0x1019c6a
mov eax, edx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1019bb9
sub eax, edx
sar eax, 1
inc eax
cmp eax, 0x207
jae 0x1019c6a
push ebx
lea eax, [esi + esi]
push eax
call sym.spoolsv.exe_PrvDllAllocSplMem
mov ebx, eax
test ebx, ebx
je 0x1019c69
push edi
push esi
push ebx
call fcn.0100bc84
mov eax, edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1019bf4
sub eax, ecx
sar eax, 1
lea ecx, [ebx + eax*2]
push 0x5c
pop eax
mov word [ecx], ax
mov eax, edi
lea edx, [eax + 2]
mov di, word [eax]
inc eax
inc eax
test di, di
jne 0x1019c10
sub eax, edx
sar eax, 1
sub esi, eax
dec esi
push esi
add ecx, 2
push ecx
push dword [ebp - 0x218]
call sym.spoolsv.exe_PrvFormatPrinterForRegistryKey
mov esi, 0x20019
push esi
call sym.spoolsv.exe_PrvSplGetClientUserHandle
mov edi, eax
test edi, edi
je 0x1019c63
lea eax, [ebp - 0x214]
push eax
push esi
push 0
push ebx
push edi
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x1019cf0
push edi
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
push ebx
call sym.spoolsv.exe_PrvDllFreeSplMem
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
xor ecx, ebp
pop esi
call fcn.0100327d
leave
ret 4
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x1019d38
push dword [ebp - 0x214]
mov dword [ebp - 0x21c], 0x208
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x101ddcb
push dword [ebp - 0x214]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
jmp 0x1019c5c
mov esi, dword [0x10491bc]
mov dword [ebp - 0x210], esi
test esi, esi
jne 0x101dde6
jmp 0x1019d25
mov esi, dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1019d25
mov esi, dword [esi]
mov dword [ebp - 0x210], esi
test esi, esi
je 0x1019d25
jmp 0x101dde0
Function at 0x10243c3
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push 4
pop esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor edi, edi
push edi
push str.SystemWPAPrintServer
push 0x80000002
mov dword [ebp - 4], edi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], esi
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1024430
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push edi
push str.Disabled
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1024427
cmp dword [ebp - 8], esi
jne 0x1024427
cmp dword [ebp - 0xc], 1
jne 0x1024427
inc edi
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x102443b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 0x20019
push esi
push 0x10244d8
push 0x80000002
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], 4
mov dword [ebp - 4], esi
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, esi
jne 0x1024494
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x10244b8
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov edi, eax
cmp dword [ebp - 4], esi
je 0x10244a2
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
cmp edi, esi
je 0x10244a9
mov dword [ebp - 8], esi
xor eax, eax
cmp dword [ebp - 8], 1
pop edi
setne al
pop esi
leave
ret

Function at 0x1026c92
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x1026cde
cmp word [eax], 0
je 0x1026cde
push esi
push eax
call sym.spoolsv.exe_PrvAllocSplStr
mov esi, eax
test esi, esi
je 0x1026cdd
lea eax, [ebp + 8]
push eax
push 0
push esi
push 0x1026c70
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1026cd7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1026cdd
push esi
call sym.spoolsv.exe_PrvDllFreeSplStr
pop esi
pop ebp
ret 4

Function at 0x102a540
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 0x102a5a0
push dword [eax + 0xc]
call dword [sym.imp.msvcrt.dll__stricmp]
pop ecx
pop ecx
test eax, eax
jne 0x102a588
mov eax, dword [0x1049104]
cmp eax, 0x1049104
je 0x102a580
test byte [eax + 0x1c], 1
je 0x102a580
push 0x102a590
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01023f56
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor eax, eax
pop ebp
ret 4
Function at 0x1032208
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x18
push ebx
push esi
xor esi, esi
push edi
cmp eax, esi
jne 0x1032222
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
pop ebx
mov dword [ebp - 0x18], eax
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x10322e0
mov dword [ebp - 8], ebx
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], esi
call fcn.01032099
add esp, 0x10
mov eax, dword [0x1049104]
mov esi, 0x1049104
mov edi, 0x1021f60
cmp eax, esi
je 0x103227c
test byte [eax + 0x1c], bl
je 0x103227c
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01034df7
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x10322d8
mov eax, dword [0x1049104]
cmp eax, esi
je 0x10322d3
test byte [eax + 0x1c], bl
je 0x10322bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1049104]
push edi
push 0x20
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01034754
mov eax, dword [0x1049104]
cmp eax, esi
je 0x10322d3
test byte [eax + 0x1c], bl
je 0x10322d3
push edi
push 0x21
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01023f56
xor eax, eax
xor edi, edi
stosb byte es:[edi], al
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1033193
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 0x208
mov dword [ebp - 4], 1
call sym.spoolsv.exe_PrvDllAllocSplMem
xor esi, esi
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x1033246
lea eax, [ebp - 8]
push eax
push 0x2001f
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, esi
je 0x10331dd
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1033239
push edi
mov edi, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegEnumKeyExW]
jmp 0x10331f8
push dword [ebp - 0xc]
push dword [ebp - 8]
call fcn.01033193
mov dword [ebp - 4], eax
cmp eax, esi
je 0x1033214
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0x104
push esi
push dword [ebp - 8]
call edi
test eax, eax
je 0x10331e6
push dword [ebp - 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
pop edi
cmp dword [ebp - 4], esi
je 0x103323c
cmp eax, esi
jne 0x1033239
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegDeleteKeyExW]
test eax, eax
je 0x103323c
mov dword [ebp - 4], esi
push dword [ebp - 0xc]
call sym.spoolsv.exe_PrvDllFreeSplMem
jmp 0x1033251
push 8
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 4], esi
pop esi
jne 0x1033287
mov eax, dword [0x1049104]
cmp eax, 0x1049104
je 0x1033287
test byte [eax + 0x1c], 1
je 0x1033287
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1049104]
push 0x1021f90
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01034754
mov eax, dword [ebp - 4]
leave
ret 8

Function at 0x10334c7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor esi, esi
push 0x57
pop ebx
cmp dword [ebp + 8], esi
je 0x1033534
cmp dword [ebp + 0xc], esi
je 0x1033534
cmp dword [ebp + 0x10], esi
je 0x1033534
mov edi, dword [ebp + 0x14]
cmp edi, esi
je 0x1033534
lea eax, [ebp + 0x14]
push eax
push 0x20019
push esi
push dword [ebp + 0xc]
mov dword [ebp + 0x14], esi
push dword [ebp + 8]
mov dword [edi], esi
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
cmp ebx, esi
jne 0x1033534
lea eax, [ebp + 0xc]
push eax
push edi
push esi
push esi
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 4
push dword [ebp + 0x14]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
push dword [ebp + 0x14]
mov ebx, eax
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
cmp ebx, esi
je 0x1033559
mov eax, dword [0x1049104]
cmp eax, 0x1049104
je 0x1033559
test byte [eax + 0x1c], 1
je 0x1033559
push ebx
push 0x1021f90
push 0x2c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01034754
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0x10
Function at 0x1033567
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push 0x57
pop edi
cmp dword [ebp + 8], esi
je 0x10335c7
cmp dword [ebp + 0xc], esi
je 0x10335c7
cmp dword [ebp + 0x10], esi
je 0x10335c7
push esi
lea eax, [ebp - 4]
push eax
push esi
push 2
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCreateKeyExW]
mov edi, eax
cmp edi, esi
jne 0x10335c7
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
cmp edi, esi
je 0x10335ec
mov eax, dword [0x1049104]
cmp eax, 0x1049104
je 0x10335ec
test byte [eax + 0x1c], 1
je 0x10335ec
push edi
push 0x1021f90
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01034754
mov eax, edi
pop edi
pop esi
leave
ret 0x10

Function at 0x10335f9
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1049108]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x1033654
call fcn.0100ce32
mov esi, eax
cmp esi, ebx
jl 0x1033684
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1033671
call fcn.0100ce32
mov esi, eax
cmp esi, ebx
jl 0x103367b
xor eax, eax
cmp dword [ebp - 0x14], ebx
sete al
mov esi, eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100327d
leave
ret
Function at 0x10367e7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1049108]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edi
xor edx, edx
mov word [ebp - 0x20c], dx
lea edx, [ebp - 0x210]
push edx
push 0x20019
xor edi, edi
push edi
push ecx
push eax
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x214], 0x104
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x1036892
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push 0x1023a80
push dword [ebp - 0x210]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
cmp eax, edi
jne 0x1036892
push esi
push dword [ebp - 0x210]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov esi, dword [0x10491bc]
jmp 0x1036889
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x103688d
mov esi, dword [esi]
cmp esi, edi
jne 0x1036871
mov eax, esi
pop esi
jmp 0x10368af
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x210], edi
je 0x10368ad
push dword [ebp - 0x210]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0100327d
leave
ret 8
Function at 0x1036909
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
xor edi, edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edi
cmp esi, ebx
je 0x1036979
cmp word [esi], di
je 0x1036976
push esi
push dword [ebp + 8]
call fcn.010367e7
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.010368c3
test eax, eax
je 0x10369e8
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1036949
sub eax, edx
sar eax, 1
lea ebx, [ebx + eax*2 + 2]
mov eax, esi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1036960
sub eax, ecx
sar eax, 1
lea esi, [esi + eax*2 + 2]
test esi, esi
jne 0x1036924
mov edi, dword [ebp - 4]
mov eax, dword [0x10491bc]
inc ebx
inc ebx
xor edx, edx
jmp 0x1036987
mov eax, dword [eax]
inc edx
test eax, eax
jne 0x1036984
xor esi, esi
inc esi
mov ecx, esi
mov eax, edi
test edi, edi
je 0x103699d
mov eax, dword [eax]
inc ecx
test eax, eax
jne 0x1036996
cmp ecx, edx
jne 0x10369e4
push ebx
push dword [ebp + 0xc]
push 7
push 0
push 0x10137b8
push dword [ebp + 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
test eax, eax
je 0x10369c4
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10369f5
mov eax, dword [0x10491bc]
mov ecx, edi
test edi, edi
je 0x10369dc
mov edx, dword [ecx + 4]
mov dword [eax], edx
mov ecx, dword [ecx]
mov eax, edx
test ecx, ecx
jne 0x10369cf
and dword [eax], 0
mov dword [ebp - 8], esi
jmp 0x10369f5
push 0x57
jmp 0x10369bc
mov edi, dword [ebp - 4]
jmp 0x10369f5
mov edi, dword [edi]
push eax
call sym.spoolsv.exe_PrvDllFreeSplMem
mov eax, edi
test edi, edi
jne 0x10369ed
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8