joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100de5bd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x40
mov eax, dword [0x1013567c]
xor eax, esp
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ecx
mov eax, dword [edi + 0x64]
lea esi, [edi + 0x58]
mov ebx, dword [edi + 0x60]
mov dword [esp + 0x1c], eax
movsx eax, word [edi + 0x68]
imul ebp, eax, 0x14
mov eax, dword [edi]
mov eax, dword [eax]
add ebp, ebx
cmp dword [esi], 0
mov dword [esp + 0x34], eax
jne 0x100de62a
push esi
push 1
mov eax, 0x1000
push eax
push ecx
call fcn.100c9d55
test eax, eax
js 0x100de750
mov ecx, dword [esp + 0x28]
mov eax, 0x1000
mov word [edi + 0x5c], ax
movsx eax, word [edi + 0x5c]
mov esi, dword [esi]
add eax, esi
mov dword [esp + 0x2c], eax
jmp 0x100de746
and dword [esp + 0x10], 0
lea eax, [esp + 0x38]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x1c], esi
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x14
push eax
lea eax, [esp + 0x30]
add esi, 4
push eax
push ebx
push ecx
push dword [esp + 0x6c]
call fcn.100abb02
test eax, eax
js 0x100de750
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov dword [ecx], eax
mov eax, dword [esp + 0x2c]
sub eax, esi
cmp dword [esp + 0x14], eax
ja 0x100de765
push dword [esp + 0x14]
push dword [esp + 0x28]
push esi
call fcn.10117410
add esp, 0xc
cmp dword [esp + 0x10], 0
je 0x100de6b9
push dword [esp + 0x10]
call fcn.10116850
mov ecx, dword [esp + 0x1c]
movsx eax, word [esp + 0x20]
push eax
movzx eax, word [ecx + 4]
push eax
movzx eax, word [ecx]
push eax
push dword [ebx + 4]
mov eax, dword [esp + 0x3c]
sub eax, esi
push eax
push dword [esp + 0x2c]
push esi
push dword [esp + 0x70]
call fcn.100dd21d
test eax, eax
js 0x100de750
push dword [esp + 0x18]
mov edx, dword [esp + 0x20]
push esi
movzx eax, word [edx + 4]
movzx ecx, word [edx]
push eax
movsx eax, word [edx + 2]
push eax
push ecx
movsx eax, cx
push eax
push dword [ebx + 4]
call fcn.100dcacf
push eax
mov eax, dword [esp + 0x48]
movzx eax, word [eax]
push eax
push dword [edi + 4]
push dword [esp + 0x54]
push dword [esp + 0x78]
call fcn.100dcae8
test eax, eax
js 0x100de750
mov eax, dword [esp + 0x18]
cmp dword [eax], 0xffffffff
je 0x100de733
add esi, dword [eax]
mov eax, dword [esp + 0x30]
add ebx, 0x14
add dword [esp + 0x1c], 6
mov ecx, dword [esp + 0x28]
inc word [eax]
cmp ebx, ebp
jb 0x100de63b
xor eax, eax
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1011705d
add esp, 0x40
ret 0x10
cmp dword [esp + 0x10], 0
je 0x100de775
push dword [esp + 0x10]
call fcn.10116850
mov eax, 0xfffff401
jmp 0x100de750
Function at 0x100dfc0c
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
movzx eax, ax
sub eax, 0
je 0x100dfc5e
push esi
dec eax
je 0x100dfc35
dec eax
je 0x100dfc31
dec eax
je 0x100dfc2a
mov esi, dword [0x1017b2a8]
jmp 0x100dfc45
mov esi, 0x96
jmp 0x100dfc38
push 0x64
jmp 0x100dfc37
push 0x32
pop esi
cmp dword [0x1017b2a8], esi
cmovb esi, dword [0x1017b2a8]
push edi
call sub.KERNEL32.dll_GetTickCount
mov edi, eax
test esi, esi
je 0x100dfc5c
call sub.KERNEL32.dll_GetTickCount
sub eax, edi
cmp eax, esi
jb 0x100dfc51
pop edi
pop esi
ret 4
Function at 0x100f5ffb
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
and dword [esp + 4], 0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
or ebp, 0xffffffff
mov dword [esp + 0x14], ebp
mov eax, dword [esi + 0xf0]
mov ebx, dword [esi + 0xec]
test eax, eax
je 0x100f6158
imul eax, eax, 0x34
push edi
add eax, ebx
cmp ebx, eax
jae 0x100f6059
sub eax, ebx
lea edi, [ebx + 0x30]
push 0x34
xor edx, edx
dec eax
pop ebp
div ebp
push 0x3f
inc eax
pop edx
mov cx, word [edi]
xor cx, word [esi + 0xdc]
and cx, dx
xor word [edi], cx
add edi, ebp
dec eax
jne 0x100f6040
mov ebp, dword [esp + 0x18]
mov eax, dword [esi + 0xdc]
test eax, eax
je 0x100f6157
mov ecx, dword [esi + 0xd8]
xor edi, edi
and dword [esp + 0x10], edi
imul eax, eax, 0x34
add eax, ecx
mov dword [esp + 0x1c], eax
cmp ecx, eax
jae 0x100f6145
mov eax, dword [ecx + 4]
mov dl, byte [eax + 4]
cmp dl, 0xa
jne 0x100f6161
cmp byte [eax + 5], 0
jne 0x100f60a4
mov esi, dword [eax + 8]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x28]
cmp dl, 0xa
jne 0x100f6161
cmp byte [eax + 5], 0
jne 0x100f6161
mov eax, dword [esp + 0x14]
cmp byte [eax + 9], 3
jne 0x100f6161
imul edx, dword [eax + 4], 0x34
add edx, ebx
inc edi
mov dword [esp + 0x18], edi
movzx edi, word [edx + 0x30]
mov eax, edi
shl eax, 0xa
cwde
sar eax, 0xa
cmp eax, dword [esi + 0xdc]
jne 0x100f6130
mov eax, edi
xor eax, dword [esp + 0x10]
and eax, 0x3f
xor eax, edi
mov word [edx + 0x30], ax
mov eax, dword [ecx + 0x28]
and eax, 0x80
or dword [edx + 0x28], eax
cmp byte [edx + 0x2e], 1
jne 0x100f611f
test byte [ecx + 0x28], 0x80
je 0x100f611f
cmp word [esi + 0xbc], 6
jne 0x100f611f
or dword [esi + 0xb4], 0x80
cmp ebp, 0xffffffff
je 0x100f612c
movsx eax, byte [edx + 0x2e]
cmp eax, ebp
jg 0x100f6177
movsx ebp, byte [edx + 0x2e]
mov edi, dword [esp + 0x18]
add ecx, 0x34
inc dword [esp + 0x10]
cmp ecx, dword [esp + 0x1c]
jb 0x100f6084
cmp edi, dword [esi + 0xdc]
jne 0x100f6157
or dword [esi + 0xb4], 0x400
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
test byte [esi + 0xb4], 0x20
je 0x100f6157
test dword [ecx + 0x28], 0x1000
jne 0x100f6177
xor ebp, ebp
jmp 0x100f6134
push 0
push 0
push 0xffffe071
push dword [ecx + 4]
push dword [esi + 0x80]
mov esi, dword [esp + 0x38]
push esi
call fcn.100959ef
push 0xfffff439
push dword [esi + 0x18]
call fcn.1011a7e0
int3
Function at 0x10113650
Capabilities:
Delete file

