joyce8/EMBER2024-capa huggingface dataset:
Function at 0x103d2b5
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
cmp dword [ebp + 0xc], edi
jne 0x103d2d9
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x103d38a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01017f6e
test eax, eax
je 0x103d2d2
mov eax, dword [ebp + 0x10]
push esi
cmp eax, edi
jne 0x103d30f
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegDeleteValueW]
mov esi, eax
cmp esi, 2
jne 0x103d33e
xor esi, esi
jmp 0x103d33e
movzx ecx, word [eax + 0x46]
movzx edx, word [eax + 0x44]
add ecx, edx
push ecx
push eax
push 3
push edi
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
mov esi, eax
cmp esi, edi
jne 0x103d33e
push dword [ebp + 0xc]
push edi
push 0x1b
push edi
push 2
call sym.spoolsv.exe_PrvRouterBroadcastMessage
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
cmp esi, edi
je 0x103d386
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [0x1049104]
cmp eax, 0x1049104
je 0x103d382
test byte [eax + 0x1c], 1
je 0x103d382
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1049104]
push 0x1024200
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010245cc
xor eax, eax
jmp 0x103d389
xor eax, eax
inc eax
pop esi
pop edi
leave
ret 0xc

Function at 0x103e62d
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push dword [eax + 0x18]
xor ebx, ebx
inc ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [esi + 4], bl
jne 0x103e6df
mov eax, dword [esi + 0xc]
test eax, eax
je 0x103e68b
lea ecx, [eax - 1]
mov dword [esi + 0xc], ecx
mov eax, dword [0x1049104]
cmp eax, 0x1049104
je 0x103e680
test byte [eax + 0x1c], 2
je 0x103e680
push ecx
push 0x10242c8
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010245cc
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x103e6e1
mov ecx, dword [esi + 8]
mov eax, dword [esi]
cmp ecx, dword [eax]
jae 0x103e6e1
mov eax, dword [0x1049104]
cmp eax, 0x1049104
je 0x103e6b9
test byte [eax + 0x1c], 2
je 0x103e6b9
push ecx
push 0x10242c8
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010245cc
lea eax, [ebp + 8]
push eax
push 0
push esi
push 0x103e4d4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x103e6df
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [esi + 8]
jmp 0x103e6e1
xor ebx, ebx
mov eax, dword [esi]
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
Function at 0x103edbd
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 eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push 1
xor esi, esi
push esi
push 0x10242ec
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x103ee1e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x1024310
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
inc edi
cmp eax, esi
jne 0x103ee1e
xor eax, eax
cmp dword [ebp - 8], 1
setne al
mov edi, eax
cmp dword [ebp - 4], esi
je 0x103ee2c
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 4

