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

Disassembly:
sub esp, 0x21c
mov ecx, 0xd
xor eax, eax
lea edx, [esp + 0x118]
push ebx
push ebp
push esi
push edi
mov esi, 0x1004278c
lea edi, [esp + 0x128]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x230]
or ecx, 0xffffffff
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x23c]
mov ecx, ebp
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x12c]
push ecx
push 0xf003f
push ebx
push edx
push reloc.WS2_32.dll_bind
call fcn.1001af10
add esp, 0x18
test eax, eax
jne 0x1001b680
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push ebx
mov edi, 0x104
push str.UninstallString
push eax
mov dword [esp + 0x2c], edi
call esi
test eax, eax
jne 0x1001b5d9
mov eax, dword [esp + 0x18]
dec eax
je 0x1001b5bf
dec eax
jne 0x1001b675
mov ecx, dword [esp + 0x238]
mov edx, dword [esp + 0x234]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
jmp 0x1001b670
mov ecx, dword [esp + 0x238]
mov eax, dword [esp + 0x234]
lea edx, [esp + 0x24]
push ecx
push edx
push eax
jmp 0x1001b667
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x1c]
push ecx
push edx
push ebx
push ebx
push str.NoRemove
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 4
mov dword [esp + 0x2c], edi
call esi
test eax, eax
jne 0x1001b675
cmp dword [esp + 0x1c], ebx
je 0x1001b675
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
push ebx
push str.ModifyPath
push ecx
call esi
test eax, eax
jne 0x1001b675
mov eax, dword [esp + 0x18]
dec eax
je 0x1001b652
dec eax
jne 0x1001b675
mov edx, dword [esp + 0x238]
mov eax, dword [esp + 0x234]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
jmp 0x1001b670
mov edx, dword [esp + 0x238]
mov ecx, dword [esp + 0x234]
lea eax, [esp + 0x24]
push edx
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov ebx, 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x21c
ret
Function at 0x1001b690
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x224]
push eax
push 0xf003f
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001b77b
push esi
push edi
push eax
push eax
push eax
lea edx, [esp + 0x24]
push eax
mov ecx, dword [esp + 0x1c]
push edx
push eax
push eax
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov edx, dword [esp + 0x18]
lea esi, [edx - 1]
test esi, esi
jl 0x1001b730
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 0xc]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push 0
lea ecx, [esp + 0x2c]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x30], 0x104
call edi
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x1c]
push eax
push ecx
call ebx
dec esi
jns 0x1001b6f8
mov ebx, dword [esp + 0x22c]
mov edx, dword [esp + 0x14]
lea esi, [edx - 1]
test esi, esi
jl 0x1001b76e
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x120]
push 0x104
push eax
push esi
push ecx
call edi
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x120]
push edx
push eax
call fcn.1001b690
add esp, 8
dec esi
jns 0x1001b741
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
test ebx, ebx
je 0x1001b78e
mov edx, dword [esp + 0x220]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, 1
pop ebx
add esp, 0x218
ret
Function at 0x1001b7a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x1c
lea eax, [esp + 4]
push esi
push eax
push 0x20019
push 0
push 0x100427e8
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x1001b8a3
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1001b7f4
mov edx, dword [esp + 8]
lea ecx, [esp + 4]
push ecx
push eax
push esi
push esi
push 0x10042810
push edx
mov dword [esp + 0x1c], 0x104
call dword [0x1004c1b0]
mov esi, eax
push edi
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x1001b897
mov edx, dword [esp + 0xc]
lea eax, [esp + 8]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0
push 0x1004281c
push edx
mov dword [esp + 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
or esi, eax
lea eax, [esp + 0x14]
push 0x2e
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
jne 0x1001b85d
lea ecx, [esp + 0x28]
lea edx, [esp + 0x14]
push ecx
push 0x10042824
push edx
call dword [sym.imp.MSVCRT.dll_sscanf]
mov eax, dword [esp + 0x34]
add esp, 0xc
mov dword [edi], eax
jmp 0x1001b897
lea ecx, [esp + 0x10]
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
lea ecx, [esp + 0x20]
push 0x10042828
push ecx
call dword [sym.imp.MSVCRT.dll_sscanf]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
shl edx, 8
or edx, eax
mov eax, dword [esp + 0x24]
shl edx, 0x10
add esp, 0x14
or edx, eax
mov dword [edi], edx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
test esi, esi
sete al
pop esi
add esp, 0x1c
ret
Function at 0x1001b8b0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x11c
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push eax
push 0xf003f
push 0
push 0x10042838
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x1001ba3e
mov ebx, dword [esp + 0x130]
test ebx, ebx
je 0x1001b910
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edx, dword [esp + 0x14]
add esp, 4
lea ecx, [eax + eax + 1]
push ecx
push ebx
push 1
push esi
push 0x10042860
push edx
call dword [0x1004c1b4]
mov esi, eax
mov edi, dword [esp + 0x134]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
test edi, edi
je 0x1001b979
mov eax, dword [edi]
xor edx, edx
mov ecx, eax
mov dword [esp + 0x14], eax
mov dl, byte [esp + 0x16]
and ecx, 0xffff
push ecx
push edx
shr eax, 0x18
push eax
lea eax, [esp + 0x24]
push 0x1004286c
push eax
call ebp
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x10]
not ecx
push ecx
lea ecx, [esp + 0x1c]
push ecx
push 1
push eax
push 0x1004287c
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [esp + 0x134]
or esi, eax
test esi, esi
jne 0x1001b988
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1001ba3e
push 0x10042884
push 0x1004288c
lea edx, [esp + 0x30]
push 0x100428bc
push edx
call ebp
add esp, 0x10
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
push 0xf003f
push esi
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001ba3e
test ebx, ebx
je 0x1001b9f8
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea edx, [eax + eax + 1]
mov eax, dword [esp + 0x10]
push edx
push ebx
push 1
push esi
push esi
push eax
call dword [0x1004c1b4]
mov esi, eax
test edi, edi
je 0x1001ba24
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x1c]
push ecx
push 1
push eax
push 0x100428c4
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
or esi, eax
test esi, esi
jne 0x1001ba33
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebp
sete al
pop ebx
add esp, 0x11c
ret
Function at 0x1001ba50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push esi
push eax
push 0x20019
push 0
push 0x100428cc
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x1001bad7
mov eax, dword [esp + 0x10]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1001baa3
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push ecx
push eax
push esi
push esi
push 0x100428f4
push edx
mov dword [esp + 0x20], 0x104
call edi
mov esi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1001bacb
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push ecx
push eax
push 0
push 0
push 0x100428fc
push edx
mov dword [esp + 0x20], 0x104
call edi
or esi, eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
test esi, esi
sete al
pop esi
add esp, 8
ret

