joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001ba20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e442f
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x102683e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x1022acd8
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.10013b30
lea eax, [ebp - 0x14]
mov dword [esi + 0x3c], 0
lea ebx, [edi + 0x10]
mov ecx, esi
push eax
mov dword [esi + 0x38], ebx
call fcn.10013af0
push eax
mov dword [ebp - 4], 2
call fcn.1001ecb0
mov byte [ebp - 4], 1
add esp, 4
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1001baea
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x1001baea
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov ecx, dword [ebp - 0x18]
push 0x20
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x1001bb0f
mov eax, dword [esi + 0xc]
mov ecx, esi
or eax, 4
push 0
push eax
call fcn.100139a0
mov dword [ebp - 4], 3
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + edi - 4], eax
mov ecx, ebx
call fcn.1001e330
lea eax, [ebx + 4]
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [ebx + 0xc], eax
lea ecx, [ebx + 8]
lea eax, [ebx + 0x14]
mov byte [ebx + 0x4c], 0
mov dword [ebx + 0x1c], eax
lea eax, [ebx + 0x18]
mov dword [ebx + 0x20], eax
lea eax, [ebx + 0x24]
mov dword [ebx + 0x2c], eax
lea eax, [ebx + 0x28]
mov dword [ebx + 0x30], eax
mov byte [ebx + 0x45], 0
mov dword [ebx + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [ebx + 0x20]
mov dword [eax], 0
mov eax, dword [ebx + 0x30]
mov dword [eax], 0
mov eax, dword [ebx + 0xc]
mov dword [eax], 0
mov eax, dword [ebx + 0x1c]
mov dword [eax], 0
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov eax, dword [0x1027a2a8]
mov dword [ebx + 0x48], eax
mov eax, edi
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x40], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1001c500
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e44af
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x102683e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x1022acd0
mov dword [edi + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.10013b30
lea eax, [ebp - 0x14]
mov dword [esi + 0x3c], 0
lea ebx, [edi + 4]
mov ecx, esi
push eax
mov dword [esi + 0x38], ebx
call fcn.10013af0
push eax
mov dword [ebp - 4], 2
call fcn.1001ecb0
mov byte [ebp - 4], 1
add esp, 4
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1001c5bc
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x1001c5bc
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov ecx, dword [ebp - 0x18]
push 0x20
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x1001c5e1
mov eax, dword [esi + 0xc]
mov ecx, esi
or eax, 4
push 0
push eax
call fcn.100139a0
mov dword [ebp - 4], 3
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ecx + edi - 4], eax
mov ecx, ebx
call fcn.1001e330
lea eax, [ebx + 4]
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [ebx + 0xc], eax
lea ecx, [ebx + 8]
lea eax, [ebx + 0x14]
mov byte [ebx + 0x4c], 0
mov dword [ebx + 0x1c], eax
lea eax, [ebx + 0x18]
mov dword [ebx + 0x20], eax
lea eax, [ebx + 0x24]
mov dword [ebx + 0x2c], eax
lea eax, [ebx + 0x28]
mov dword [ebx + 0x30], eax
mov byte [ebx + 0x45], 0
mov dword [ebx + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [ebx + 0x20]
mov dword [eax], 0
mov eax, dword [ebx + 0x30]
mov dword [eax], 0
mov eax, dword [ebx + 0xc]
mov dword [eax], 0
mov eax, dword [ebx + 0x1c]
mov dword [eax], 0
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov eax, dword [0x1027a2a8]
mov dword [ebx + 0x48], eax
mov eax, edi
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x40], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1001db00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101e3218
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x102683e0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x102683e0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x1001dc54
cmp byte [ebx + 0x45], 0
je 0x1001dc54
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x1001db60
xor al, al
jmp 0x1001dc56
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x2c], ecx
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x1001dba0
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
cmovae edi, dword [esp + 0x18]
lea esi, [esp + 0x18]
cmovae esi, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x1001dbe1
dec eax
je 0x1001dbe5
sub eax, 2
je 0x1001dc3b
xor bl, bl
jmp 0x1001dc3d
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x1001dc1c
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.101aaac6
add esp, 0x10
cmp esi, eax
jne 0x1001dbdd
cmp byte [ebx + 0x45], 0
je 0x1001dc3b
test esi, esi
jne 0x1001dba0
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.1001cfe0
jmp 0x1001dba0
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x1001dc50
push dword [esp + 0x18]
call fcn.101a02f0
add esp, 4
mov al, bl
jmp 0x1001dc56
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
Function at 0x10020b30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 8
test ecx, ecx
je 0x10020bd0
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x10020bd0
cmp dword [ebp + 0x10], 0
je 0x10020bd0
push ebx
mov ebx, dword [ebp + 0x14]
lea eax, [ebp + 8]
push esi
push eax
xor eax, eax
mov dword [ebp + 8], 0
cmp dword [ebp + 0x18], eax
mov esi, 0x100
mov dword [ebx], 0
cmove eax, esi
or eax, 0x20019
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x10020bb3
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x10020bb3
mov dword [ebx], 1
mov eax, dword [ebp + 8]
test eax, eax
je 0x10020bc8
push eax
mov dword [ebp + 8], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x80004003
mov esp, ebp
pop ebp
ret
Function at 0x10020c80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e4828
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x74], eax
test edx, edx
je 0x10020e52
test edi, edi
je 0x10020e52
mov esi, 0x8000ffff
mov dword [ebp - 0x70], 0
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 0
push eax
xor eax, eax
mov dword [ebp - 0x6c], 0x100
cmp dword [ebp + 0xc], eax
cmove eax, dword [ebp - 0x6c]
or eax, 0x20019
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10020e34
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push 0
push dword [ebp - 0x74]
push 0
push edi
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10020e39
mov eax, dword [ebp - 0x6c]
add eax, 8
push eax
call fcn.101875f8
mov edi, eax
mov eax, dword [ebp - 0x6c]
add eax, 8
push eax
push 0
push edi
call fcn.101a01b0
add esp, 0x10
lea eax, [ebp - 0x6c]
push eax
push edi
push dword [ebp - 0x74]
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10020e29
mov eax, dword [ebp - 0x74]
mov eax, dword [eax]
cmp eax, 4
jne 0x10020db0
xor eax, eax
push 0x4e
push eax
mov word [ebp - 0x68], ax
lea eax, [ebp - 0x66]
push eax
call fcn.101a01b0
push 0xa
push 0x28
lea eax, [ebp - 0x68]
push eax
push dword [edi]
call fcn.101ab427
add esp, 0x1c
lea eax, [ebp - 0x68]
mov ecx, ebx
push eax
call fcn.100032d0
push edi
xor esi, esi
call fcn.101a1ad1
add esp, 4
jmp 0x10020e39
cmp eax, 1
je 0x10020e1f
cmp eax, 2
je 0x10020e1f
cmp eax, 7
je 0x10020e1f
cmp dword [ebp - 0x6c], 0
jbe 0x10020e29
push 0x1022adf4
mov ecx, ebx
call fcn.100032d0
xor esi, esi
cmp dword [ebp - 0x6c], esi
jbe 0x10020e27
jmp 0x10020de0
xor eax, eax
mov word [ebp - 0x18], ax
mov dword [ebp - 0x16], eax
movzx eax, byte [esi + edi]
push eax
push 0x1022adfc
lea eax, [ebp - 0x18]
push 2
push eax
call fcn.10022190
add esp, 0x10
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.10003320
inc esi
cmp esi, dword [ebp - 0x6c]
jb 0x10020de0
push edi
xor esi, esi
call fcn.101a1ad1
add esp, 4
jmp 0x10020e39
push edi
mov ecx, ebx
call fcn.100032d0
xor esi, esi
push edi
call fcn.101a1ad1
add esp, 4
jmp 0x10020e39
mov esi, 0x80070005
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x10020e4e
push eax
mov dword [ebp - 0x70], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x10020e57
mov eax, 0x80004003
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
Function at 0x10020f00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push ebx
test ecx, ecx
je 0x1002102e
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x1002102e
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x1002102e
push esi
push edi
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
xor eax, eax
mov edi, 0x100
cmp dword [ebp + 0x14], eax
mov esi, 0x8000ffff
push 0
cmove eax, edi
or eax, 0xf003f
push eax
push 0
push 0
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x10020f6b
mov esi, 0x80070005
jmp case.0x10020f7a.3
mov edi, dword [ebp + 0x1c]
lea eax, [edi - 1]
cmp eax, 6
ja case.0x10020f7a.3
jmp dword [eax*4 + 0x10021038]
push 0xa
push 0
push dword [ebp + 0x18]
call fcn.101ab23c
add esp, 0xc
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push 4
push eax
jmp 0x10020fbf
mov edx, dword [ebp + 0x18]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 4], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10020fa6
sub ecx, dword [ebp - 4]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push edi
push 0
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne case.0x10020f7a.3
xor esi, esi
jmp case.0x10020f7a.3
mov edi, dword [ebp + 0x18]
xor ebx, ebx
lea esp, [esp]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + 1]
lea edi, [edi + ecx*2]
lea ebx, [ebx + ecx*2]
cmp ecx, 1
jne 0x10020fe0
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
and esi, eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x10021025
push eax
mov dword [ebp + 8], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x80004003
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10020f81
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push ebx
test ecx, ecx
je 0x1002102e
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x1002102e
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x1002102e
push esi
push edi
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
xor eax, eax
mov edi, 0x100
cmp dword [ebp + 0x14], eax
mov esi, 0x8000ffff
push 0
cmove eax, edi
or eax, 0xf003f
push eax
push 0
push 0
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x10020f6b
mov esi, 0x80070005
jmp case.0x10020f7a.3
mov edi, dword [ebp + 0x1c]
lea eax, [edi - 1]
cmp eax, 6
ja case.0x10020f7a.3
jmp dword [eax*4 + 0x10021038]
push 0xa
push 0
push dword [ebp + 0x18]
call fcn.101ab23c
add esp, 0xc
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push 4
push eax
jmp 0x10020fbf
mov edx, dword [ebp + 0x18]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 4], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10020fa6
sub ecx, dword [ebp - 4]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push edi
push 0
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne case.0x10020f7a.3
xor esi, esi
jmp case.0x10020f7a.3
mov edi, dword [ebp + 0x18]
xor ebx, ebx
lea esp, [esp]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + 1]
lea edi, [edi + ecx*2]
lea ebx, [ebx + ecx*2]
cmp ecx, 1
jne 0x10020fe0
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
and esi, eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x10021025
push eax
mov dword [ebp + 8], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x80004003
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10020f9b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push ebx
test ecx, ecx
je 0x1002102e
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x1002102e
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x1002102e
push esi
push edi
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
xor eax, eax
mov edi, 0x100
cmp dword [ebp + 0x14], eax
mov esi, 0x8000ffff
push 0
cmove eax, edi
or eax, 0xf003f
push eax
push 0
push 0
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x10020f6b
mov esi, 0x80070005
jmp case.0x10020f7a.3
mov edi, dword [ebp + 0x1c]
lea eax, [edi - 1]
cmp eax, 6
ja case.0x10020f7a.3
jmp dword [eax*4 + 0x10021038]
push 0xa
push 0
push dword [ebp + 0x18]
call fcn.101ab23c
add esp, 0xc
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push 4
push eax
jmp 0x10020fbf
mov edx, dword [ebp + 0x18]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 4], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10020fa6
sub ecx, dword [ebp - 4]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push edi
push 0
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne case.0x10020f7a.3
xor esi, esi
jmp case.0x10020f7a.3
mov edi, dword [ebp + 0x18]
xor ebx, ebx
lea esp, [esp]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + 1]
lea edi, [edi + ecx*2]
lea ebx, [ebx + ecx*2]
cmp ecx, 1
jne 0x10020fe0
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
and esi, eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x10021025
push eax
mov dword [ebp + 8], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x80004003
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10021170
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, edx
test ecx, ecx
je 0x100211db
test edi, edi
je 0x100211db
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
xor eax, eax
mov edx, 0x100
cmp dword [ebp + 8], eax
cmove eax, edx
or eax, 0xf003f
push eax
push 0
push 0x1022a5e4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x100211be
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x100211d3
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 0x80004003
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10021270
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
test ecx, ecx
je 0x100212eb
test edx, edx
je 0x100212eb
cmp dword [ebp + 8], 0
je 0x100212eb
push ebx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
xor eax, eax
mov ebx, 0x100
cmp dword [ebp + 0xc], eax
mov esi, 0x8000ffff
cmove eax, ebx
or eax, 0xf003f
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100212c9
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x100212ce
xor esi, esi
jmp 0x100212ce
mov esi, 0x80070005
mov eax, dword [ebp - 4]
test eax, eax
je 0x100212e3
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x80004003
mov esp, ebp
pop ebp
ret

