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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100e6018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x20]
or eax, 0x20019
push eax
push 0
push ecx
push edx
xor bl, bl
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1007502a
push dword [ebp - 0xc]
lea eax, [ebp + 0x14]
push edi
push eax
push 0
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, bl
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov eax, dword [ebp - 8]
test eax, eax
je 0x10075038
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.100947be
mov esp, ebp
pop ebp
ret

Function at 0x10075050
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100e6018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1c]
mov ecx, edi
mov dword [ebp - 0x10], eax
lea eax, [ecx + 2]
xor bl, bl
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10075090
sub ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x20]
or eax, 0x20019
push eax
push 0
sar ecx, 1
push esi
push edx
cmp ecx, 1
jae 0x100750be
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
jmp 0x100750de
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100750e4
push dword [ebp - 0x10]
lea eax, [ebp + 0x14]
push dword [ebp - 0x14]
push eax
push 0
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100750e4
mov bl, 1
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x100750f2
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.100947be
mov esp, ebp
pop ebp
ret
Function at 0x10075110
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100e6018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x20]
or eax, 0x2001f
push eax
push 0
push ecx
push edx
xor bl, bl
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1007517b
mov eax, dword [ebp - 0xc]
push dword [eax]
push edi
push dword [ebp + 0x14]
push 0
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, bl
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov eax, dword [ebp - 8]
test eax, eax
je 0x10075189
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.100947be
mov esp, ebp
pop ebp
ret

Function at 0x10075460
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100e6018]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x14]
or eax, 0x2001f
push eax
push 0
push ecx
push edx
xor bl, bl
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100754b6
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
movzx ebx, bl
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov eax, dword [ebp - 8]
test eax, eax
je 0x100754c4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.100947be
mov esp, ebp
pop ebp
ret

Function at 0x100754e0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100e6018]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x14]
or eax, 0x2001f
push eax
push 0
push ecx
push edx
xor bl, bl
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10075536
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
movzx ebx, bl
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov eax, dword [ebp - 8]
test eax, eax
je 0x10075544
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.100947be
mov esp, ebp
pop ebp
ret
Function at 0x10075560
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100e6018]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x14]
or eax, 0x2001f
push eax
push 0
push ecx
push edx
xor bl, bl
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100755b6
push esi
push dword [ebp - 8]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
movzx ebx, bl
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov eax, dword [ebp - 8]
test eax, eax
je 0x100755c4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.100947be
mov esp, ebp
pop ebp
ret

Function at 0x100755e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100e6018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
test esi, esi
je 0x10075623
test ebx, ebx
jne 0x10075623
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100947be
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x20]
or eax, 0x20019
push eax
push 0
push edx
push ecx
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10075649
xor bl, bl
jmp 0x1007567a
test esi, esi
je 0x1007565a
push dword [ebx]
push 0
push esi
call sub.MSVCR110.dll_memset
add esp, 0xc
test edi, edi
je 0x10075664
mov dword [edi], 1
push ebx
push esi
push edi
push 0
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete bl
mov eax, dword [ebp - 8]
test eax, eax
je 0x10075688
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.100947be
mov esp, ebp
pop ebp
ret
Function at 0x10075b90
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100e6018]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 0x214]
push eax
mov eax, dword [ebp + 0x10]
or eax, 8
push eax
push 0
push ecx
push edx
mov byte [esi], 0
mov dword [ebp - 0x214], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10075be7
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100947be
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push dword [ebp - 0x214]
mov dword [ebp - 0x210], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push dword [ebp - 0x214]
cmp eax, 0x103
setne al
mov byte [esi], al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.100947be
mov esp, ebp
pop ebp
ret

Function at 0x10075c60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100e6018]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 0x214]
push eax
mov eax, dword [ebp + 0x10]
or eax, 1
push eax
push 0
push ecx
push edx
mov byte [esi], 0
mov dword [ebp - 0x214], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10075cb7
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100947be
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push dword [ebp - 0x214]
mov dword [ebp - 0x210], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push dword [ebp - 0x214]
cmp eax, 0x103
setne al
mov byte [esi], al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.100947be
mov esp, ebp
pop ebp
ret
Function at 0x10077380
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009f108
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x100e6018]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x100e6018]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0xc], 0
test eax, eax
jne 0x100773db
push edi
mov ecx, esi
call fcn.10008550
jmp 0x10077462
cmp dword [ecx + 0x14], 8
jb 0x100773e5
mov edx, dword [ecx]
jmp 0x100773e7
mov edx, ecx
cmp word [edx + eax*2 - 2], 0x5c
jne 0x100773ff
movzx eax, word [edi + 2]
mov edx, ecx
push eax
mov ecx, esi
call fcn.100798d0
jmp 0x1007745f
xor eax, eax
push 0xffffffffffffffff
push eax
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
call fcn.10008c80
push 0x5c
push 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], 0
call fcn.1006daa0
push edi
lea ecx, [esp + 0x14]
call fcn.10011f20
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.1000f9e0
cmp dword [esp + 0x24], 8
jb 0x10077462
push dword [esp + 0x10]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.100947be
mov esp, ebp
pop ebp
ret