Function at 0x103ef91
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 eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
xor edi, edi
inc edi
push edi
xor esi, esi
push esi
push 0x10242ec
push dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x103eff0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x1024310
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
cmp eax, esi
jne 0x103eff0
xor eax, eax
cmp dword [ebp - 8], edi
setne al
mov edi, eax
cmp dword [ebp - 4], esi
je 0x103effe
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 4
Function at 0x103f165
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x1049108]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x224], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x234], 1
call sub.msvcrt.dll_memset
mov esi, 0x1017d78
lea edi, [ebp - 0x21c]
movsd dword es:[edi], dword [esi]
add esp, 0xc
movsd dword es:[edi], dword [esi]
push 2
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
lea eax, [ebp - 0x22c]
push eax
xor esi, esi
lea eax, [ebp - 0x224]
push eax
push esi
push 3
push esi
push esi
push esi
push 0x10242ec
push ebx
mov dword [ebp - 0x230], 0x208
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x22c], edi
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x103f31b
mov ebx, 0x104a138
cmp dword [ebp - 0x22c], edi
jne 0x103f28a
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x234]
push eax
push esi
push 0x103f35c
push dword [ebp - 0x224]
mov dword [ebp - 0x230], 0x208
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x103f28a
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov dword [ebp - 0x220], eax
test eax, eax
jl 0x103f28a
push ebx
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
push 4
xor eax, eax
pop ecx
lea edi, [ebp - 0x21c]
mov esi, 0x10492a8
repe cmpsd dword [esi], dword es:[edi]
setne al
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
test esi, esi
je 0x103f304
push ebx
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
lea eax, [ebp - 0x228]
push eax
push 0x10492a8
call dword [sym.imp.ole32.dll_StringFromCLSID]
push ebx
mov dword [ebp - 0x220], eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
cmp dword [ebp - 0x220], 0
jl 0x103f304
mov eax, dword [ebp - 0x228]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x103f2c2
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x228]
push 1
push 0
push 0x103f35c
push dword [ebp - 0x224]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
test eax, eax
jle 0x103f2fe
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x228], 0
je 0x103f32d
push dword [ebp - 0x228]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x103f32d
jle 0x103f327
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x224], 0
pop edi
pop esi
pop ebx
je 0x103f345
push dword [ebp - 0x224]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x220]
xor ecx, ebp
call fcn.01003279
leave
ret 4
Function at 0x103f5ed
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x1049108]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
xor edi, edi
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
mov dword [ebp - 0x834], esi
mov dword [ebp - 0x828], edi
mov dword [ebp - 0x82c], edi
call sub.msvcrt.dll_memset
xor eax, eax
push 0x616
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push edi
push eax
call sub.msvcrt.dll_memset
mov al, byte [0x104a13c]
add esp, 0x18
mov dword [ebp - 0x830], edi
test al, al
jne 0x103f671
mov eax, 0x80070015
jmp 0x103f814
cmp esi, edi
jne 0x103f67f
mov eax, 0x80070057
jmp 0x103f814
push esi
call fcn.0103ef91
test eax, eax
je 0x103f814
push esi
call fcn.0103f165
mov esi, eax
cmp esi, edi
jl 0x103f812
cmp ebx, edi
je 0x103f812
push ebx
push 0x30c
lea eax, [ebp - 0x824]
push eax
call fcn.0100bc94
mov esi, eax
cmp esi, edi
jl 0x103f7ea
lea eax, [ebp - 0x824]
push 0x2c
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
cmp eax, edi
je 0x103f6db
xor ecx, ecx
mov word [eax], cx
mov ebx, 0x104a138
push ebx
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
lea eax, [ebp - 0x82c]
push eax
push 0x10492a8
call dword [sym.imp.ole32.dll_StringFromCLSID]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
cmp esi, edi
jl 0x103f7ea
push 0x10242ec
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.0100bc94
mov esi, eax
cmp esi, edi
jl 0x103f7ea
push 0x101a818
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.010105ee
mov esi, eax
cmp esi, edi
jl 0x103f7ea
push dword [ebp - 0x82c]
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.010105ee
mov esi, eax
cmp esi, edi
jl 0x103f7ea
push edi
lea eax, [ebp - 0x828]
push eax
push edi
push 2
push edi
push edi
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x834]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCreateKeyExW]
cmp eax, edi
mov ebx, 0x80070000
jle 0x103f795
and eax, 0xffff
or eax, ebx
mov esi, eax
cmp esi, edi
jl 0x103f7ea
lea eax, [ebp - 0x830]
push eax
push 0x618
lea eax, [ebp - 0x824]
push eax
call fcn.01032835
mov esi, eax
cmp esi, edi
jl 0x103f7ea
add dword [ebp - 0x830], 2
push dword [ebp - 0x830]
lea eax, [ebp - 0x824]
push eax
push 1
push edi
push edi
push dword [ebp - 0x828]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
cmp eax, edi
jle 0x103f7e8
and eax, 0xffff
or eax, ebx
mov esi, eax
cmp dword [ebp - 0x82c], edi
je 0x103f7fe
push dword [ebp - 0x82c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x828], edi
je 0x103f812
push dword [ebp - 0x828]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01003279
leave
ret 8
Function at 0x103f82a
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc50
mov eax, dword [0x1049108]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
mov esi, 0x616
xor edi, edi
push esi
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push edi
push eax
mov dword [ebp - 0xc4c], ebx
mov dword [ebp - 0xc38], edi
call sub.msvcrt.dll_memset
xor eax, eax
push esi
mov word [ebp - 0xc34], ax
lea eax, [ebp - 0xc32]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0xc38]
push eax
push 3
push edi
xor esi, esi
push 0x100e608
inc esi
push ebx
mov dword [ebp - 0xc48], 0x30c
mov dword [ebp - 0xc50], esi
mov dword [ebp - 0xc40], edi
mov dword [ebp - 0xc3c], edi
mov dword [ebp - 0xc44], edi
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, edi
jle 0x103f8d2
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
cmp ebx, edi
jl 0x103fa16
lea eax, [ebp - 0xc48]
push eax
lea eax, [ebp - 0x61c]
push eax
push dword [ebp - 0xc4c]
call fcn.0103f36d
mov ebx, eax
cmp ebx, edi
jl 0x103f90f
xor eax, eax
cmp word [ebp - 0x61c], di
setne al
mov dword [ebp - 0xc44], eax
jmp 0x103f91d
cmp ebx, 0x80070002
jne 0x103f923
mov dword [ebp - 0xc44], edi
mov dword [ebp - 0xc3c], esi
cmp ebx, edi
jl 0x103f9dd
lea eax, [ebp - 0xc40]
push eax
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0xc50]
push eax
push edi
mov esi, 0x1011218
push esi
push dword [ebp - 0xc38]
mov dword [ebp - 0xc40], 0x618
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
cmp eax, edi
jle 0x103f96b
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
cmp ebx, edi
jl 0x103f9dd
cmp word [ebp - 0xc34], di
je 0x103f9dd
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0xc34]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x103f9dd
lea eax, [ebp - 0x61c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x103f99d
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
mov dword [ebp - 0xc40], eax
lea eax, [ebp - 0x61c]
push eax
push 1
push edi
push esi
push dword [ebp - 0xc38]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
cmp eax, edi
jle 0x103f9db
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
cmp dword [ebp - 0xc3c], edi
je 0x103fa16
push 4
lea eax, [ebp - 0xc44]
push eax
push 4
push edi
push 0x101ac90
push dword [ebp - 0xc38]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
cmp ebx, edi
jl 0x103fa16
cmp eax, edi
jle 0x103fa14
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
cmp dword [ebp - 0xc38], edi
je 0x103fa2a
push dword [ebp - 0xc38]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.01003279
leave
ret 4
Function at 0x103fdb2
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1049108]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x220], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x224], eax
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
mov dword [ebp - 0x214], esi
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x104a134
mov dword [ebp - 0x21c], 0x104
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
lea eax, [ebp - 0x214]
push eax
push 0x20019
push esi
push esi
push 0x80000003
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, esi
mov ebx, 0xffff
jle 0x103fe40
and eax, ebx
or eax, 0x80070000
mov edi, eax
cmp edi, esi
jl 0x103ff3e
mov dword [ebp - 0x218], esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
mov dword [ebp - 0x210], esi
push dword [ebp - 0x214]
mov dword [ebp - 0x21c], 0x104
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegEnumKeyExW]
cmp eax, esi
jle 0x103fe8f
and eax, ebx
or eax, 0x80070000
mov edi, eax
cmp edi, esi
jl 0x103ff26
lea eax, [ebp - 0x210]
push eax
push 0xf003f
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, esi
jle 0x103fec6
and eax, ebx
or eax, 0x80070000
cmp eax, esi
jl 0x103ff10
push dword [ebp - 0x210]
call fcn.0103edbd
test eax, eax
je 0x103ff10
mov eax, dword [ebp + 8]
sub eax, esi
je 0x103fefa
dec eax
jne 0x103ff10
push dword [ebp - 0x224]
push dword [ebp - 0x220]
push dword [ebp - 0x210]
call fcn.0103fa42
jmp 0x103ff10
push dword [ebp - 0x210]
call fcn.0103f82a
push dword [ebp - 0x210]
call fcn.0103f165
cmp dword [ebp - 0x210], esi
je 0x103ff24
push dword [ebp - 0x210]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
xor edi, edi
inc dword [ebp - 0x218]
cmp edi, esi
jge 0x103fe50
cmp edi, 0x80070103
jne 0x103ff3e
xor edi, edi
cmp dword [ebp - 0x214], esi
je 0x103ff52
push dword [ebp - 0x214]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
push 0x100e6fc
push esi
push 0x1a
push ebx
call dword [sym.imp.USER32.dll_SendNotifyMessageW]
push 0x104a134
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01003279
leave
ret 0xc

