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

Disassembly:
push 0x1c
mov eax, 0x1018a0e0
call fcn.10188e2d
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.1006b7af
cmp dword [ebp - 0x10], ebx
je 0x1004ad15
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x20019
push ebx
push ebx
push ebx
push 0x1001d500
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jle 0x1004ad42
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x1004ae28
mov byte [ebp - 4], bl
cmp dword [ebp - 0x14], 0
je 0x1004ad5a
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 4
push eax
lea eax, [ebp - 0x24]
push eax
push 0x18
push edi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov esi, eax
test esi, esi
jne 0x1004adc6
cmp dword [ebp - 0x18], 4
jne 0x1004ad94
cmp dword [ebp - 0x24], 4
jne 0x1004ad94
cmp dword [ebp - 0x1c], eax
jmp 0x1004adc9
mov eax, dword [0x101c33f0]
mov esi, 0x8000ffff
cmp eax, 0x101c33f0
je 0x1004ae4e
test byte [eax + 0x44], 1
je 0x1004ae4e
push esi
push dword [eax + 0x3c]
mov edx, 0x1001db38
push dword [eax + 0x38]
push 0x1a
jmp 0x1004ae48
cmp esi, 2
je 0x1004ae11
test esi, esi
jle 0x1004adda
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x1004adfe
mov eax, dword [0x101c33f0]
cmp eax, 0x101c33f0
je 0x1004ae4e
test byte [eax + 0x44], 1
je 0x1004ae4e
push esi
push dword [eax + 0x3c]
mov edx, 0x1001db38
push dword [eax + 0x38]
push 0x1b
jmp 0x1004ae48
cmp dword [ebp - 0x10], 0
je 0x1004ae0d
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x1004ae22
cmp dword [ebp - 0x10], 0
je 0x1004ae20
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
call fcn.10188de9
ret
mov eax, dword [0x101c33f0]
cmp eax, 0x101c33f0
je 0x1004ae4e
test byte [eax + 0x44], 1
je 0x1004ae4e
push esi
push dword [eax + 0x3c]
mov edx, 0x1001db38
push dword [eax + 0x38]
push 0x19
pop ecx
call fcn.1004a069
push esi
lea ecx, [ebp - 0x20]
call fcn.10044b9d
push 0x101c213c
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x1004ae6b
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0xc
mov eax, 0x1018a118
call fcn.10188e2d
mov bl, dl
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.1006b7af
cmp dword [ebp - 0x10], 0
je 0x1004aea5
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0x2001f
push 0
push 0x1001d500
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jle 0x1004aecf
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x1004afa9
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 0
je 0x1004aee8
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x1004af55
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 4
push 0
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jle 0x1004af18
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x1004af94
mov eax, dword [0x101c33f0]
cmp eax, 0x101c33f0
je 0x1004af40
test byte [eax + 0x44], 1
je 0x1004af40
push esi
push dword [eax + 0x3c]
mov edx, 0x1001db38
push dword [eax + 0x38]
push 0x1d
pop ecx
call fcn.1004a069
push esi
lea ecx, [ebp - 0x14]
call fcn.10044b9d
push 0x101c213c
mov eax, ecx
jmp 0x1004afdf
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
jle 0x1004af70
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x1004af94
mov eax, dword [0x101c33f0]
cmp eax, 0x101c33f0
je 0x1004afcf
test byte [eax + 0x44], 1
je 0x1004afcf
push esi
push dword [eax + 0x3c]
mov edx, 0x1001db38
push dword [eax + 0x38]
push 0x1e
jmp 0x1004afc9
cmp dword [ebp - 0x10], 0
je 0x1004afa3
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.10188de9
ret
mov eax, dword [0x101c33f0]
cmp eax, 0x101c33f0
je 0x1004afcf
test byte [eax + 0x44], 1
je 0x1004afcf
push esi
push dword [eax + 0x3c]
mov edx, 0x1001db38
push dword [eax + 0x38]
push 0x1c
pop ecx
call fcn.1004a069
push esi
lea ecx, [ebp - 0x18]
call fcn.10044b9d
push 0x101c213c
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x1004bcdd
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 8], edx
mov ebx, ecx
mov dword [ebp - 4], esi
test edi, edi
je 0x1004bddb
mov eax, dword [0x101c33f0]
cmp eax, 0x101c33f0
je 0x1004bd23
test byte [eax + 0x44], 4
je 0x1004bd23
push edi
push dword [eax + 0x3c]
mov edx, 0x1001db38
push dword [eax + 0x38]
push 0x30
pop ecx
call fcn.1004a069
push esi
push 0x8100080
push 2
push esi
push esi
push 0xc0010000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
mov ecx, edi
call fcn.10046acc
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
push esi
push eax
push ebx
push dword [ebp - 8]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1004bd9d
cmp dword [ebp - 4], ebx
je 0x1004be3d
mov esi, 0x80004004
mov eax, dword [0x101c33f0]
cmp eax, 0x101c33f0
je 0x1004be3d
test byte [eax + 0x44], 4
je 0x1004be3d
push ebx
push dword [ebp - 4]
mov edx, 0x1001db38
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x32
pop ecx
call fcn.1004a2f5
jmp 0x1004be3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1004bdb2
movzx esi, si
or esi, 0x80070000
mov eax, dword [0x101c33f0]
cmp eax, 0x101c33f0
je 0x1004be3d
test byte [eax + 0x44], 4
je 0x1004be3d
push esi
push edi
push dword [eax + 0x3c]
mov edx, 0x1001db38
push dword [eax + 0x38]
push 0x31
pop ecx
call fcn.1004a2f5
jmp 0x1004be3d
push esi
push 0x8100080
push 2
push esi
push esi
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1004be20
cmp eax, 0xffffffff
je 0x1004be20
mov edi, dword [ebp + 8]
lea ecx, [ebp - 4]
push esi
push ecx
push edi
push dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1004be20
cmp dword [ebp - 4], edi
je 0x1004be35
mov esi, 0x80004004
jmp 0x1004be35
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1004be35
movzx esi, si
or esi, 0x80070000
lea ecx, [ebp - 0xc]
call fcn.10046aaa
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x1004be4c
Capabilities:
Delete file
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
lea ebx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, si
jne 0x1004be5c
sub edi, ebx
sar edi, 1
lea eax, [edi*2 + 2]
push eax
push dword [ebp + 8]
push 1
push esi
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x1004bea1
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
jg 0x1004be98
mov esi, edi
jmp 0x1004bea1
movzx esi, di
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x1004d152
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x101d5abc]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, edx
push edi
mov dword [ebp - 0x21c], eax
mov edi, ecx
mov eax, dword [ebp + 0x10]
push 0x208
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x214]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
mov edx, ebx
push eax
push eax
push ecx
lea eax, [ebp - 0x214]
mov ecx, edi
push eax
push 0x1001d7a4
push esi
call fcn.1004beb0
mov dword [ebp - 0x220], eax
test eax, eax
js 0x1004d210
push dword [ebp - 0x218]
mov edx, dword [ebp - 0x21c]
lea ecx, [ebp - 0x214]
call fcn.1004ce98
mov bl, al
lea ecx, [ebp - 0x22c]
lea eax, [ebp - 0x220]
push eax
call fcn.100440e8
test bl, bl
jne 0x1004d1f4
mov ebx, 0x80004005
jmp 0x1004d1f6
xor ebx, ebx
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x22c]
call fcn.1004417d
jmp 0x1004d212
mov ebx, eax
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101885f0
leave
ret 0xc
Function at 0x1004d22b
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x67c
mov eax, dword [0x101d5abc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [0x101c33f0]
cmp eax, 0x101c33f0
je 0x1004d264
test byte [eax + 0x44], 4
je 0x1004d264
push ecx
push edi
push dword [eax + 0x3c]
push dword [eax + 0x38]
call fcn.1004a371
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x210]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
cmp eax, esi
jb 0x1004d299
mov esi, 0x8007007a
jmp 0x1004d2d1
test eax, eax
jne 0x1004d2bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1004d2b4
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x1004d2d1
mov esi, 0x80004005
jmp 0x1004d2d1
push 0x1001d7bc
mov edx, esi
lea ecx, [ebp - 0x210]
call fcn.10045073
mov esi, eax
push 0x410
lea eax, [ebp - 0x620]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
test esi, esi
js 0x1004d31d
mov eax, 0x1001d02c
cmp byte [ebp + 0xc], bl
jne 0x1004d2f9
mov eax, 0x1001d7ec
push edi
push eax
lea eax, [ebp - 0x210]
push eax
push 0x1001d7f4
lea eax, [ebp - 0x620]
push 0x208
push eax
call fcn.10045113
add esp, 0x18
mov esi, eax
mov eax, dword [0x101c33f0]
cmp eax, 0x101c33f0
je 0x1004d34e
test byte [eax + 0x44], 4
je 0x1004d34e
lea ecx, [ebp - 0x620]
mov edx, 0x1001db38
push ecx
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x56
pop ecx
call fcn.1004a325
mov eax, dword [0x101c33f0]
test esi, esi
js 0x1004d412
xor eax, eax
lea edi, [ebp - 0x630]
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x678]
pop edi
push edi
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x678], edi
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x678]
push eax
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1004d3f8
push 0xea60
push dword [ebp - 0x630]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x1004d3c9
cmp eax, 0x102
jne 0x1004d3de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1004d3de
movzx esi, si
or esi, 0x80070000
push dword [ebp - 0x62c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x630]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1004d40d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1004d40d
movzx esi, si
or esi, 0x80070000
mov eax, dword [0x101c33f0]
cmp eax, 0x101c33f0
je 0x1004d433
test byte [eax + 0x44], 4
je 0x1004d433
push esi
push dword [eax + 0x3c]
mov edx, 0x1001db38
push dword [eax + 0x38]
push 0x57
pop ecx
call fcn.1004a069
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101885f0
leave
ret 8
Function at 0x1004df2f
Capabilities:
Compare security identifiers

