joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a776
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 [0x1016be0]
mov dword [ebp - 8], esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100a7c8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push 0x100560c
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 0x100aa20
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, dword [0x1016c8c]
dec eax
je 0x100aa32
dec eax
je 0x100aa2e
xor eax, eax
ret
xor eax, eax
inc eax
ret
jmp fcn.0100a7d8

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x101203c]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
call fcn.0100aa20
push dword [0x1016be4]
mov edi, 0x10169d8
push edi
push 0x1005970
mov ebx, 0x104
lea eax, [ebp - 0x210]
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
push dword [0x1016be4]
push 0x10056f8
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x100aaa1
call fcn.01006a03
test eax, eax
mov eax, 0x1005804
jne 0x100aaa6
mov eax, 0x10057f4
xor esi, esi
push esi
push 5
push esi
push 0x10167d0
push edi
push eax
lea eax, [ebp - 0x210]
push eax
push esi
call dword [0x1016c94]
push 1
call fcn.010086ef
call fcn.01006a03
test eax, eax
je 0x100ab37
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.01007e6e
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 0x105
sub ecx, eax
push ecx
push 0x1001da8
lea eax, [ebp + eax - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0xa
push esi
push 0x1001d90
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.0100d058
leave
ret

Function at 0x100ad2b
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 0x100ad89
lea eax, [ebp - 0x10]
push eax
push 0x1005b48
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 0x100ad89
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x100ad94
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x100adb1
push 4
push 0x40
push 0x3fd
push 0
call fcn.0100cc77
jmp 0x100adb4
push 6
pop eax
cmp eax, 6
jne 0x100add3
cmp dword [0x1016bf8], 1
jne 0x100adce
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x100add3
call fcn.0100ad2b
pop ebp
ret 4
Function at 0x100b201
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 0x100b236
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x100b2f6
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 0x100b27c
cmp eax, 0xea
je 0x100b27c
cmp eax, 0x7a
je 0x100b27c
mov esi, eax
jmp 0x100b291
mov eax, dword [ebp - 0xc]
inc eax
push eax
lea eax, [ebp - 8]
push eax
call fcn.010068f5
test eax, eax
jne 0x100b29e
push 8
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x100b2f5
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 0x100b2c5
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0100b201
test eax, eax
je 0x100b2c6
inc esi
cmp eax, 0x103
je 0x100b2d2
cmp esi, dword [ebp - 0x14]
jb 0x100b2a0
mov eax, dword [0x1016cb0]
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 0x100b81f
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x101203c]
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 [0x1016be0]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100b8dc
cmp dword [0x1016c80], ebx
push esi
mov dword [ebp - 0x40], 0x32
mov esi, 0x10051cc
mov edi, 0x1004fcc
jne 0x100b8a0
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 0x100b8aa
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push 1
push ebx
push 0x1004fbc
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.0100d058
leave
ret

Function at 0x100ba96
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x101203c]
push esi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
push 0x20019
xor esi, esi
push esi
push 0x100559c
push 0x80000002
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100bb34
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
push esi
push 0x10023a4
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0x14
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100bb2b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
mov word [ebp - 0xc], 5
mov word [ebp - 0xa], si
mov word [ebp - 8], si
mov word [ebp - 6], si
call fcn.0100c580
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0100c35b
mov edi, eax
cmp edi, esi
jne 0x100bb2b
push 1
push 0x1005c80
call fcn.0100cbd8
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
call fcn.0100d058
leave
ret
Function at 0x100bccf
Capabilities:
Get common file path
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x101203c]
push ebx
push esi
push edi
push 2
pop edi
cmp dword [0x1016bf8], edi
mov esi, 0x104
mov dword [ebp - 4], eax
lea eax, [ebp - 0x108]
push esi
jne 0x100bd10
push 0x1005b20
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [ebp - 0x21c], edi
jmp 0x100bd21
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 0x1005b38
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, 0x100246c
jne 0x100bd59
mov eax, 0x1002454
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 0x100beb7
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 [0x1016cac]
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 0x1005b14
push dword [ebp - 0x210]
mov dword [ebp - 0x218], 2
call esi
push 1
push 0x100257c
push 1
push edi
push 0x1005b04
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 0x1005af8
push dword [ebp - 0x210]
call ebx
test eax, eax
jne 0x100be56
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 0x1002259
push dword [ebp - 0x210]
call ebx
test eax, eax
jne 0x100beab
cmp dword [ebp + 8], edi
je 0x100be8c
push 0x2e
push 0x1005a9c
jmp 0x100be93
push 0x2c
push 0x1005acc
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.0100d058
leave
ret 4

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

Disassembly:
mov eax, dword [0x1016c8c]
dec eax
dec eax
jne 0x100bfaa
jmp fcn.0100bb47
ret
Function at 0x100c1a0
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 [0x101203c]
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 0x100c2d2
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 0x100c25e
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x100c239
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x118]
call fcn.0100c1a0
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 0x100c227
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x124], esi
je 0x100c28c
push dword [ebp - 0x124]
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 0x120], eax
jmp 0x100c2d0
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
jmp 0x100c2ab
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x100c2d0
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 0x100c294
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x120]
pop esi
call fcn.0100d058
leave
ret 8