Function at 0x104176d
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
inc dword [esi + 8]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
lea ecx, [ebp - 4]
push ecx
push dword [esi + 4]
mov dword [ebp - 4], eax
mov eax, dword [esi + 8]
push eax
push dword [esi]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegEnumKeyExW]
push eax
call fcn.01003589
mov dword [esi + 0x10], eax
pop esi
leave
ret
Function at 0x10417d8
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
push dword [ecx + 0xc]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
test eax, eax
jle 0x1041802
and eax, 0xffff
or eax, 0x80070000
pop ebp
ret 0x10

Function at 0x104180b
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0xf003f
xor edi, edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov esi, eax
mov ebx, 0xffff
jmp 0x104188c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 8], edi
push dword [ebp - 4]
mov dword [ebp - 0xc], edi
call fcn.01010e77
mov esi, eax
cmp esi, edi
jne 0x1041890
push edi
push edi
push edi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegEnumKeyExW]
mov esi, eax
cmp esi, edi
jne 0x1041883
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0104180b
mov esi, eax
and esi, ebx
push dword [ebp - 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
cmp esi, edi
je 0x104183a
cmp dword [ebp - 4], edi
je 0x104189e
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
cmp esi, 0x103
jne 0x10418a8
xor esi, esi
cmp esi, edi
jne 0x10418be
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegDeleteKeyExW]
mov esi, eax
cmp esi, edi
jle 0x10418c8
and esi, ebx
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x1041b6a
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
cmp dword [ebp + 0x10], edx
jbe 0x1041b97
push esi
mov esi, dword [ebp + 0xc]
movzx esi, byte [edx + esi]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [ecx + esi*4 + 4]
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x1041b7a
pop esi
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
pop ebp
ret 0x10