Disassembly:
push 0xcc
mov eax, 0x1018a573
call fcn.10188e66
mov esi, ecx
lea ecx, [ebp - 0x74]
call fcn.10044c65
push ecx
push ecx
lea eax, [ebp - 0x74]
xor ebx, ebx
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.1005118f
test al, al
je 0x1004dfd3
push 0x12
push 1
lea eax, [ebp - 0xd4]
push 0x1001cff4
push eax
call fcn.10044cd8
add esp, 0x10
cmp byte [ebp - 0x2c], bl
je 0x1004dfb8
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x1004dfb8
cmp byte [ebp - 0x8c], bl
je 0x1004dfb8
lea eax, [ebp - 0xd0]
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x1004dfb8
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne bl
lea ecx, [ebp - 0xd4]
call fcn.10044da9
lea ecx, [ebp - 0x74]
call fcn.10044da9
mov al, bl
call fcn.10188e03
ret
mov eax, dword [0x101c33f0]
mov esi, 0x8000ffff
cmp eax, 0x101c33f0
je 0x1004dffe
test byte [eax + 0x44], 1
je 0x1004dffe
push esi
push dword [eax + 0x3c]
mov edx, 0x1001db38
push dword [eax + 0x38]
push 0x66
pop ecx
call fcn.1004a069
push esi
lea ecx, [ebp - 0xd8]
call fcn.10044b9d
push 0x101c213c
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3

