joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100151e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
push edi
push 0
call fcn.1000dd30
mov ebx, eax
add esp, 4
cmp ebx, 2
jne 0x10015208
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x16
jmp 0x10015213
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0xb
mov edi, dword [sym.imp.SHFOLDER.dll_SHGetFolderPathA]
push 0
call edi
mov ebp, dword [esp + 0x118]
lea edx, [esp + 0x10]
push edx
push 0x15f8d
push 0x1869d
push ebp
call fcn.10015160
mov esi, eax
add esp, 0x10
neg esi
sbb esi, esi
neg esi
cmp ebx, 2
jne 0x10015256
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x17
jmp 0x10015261
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 2
push 0
call edi
test esi, esi
je 0x1001528c
lea edx, [esp + 0x10]
push edx
push 0x15f8c
push 0x1869c
push ebp
call fcn.10015160
add esp, 0x10
test eax, eax
je 0x1001528c
mov esi, 1
jmp 0x1001528e
xor esi, esi
cmp ebx, 2
jne 0x100152a0
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x18
jmp 0x100152ab
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 7
push 0
call edi
test esi, esi
je 0x100152df
lea edx, [esp + 0x10]
push edx
push 0x15f8b
push 0x1869b
push ebp
call fcn.10015160
add esp, 0x10
test eax, eax
je 0x100152df
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret
Function at 0x100153d0
Capabilities:
Create directory