Function at 0x1041ba7
Capabilities:
Hash data with crc32

Disassembly:
xor edx, edx
add ecx, 4
push esi
push 8
mov eax, edx
pop esi
test al, 1
je 0x1041bbf
shr eax, 1
xor eax, 0xedb88320
jmp 0x1041bc1
shr eax, 1
dec esi
jne 0x1041bb2
mov dword [ecx], eax
inc edx
add ecx, 4
cmp edx, 0x100
jl 0x1041bad
xor eax, eax
pop esi
ret
Function at 0x10433f6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
push 1
xor esi, esi
push esi
push 0x10159a8
push 0x80000002
mov dword [ebp - 4], esi
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1043461
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x1043468
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], 4
mov dword [ebp - 8], esi
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1043458
cmp dword [ebp - 8], 4
jne 0x1043458
cmp dword [ebp - 0xc], 1
jne 0x1043458
inc esi
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x104411f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x1049fd4], 0xffffffff
jne 0x1044195
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x10441a0
push 0x80000002
mov dword [ebp - 4], esi
mov dword [0x1049fd4], esi
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1044194
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push 0x10441f0
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], esi
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x104418b
cmp dword [ebp - 8], esi
setne al
mov dword [0x1049fd4], eax
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
pop esi
mov eax, dword [0x1049fd4]
leave
ret

Function at 0x1044237
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x10243c0
push 0x80000002
mov esi, ecx
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x10442a4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x10442e8
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1044292
cmp dword [ebp - 0xc], eax
jne 0x1044292
and dword [esi + 0x34], eax
jmp 0x1044299
mov dword [esi + 0x34], 1
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
jmp 0x10442ab
mov dword [esi + 0x34], 1
mov eax, dword [0x1049104]
cmp eax, 0x1049104
je 0x10442e0
test byte [eax + 0x1c], 2
je 0x10442e0
cmp dword [esi + 0x34], 1
mov ecx, 0x1044350
je 0x10442cd
mov ecx, 0x1044330
push ecx
push 0x10243b0
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010332f4
pop esi
leave
ret
Function at 0x1044379
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x10243c0
push 0x80000002
mov esi, ecx
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x10443e8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1044428
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x10443d9
cmp dword [ebp - 0xc], 1
jne 0x10443d9
mov dword [esi + 0x38], 1
jmp 0x10443dd
and dword [esi + 0x38], 0
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
jmp 0x10443ec
and dword [esi + 0x38], 0
mov eax, dword [0x1049104]
cmp eax, 0x1049104
je 0x1044421
test byte [eax + 0x1c], 2
je 0x1044421
cmp dword [esi + 0x38], 1
mov ecx, 0x1044498
je 0x104440e
mov ecx, 0x1044470
push ecx
push 0x10243b0
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010332f4
pop esi
leave
ret