Function at 0x1001baf0
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push esi
push eax
push 0xf003f
push 0
push 0x10042904
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
je 0x1001bb3e
lea ecx, [esp + 4]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x1004292c
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
jne 0x1001bb9f
mov edx, dword [esp + 0xc]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
test edx, edx
je 0x1001bb6c
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x14]
push 1
push eax
push str.ProgDir
push edx
call ebx
mov esi, eax
mov edx, dword [esp + 0x18]
test edx, edx
je 0x1001bb92
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x1c]
push str.MenuDir
push eax
call ebx
or esi, eax
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
xor eax, eax
test esi, esi
sete al
pop esi
pop ecx
ret
Function at 0x1001bbb0
Capabilities:
Query or enumerate registry key
Set registry value

Disassembly:
sub esp, 0x214
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push ebp
push esi
push edi
push eax
push 0xf003f
push 0
push 0x10042964
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
je 0x1001bc00
lea ecx, [esp + 0x10]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x10042998
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, dword [esp + 0x228]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [esp + 0x1c], 0x5c
jne 0x1001bc34
mov byte [esp + 0x1c], 0x2f
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
lea edx, [esp + 0x24]
push 0
push edx
push eax
call ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x1001bcb4
mov ecx, dword [esp + 0x14]
push 0
push ecx
call fcn.1001b690
mov edx, dword [esp + 0x1c]
add esp, 8
push edx
call ebp
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
mov esi, 1
push ecx
mov ecx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x24]
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [esp + 0x10]
push eax
call ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x120]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x1c], 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCRT.dll_strrchr]
lea ecx, [esp + 0x124]
push ecx
call esi
add esp, 8
test eax, eax
je 0x1001bd3e
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0xf003f
lea eax, [esp + 0x128]
push 0
push eax
push ecx
call ebx
test eax, eax
je 0x1001bd3e
lea edx, [esp + 0x120]
push 0x5c
push edx
call esi
mov byte [eax], 0
lea eax, [esp + 0x128]
push 0x5c
push eax
call esi
add esp, 0x10
test eax, eax
jne 0x1001bcfd
lea ecx, [esp + 0x120]
push 0x5c
push ecx
call esi
add esp, 8
test eax, eax
je 0x1001bc6c
push 0
push 0
mov eax, dword [esp + 0x1c]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x30]
push 0
push edx
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ecx, dword [esp + 0x14]
push ecx
call ebp
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x1001bc6c
xor esi, esi
jmp 0x1001bc95
Function at 0x1001bda0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x218
lea eax, [esp + 4]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0xf003f
push 0
push 0x100429cc
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
je 0x1001bdd3
xor eax, eax
pop ebx
add esp, 0x218
ret
push esi
push edi
mov edi, dword [esp + 0x228]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x120]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [esp + 0x120], 0x5c
jne 0x1001be12
mov byte [esp + 0x120], 0x2f
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push 0xf003f
lea edx, [esp + 0x128]
push 0
push edx
push eax
call ebx
test eax, eax
jne 0x1001bf5c
mov ecx, dword [esp + 0xc]
push eax
push ecx
call fcn.1001b690
mov edx, dword [esp + 0x14]
add esp, 8
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov eax, ecx
mov esi, edi
mov edi, edx
mov ebp, dword [sym.imp.MSVCRT.dll_strrchr]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x5c
and ecx, 3
mov dword [esp + 0x1c], 1
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
push ecx
call ebp
add esp, 8
test eax, eax
je 0x1001bf66
lea edx, [esp + 0x20]
push 0x5c
push edx
call ebp
mov byte [eax], 0
mov al, byte [esp + 0x28]
add esp, 8
test al, al
je 0x1001bf6b
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push 0xf003f
lea ecx, [esp + 0x28]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0
push 0
mov ecx, dword [esp + 0x18]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x34]
push 0
push eax
push 0
push 0
push 0
push ecx
call ebx
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x1c], 1
ja 0x1001bf6b
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x124]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
push ecx
call ebp
add esp, 8
test eax, eax
je 0x1001bf66
lea edx, [esp + 0x20]
push 0x5c
push edx
call ebp
mov byte [eax], 0
mov al, byte [esp + 0x28]
add esp, 8
test al, al
je 0x1001bf6b
jmp 0x1001beba
mov dword [esp + 0x14], 0
jmp 0x1001bf81
mov byte [esp + 0x20], 0
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x124]
push eax
push ecx
call fcn.1001b690
add esp, 8
pop ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
add esp, 0x218
ret
Function at 0x1001bfb0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x110
test eax, eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push ebp
push esi
push edi
je 0x1001bfe1
mov edx, dword [esp + 0x124]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
push eax
push edx
call ebx
jmp 0x1001bfec
mov eax, dword [esp + 0x124]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x130]
push ecx
push 0
push 0
push 0
push 0
push edx
call edi
test eax, eax
jne 0x1001c099
cmp dword [esp + 0x130], 1
jbe 0x1001c099
mov ebp, dword [esp + 0x134]
cmp dword [ebp], 0
jne 0x1001c091
mov esi, dword [esp + 0x12c]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x130]
push eax
push esi
push 0
push 0
push 0
push ecx
call edi
cmp byte [esi], 0x2f
jne 0x1001c04d
mov byte [esi], 0x5c
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0x20019
push 0
push 0x10042a00
push eax
call ebx
test eax, eax
jne 0x1001c091
mov ecx, dword [esp + 0x138]
push eax
push eax
mov edx, dword [esp + 0x1c]
push eax
push eax
push ecx
push eax
push eax
push eax
push eax
push eax
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
dec dword [ebp]
jmp 0x1001c119
push 0
push 0
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x30]
push 0
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x1001c119
mov esi, dword [esp + 0x18]
test esi, esi
jle 0x1001c119
dec esi
test esi, esi
jl 0x1001c119
mov edi, dword [esp + 0x138]
mov ebx, dword [esp + 0x134]
mov ebp, dword [esp + 0x12c]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push 0x104
push eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edx, dword [esp + 0x130]
mov ecx, dword [esp + 0x10]
push edi
push ebx
push edx
lea eax, [esp + 0x28]
push ebp
push eax
push ecx
call fcn.1001bfb0
add esp, 0x18
dec esi
jns 0x1001c0e3
mov eax, dword [esp + 0x128]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
je 0x1001c133
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0x110
ret
Function at 0x1001c140
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push 0x20019
push 0
push 0x10042a08
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1001c169
xor eax, eax
add esp, 8
ret
push esi
push 0
mov esi, dword [esp + 0x20]
push 0
mov edx, dword [esp + 0xc]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
push ecx
push 0
push 0
push 0
push edx
mov dword [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [esp + 8]
test eax, eax
je 0x1001c1bf
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push esi
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push 0
push eax
call fcn.1001bfb0
add esp, 0x18
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
xor eax, eax
test ecx, ecx
setl al
pop esi
add esp, 8
ret

Function at 0x1001c360
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x108
mov ecx, 0xc
xor eax, eax
mov edx, dword [esp + 0x10c]
push ebx
push esi
push edi
mov esi, str.SOFTWAREIBMThinkPadSoftwareInstallerSearchPath
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0x34
lea edi, [esp + 0x42]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ax, word [0x10042abc]
mov word [edi - 1], ax
mov al, byte [edx]
cmp al, 0x5c
je 0x1001c3d4
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x1001c410
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ax, word [0x10042ac0]
or ecx, 0xffffffff
mov word [edi - 1], ax
lea edi, [edx + 1]
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
lea eax, [esp + 0xc]
rep movsb byte es:[edi], byte [esi]
push eax
push 0xf003f
lea ecx, [esp + 0x18]
push 0
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1001c441
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x108
ret
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x10042ac4
push edx
call esi
mov eax, dword [esp + 0xc]
push str.Time
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x108
ret

Function at 0x1001c480
Capabilities:
Delete registry value

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push esi
push eax
call edi
mov ecx, dword [esp + 0xc]
push esi
push ecx
call edi
pop edi
mov eax, 1
pop esi
ret