Disassembly:
sub esp, 0x218
mov eax, dword [0x1013567c]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x10137de8], 0
mov eax, dword [esp + 0x21c]
je 0x10113692
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1011705d
add esp, 0x218
ret 4
push esi
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.101132d0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
lea ecx, [esp + 0xc]
mov eax, dword [esp + 8]
cmp eax, ecx
je 0x101136e0
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x101136e0
cmp dword [esp + 4], 0xffffffff
je 0x101136e0
push eax
call fcn.1011726a
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1011705d
add esp, 0x218
ret 4

Function at 0x10113810
Capabilities:
Get hostname

Disassembly:
sub esp, 0x21c
mov eax, dword [0x1013567c]
xor eax, esp
mov dword [esp + 0x218], eax
cmp dword [0x10137de8], 0
mov eax, dword [esp + 0x220]
push edi
mov edi, dword [esp + 0x228]
je 0x1011385c
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
pop edi
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.1011705d
add esp, 0x21c
ret 8
push esi
push dword [edi]
lea ecx, [esp + 0xc]
push eax
call fcn.101130c0
push edi
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea ecx, [esp + 8]
mov esi, eax
call fcn.10113260
test eax, eax
jle 0x10113884
dec eax
lea ecx, [esp + 8]
mov dword [edi], eax
call fcn.10113260
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
cmp ecx, eax
je 0x101138b4
mov eax, ecx
shr eax, 0x10
test eax, eax
je 0x101138b4
cmp dword [esp + 8], 0xffffffff
je 0x101138b4
push ecx
call fcn.1011726a
add esp, 4
mov ecx, dword [esp + 0x220]
mov eax, esi
pop esi
pop edi
xor ecx, esp
call fcn.1011705d
add esp, 0x21c
ret 8