Function at 0x1005d668
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
push edi
test edx, edx
je 0x1005d6c2
xor eax, eax
mov edi, edx
mov dword [ebp - 4], eax
mov esi, eax
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 8], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x1005d68c
sub ecx, dword [ebp - 8]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x1005d684
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
leave
ret 8
mov ecx, 0x80004005
call fcn.10044bb3
int3
Function at 0x1005db41
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x42c
mov eax, 0x1018b7de
call fcn.10188ede
mov edx, dword [ebp + 0x10]
xor esi, esi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x424], edx
mov dword [ebp - 0x428], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x420], esi
push 2
pop ecx
push ecx
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x42c], edi
test edi, edi
jne 0x1005dba4
call fcn.10044bf5
mov esi, eax
jmp 0x1005dcd6
push esi
push ebx
push dword [ebp - 0x424]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov ebx, eax
test ebx, ebx
jne 0x1005dbc3
call fcn.10044bf5
jmp 0x1005dccd
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x430], eax
test eax, eax
je 0x1005dbb9
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x1005dc1a
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x1005dc05
lea ecx, [ebp - 0x420]
call fcn.10062549
lea ecx, [ebp - 0x428]
call fcn.1004f982
mov eax, 0x8007000e
jmp 0x1005dcfc
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
cmp edx, esi
ja 0x1005dd04
jb 0x1005dc35
cmp eax, 0xffffffff
ja 0x1005dd04
cmp eax, 0x400
jbe 0x1005dc50
push eax
lea ecx, [ebp - 0x420]
call fcn.10062ecb
mov eax, dword [ebp - 0x420]
jmp 0x1005dc5c
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x420], eax
mov dword [ebp - 4], 1
jmp 0x1005dc86
test eax, eax
jne 0x1005dc91
mov esi, 0x8007000e
jmp 0x1005dccf
push ebx
push eax
push ebx
push dword [ebp - 0x430]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x1005dbb9
mov eax, dword [ebp - 0x420]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x438]
push dword [ebp - 0x420]
call fcn.1005e706
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x1005dcef
lea ecx, [ebp - 0x420]
call fcn.10062549
lea ecx, [ebp - 0x428]
call fcn.1004f982
mov eax, esi
call fcn.10188e18
ret 0x10
mov ecx, 0x80070057
call fcn.10044bb3
int3
Function at 0x1006aab6
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [edx + 0x14], 8
push esi
jb 0x1006aac5
mov edx, dword [edx]
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
test esi, esi
je 0x1006aae9
cmp esi, 2
je 0x1006aae9
test esi, esi
jle 0x1006aae7
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x1006aaec
pop esi
leave
ret
mov eax, dword [0x101c33f0]
cmp eax, 0x101c33f0
je 0x1006ab12
test byte [eax + 0x44], 1
je 0x1006ab12
push esi
push dword [eax + 0x3c]
mov edx, 0x1001f684
push dword [eax + 0x38]
push 0x21
pop ecx
call fcn.1004a069
push esi
lea ecx, [ebp - 4]
call fcn.10044b9d
push 0x101c213c
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3