Function at 0x10077cd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x100e6018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x208], 0xff
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
test esi, esi
jne 0x10077d50
cmp word [ebp - 0x204], ax
jne 0x10077d26
xor ecx, ecx
jmp 0x10077d3f
lea ecx, [ebp - 0x204]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10077d30
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x204]
push eax
mov ecx, edi
call fcn.100089b0
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100947be
mov esp, ebp
pop ebp
ret 8
Function at 0x10077f30
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009f08b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1044
call fcn.100974c0
mov eax, dword [0x100e6018]
xor eax, esp
mov dword [esp + 0x1040], eax
push ebx
push esi
push edi
mov eax, dword [0x100e6018]
xor eax, esp
push eax
lea eax, [esp + 0x1058]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0x54], ax
lea eax, [esp + 0x56]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x50]
push eax
push 0
push esi
push dword [edi]
mov dword [esp + 0x60], 1
mov dword [esp + 0x5c], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x10078103
mov ecx, dword [esp + 0x48]
cmp ecx, 1
jne 0x10078023
cmp word [esp + 0x4c], ax
jne 0x10077ff1
xor ecx, ecx
push ecx
lea eax, [esp + 0x50]
push eax
mov ecx, ebx
call fcn.100089b0
mov eax, edi
jmp 0x10078103
lea ecx, [esp + 0x4c]
lea edx, [ecx + 2]
jmp 0x10078000
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10078000
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x50]
push eax
mov ecx, ebx
call fcn.100089b0
mov eax, edi
jmp 0x10078103
cmp ecx, 2
jne 0x100780fe
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x18]
call fcn.10008550
lea edx, [esp + 0x14]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1060], 0
call fcn.10076b60
cmp dword [eax + 0x14], 8
jb 0x1007805a
mov eax, dword [eax]
push 0x400
lea ecx, [esp + 0x850]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp dword [esp + 0x40], 8
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov dword [esp + 0x44], eax
jb 0x1007808c
push dword [esp + 0x2c]
call esi
mov eax, dword [esp + 0x48]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x1060], 0xffffffff
cmp dword [esp + 0x28], 8
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], cx
jb 0x100780c2
push dword [esp + 0x14]
call esi
mov eax, dword [esp + 0x48]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], cx
test eax, eax
je 0x100780f7
cmp eax, 0x400
ja 0x100780f7
lea eax, [esp + 0x84c]
push eax
mov ecx, ebx
call fcn.100085e0
mov eax, edi
jmp 0x10078103
mov eax, 0xea
jmp 0x10078103
mov eax, 0x3f4
mov ecx, dword [esp + 0x1058]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1040]
xor ecx, esp
call fcn.100947be
mov esp, ebp
pop ebp
ret 8
Function at 0x10078130
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x100e6018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
lea edx, [ebp - 0x80c]
push edx
lea edx, [ebp - 0x804]
push edx
lea edx, [ebp - 0x808]
push edx
push 0
push eax
push dword [ecx]
mov dword [ebp - 0x808], 1
mov dword [ebp - 0x80c], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x100781e3
mov ecx, dword [ebp - 0x808]
cmp ecx, 1
je 0x100781ac
cmp ecx, 2
je 0x100781ac
pop edi
mov eax, 0x3f4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100947be
mov esp, ebp
pop ebp
ret 8
cmp word [ebp - 0x804], 0
jne 0x100781ba
xor ecx, ecx
jmp 0x100781d2
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100781c3
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x804]
push eax
mov ecx, edi
call fcn.100089b0
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100947be
mov esp, ebp
pop ebp
ret 8
Function at 0x10078220
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009f0d0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x100e6018]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x100e6018]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push dword [ebx + 4]
mov dword [esp + 0x14], ebx
push dword [ebx]
call fcn.1001a1d0
mov eax, dword [ebx]
mov dword [ebx + 4], eax
lea eax, [esp + 0x2c]
push eax
push 0
lea eax, [esp + 0x38]
push eax
push 0
push edi
push dword [esi]
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
js 0x100783b2
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x100783b2
cmp dword [esp + 0x30], 7
je 0x100782be
mov eax, 0x3f4
jmp 0x100783b2
shr ecx, 1
push ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
call fcn.10079060
mov dword [esp + 0x50], 0
mov ebx, dword [esp + 0x34]
lea eax, [esp + 0x2c]
push eax
push ebx
push 0
push 0
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
js 0x100783a2
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x100783a2
shr eax, 1
mov ecx, ebx
lea edi, [ebx + eax*2]
cmp ebx, edi
jae 0x100783a0
mov ebx, dword [esp + 0x10]
cmp word [ecx], 0
je 0x1007839c
mov esi, ecx
cmp ecx, edi
je 0x1007833f
cmp word [esi], 0
je 0x1007833f
add esi, 2
cmp esi, edi
jne 0x10078332
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
cmp ecx, esi
je 0x1007836b
mov eax, esi
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.100089b0
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
mov byte [esp + 0x54], 1
call fcn.10026fa0
mov byte [esp + 0x50], 0
cmp dword [esp + 0x28], 8
jb 0x10078395
push dword [esp + 0x14]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea ecx, [esi + 2]
cmp ecx, edi
jb 0x10078326
mov ebx, dword [esp + 0x34]
xor esi, esi
test ebx, ebx
je 0x100783b0
push ebx
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.100947be
mov esp, ebp
pop ebp
ret 8