Function at 0x101138d0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x218
mov eax, dword [0x1013567c]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x10137de8], 0
mov eax, dword [esp + 0x21c]
je 0x10113912
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1011705d
add esp, 0x218
ret 4
push esi
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.101132d0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov esi, eax
lea ecx, [esp + 0xc]
mov eax, dword [esp + 8]
cmp eax, ecx
je 0x10113960
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x10113960
cmp dword [esp + 4], 0xffffffff
je 0x10113960
push eax
call fcn.1011726a
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1011705d
add esp, 0x218
ret 4
Function at 0x10113980
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x218
mov eax, dword [0x1013567c]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x10137de8], 0
mov eax, dword [esp + 0x21c]
je 0x101139c2
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1011705d
add esp, 0x218
ret 4
push esi
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.101132d0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
lea ecx, [esp + 0xc]
mov eax, dword [esp + 8]
cmp eax, ecx
je 0x10113a10
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x10113a10
cmp dword [esp + 4], 0xffffffff
je 0x10113a10
push eax
call fcn.1011726a
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1011705d
add esp, 0x218
ret 4

Function at 0x10113b70
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x21c
mov eax, dword [0x1013567c]
xor eax, esp
mov dword [esp + 0x218], eax
cmp dword [0x10137de8], 0
mov eax, dword [esp + 0x228]
mov ecx, dword [esp + 0x22c]
je 0x10113bc8
push ecx
push eax
push dword [esp + 0x22c]
push dword [esp + 0x22c]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.1011705d
add esp, 0x21c
ret 0x10
push esi
push ecx
push eax
lea ecx, [esp + 0xc]
call fcn.101130c0
mov eax, dword [esp + 0x218]
add eax, eax
shr eax, 1
push eax
push dword [esp + 0xc]
push dword [esp + 0x230]
push dword [esp + 0x230]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea ecx, [esp + 4]
call fcn.10113260
lea ecx, [esp + 4]
mov esi, eax
call fcn.10113260
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
cmp eax, ecx
je 0x10113c31
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x10113c31
cmp dword [esp + 4], 0xffffffff
je 0x10113c31
push eax
call fcn.1011726a
add esp, 4
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1011705d
add esp, 0x21c
ret 0x10
Function at 0x10113de0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x644
mov eax, dword [0x1013567c]
xor eax, esp
mov dword [esp + 0x640], eax
cmp dword [0x10137de8], 0
mov eax, dword [esp + 0x648]
push esi
mov esi, dword [esp + 0x650]
push edi
mov edi, dword [esp + 0x65c]
je 0x10113e29
push edi
push dword [esp + 0x65c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
jmp 0x10113f3f
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x224]
mov dword [esp + 0x224], 0
mov dword [esp + 0x228], 0
call fcn.101132d0
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call fcn.101132d0
push 0x104
push edi
lea ecx, [esp + 0x438]
call fcn.101130c0
push dword [esp + 0x434]
push dword [esp + 0x65c]
push dword [esp + 0x14]
push dword [esp + 0x22c]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [esp + 0x430]
mov esi, eax
call fcn.10113260
mov eax, dword [esp + 0x434]
lea ecx, [esp + 0x438]
cmp eax, ecx
je 0x10113ed7
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x10113ed7
cmp dword [esp + 0x430], 0xffffffff
je 0x10113ed7
push eax
call fcn.1011726a
add esp, 4
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
mov dword [esp + 0x434], 0
cmp ecx, eax
je 0x10113f07
mov eax, ecx
shr eax, 0x10
test eax, eax
je 0x10113f07
cmp dword [esp + 8], 0xffffffff
je 0x10113f07
push ecx
call fcn.1011726a
add esp, 4
mov ecx, dword [esp + 0x220]
lea eax, [esp + 0x224]
mov dword [esp + 0xc], 0
cmp ecx, eax
je 0x10113f3d
mov eax, ecx
shr eax, 0x10
test eax, eax
je 0x10113f3d
cmp dword [esp + 0x21c], 0xffffffff
je 0x10113f3d
push ecx
call fcn.1011726a
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x648]
pop edi
pop esi
xor ecx, esp
call fcn.1011705d
add esp, 0x644
ret 0x10