Function at 0x1006abff
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [edx + 0x14], 8
jb 0x1006ac0d
mov edx, dword [edx]
push esi
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
je 0x1006ac32
cmp esi, 2
je 0x1006ac32
test esi, esi
jle 0x1006ac30
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x1006ac35
pop esi
leave
ret
mov eax, dword [0x101c33f0]
cmp eax, 0x101c33f0
je 0x1006ac5b
test byte [eax + 0x44], 1
je 0x1006ac5b
push esi
push dword [eax + 0x3c]
mov edx, 0x1001f684
push dword [eax + 0x38]
push 0x24
pop ecx
call fcn.1004a069
push esi
lea ecx, [ebp - 4]
call fcn.10044b9d
push 0x101c213c
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x1006ae7b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x1c
mov eax, 0x1018c68e
call fcn.10188e2d
mov edi, edx
mov ebx, ecx
xor edx, edx
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x14], edx
jb 0x1006ae9a
mov eax, dword [edi]
jmp 0x1006ae9c
mov eax, edi
lea ecx, [ebp - 0x14]
push ecx
push edx
push edx
push edx
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, 2
jne 0x1006aebd
cmp byte [ebp + 8], 0
je 0x1006af83
cmp esi, 0xea
je 0x1006aeda
test esi, esi
jle 0x1006aed4
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x1006af8b
xor eax, eax
lea ecx, [ebp - 0xe]
mov word [ebp - 0xe], ax
xor esi, esi
mov eax, dword [ebp - 0x14]
shr eax, 1
push ecx
inc eax
mov dword [ebp - 0x24], esi
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call fcn.1006ce7c
mov dword [ebp - 4], esi
cmp dword [edi + 0x14], 8
jb 0x1006af09
mov edi, dword [edi]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
push esi
push esi
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jle 0x1006af2c
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x1006af66
mov eax, dword [0x101c33f0]
cmp eax, 0x101c33f0
je 0x1006af54
test byte [eax + 0x44], 1
je 0x1006af54
push esi
push dword [eax + 0x3c]
mov edx, 0x1001f684
push dword [eax + 0x38]
push 0x2a
pop ecx
call fcn.1004a069
push esi
lea ecx, [ebp - 0x18]
call fcn.10044b9d
push 0x101c213c
mov eax, ecx
jmp 0x1006afc1
push dword [ebp - 0x24]
call fcn.1005275a
pop ecx
mov ecx, dword [ebp + 0xc]
push eax
push dword [ebp - 0x24]
call fcn.100526e5
lea ecx, [ebp - 0x24]
call fcn.1004f7f5
call fcn.10188de9
ret 8
mov eax, dword [0x101c33f0]
cmp eax, 0x101c33f0
je 0x1006afb1
test byte [eax + 0x44], 1
je 0x1006afb1
push esi
push dword [eax + 0x3c]
mov edx, 0x1001f684
push dword [eax + 0x38]
push 0x29
pop ecx
call fcn.1004a069
push esi
lea ecx, [ebp - 0x10]
call fcn.10044b9d
push 0x101c213c
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x1006b041
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [edx + 0x10], 0
push esi
push edi
push 4
pop edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
jne 0x1006b05e
xor edx, edx
jmp 0x1006b066
cmp dword [edx + 0x14], 8
jb 0x1006b066
mov edx, dword [edx]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x1006b08c
cmp dword [ebp - 4], edi
jae 0x1006b0a8
push 0xd
pop esi
jmp 0x1006b09b
cmp esi, 2
jne 0x1006b097
cmp byte [ebp + 8], 0
je 0x1006b0a8
test esi, esi
jle 0x1006b0a6
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x1006b0ae
pop edi
pop esi
leave
ret 8
mov eax, dword [0x101c33f0]
cmp eax, 0x101c33f0
je 0x1006b0d4
test byte [eax + 0x44], 1
je 0x1006b0d4
push esi
push dword [eax + 0x3c]
mov edx, 0x1001f684
push dword [eax + 0x38]
push 0x2b
pop ecx
call fcn.1004a069
push esi
lea ecx, [ebp - 0xc]
call fcn.10044b9d
push 0x101c213c
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3

