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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
push 1
xor esi, esi
push esi
push dword [0x1016bc0]
mov dword [ebp - 8], esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100ac77
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push 0x1005618
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 8], esi
pop esi
setne al
leave
ret

Function at 0x100aecf
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, dword [0x1016c6c]
dec eax
je 0x100aee1
dec eax
je 0x100aedd
xor eax, eax
ret
xor eax, eax
inc eax
ret
jmp fcn.0100ac87

Function at 0x100aeeb
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x101200c]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
call fcn.0100aecf
push dword [0x1016bc4]
mov edi, 0x10169b8
push edi
push 0x100597c
mov ebx, 0x104
lea eax, [ebp - 0x210]
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
push dword [0x1016bc4]
push 0x1005704
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x100af50
call fcn.01006e83
test eax, eax
mov eax, 0x1005810
jne 0x100af55
mov eax, 0x1005800
xor esi, esi
push esi
push 5
push esi
push 0x10167b0
push edi
push eax
lea eax, [ebp - 0x210]
push eax
push esi
call dword [0x1016c74]
push 1
call fcn.01008b8a
call fcn.01006e83
test eax, eax
je 0x100afe6
push ebx
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x10c]
push eax
mov dword [ebp - 0x214], esi
call fcn.01008309
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 0x105
sub ecx, eax
push ecx
push 0x1001dd8
lea eax, [ebp + eax - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0xa
push esi
push 0x1001dc0
lea eax, [ebp - 0x10c]
push eax
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100d528
leave
ret

Function at 0x100b1da
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100b238
lea eax, [ebp - 0x10]
push eax
push 0x1005b54
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x100b238
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x100b243
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x100b260
push 4
push 0x40
push 0x3fd
push 0
call fcn.0100d141
jmp 0x100b263
push 6
pop eax
cmp eax, 6
jne 0x100b282
cmp dword [0x1016bd8], 1
jne 0x100b27d
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x100b282
call fcn.0100b1da
pop ebp
ret 4
Function at 0x100b6b0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
and dword [ebp - 0x10], 0
lea eax, [ebp - 4]
push eax
push 9
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100b6e5
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x100b7a5
push esi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x100b72b
cmp eax, 0xea
je 0x100b72b
cmp eax, 0x7a
je 0x100b72b
mov esi, eax
jmp 0x100b740
mov eax, dword [ebp - 0xc]
inc eax
push eax
lea eax, [ebp - 8]
push eax
call fcn.01006d75
test eax, eax
jne 0x100b74d
push 8
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x100b7a4
xor esi, esi
mov eax, dword [ebp - 0xc]
inc eax
push eax
push dword [ebp - 8]
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x100b774
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0100b6b0
test eax, eax
je 0x100b775
inc esi
cmp eax, 0x103
je 0x100b781
cmp esi, dword [ebp - 0x14]
jb 0x100b74f
mov eax, dword [0x1016c90]
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop esi
leave
ret 8
Function at 0x100bcd8
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x101200c]
push ebx
push edi
push 0xc
pop ecx
mov dword [ebp - 4], eax
xor ebx, ebx
xor eax, eax
mov byte [ebp - 0x38], bl
lea edi, [ebp - 0x37]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x3c]
push eax
push 3
push ebx
push dword [0x1016bc0]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100bd95
cmp dword [0x1016c60], ebx
push esi
mov dword [ebp - 0x40], 0x32
mov esi, 0x10051d8
mov edi, 0x1004fe0
jne 0x100bd59
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x44]
push eax
push ebx
push edi
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x38]
push eax
jmp 0x100bd63
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push 1
push ebx
push 0x1004fd0
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push 1
push ebx
push edi
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0100d528
leave
ret