Function at 0x10078400
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov eax, edx
push edi
mov esi, ecx
lea edi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10078410
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 8
Function at 0x10078510
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x100e6018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
push esi
or eax, 0x20019
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10078569
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x10078571
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi], 0
jmp 0x100785a7
mov eax, dword [ebp - 8]
mov edx, dword [esi]
dec eax
mov dword [esi + 4], eax
test edx, edx
je 0x100785a7
test eax, eax
js 0x100785a7
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 8]
push ecx
lea ecx, [esi + 8]
push ecx
push eax
push edx
mov dword [ebp - 8], 0x103
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x100785ad
xor eax, eax
mov word [esi + 8], ax
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100947be
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100785c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x100e6018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
cmp dword [eax + 0x18], 8
lea edx, [eax + 4]
push edi
mov edi, dword [eax]
mov esi, ecx
jb 0x100785e4
mov edx, dword [edx]
mov al, byte [eax + 0x1c]
push ebx
test al, al
push esi
mov ecx, 0x200
mov ebx, 0x100
cmovne ecx, ebx
or ecx, 0x20019
push ecx
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop ebx
test eax, eax
jne 0x10078636
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x1007863e
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi], 0
jmp 0x10078674
mov eax, dword [ebp - 8]
mov edx, dword [esi]
dec eax
mov dword [esi + 4], eax
test edx, edx
je 0x10078674
test eax, eax
js 0x10078674
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 8]
push ecx
lea ecx, [esi + 8]
push ecx
push eax
push edx
mov dword [ebp - 8], 0x103
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1007867a
xor eax, eax
mov word [esi + 8], ax
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100947be
mov esp, ebp
pop ebp
ret 4
Function at 0x10078b70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x100e6018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x10078c80
cmp dword [esi + 4], 0
jl 0x10078c80
mov eax, dword [esi + 0x24]
sub eax, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
sar eax, 1
lea ebx, [esi + 0x2c]
lea eax, [eax*2 - 2]
mov dword [ebx], eax
mov eax, dword [esi + 0x20]
xor ecx, ecx
cmp eax, dword [esi + 0x24]
push ebx
cmove eax, ecx
push eax
lea ecx, [esi + 0x30]
push ecx
lea eax, [ebp - 8]
push 0
push eax
lea ecx, [esi + 8]
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], edx
call fcn.10074eb0
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0xea
jne 0x10078c5b
mov ecx, dword [ebx]
mov eax, dword [esi + 0x24]
sub eax, dword [esi + 0x20]
inc ecx
shr ecx, 1
inc ecx
sar eax, 1
cmp ecx, eax
jbe 0x10078c0d
lea eax, [ebp - 0xc]
push eax
push ecx
lea ecx, [esi + 0x20]
mov dword [ebp - 0xc], 0
call fcn.10078cb0
mov eax, dword [esi + 0x24]
sub eax, dword [esi + 0x20]
mov ecx, dword [ebp - 0x10]
sar eax, 1
cmp dword [ebp - 8], ecx
lea eax, [eax*2 - 2]
mov dword [ebx], eax
mov eax, 0x4000
cmove ecx, eax
mov eax, dword [esi + 0x20]
xor edx, edx
cmp eax, dword [esi + 0x24]
push ebx
cmove eax, edx
push eax
lea eax, [esi + 0x30]
push eax
push edx
lea eax, [ebp - 8]
mov dword [ebp - 8], ecx
mov edx, ecx
push eax
lea ecx, [esi + 8]
call fcn.10074eb0
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x10078c80
mov ecx, dword [ebx]
mov eax, dword [esi + 0x20]
inc ecx
shr ecx, 1
pop edi
xor edx, edx
pop esi
mov word [eax + ecx*2], dx
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100947be
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
jb 0x10078c8b
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [esi + 0x20]
pop edi
mov word [eax], cx
mov dword [esi + 0x2c], ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.100947be
mov esp, ebp
pop ebp
ret

Function at 0x10078e80
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
sub edx, edi
sar edx, 1
mov esi, 0x811c9dc5
mov ecx, 0
add edx, edx
je 0x10078eb1
lea ecx, [ecx]
movzx eax, byte [ecx + edi]
xor esi, eax
inc ecx
imul esi, esi, 0x1000193
cmp ecx, edx
jb 0x10078ea0
pop edi
mov eax, esi
pop esi
pop ebp
ret 8