Function at 0x100c2ea
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [0x1016bf8], 2
jne 0x100c34f
mov eax, dword [0x1012030]
cmp eax, 0xffffffff
jne 0x100c326
push 0x1005d80
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x100c31f
push 0x1005d64
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x100c321
xor eax, eax
mov dword [0x1012030], eax
test eax, eax
je 0x100c32d
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 0x100c3ad
Capabilities:
Query environment variable
Query or enumerate registry value
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x101203c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x21c]
push eax
push 0x20019
xor edi, edi
push edi
push 0x10054b8
push 0x80000002
mov dword [ebp - 0x218], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100c522
push esi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x220]
push eax
push edi
push 0x1005504
push dword [ebp - 0x21c]
mov esi, 0x104
mov dword [ebp - 0x210], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100c515
cmp dword [ebp - 0x220], 2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynA]
jne 0x100c485
push 0x41
pop ecx
lea edi, [ebp - 0x108]
rep stosd dword es:[edi], eax
push esi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push esi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub eax, 4
jmp 0x100c48e
mov eax, dword [ebp - 0x210]
sub eax, 5
mov ecx, esi
sub ecx, eax
push ecx
mov dword [ebp - 0x210], eax
push 0x1005904
lea eax, [ebp + eax - 0x20c]
push eax
call ebx
xor edi, edi
inc edi
cmp dword [0x1016bf8], edi
pop ebx
jne 0x100c4c9
push dword [ebp + 0xc]
push dword [ebp - 0x214]
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [ebp - 0x20c]
push eax
push esi
lea eax, [ebp - 0x108]
push eax
push 0x100257c
push dword [ebp - 0x214]
push 0x10058f4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, edi
jbe 0x100c515
push 0x1005a50
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 0x106], 0
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x100c515
mov dword [ebp - 0x218], edi
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
pop edi
call fcn.0100d058
leave
ret 8
Function at 0x100c5db
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x101203c]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x1c]
push eax
push 1
xor ebx, ebx
push ebx
push dword [0x1016be0]
mov dword [ebp - 0x28], esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100c67a
push edi
push 0x14
cmp esi, ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
pop edi
je 0x100c648
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 0x1004fbc
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], edi
call esi
push dword [ebp - 0x28]
lea eax, [ebp - 0x18]
push eax
call fcn.0100c580
cmp dword [ebp - 0x24], ebx
je 0x100c670
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 0x1004fcc
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], edi
call esi
push dword [ebp - 0x24]
lea eax, [ebp - 0x18]
push eax
call fcn.0100c580
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0100d058
leave
ret 8

Function at 0x100c6e3
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 [0x1016be0]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100c73e
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 4
push esi
push esi
push 0x1004fc4
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 0x100c74b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x101203c]
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 0x100c77f
mov byte [ebx], 0
cmp edi, esi
je 0x100c787
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ecx
push 0x10053ac
push 0x100247c
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 0x100c86b
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 0x1005408
push dword [ebp - 0x14c]
mov dword [ebp - 0x150], 4
call esi
test eax, eax
jne 0x100c85f
cmp dword [ebp - 0x15c], edi
jne 0x100c85f
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 0x10023a4
push dword [ebp - 0x14c]
mov dword [ebp - 0x150], 0x40
call esi
test eax, eax
jne 0x100c85f
cmp dword [ebp - 0x158], eax
je 0x100c847
push dword [ebp - 0x158]
lea eax, [ebp - 0x44]
push eax
call fcn.0100c580
test ebx, ebx
je 0x100c859
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.0100d058
leave
ret 0x10
Function at 0x100c885
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x101203c]
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 0x100c8d2
mov dword [ebp - 0x10c], 0x80004005
jmp 0x100c9e6
mov eax, dword [0x1016cb0]
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 0x100c8fa
mov dword [ebp - 0x10c], 0x8007000e
jmp 0x100c9cb
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 0x100c937
mov dword [ebp - 0x10c], 0x80004005
jmp 0x100c9cb
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x120]
push eax
push 0x1005c2c
push dword [ebp - 0x110]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x100c962
cmp dword [ebp - 0x114], 4
jae 0x100c928
mov eax, dword [ebp - 0x120]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push 0x1005c04
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 0x100c9bb
cmp dword [ebp - 0x114], eax
jne 0x100c928
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 0x100c9e6
mov eax, dword [0x1016cb0]
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.0100d058
leave
ret 0xc
Function at 0x100ca9c
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x101203c]
mov dword [ebp - 4], eax
mov eax, dword [0x1012034]
push ebx
xor ebx, ebx
cmp eax, 2
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ebx
jne 0x100cbc8
cmp dword [0x1016bf8], eax
je 0x100caeb
xor eax, eax
inc eax
mov dword [0x1012034], eax
jmp 0x100cbc8
lea eax, [ebp - 0x14]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100cbc8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x100cb35
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100cb35
push dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
call fcn.010068f5
cmp dword [ebp - 0x10], ebx
je 0x100cba8
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push 2
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x100cba8
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x100cba8
mov eax, dword [ebp - 0x10]
xor esi, esi
cmp dword [eax], ebx
jbe 0x100cb9f
push dword [ebp - 0x20]
push dword [eax + esi*8 + 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x100cb94
mov eax, dword [ebp - 0x10]
inc esi
cmp esi, dword [eax]
jb 0x100cb79
jmp 0x100cb9f
xor eax, eax
inc eax
mov dword [0x1012034], eax
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], ebx
pop esi
je 0x100cbc5
mov eax, dword [0x1016cb0]
push dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0100d058
leave
ret

Function at 0x100cbd8
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [0x1016ca8], 0xffffffff
mov eax, dword [0x101203c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
je 0x100cc66
cmp dword [ebp + 0xc], 0
je 0x100cc17
mov byte [ebp - 0x104], 0xd
mov byte [ebp - 0x103], 0xa
mov dword [ebp - 0x108], 2
jmp 0x100cc1e
and dword [ebp - 0x108], 0
mov ecx, dword [ebp - 0x108]
mov edx, 0x100
sub edx, ecx
push edx
push eax
lea eax, [ebp + ecx - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x104]
push eax
push dword [0x1016ca8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
call fcn.0100d058
leave
ret 8