Function at 0x100bf4f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x101200c]
push ebx
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x10055a8
push 0x80000002
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100bff0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 0x10023cc
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 0x14
mov byte [ebp - 0x18], bl
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100bfe7
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
mov word [ebp - 0xc], 5
mov word [ebp - 0xa], bx
mov word [ebp - 8], bx
mov word [ebp - 6], bx
call fcn.0100ca44
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0100c817
mov esi, eax
cmp esi, ebx
jne 0x100bfe7
push 1
push 0x1005c8c
call fcn.0100d0a2
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
call fcn.0100d528
leave
ret
Function at 0x100c18b
Capabilities:
Get common file path
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x101200c]
push ebx
push esi
push edi
push 2
pop edi
cmp dword [0x1016bd8], edi
mov esi, 0x104
mov dword [ebp - 4], eax
lea eax, [ebp - 0x108]
push esi
jne 0x100c1cc
push 0x1005b2c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [ebp - 0x21c], edi
jmp 0x100c1dd
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 0x21c], 1
xor eax, eax
xor edi, edi
cmp dword [ebp + 8], edi
setne al
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
push 0x1005b44
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
cmp dword [ebp + 8], edi
mov eax, 0x1002494
jne 0x100c215
mov eax, 0x100247c
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x210]
push ecx
push edi
push 0x20006
push edi
push edi
push edi
push eax
push 0x80000000
call ebx
test eax, eax
jne 0x100c373
push esi
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp + 8]
neg eax
sbb eax, eax
add eax, 0x40d
push eax
push dword [0x1016c8c]
call dword [sym.imp.USER32.dll_LoadStringA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push edi
push edi
push dword [ebp - 0x210]
call esi
push 4
lea eax, [ebp - 0x218]
push eax
push 4
push edi
push 0x1005b20
push dword [ebp - 0x210]
mov dword [ebp - 0x218], 2
call esi
push 1
push 0x10025a4
push 1
push edi
push 0x1005b10
push dword [ebp - 0x210]
call esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push 0x1005b04
push dword [ebp - 0x210]
call ebx
test eax, eax
jne 0x100c312
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
push edi
push edi
push dword [ebp - 0x214]
call esi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push 0x1002281
push dword [ebp - 0x210]
call ebx
test eax, eax
jne 0x100c367
cmp dword [ebp + 8], edi
je 0x100c348
push 0x2e
push 0x1005aa8
jmp 0x100c34f
push 0x2c
push 0x1005ad8
push 1
push edi
push edi
push dword [ebp - 0x214]
call esi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100d528
leave
ret 4

Function at 0x100c458
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, dword [0x1016c6c]
dec eax
dec eax
jne 0x100c466
jmp fcn.0100c003
ret
Function at 0x100c65c
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x101200c]
mov ecx, dword [ebp + 0xc]
push esi
lea edx, [ebp - 0x118]
push edx
push 0x2000000
xor esi, esi
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x124], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
mov dword [ebp - 0x120], eax
jne 0x100c78e
push ebx
push edi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push esi
push dword [ebp - 0x118]
mov ebx, 0x105
mov dword [ebp - 0x110], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp eax, esi
mov dword [ebp - 0x120], eax
jne 0x100c71a
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x100c6f5
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x118]
call fcn.0100c65c
push dword [ebp - 0x110]
dec dword [ebp - 0x114]
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x114]
push dword [ebp - 0x118]
call edi
test eax, eax
je 0x100c6e3
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x124], esi
je 0x100c748
push dword [ebp - 0x124]
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 0x120], eax
jmp 0x100c78c
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
jmp 0x100c767
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x100c78c
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
push dword [ebp - 0x11c]
mov dword [ebp - 0x110], ebx
call edi
test eax, eax
je 0x100c750
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x120]
pop esi
call fcn.0100d528
leave
ret 8

Function at 0x100c7a6
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [0x1016bd8], 2
jne 0x100c80b
mov eax, dword [section..data]
cmp eax, 0xffffffff
jne 0x100c7e2
push 0x1005d88
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x100c7db
push 0x1005d6c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x100c7dd
xor eax, eax
mov dword [section..data], eax
test eax, eax
je 0x100c7e9
pop ebp
jmp eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
pop ebp
ret 8
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
Function at 0x100c869
Capabilities:
Query environment variable
Query or enumerate registry value
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x101200c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x224]
push eax
push 0x20019
xor esi, esi
push esi
push 0x10054c4
push 0x80000002
mov dword [ebp - 0x220], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100c9e6
mov byte [ebp - 8], al
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x228]
push eax
push esi
push 0x1005510
push dword [ebp - 0x224]
mov dword [ebp - 0x218], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100c9da
cmp dword [ebp - 0x228], 2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push edi
mov esi, 0x105
jne 0x100c949
push 0x41
pop ecx
lea edi, [ebp - 0x214]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x10c]
push eax
call ebx
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub eax, 4
jmp 0x100c952
mov eax, dword [ebp - 0x218]
sub eax, 5
mov ecx, esi
sub ecx, eax
push ecx
mov dword [ebp - 0x218], eax
push 0x1005910
lea eax, [ebp + eax - 0x10c]
push eax
call ebx
xor edi, edi
inc edi
cmp dword [0x1016bd8], edi
jne 0x100c98c
push dword [ebp + 0xc]
push dword [ebp - 0x21c]
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [ebp - 0x10c]
push eax
push esi
lea eax, [ebp - 0x214]
push eax
push 0x10025a4
push dword [ebp - 0x21c]
push 0x1005900
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, edi
jbe 0x100c9d8
push 0x1005a5c
lea eax, [ebp - 0x214]
push eax
mov byte [ebp - 0x212], 0
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x100c9d8
mov dword [ebp - 0x220], edi
pop edi
pop ebx
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x220]
pop esi
call fcn.0100d528
leave
ret 8
Function at 0x100ca9f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x101200c]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x20]
push eax
push 1
xor ebx, ebx
push ebx
push dword [0x1016bc0]
mov dword [ebp - 0x2c], esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100cb44
push edi
push 0x14
cmp esi, ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
pop edi
je 0x100cb0f
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push 0x1004fd0
push dword [ebp - 0x20]
mov dword [ebp - 0x24], edi
mov byte [ebp - 8], bl
call esi
push dword [ebp - 0x2c]
lea eax, [ebp - 0x1c]
push eax
call fcn.0100ca44
cmp dword [ebp - 0x28], ebx
je 0x100cb3a
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push 0x1004fe0
push dword [ebp - 0x20]
mov dword [ebp - 0x24], edi
mov byte [ebp - 8], bl
call esi
push dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
push eax
call fcn.0100ca44
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0100d528
leave
ret 8