Function at 0x1006b0f1
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 2
push esi
mov esi, ecx
je 0x1006b106
cmp dword [ebp + 0xc], 1
jne 0x1006b16d
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 8
mov eax, dword [ecx + 0x10]
lea eax, [eax*2 + 2]
jb 0x1006b11b
mov ecx, dword [ecx]
cmp dword [edx + 0x14], 8
jb 0x1006b123
mov edx, dword [edx]
push eax
push ecx
push dword [ebp + 0xc]
push 0
push edx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jle 0x1006b144
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x1006b168
mov eax, dword [0x101c33f0]
cmp eax, 0x101c33f0
je 0x1006b198
test byte [eax + 0x44], 1
je 0x1006b198
push esi
push dword [eax + 0x3c]
mov edx, 0x1001f684
push dword [eax + 0x38]
push 0x2e
jmp 0x1006b192
pop esi
leave
ret 8
mov eax, dword [0x101c33f0]
mov esi, 0x80070057
cmp eax, 0x101c33f0
je 0x1006b198
test byte [eax + 0x44], 1
je 0x1006b198
push esi
push dword [eax + 0x3c]
mov edx, 0x1001f684
push dword [eax + 0x38]
push 0x2d
pop ecx
call fcn.1004a069
push esi
lea ecx, [ebp - 4]
call fcn.10044b9d
push 0x101c213c
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3