Function at 0x10113f60
Capabilities:
Get common file path

Disassembly:
sub esp, 0x21c
mov eax, dword [0x1013567c]
xor eax, esp
mov dword [esp + 0x218], eax
cmp dword [0x10137de8], 0
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x224]
je 0x10113faa
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.1011705d
add esp, 0x21c
ret 8
push esi
push eax
push ecx
lea ecx, [esp + 0xc]
call fcn.101130c0
mov eax, dword [esp + 0x218]
push dword [esp + 8]
add eax, eax
shr eax, 1
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 4]
call fcn.10113260
mov esi, eax
test esi, esi
jle 0x10113fdc
dec esi
lea ecx, [esp + 4]
call fcn.10113260
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
cmp eax, ecx
je 0x1011400a
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x1011400a
cmp dword [esp + 4], 0xffffffff
je 0x1011400a
push eax
call fcn.1011726a
add esp, 4
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1011705d
add esp, 0x21c
ret 8
Function at 0x10114110
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x1013567c]
xor eax, esp
mov dword [esp + 0x218], eax
cmp dword [0x10137de8], 0
mov ecx, dword [esp + 0x22c]
mov eax, dword [esp + 0x228]
push esi
mov esi, dword [esp + 0x224]
push ecx
push eax
je 0x1011416b
push dword [esp + 0x230]
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
pop esi
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.1011705d
add esp, 0x21c
ret 0x10
lea ecx, [esp + 0xc]
call fcn.101130c0
mov eax, dword [esp + 0x218]
add eax, eax
push eax
push dword [esp + 0xc]
push dword [esp + 0x230]
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 4]
mov esi, eax
call fcn.10113260
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
cmp edx, eax
je 0x101141c0
mov ecx, edx
shr ecx, 0x10
test ecx, ecx
je 0x101141c0
cmp dword [esp + 4], 0xffffffff
je 0x101141c0
push edx
call fcn.1011726a
add esp, 4
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1011705d
add esp, 0x21c
ret 0x10
Function at 0x101141e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x440
mov eax, dword [0x1013567c]
xor eax, esp
mov dword [esp + 0x43c], eax
cmp dword [0x10137de8], 0
mov eax, dword [esp + 0x444]
mov edx, dword [esp + 0x454]
mov ecx, dword [esp + 0x44c]
push ebx
mov ebx, dword [esp + 0x45c]
push ebp
mov ebp, dword [esp + 0x464]
push esi
mov esi, dword [esp + 0x46c]
push edi
mov edi, dword [esp + 0x460]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
je 0x10114253
push esi
push ebp
push ebx
push edx
push edi
push ecx
push dword [esp + 0x470]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0x1011438a
test edi, edi
je 0x1011425b
mov eax, dword [edi]
jmp 0x1011425d
xor eax, eax
push eax
push ecx
lea ecx, [esp + 0x23c]
call fcn.101130c0
mov eax, dword [esp + 0x448]
add eax, eax
shr eax, 1
mov dword [esp + 0x18], eax
test esi, esi
je 0x10114282
mov eax, dword [esi]
jmp 0x10114284
xor eax, eax
push eax
push ebp
lea ecx, [esp + 0x24]
call fcn.101130c0
push esi
push dword [esp + 0x24]
lea eax, [esp + 0x20]
push ebx
push dword [esp + 0x20]
push eax
push dword [esp + 0x24c]
push dword [esp + 0x470]
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10114316
test edi, edi
je 0x101142d5
lea ecx, [esp + 0x234]
call fcn.10113260
test eax, eax
jle 0x101142d3
dec eax
mov dword [edi], eax
test ebx, ebx
je 0x10114307
test esi, esi
je 0x10114307
mov eax, dword [ebx]
cmp eax, 2
je 0x101142ee
cmp eax, 1
je 0x101142ee
cmp eax, 7
jne 0x10114307
cmp dword [esp + 0x20], 0
mov eax, dword [esi]
je 0x10114301
push eax
lea ecx, [esp + 0x20]
call fcn.10113200
add eax, eax
mov dword [esi], eax
jmp 0x10114316
push dword [esi]
push ebp
push dword [esp + 0x28]
call fcn.10117410
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.10113260
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x24]
cmp ecx, eax
je 0x10114344
mov eax, ecx
shr eax, 0x10
test eax, eax
je 0x10114344
cmp dword [esp + 0x1c], 0xffffffff
je 0x10114344
push ecx
call fcn.1011726a
add esp, 4
lea ecx, [esp + 0x234]
mov dword [esp + 0x20], 0
call fcn.10113260
mov ecx, dword [esp + 0x238]
lea eax, [esp + 0x23c]
cmp ecx, eax
je 0x10114386
mov eax, ecx
shr eax, 0x10
test eax, eax
je 0x10114386
cmp dword [esp + 0x234], 0xffffffff
je 0x10114386
push ecx
call fcn.1011726a
add esp, 4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x44c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1011705d
add esp, 0x440
ret 0x20
Function at 0x10114540
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x234
mov eax, dword [0x1013567c]
xor eax, esp
mov dword [esp + 0x230], eax
cmp dword [0x10137de8], 0
mov ecx, dword [esp + 0x24c]
mov edx, dword [esp + 0x250]
mov eax, dword [esp + 0x23c]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x254]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x258]
push ebx
mov ebx, dword [esp + 0x248]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x260]
push ebp
mov ebp, dword [esp + 0x250]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x268]
push esi
mov esi, dword [esp + 0x244]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x270]
push edi
mov edi, dword [esp + 0x250]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x28], edx
je 0x101145f8
push dword [esp + 0x20]
push dword [esp + 0x1c]
push dword [esp + 0x2c]
push dword [esp + 0x1c]
push dword [esp + 0x24]
push edx
push ecx
push ebp
push ebx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
jmp 0x10114667
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
call fcn.101132d0
push dword [esp + 0x20]
push dword [esp + 0x1c]
push dword [esp + 0x2c]
push dword [esp + 0x1c]
push dword [esp + 0x24]
push dword [esp + 0x3c]
push dword [esp + 0x34]
push ebp
push ebx
push edi
push dword [esp + 0x58]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov edx, dword [esp + 0x30]
mov esi, eax
lea eax, [esp + 0x34]
cmp edx, eax
je 0x10114665
mov ecx, edx
shr ecx, 0x10
test ecx, ecx
je 0x10114665
cmp dword [esp + 0x2c], 0xffffffff
je 0x10114665
push edx
call fcn.1011726a
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x240]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1011705d
add esp, 0x234
ret 0x30
Function at 0x10114690
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x440
mov eax, dword [0x1013567c]
xor eax, esp
mov dword [esp + 0x43c], eax
cmp dword [0x10137de8], 0
mov eax, dword [esp + 0x450]
mov ecx, dword [esp + 0x454]
mov edx, dword [esp + 0x448]
push ebx
mov ebx, dword [esp + 0x448]
push ebp
mov ebp, dword [esp + 0x454]
push esi
mov esi, dword [esp + 0x464]
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
je 0x101146f6
push esi
push ecx
push eax
push ebp
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
jmp 0x1011488f
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x240]
mov dword [esp + 0x240], 0
mov dword [esp + 0x244], 0
call fcn.101132d0
lea eax, [esp + 0x10]
push eax
push 0
lea eax, [esp + 0x24]
push eax
push ebp
push dword [esp + 0x24c]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
jne 0x10114861
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10114846
cmp eax, 2
jbe 0x101147c8
cmp eax, 7
jne 0x10114846
mov eax, dword [esi]
lea ecx, [esp + 0x20]
shr eax, 1
push eax
push dword [esp + 0x1c]
call fcn.101130c0
mov eax, dword [esp + 0x234]
add eax, eax
shr eax, 1
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x28]
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0x1c]
push ebp
push dword [esp + 0x24c]
push ebx
call eax
mov ecx, dword [esp + 0x10]
mov edi, eax
lea eax, [ecx + ecx]
mov dword [esi], eax
test edi, edi
je 0x101147b5
lea ecx, [esp + 0x20]
call fcn.10113140
jmp 0x10114861
cmp dword [esp + 0x24], 0
je 0x10114836
push ecx
lea ecx, [esp + 0x24]
call fcn.10113200
jmp 0x10114830
mov eax, dword [esi]
lea ecx, [esp + 0x20]
shr eax, 1
push eax
push dword [esp + 0x1c]
call fcn.101130c0
mov eax, dword [esp + 0x234]
add eax, eax
shr eax, 1
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x28]
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0x1c]
push ebp
push dword [esp + 0x24c]
push ebx
call eax
mov ecx, dword [esp + 0x10]
mov edi, eax
lea eax, [ecx + ecx]
mov dword [esi], eax
test edi, edi
je 0x10114820
lea ecx, [esp + 0x20]
call fcn.10113140
jmp 0x10114861
cmp dword [esp + 0x24], 0
je 0x10114836
lea ecx, [esp + 0x20]
call fcn.10113260
mov ecx, eax
mov dword [esp + 0x10], ecx
lea eax, [ecx + ecx]
lea ecx, [esp + 0x20]
mov dword [esi], eax
call fcn.10113140
jmp 0x10114861
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push ebp
push dword [esp + 0x24c]
push ebx
call eax
mov edi, eax
mov ecx, dword [esp + 0x23c]
lea eax, [esp + 0x240]
cmp ecx, eax
je 0x1011488f
mov eax, ecx
shr eax, 0x10
test eax, eax
je 0x1011488f
cmp dword [esp + 0x238], 0xffffffff
je 0x1011488f
push ecx
call fcn.1011726a
add esp, 4
mov ecx, dword [esp + 0x44c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1011705d
add esp, 0x440
ret 0x18