Function at 0x10021380
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e4866
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
test ecx, ecx
je 0x1002151c
test edx, edx
je 0x1002151c
mov dword [ebp - 0x238], 0
lea eax, [ebp - 0x238]
mov dword [ebp - 4], 0
push eax
xor eax, eax
mov esi, 0x100
cmp dword [ebp + 8], eax
cmove eax, esi
or eax, 0x20019
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100214f8
push 0x208
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.101a01b0
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add esp, 0xc
xor esi, esi
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.101a01b0
add esp, 0xc
mov dword [ebp - 0x23c], 0x104
lea eax, [ebp - 0x23c]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push dword [ebp - 0x238]
call edi
test eax, eax
jne 0x100214e7
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], eax
mov word [ebp - 0x234], ax
cmp word [ebp - 0x21c], ax
je 0x100214a1
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10021492
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.10003c10
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.100033c0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x220], 8
jb 0x100214e1
push dword [ebp - 0x234]
call fcn.101a02f0
add esp, 4
inc esi
jmp 0x10021422
xor ecx, ecx
mov esi, 0x80004005
cmp eax, 0x103
cmove esi, ecx
jmp 0x100214fd
mov esi, 0x80070005
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x10021518
push eax
mov dword [ebp - 0x238], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x10021521
mov eax, 0x80004003
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
Function at 0x100215c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e48a6
mov eax, dword fs:[0]
push eax
mov eax, 0x8038
call fcn.101ae1b0
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov eax, ecx
mov dword [ebp - 0x8030], eax
mov edi, dword [ebp + 0xc]
test eax, eax
je 0x10021780
test ebx, ebx
je 0x10021780
push dword [ebp - 0x8038]
mov edx, dword [edi + 4]
push ecx
mov ecx, dword [edi]
call fcn.10022310
mov eax, dword [edi]
add esp, 8
mov dword [edi + 4], eax
mov esi, 0x8000ffff
mov dword [ebp - 0x8034], 0
lea eax, [ebp - 0x8034]
mov dword [ebp - 4], 0
push eax
xor eax, eax
mov ecx, 0x100
cmp dword [ebp + 8], eax
cmove eax, ecx
or eax, 0x20019
push eax
push 0
push ebx
push dword [ebp - 0x8030]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10021761
push 0x7ffe
xor esi, esi
mov word [ebp - 0x8010], ax
lea eax, [ebp - 0x800e]
push esi
push eax
call fcn.101a01b0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
add esp, 0xc
push 0x7ffe
lea eax, [ebp - 0x8010]
push 0
push eax
call fcn.101a01b0
add esp, 0xc
mov dword [ebp - 0x8038], 0x3fff
lea eax, [ebp - 0x803c]
mov dword [ebp - 0x8030], 0
mov dword [ebp - 0x803c], 0
push eax
push 0
lea eax, [ebp - 0x8030]
push eax
push 0
lea eax, [ebp - 0x8038]
push eax
lea eax, [ebp - 0x8010]
push eax
push esi
push dword [ebp - 0x8034]
call ebx
cmp eax, 0x103
je 0x1002175f
test eax, eax
jne 0x10021758
lea eax, [ebp - 0x8010]
mov dword [ebp - 0x8044], eax
lea ecx, [ebp - 0x802c]
mov eax, dword [ebp - 0x8030]
mov dword [ebp - 0x8040], eax
lea eax, [ebp - 0x8044]
push eax
call fcn.100221d0
lea eax, [ebp - 0x802c]
mov byte [ebp - 4], 1
push eax
mov ecx, edi
call fcn.10021e40
mov byte [ebp - 4], 0
cmp dword [ebp - 0x8018], 8
jb 0x10021752
push dword [ebp - 0x802c]
call fcn.101a02f0
add esp, 4
inc esi
jmp 0x10021693
mov esi, 0x80004005
jmp 0x10021761
xor esi, esi
mov eax, dword [ebp - 0x8034]
test eax, eax
je 0x1002177c
push eax
mov dword [ebp - 0x8034], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x10021785
mov eax, 0x80004003
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret