joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001edb0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d183e
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x101120a8]
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 + 8]
lea eax, [ebp - 0x90]
push 0x80
push 0
push eax
mov dword [ebp - 0x114], ebx
call fcn.1008da10
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [ebp - 0x90]
add esp, 0xc
push 0x40
push eax
push 0x59
push 0x800
call esi
push 0x80
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.1008da10
add esp, 0xc
lea eax, [ebp - 0x110]
push 0x40
push eax
push 0x5a
push 0x800
call esi
lea edi, [ebp - 0x90]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x1001ee46
mov eax, dword [0x100eeb88]
lea edx, [ebp - 0x110]
mov dword [edi], eax
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1001ee61
lea edi, [ebp - 0x90]
sub edx, esi
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x1001ee80
mov ecx, edx
mov dword [ebx], vtable.LString.0
shr ecx, 2
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [ebx + 0x14], 0
and ecx, 3
mov dword [ebx + 0x18], 7
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebx + 4]
mov word [ecx], ax
lea edx, [ebp - 0x90]
mov dword [ebp - 4], eax
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
lea esi, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1001eed0
sub edx, esi
lea eax, [ebp - 0x90]
sar edx, 1
push edx
push eax
call fcn.10002b70
mov eax, ebx
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.1008bffe
mov esp, ebp
pop ebp
ret

Function at 0x1001ef10
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d187e
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x101120a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x200
push 0
push eax
mov dword [ebp - 0x218], esi
call fcn.1008da10
add esp, 0xc
mov dword [ebp - 0x214], 0x100
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea ecx, [esi + 4]
mov dword [esi], vtable.LString.0
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
lea edx, [ebp - 0x210]
mov dword [ebp - 4], eax
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
lea edi, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1001efb0
sub edx, edi
lea eax, [ebp - 0x210]
sar edx, 1
push edx
push eax
call fcn.10002b70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
Function at 0x1001f490
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d19e0
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x101120a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], 0
call fcn.1008da10
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [esi], vtable.LString.0
xor eax, eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 7
mov word [esi + 4], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001f530
sub eax, edi
lea ecx, [esi + 4]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10002b70
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov ecx, esi
mov dword [ebp - 0x21c], 1
call sym.XNewLookSch.dll_public:_class_LString____thiscall_LString::dir_fit_bool_
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
Function at 0x1001fca0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d1ba5
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x101120a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov al, byte [ebp + 0xc]
mov esi, dword [ebp + 8]
mov byte [ebp - 0x254], al
xor eax, eax
mov dword [ebp - 0x258], esi
mov dword [ebp - method.LString.virtual_0], vtable.LString.0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
push eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x24c]
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
push 0x100ee7b8
call fcn.10002b70
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.1008da10
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push dword [ebp + 0x10]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1001fdd3
xor eax, eax
mov dword [ebp - method.LString.virtual_0], vtable.LString.0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 2
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001fd90
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.10002b70
mov byte [ebp - 4], 3
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
push eax
jmp 0x1001fe07
push dword [ebp - 0x254]
lea eax, [ebp - 0x234]
push eax
call sym.XNewLookSch.dll_class_LString___cdecl_LEnvironment::GetTempDir_bool_
add esp, 8
add eax, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24c]
cmp ecx, eax
je 0x1001fe12
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x1001fe03
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x24c]
call fcn.10002b70
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
push dword [ebp - 0x254]
lea ecx, [ebp - 0x250]
call sym.XNewLookSch.dll_public:_class_LString____thiscall_LString::dir_fit_bool_
lea ecx, [esi + 4]
mov dword [esi], vtable.LString.0
xor edx, edx
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], dx
mov byte [ebp - 4], 5
add eax, 4
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
cmp ecx, eax
je 0x1001fe72
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x1001fe69
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.10002b70
lea ecx, [ebp - 0x250]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
Function at 0x1001fea0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d1770
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x101120a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x410]
mov esi, dword [ebp + 0xc]
push 0x400
push 0
push eax
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x414], 0
call fcn.1008da10
add esi, 4
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x1001ff04
mov esi, dword [esi]
push 0x200
lea eax, [ebp - 0x410]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [edi + 4]
mov dword [edi], vtable.LString.0
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
lea edx, [ebp - 0x410]
mov dword [ebp - 4], 1
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1001ff50
sub edx, esi
lea eax, [ebp - 0x410]
sar edx, 1
push edx
push eax
call fcn.10002b70
push dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov ecx, edi
mov dword [ebp - 0x414], 1
call sym.XNewLookSch.dll_public:_class_LString____thiscall_LString::dir_fit_bool_
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
Function at 0x1001ffb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d1be6
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x101120a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
call sym.XNewLookSch.dll_bool___cdecl_LEnvironment::IsUserSystem_void_
test al, al
jne 0x100200b2
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1008da10
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x100200b2
xor eax, eax
mov dword [ebp - method.LString.virtual_0], vtable.LString.0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10020055
sub eax, edx
lea ecx, [ebp - 0x230]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10002b70
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 1
call sym.XNewLookSch.dll_public:_class_LString____thiscall_LString::to_long_path_from_dos83_void_
push dword [ebp + 0xc]
lea ecx, [ebp - 0x234]
call sym.XNewLookSch.dll_public:_class_LString____thiscall_LString::dir_fit_bool_
lea eax, [ebp - 0x234]
mov ecx, esi
push eax
call sym.XNewLookSch.dll_public:_void___thiscall_LString::constructor_class_LString_const__
lea ecx, [ebp - 0x234]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
jmp 0x100200be
push dword [ebp + 0xc]
push esi
call sym.XNewLookSch.dll_class_LString___cdecl_LEnvironment::GetWindowsDir_bool_
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
Function at 0x10021110
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x101120a8]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
mov ebx, edx
mov esi, ecx
push ebx
push esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x10021162
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1002117c
cmp eax, 2
jne 0x1002127b
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10021181
sub ecx, edx
sar ecx, 1
cmp word [ebx + ecx*2 - 2], 0x5c
lea edi, [ebx + ecx*2]
je 0x100211ab
mov eax, 0x5c
mov word [edi], ax
add edi, 2
xor eax, eax
mov word [edi], ax
lea eax, [esp + 0x18]
mov dword [esp + 0xc], 0x104
push eax
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x34]
push eax
push 0
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1002125b
lea esi, [esp + 0x20]
sub esi, edi
mov edx, 0x208
mov eax, edi
nop dword [eax]
lea ecx, [edx + 0x7ffffdf6]
test ecx, ecx
je 0x1002120e
movzx ecx, word [esi + eax]
test cx, cx
je 0x1002120e
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x100211f0
test edx, edx
lea ecx, [eax - 2]
mov edx, ebx
cmovne ecx, eax
xor eax, eax
mov word [ecx], ax
mov ecx, dword [esp + 0x14]
call fcn.10021110
test eax, eax
je 0x10021257
lea eax, [esp + 0x18]
mov dword [esp + 0xc], 0x104
push eax
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x34]
push eax
push 0
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x100211e2
mov esi, dword [esp + 0x14]
xor eax, eax
mov word [edi - 2], ax
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x10021162
mov ecx, dword [esp + 0x22c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
Function at 0x100222e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, ecx
mov dword [ebp - 0x10], eax
cmp byte [eax + 4], 0
mov dword [eax], 0
je 0x1002243e
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov ecx, dword [eax + 4]
xor edi, edi
mov ebx, dword [eax]
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
je 0x10022333
lea eax, [ebx + 0x14]
mov ecx, dword [eax]
test ecx, ecx
je 0x1002232b
inc edi
add edi, ecx
add eax, 0x1c
sub esi, 1
jne 0x10022322
xor ecx, ecx
lea eax, [edi + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1008bff2
lea edi, [edi*2 + 2]
mov ebx, eax
lea ecx, [edi + 2]
mov dword [ebp - 0xc], ebx
push ecx
push 0
push ebx
mov dword [ebp - 8], edi
call fcn.1008da10
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 4], ecx
add esp, 0x10
mov ecx, dword [eax + 4]
mov esi, dword [eax]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x100223f8
xor edi, edi
cmp dword [edi + esi + 0x14], 0
lea eax, [edi + esi]
je 0x100223cf
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x100223a5
mov eax, dword [eax]
mov edx, ebx
sub edx, eax
nop dword [eax]
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x100223b0
mov esi, dword [ebp + 0xc]
mov esi, dword [esi]
mov eax, dword [edi + esi + 0x14]
lea ebx, [ebx + eax*2]
add ebx, 2
mov eax, dword [ebp + 0xc]
add edi, 0x1c
inc dword [ebp - 4]
mov ecx, dword [eax + 4]
mov eax, 0x92492493
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 4], eax
jb 0x10022390
mov edi, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x10022406
mov eax, dword [eax]
mov ebx, dword [ebp - 0xc]
push edi
mov edi, dword [ebp - 0x10]
push ebx
push 7
push 0
push eax
push dword [edi + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [edi], eax
call fcn.1008c032
add esp, 4
test esi, esi
pop edi
pop esi
pop ebx
jne 0x1002243e
mov al, 1
mov esp, ebp
pop ebp
ret 8
xor al, al
mov esp, ebp
pop ebp
ret 8

Function at 0x10022450
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp byte [edi + 4], 0
mov dword [edi], 0
je 0x100224ab
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 8
lea ecx, [eax + 4]
push esi
mov esi, dword [eax + 0x14]
jb 0x10022474
mov ecx, dword [ecx]
mov edx, dword [ebp + 8]
add edx, 4
cmp dword [edx + 0x14], 8
jb 0x10022482
mov edx, dword [edx]
lea eax, [esi + esi]
push eax
push ecx
push 1
push 0
push edx
push dword [edi + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
mov dword [edi], eax
pop esi
jne 0x100224ab
mov al, 1
pop edi
pop ebp
ret 8
xor al, al
pop edi
pop ebp
ret 8
Function at 0x100224c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp byte [edi + 4], 0
mov dword [edi], 0
je 0x1002251b
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 8
lea ecx, [eax + 4]
push esi
mov esi, dword [eax + 0x14]
jb 0x100224e4
mov ecx, dword [ecx]
mov edx, dword [ebp + 8]
add edx, 4
cmp dword [edx + 0x14], 8
jb 0x100224f2
mov edx, dword [edx]
lea eax, [esi + esi]
push eax
push ecx
push 2
push 0
push edx
push dword [edi + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
mov dword [edi], eax
pop esi
jne 0x1002251b
mov al, 1
pop edi
pop ebp
ret 8
xor al, al
pop edi
pop ebp
ret 8

Function at 0x10022530
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp byte [edi + 4], 0
mov dword [edi], 0
je 0x10022585
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x10022585
mov edx, dword [ebp + 0x10]
test edx, edx
js 0x10022585
mov eax, dword [ebp + 8]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x1002255e
mov eax, dword [eax]
push esi
push edx
push ecx
push 3
push 0
push eax
push dword [edi + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
mov dword [edi], eax
pop esi
jne 0x10022585
mov al, 1
pop edi
pop ebp
ret 0xc
xor al, al
pop edi
pop ebp
ret 0xc

Function at 0x10022590
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 0xc]
push edi
mov edi, ecx
mov dword [ebp + 0xc], eax
cmp byte [edi + 4], 0
mov dword [edi], 0
jne 0x100225b0
xor al, al
pop edi
pop ebp
ret 8
mov eax, dword [ebp + 8]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x100225be
mov eax, dword [eax]
push esi
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0
push eax
push dword [edi + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
mov dword [edi], eax
pop esi
sete al
pop edi
pop ebp
ret 8

Function at 0x100225f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp byte [edi + 4], 0
mov dword [edi], 0
je 0x1002263b
mov eax, dword [ebp + 8]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x10022610
mov eax, dword [eax]
push esi
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0
push eax
push dword [edi + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
mov dword [edi], eax
pop esi
jne 0x1002263b
mov al, 1
pop edi
pop ebp
ret 8
xor al, al
pop edi
pop ebp
ret 8

Function at 0x10022650
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp byte [edi + 4], 0
mov dword [edi], 0
je 0x10022691
mov eax, dword [ebp + 8]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x10022670
mov eax, dword [eax]
push esi
push eax
push dword [edi + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
mov dword [edi], eax
pop esi
jne 0x10022691
mov al, 1
pop edi
pop ebp
ret 4
xor al, al
pop edi
pop ebp
ret 4
Function at 0x100226a0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
cmp byte [edi + 4], 0
mov dword [edi], 0
je 0x100226fb
mov eax, dword [ebp + 8]
add eax, 4
cmp byte [ebp + 0xc], 0
je 0x100226d3
cmp dword [eax + 0x14], 8
jb 0x100226c7
mov eax, dword [eax]
push eax
push dword [edi + 8]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
jmp 0x100226e5
cmp dword [eax + 0x14], 8
jb 0x100226db
mov eax, dword [eax]
push eax
push dword [edi + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
test esi, esi
jne 0x100226fb
pop edi
mov al, 1
pop esi
pop ebp
ret 8
pop edi
xor al, al
pop esi
pop ebp
ret 8
Function at 0x10022990
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d2094
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x101120a8]
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 dword [ebp - 0x41c], ecx
mov edi, dword [ebp + 8]
mov dword [ecx], 0
mov ebx, dword [edi + 4]
mov esi, dword [edi]
cmp esi, ebx
je 0x100229e7
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax]
add esi, 0x1c
cmp esi, ebx
jne 0x100229d6
mov esi, dword [edi]
mov ebx, dword [ebp - 0x41c]
mov dword [edi + 4], esi
cmp byte [ebx + 4], 0
jne 0x100229fd
xor al, al
jmp 0x10022b81
xor esi, esi
nop
push 0x3ea
lea eax, [ebp - 0x3fc]
mov dword [ebp - 0x420], 0x1f4
push 0
push eax
call fcn.1008da10
add esp, 0xc
lea eax, [ebp - 0x420]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x3fc]
push eax
push esi
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x41c]
mov dword [ecx], eax
test ebx, ebx
jne 0x10022b6f
xor eax, eax
mov dword [ebp - method.LString.virtual_0], vtable.LString.0
mov dword [ebp - 0x404], ebx
mov dword [ebp - 0x400], 7
mov word [ebp - 0x414], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x3fc]
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10022a90
sub eax, edx
lea ecx, [ebp - 0x414]
sar eax, 1
push eax
lea eax, [ebp - 0x3fc]
push eax
call fcn.10002b70
mov dword [ebp - 4], 1
mov eax, dword [edi + 4]
cmp dword [edi + 8], eax
je 0x10022b17
mov dword [eax], vtable.LString.0
lea ecx, [eax + 4]
mov dword [ebp - 0x424], eax
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x414]
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
cmp ecx, eax
je 0x10022b11
cmp dword [ebp - 0x400], 8
push dword [ebp - 0x404]
cmovae eax, dword [ebp - 0x414]
push eax
call fcn.10002b70
add dword [edi + 4], 0x1c
jmp 0x10022b26
lea ecx, [ebp - 0x418]
push ecx
push eax
mov ecx, edi
call fcn.100124a0
mov dword [ebp - 4], 0xffffffff
dec dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
mov edx, dword [ebp - 0x400]
cmp edx, 8
jb 0x10022b6f
mov ecx, dword [ebp - 0x414]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10022b65
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10022b9f
push edx
push ecx
call fcn.1008bfe4
add esp, 8
inc esi
test ebx, ebx
jne 0x10022b7f
mov ebx, dword [ebp - 0x41c]
jmp 0x10022a00
mov al, 1
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.1008bffe
mov esp, ebp
pop ebp
ret 4
call fcn.10092486
int3