Function at 0x100cbad
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push 1
xor esi, esi
push esi
push dword [0x1016bc0]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100cc08
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 4
push esi
push esi
push 0x1004fd8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret 4
Function at 0x100cc15
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x101200c]
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
cmp ebx, esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x158], edi
mov dword [ebp - 0x154], esi
je 0x100cc49
mov byte [ebx], 0
cmp edi, esi
je 0x100cc51
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ecx
push 0x10053b8
push 0x10024a4
lea eax, [ebp - 0x148]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
lea eax, [ebp - 0x14c]
push eax
xor edi, edi
inc edi
push edi
push esi
lea eax, [ebp - 0x148]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100cd35
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x15c]
push eax
push esi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0x1005414
push dword [ebp - 0x14c]
mov dword [ebp - 0x150], 4
call esi
test eax, eax
jne 0x100cd29
cmp dword [ebp - 0x15c], edi
jne 0x100cd29
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 0x10023cc
push dword [ebp - 0x14c]
mov dword [ebp - 0x150], 0x40
call esi
test eax, eax
jne 0x100cd29
cmp dword [ebp - 0x158], eax
je 0x100cd11
push dword [ebp - 0x158]
lea eax, [ebp - 0x44]
push eax
call fcn.0100ca44
test ebx, ebx
je 0x100cd23
push dword [ebp + 0x14]
lea eax, [ebp - 0x44]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [ebp - 0x154], edi
push dword [ebp - 0x14c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x154]
pop edi
pop esi
pop ebx
call fcn.0100d528
leave
ret 0x10
Function at 0x100cd4f
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x101200c]
and dword [ebp - 0x10c], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x118]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
mov dword [ebp - 0x124], eax
mov byte [esi], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x100cd9c
mov dword [ebp - 0x10c], 0x80004005
jmp 0x100ceb0
mov eax, dword [0x1016c90]
mov ecx, dword [eax]
push edi
push ebx
push eax
call dword [ecx + 0xc]
mov edi, eax
test edi, edi
mov dword [ebp - 0x110], edi
jne 0x100cdc4
mov dword [ebp - 0x10c], 0x8007000e
jmp 0x100ce95
push dword [ebp - 0x110]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
push ebx
rep stosb byte es:[edi], al
push dword [ebp - 0x118]
push dword [ebp - 0x124]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x100ce01
mov dword [ebp - 0x10c], 0x80004005
jmp 0x100ce95
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x120]
push eax
push 0x1005c38
push dword [ebp - 0x110]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x100ce2c
cmp dword [ebp - 0x114], 4
jae 0x100cdf2
mov eax, dword [ebp - 0x120]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push 0x1005c10
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x110]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x100ce85
cmp dword [ebp - 0x114], eax
jne 0x100cdf2
push dword [ebp + 0x10]
push dword [ebp - 0x11c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp - 0x110], 0
pop edi
je 0x100ceb0
mov eax, dword [0x1016c90]
push dword [ebp - 0x110]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10c]
pop esi
pop ebx
call fcn.0100d528
leave
ret 0xc