Disassembly:
sub esp, 0x214
mov eax, dword [esp + 0x21c]
push ebx
push ebp
push esi
mov ebp, dword [eax + 0x90]
push edi
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x14]
push edx
push eax
lea ecx, [ecx + ebp + 1]
push ebp
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x234]
push ecx
mov esi, 1
call fcn.10015330
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x1001542c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x120]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x120]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.1000bd00
mov al, byte [esp + 0x24]
add esp, 8
cmp al, 0x2a
je 0x100154c0
mov ecx, dword [esp + 0x22c]
lea edi, [esp + 0x1c]
xor eax, eax
mov edx, dword [ecx + 0x80]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
push 0x10041d00
lea eax, [esp + ecx + 0x24]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x1c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edx, [esp + 0x1c]
push edx
push 0x15f8f
push 0x1869f
push ebx
call fcn.10015160
mov esi, eax
add esp, 0x10
neg esi
sbb esi, esi
neg esi
cmp byte [esp + 0x120], 0x2a
je 0x10015501
lea eax, [esp + 0x120]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test esi, esi
je 0x100154fd
lea ecx, [esp + 0x120]
push ecx
push 0x15f8e
push 0x1869e
push ebx
call fcn.10015160
add esp, 0x10
test eax, eax
jne 0x10015505
xor edi, edi
jmp 0x1001554d
test esi, esi
je 0x100154fd
push ebx
call fcn.100151e0
add esp, 4
test eax, eax
je 0x100154fd
mov eax, dword [esp + 0x22c]
mov edx, dword [esp + 0x230]
add eax, 0x1c
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x234]
push edx
push eax
push ebp
push ebx
push ecx
mov edi, 1
call fcn.10015e30
add esp, 0x20
jmp 0x10015561
mov edx, dword [esp + 0x22c]
mov dword [edx + 0x1c], 0x80200001
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push ebx
call fcn.100153a0
add esp, 0xc
test edi, edi
je 0x10015591
test esi, esi
jne 0x10015591
cmp dword [esp + 0x230], 2
jne 0x10015591
push esi
push esi
push esi
call dword [sym.imp.SETUPAPI.dll_SetupPromptReboot]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x214
ret
Function at 0x100155b0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x48c
push ebx
push ebp
push esi
push edi
mov ecx, 0xc2
xor eax, eax
lea edi, [esp + 0x191]
mov byte [esp + 0x190], 0
rep stosd dword es:[edi], eax
mov ebp, dword [esp + 0x4a4]
or ecx, 0xffffffff
stosw word es:[edi], ax
mov esi, dword [ebp + 0x90]
xor edx, edx
stosb byte es:[edi], al
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x50]
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x4c], edx
lea ebx, [ecx + esi + 1]
mov ecx, 0xf
rep stosd dword es:[edi], eax
mov dword [esp + 0x18], eax
mov ecx, 8
mov dword [esp + 0x1c], eax
lea edi, [esp + 0x28]
mov dword [esp + 0x24], edx
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x90]
mov dword [esp + 0x14], 0xffffffff
push ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], eax
call fcn.1000bd40
lea edx, [esp + 0x2c]
push edx
call fcn.1000c7b0
mov eax, dword [esp + 0x30]
add esp, 0xc
and eax, 0xffff
cmp eax, 6
je 0x10015689
cmp eax, 9
je 0x10015671
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x48c
ret
mov eax, dword [ebp + 0x80]
mov ecx, dword [esp + 0x4a0]
push esi
push ebx
push eax
push ecx
push str.LibifX64.exe_DefaultInstall_0x_08X__s__s___s_
jmp 0x1001569f
mov eax, dword [ebp + 0x80]
mov ecx, dword [esp + 0x4a0]
push esi
push ebx
push eax
push ecx
push str.LibifI64.exe_DefaultInstall_0x_08X__s__s___s_
lea edx, [esp + 0x1a4]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
lea eax, [esp + 0x14]
lea ecx, [esp + 0x48]
lea edx, [esp + 0x8c]
push eax
push ecx
push edx
push 0
push 0x200
push 0
push 0
lea eax, [esp + 0x1ac]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10015713
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x10015713
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10015713
mov edi, 1
jmp 0x10015715
xor edi, edi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1001572d
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
test edi, edi
je 0x10015747
cmp dword [esp + 0x4a8], 2
jne 0x10015747
push 0
push 0
push 0
call dword [sym.imp.SETUPAPI.dll_SetupPromptReboot]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48c
ret
Function at 0x100159d0
Capabilities:
Create process on windows

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x350
mov edx, dword [esp + 0x354]
lea eax, [esp + 4]
push ebx
push ebp
push esi
push edi
push eax
push 0x10041d8c
push ecx
push edx
mov esi, 1
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
test eax, eax
je 0x10015b9d
mov ebp, dword [sym.imp.SETUPAPI.dll_SetupGetMultiSzFieldA]
xor ebx, ebx
cmp esi, ebx
je 0x10015b9d
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x2c]
mov dword [esp + 0x24], 0x3c
mov dword [esp + 0x28], ebx
mov byte [esp + 0x160], bl
rep stosd dword es:[edi], eax
mov ecx, 0x3f
lea edi, [esp + 0x161]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x261]
mov byte [esp + 0x260], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x61]
mov byte [esp + 0x60], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [esp + 0x164]
push 0x100
push eax
lea ecx, [esp + 0x20]
push 1
push ecx
mov dword [esp + 0x24], ebx
call ebp
mov esi, eax
push ebx
lea edx, [esp + 0x264]
push 0x100
neg esi
push edx
lea eax, [esp + 0x20]
sbb esi, esi
push 2
push eax
neg esi
call ebp
lea ecx, [esp + 0x160]
lea edx, [esp + 0x260]
cmp esi, ebx
mov dword [esp + 0x28], 0x40
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x40], 1
je 0x10015baa
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x10015baa
mov ecx, dword [esp + 0x5c]
push 0xffffffffffffffff
push ecx
mov esi, 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
lea edx, [esp + 0x64]
push 0x100
push edx
mov edx, dword [esp + 0x1c]
xor eax, eax
cmp edx, ebx
lea ecx, [esp + 0x20]
setne al
add eax, 3
push eax
push ecx
call ebp
test eax, eax
je 0x10015b80
cmp byte [esp + 0x60], bl
je 0x10015b80
mov edx, dword [esp + 0x36c]
mov ecx, dword [esp + 0x364]
push ebx
push ebx
push ebx
push ebx
push ebx
push edx
mov edx, dword [esp + 0x388]
push ebx
lea eax, [esp + 0x7c]
push 0xce
push eax
push ecx
push edx
call dword [sym.imp.SETUPAPI.dll_SetupInstallFromInfSectionA]
mov esi, eax
neg esi
sbb esi, esi
neg esi
lea eax, [esp + 0x14]
lea ecx, [esp + 0x14]
push eax
push 0x10041d90
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupFindNextMatchLineA]
test eax, eax
jne 0x10015a0c
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
xor esi, esi
jmp 0x10015b80
Function at 0x10017870
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 6
push ebp
push ebp
push ebp
xor edi, edi
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x20], ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100179fd
mov ebx, dword [esp + 0x124]
lea eax, [esp + 0x10]
push eax
push ebx
push esi
call fcn.10016e90
mov edi, eax
add esp, 0xc
cmp edi, ebp
je 0x100179fd
mov eax, dword [esp + 0x10]
push ebp
lea ecx, [esp + 0x24]
push 0x100
lea edx, [eax*8]
push ecx
sub edx, eax
push ebp
push ebp
lea eax, [edi + edx*4 - 0x1c]
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
je 0x100179fd
mov eax, dword [esp + 0x10]
push 0x20019
push 2
push ebp
lea ecx, [eax*8]
push 1
sub ecx, eax
lea edx, [edi + ecx*4 - 0x1c]
push edx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x100179fd
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
add ebx, 0x118
push eax
push ebx
push ebp
push ebp
push 0x10041efc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100179fd
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x128]
push ebx
mov dword [esp + 0x1c], 1
lea edx, [eax*8]
sub edx, eax
lea eax, [edi + edx*4 - 0x18]
push eax
push 0x10040058
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassImageIndex]
mov ecx, dword [ebx]
mov eax, dword [esp + 0x10]
inc ecx
mov dword [ebx], ecx
xor ebx, ebx
cmp eax, ebp
jle 0x1001799e
mov ebp, edi
push ebp
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDeleteDeviceInfo]
mov eax, dword [esp + 0x10]
inc ebx
add ebp, 0x1c
cmp ebx, eax
jl 0x1001798a
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x100179ae
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0xffffffff
je 0x100179ba
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
test edi, edi
je 0x100179c5
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
je 0x10017a03
mov ecx, dword [esp + 0x114]
lea edx, [esp + 0x10]
add ecx, 0x21c
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x10017a03
mov eax, 1
add esp, 0x110
ret
mov dword [esp + 0x18], ebp
jmp 0x1001799e
xor eax, eax
add esp, 0x110
ret
Function at 0x10017b40
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov ecx, dword [esp + 0xc]
sub esp, 0x350
lea eax, [esp + 4]
push ebx
mov ebx, dword [esp + 0x364]
push edi
mov edi, dword [esp + 0x360]
mov edx, dword [ebx]
push eax
mov eax, dword [esp + 0x360]
push ecx
push edx
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
mov dword [ebx], eax
je 0x10017b88
pop edi
mov eax, 1
pop ebx
add esp, 0x350
ret
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
lea edx, [esp + 0x118]
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, dword [0x10041f10]
lea eax, [esp + 0x14]
push edx
push eax
mov dword [edi - 1], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov esi, ecx
mov dword [esp + 0xc], eax
test esi, esi
je 0x10017cc1
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_strchr]
mov edi, 0x10041f14
lea esi, [esp + 0x148]
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x10017c9f
mov edi, 0x10041f18
lea esi, [esp + 0x148]
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10017c9f
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x25c]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x2a
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 + 0x260]
lea edi, [esp + 0x14c]
push ecx
call ebp
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x268]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x370]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x378]
push ecx
push edx
push eax
call fcn.10017b40
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x10017cbc
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x11c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov esi, eax
test esi, esi
jne 0x10017bee
mov eax, dword [esp + 0x10]
pop ebp
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop esi
pop edi
pop ebx
add esp, 0x350
ret
Function at 0x10017ce0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0x110
push ebp
lea eax, [esp + 4]
push esi
xor ebp, ebp
push eax
push 0x20019
push ebp
push 0x10041f1c
push reloc.WS2_32.dll_bind
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10017df2
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0xc]
push ecx
push eax
push eax
push eax
push 0x10041f48
push edx
call esi
test eax, eax
jne 0x10017d6f
mov eax, dword [esp + 0xc]
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
test ebp, ebp
je 0x10017d6f
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push ebp
push edx
push 0
push 0x10041f54
push eax
call esi
test eax, eax
jne 0x10017d6f
mov esi, 1
jmp 0x10017d71
xor esi, esi
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x10017de7
mov al, byte [ebp]
push ebx
test al, al
push edi
mov esi, ebp
je 0x10017dc0
mov ebx, dword [sym.imp.MSVCRT.dll_strchr]
push 0x3b
push esi
call ebx
add esp, 8
test eax, eax
je 0x10017da8
push 0x3b
push esi
call ebx
add esp, 8
mov byte [eax], 0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esi + ecx + 1]
lea esi, [esi + ecx + 1]
test al, al
jne 0x10017d91
mov al, byte [ebp]
mov ebx, ebp
test al, al
je 0x10017e63
cmp dword [esp + 0x18], 2
jne 0x10017dfd
lea edx, [esp + 0x1c]
push 0x104
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
jmp 0x10017e20
test ebp, ebp
je 0x10017df2
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
xor eax, eax
pop ebp
add esp, 0x110
ret
mov edi, ebx
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]
mov ecx, dword [esp + 0x12c]
mov edx, dword [esp + 0x128]
push ecx
mov ecx, dword [esp + 0x128]
lea eax, [esp + 0x20]
push edx
push eax
push ecx
call fcn.10017b40
add esp, 0x10
test eax, eax
jne 0x10017e63
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [ebx + ecx + 1]
lea ebx, [ebx + ecx + 1]
test al, al
jne 0x10017dcd
mov cl, byte [ebx]
xor edx, edx
test cl, cl
setne dl
push ebp
mov esi, edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop ebx
pop esi
pop ebp
add esp, 0x110
ret
Function at 0x10017e90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
xor ebp, ebp
push 6
push ebp
push ebp
push ebp
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x24], 0x104
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10017fb7
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0xc]
push eax
push edi
push esi
call fcn.10016e90
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x10017fb7
mov eax, dword [esp + 0xc]
push 0x20019
push 2
push 0
lea ecx, [eax*8]
push 1
sub ecx, eax
lea edx, [ebp + ecx*4 - 0x1c]
push edx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x10017fb7
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
add edi, 0x118
push eax
push edi
push 0
push 0
push 0x10041f60
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10017fb7
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x20]
push edi
mov dword [esp + 0x20], 1
lea edx, [eax*8]
sub edx, eax
lea eax, [ebp + edx*4 - 0x18]
push eax
push 0x10040058
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassImageIndex]
mov ecx, dword [edi]
mov eax, dword [esp + 0xc]
inc ecx
mov dword [edi], ecx
xor edi, edi
test eax, eax
jle 0x10017f85
push ebx
mov ebx, ebp
push ebx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDeleteDeviceInfo]
mov eax, dword [esp + 0x10]
inc edi
add ebx, 0x1c
cmp edi, eax
jl 0x10017f70
pop ebx
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x10017f95
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0xffffffff
je 0x10017fa1
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
test ebp, ebp
je 0x10017fac
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
add esp, 0xc
ret
mov dword [esp + 0x1c], 0
jmp 0x10017f85
Function at 0x1001b180
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
mov dword [esp + 4], 0
push eax
push 0x20019
push 0
push 0x10042618
push reloc.WS2_32.dll_bind
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1001b1db
lea ecx, [esp]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x10042650
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1001b1f9
mov ecx, dword [esp + 0x10]
lea edx, [esp + 8]
lea eax, [esp + 4]
push edx
mov edx, dword [esp + 4]
push eax
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x14]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0xc
ret

Function at 0x1001b220
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x14]
xor eax, eax
push ecx
test edi, edi
push 0xf003f
push 0
setne al
push 0x10042688
push reloc.WS2_32.dll_bind
mov dword [esp + 0x1c], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1001b27e
lea edx, [esp + 0x14]
push 0
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREIBMThinkPadSoftwareInstallerDisableInstall
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x1001b27e
xor esi, esi
jmp 0x1001b283
mov esi, 1
test edi, edi
je 0x1001b2d3
test esi, esi
je 0x1001b2c0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
lea eax, [esp + 8]
push 4
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1001b2c0
mov edx, dword [esp + 0x14]
mov esi, 1
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ecx
ret
mov edx, dword [esp + 0x14]
xor esi, esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ecx
ret
test esi, esi
je 0x1001b2e7
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ecx
ret

Function at 0x1001b300
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push esi
push eax
push 0x20019
push 0
push 0x100426f8
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
push eax
push 0
push ecx
push edx
mov dword [esp + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
add esp, 8
ret
Function at 0x1001b370
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftInternet_Explorer
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001b432
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x14]
push 0x1004274c
push eax
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 4]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1001b432
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_strchr]
push ebp
push edi
lea edx, [esp + 0x18]
push 0x2e
push edx
call ebx
mov ebp, dword [sym.imp.MSVCRT.dll_atoi]
mov byte [eax], 0
lea eax, [esp + 0x20]
push eax
call ebp
mov esi, dword [esp + 0x12c]
lea edi, [esp + 0x24]
shl eax, 8
mov word [esi], ax
or ecx, 0xffffffff
xor eax, eax
push 0x2e
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + ecx + 0x29]
push edi
call ebx
push edi
mov byte [eax], 0
call ebp
add esp, 0x18
or word [esi], ax
mov eax, 1
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10c
ret
xor eax, eax
pop esi
add esp, 0x10c
ret