joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006c32
Capabilities:
Get common file path
Link many functions at runtime
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1002118
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1006c60
push esi
push esi
push esi
push esi
push 0x100213c
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]
mov eax, esi
pop esi
leave
ret

Function at 0x1007216
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x101203c]
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x210]
push eax
xor edi, edi
call fcn.01006c6a
test eax, eax
je 0x100722d
inc edi
jmp 0x1007330
cmp dword [ebp - 0x210], edi
jbe 0x1007330
cmp dword [ebp - 0x210], 2
ja 0x1007330
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, edi
je 0x100732f
cmp eax, esi
ja 0x100732f
push esi
lea eax, [ebp - 0x108]
push eax
push 0x100257c
push reloc.ADVAPI32.dll_RegQueryValueExA
lea eax, [ebp - 0x20c]
push eax
call fcn.010105b4
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, edi
je 0x100732f
push 0x1001268
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x1007328
call eax
lea eax, [ebp - 0x218]
push eax
call fcn.01006c6a
test eax, eax
jne 0x1007325
cmp dword [ebp - 0x210], 2
jne 0x1007328
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push 0x1002148
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1007328
push 0xc
push reloc.KERNEL32.dll_SetUnhandledExceptionFilter
push 1
push edi
push 0x100217c
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1007317
xor edi, edi
inc edi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1007328
xor edi, edi
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
call fcn.0100d058
leave
ret 4

Function at 0x10073bc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push ebx
call fcn.01007201
push ebx
push dword [ebp + 8]
mov esi, reloc.ADVAPI32.dll_RegQueryValueExA
push esi
push reloc.ADVAPI32.dll_RegQueryValueExA
call fcn.01006f27
test bl, 0x40
je 0x10073c6
call fcn.01006a03
test eax, eax
jne 0x10073d0
push ebx
push dword [ebp + 8]
push esi
call fcn.01007150
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
Function at 0x1007510
Capabilities:
Query environment variable
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 edi
mov edi, dword [ebp + 8]
push 1
push 0x1001270
mov dword [ebp - 4], eax
call fcn.0100cbd8
push 0
push edi
call fcn.0100cbd8
test edi, edi
je 0x1007624
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
cmp byte [edi], 0
je 0x1007623
push 0x40
lea eax, [ebp - 0x44]
push eax
push edi
call fcn.010073dd
mov edi, eax
push 0x100562c
lea eax, [ebp - 0x44]
push eax
call esi
test eax, eax
jne 0x10074ba
mov dword [0x1016c84], 2
jmp 0x100761b
push 0x1005638
lea eax, [ebp - 0x44]
push eax
call esi
test eax, eax
jne 0x10074d8
mov dword [0x1016c84], 1
jmp 0x100761b
push 0x1005644
lea eax, [ebp - 0x44]
push eax
call esi
test eax, eax
jne 0x10074f6
mov dword [0x1016c88], 1
jmp 0x100761b
push 0x100564c
lea eax, [ebp - 0x44]
push eax
call esi
test eax, eax
jne 0x1007511
or dword [0x1016c7c], 2
jmp 0x100761b
push 0x100565c
lea eax, [ebp - 0x44]
push eax
call esi
test eax, eax
lea eax, [ebp - 0x44]
jne 0x100756e
push 0x40
push eax
push edi
call fcn.010073dd
mov edi, eax
push 0x1005688
lea eax, [ebp - 0x44]
push eax
call esi
test eax, eax
jne 0x100754c
mov dword [0x1016c80], 1
jmp 0x100761b
push 0x1005690
lea eax, [ebp - 0x44]
push eax
call esi
test eax, eax
jne 0x100761b
mov dword [0x1016c80], 2
jmp 0x100761b
push 0x1005654
push eax
call esi
test eax, eax
lea eax, [ebp - 0x44]
jne 0x10075be
push 0x40
push eax
push edi
call fcn.010073dd
mov edi, eax
push 0x1005678
lea eax, [ebp - 0x44]
push eax
call esi
test eax, eax
jne 0x10075a3
mov dword [0x1016c8c], 1
jmp 0x100761b
push 0x100567c
lea eax, [ebp - 0x44]
push eax
call esi
test eax, eax
jne 0x100761b
mov dword [0x1016c8c], 2
jmp 0x100761b
push 0x1005664
push eax
call esi
test eax, eax
jne 0x10075de
push 0x104
push 0x1016adc
push edi
call fcn.010073dd
mov edi, eax
jmp 0x100761b
push 0x100566c
lea eax, [ebp - 0x44]
push eax
call esi
test eax, eax
jne 0x100761b
push 0x40
lea eax, [ebp - 0x44]
push eax
push edi
call fcn.010073dd
mov edi, eax
push 0x1005674
lea eax, [ebp - 0x44]
push eax
mov dword [0x1016c84], 3
call esi
test eax, eax
jne 0x100761b
or dword [0x1016c7c], 1
test edi, edi
jne 0x1007485
pop esi
mov ecx, dword [ebp - 4]
pop edi
call fcn.0100d058
leave
ret 4
Function at 0x1007b61
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x101203c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x328], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x320], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x31c], eax
lea eax, [ebp - 0x314]
push eax
push 0x1006674
push 1
push 0
push 0x1006684
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
mov dword [ebp - 0x318], eax
jl 0x1007c01
push ebx
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x108]
push eax
push esi
call fcn.01010436
mov eax, dword [ebp - 0x314]
mov ecx, dword [eax]
lea edx, [ebp - 0x108]
push edx
push eax
call dword [ecx + 0x50]
test eax, eax
jl 0x1007bf4
xor esi, esi
cmp edi, esi
je 0x1007b51
mov eax, dword [ebp - 0x314]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x2c]
test eax, eax
jl 0x1007bf4
cmp dword [ebp - 0x320], esi
je 0x1007b73
mov eax, dword [ebp - 0x314]
push dword [ebp - 0x320]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test eax, eax
jl 0x1007bf4
cmp dword [ebp - 0x31c], esi
je 0x1007b94
push dword [ebp + 0x1c]
mov eax, dword [ebp - 0x314]
push dword [ebp - 0x31c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
test eax, eax
jl 0x1007bf4
mov eax, dword [ebp - 0x314]
mov ecx, dword [eax]
lea edx, [ebp - 0x324]
push edx
push 0x1006664
push eax
call dword [ecx]
cmp eax, esi
mov dword [ebp - 0x318], eax
jl 0x1007bf4
push ebx
lea eax, [ebp - 0x310]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x328]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x324]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x310]
push edx
push eax
call dword [ecx + 0x18]
mov dword [ebp - 0x318], eax
mov eax, dword [ebp - 0x324]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x314]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x318]
pop edi
pop esi
call fcn.0100d058
leave
ret 0x18
Function at 0x1007e08
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push esi
call edi
test eax, eax
jne 0x1007e60
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1007e60
add esi, 3
push ebx
jmp 0x1007e2b
xor eax, eax
mov al, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
jne 0x1007e22
cmp byte [esi], 0x5c
je 0x1007e30
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
cmp byte [esi], 0
jne 0x1007e0e
mov bl, byte [esi]
push 0
push dword [ebp + 8]
mov byte [esi], 0
call edi
test eax, eax
jne 0x1007e4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1007e56
test bl, bl
mov byte [esi], bl
je 0x1007e5f
inc esi
jmp 0x1007e2b
mov dword [ebp - 4], 0x80004005
mov byte [esi], bl
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 4
Function at 0x10084f9
Capabilities:
Read .ini file
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
xor esi, esi
inc esi
sub eax, 0
je 0x100853c
dec eax
je 0x1008536
dec eax
je 0x1008510
dec eax
dec eax
jne 0x1008559
cmp dword [ebp + 0xc], 0
je 0x1008559
cmp dword [0x1016bf8], 2
jne 0x1008559
mov eax, dword [0x1016bec]
cmp eax, 5
ja 0x1008557
jne 0x1008559
cmp dword [0x1016bf0], 0
jbe 0x1008559
jmp 0x1008557
cmp dword [ebp + 0xc], 0
je 0x1008559
cmp dword [0x1016bf8], 2
jne 0x100854e
cmp dword [0x1016bec], 5
jae 0x1008557
call fcn.01007c1a
test eax, eax
je 0x1008559
xor esi, esi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x100860b
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x1008587
jle 0x10085ac
cmp eax, 2
jle 0x10085e4
cmp eax, 3
je 0x10085b3
cmp eax, 4
jne 0x10085ac
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x10085ac
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10085ac
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
cmp dword [ebp + 0xc], ebx
je 0x10085ac
cmp dword [ebp + 0x10], ebx
je 0x10085ac
push ebx
push 0x80
push 4
push ebx
push 3
push 0x40000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x10085ac
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10085ac
mov edi, dword [ebp + 0x10]
cmp edi, ebx
je 0x10085ac
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
je 0x100860b
and eax, 0xfffffffe
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp + 0xc], ebx
je 0x10085ac
cmp dword [ebp + 0x14], ebx
je 0x10085ac
call fcn.01006a03
test eax, eax
jne 0x10085ac
push 0xfffffffffffffffe
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push edi
push ebx
push dword [ebp + 0x14]
call fcn.01007aa8
push 1
push edi
call esi
jmp 0x10085ac
Function at 0x100a327
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor edi, edi
push edi
push 0x10055c4
mov esi, 0x80000002
push esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov ebx, 0x10055e8
jne 0x100a2d1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100a2c8
cmp dword [ebp - 0x14], 4
jne 0x100a2c8
mov eax, dword [ebp - 8]
and al, 3
xor cl, cl
cmp cl, al
sbb eax, eax
neg eax
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push dword [0x1016be0]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x100a327
cmp dword [ebp - 0xc], edi
je 0x100a314
push 4
lea eax, [ebp - 8]
push eax
push 4
push edi
push ebx
push dword [ebp - 4]
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x100a31e
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100a390
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x360
cmp dword [0x1016bf8], 2
mov eax, dword [0x101203c]
mov dword [ebp - 4], eax
jne 0x100a360
push 1
push 0x1001d40
call fcn.0100cbd8
xor eax, eax
jmp 0x100a556
push ebx
push esi
push edi
xor edi, edi
inc edi
push edi
push 0x1001d1c
call fcn.0100cbd8
mov eax, 0x10165c8
mov dword [ebp - 0x33c], eax
mov dword [ebp - 0x35c], eax
lea ecx, [ebp - 0x108]
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x354], eax
mov eax, ecx
mov dword [ebp - 0x34c], eax
mov dword [ebp - 0x344], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x324], eax
mov eax, ecx
mov dword [ebp - 0x31c], eax
mov eax, dword [0x1016c8c]
dec eax
mov dword [ebp - reloc.KERNEL32.dll_VirtualProtect], 0x1001bc8
mov dword [ebp - reloc.KERNEL32.dll_GetCurrentThreadId], 0x1001c0c
mov dword [ebp - 0x334], ecx
mov dword [ebp - reloc.USER32.dll_ExitWindowsEx], 0x1001bd8
mov dword [ebp - 0x32c], ecx
mov dword [ebp - reloc.KERNEL32.dll_GetCurrentThreadId], 0x1001c60
mov dword [ebp - 0x358], 0x1001c98
mov dword [ebp - 0x350], 0x1001ca4
mov dword [ebp - 0x348], 0x1001c70
mov dword [ebp - 0x328], 0x1001d0c
mov dword [ebp - 0x320], 0x1001cfc
je 0x100a46b
dec eax
jne 0x100a551
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x100a439
mov eax, edi
jmp 0x100a553
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
push 3
call fcn.0100900f
cmp eax, 3
jne 0x100a551
lea esi, [ebp - 0x360]
mov dword [ebp - 0x314], 4
jmp 0x100a4ca
xor ebx, ebx
cmp dword [ebp + 8], ebx
push ebx
push ebx
je 0x100a4a4
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
push 3
call fcn.0100900f
cmp eax, 3
jne 0x100a551
lea esi, [ebp - 0x328]
mov dword [ebp - 0x314], 2
jmp 0x100a4ca
push ebx
lea eax, [ebp - 0x108]
push eax
push edi
call fcn.0100900f
cmp eax, edi
jne 0x100a551
lea esi, [ebp - 0x340]
mov dword [ebp - 0x314], 3
mov dword [ebp - 0x318], edi
xor edi, edi
cmp edi, dword [ebp - 0x314]
jge 0x100a549
push dword [esi + edi*8]
lea eax, [ebp - 0x310]
push dword [esi + edi*8 + 4]
push 0x1005970
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
je 0x100a515
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x100a540
push 1
push 0x1001cec
call fcn.0100cbd8
push ebx
lea eax, [ebp - 0x310]
push eax
call fcn.0100cbd8
push 1
push 0x1001cd8
call fcn.0100cbd8
mov dword [ebp - 0x318], ebx
inc edi
cmp dword [ebp - 0x318], ebx
jne 0x100a4d2
mov eax, dword [ebp - 0x318]
jmp 0x100a553
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.0100d058
leave
ret 4
Function at 0x100a3d8
Capabilities:
Check if file exists
Get file attributes
Get file version info
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x360
cmp dword [0x1016bf8], 2
mov eax, dword [0x101203c]
mov dword [ebp - 4], eax
jne 0x100a360
push 1
push 0x1001d40
call fcn.0100cbd8
xor eax, eax
jmp 0x100a556
push ebx
push esi
push edi
xor edi, edi
inc edi
push edi
push 0x1001d1c
call fcn.0100cbd8
mov eax, 0x10165c8
mov dword [ebp - 0x33c], eax
mov dword [ebp - 0x35c], eax
lea ecx, [ebp - 0x108]
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x354], eax
mov eax, ecx
mov dword [ebp - 0x34c], eax
mov dword [ebp - 0x344], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x324], eax
mov eax, ecx
mov dword [ebp - 0x31c], eax
mov eax, dword [0x1016c8c]
dec eax
mov dword [ebp - reloc.KERNEL32.dll_VirtualProtect], 0x1001bc8
mov dword [ebp - reloc.KERNEL32.dll_GetCurrentThreadId], 0x1001c0c
mov dword [ebp - 0x334], ecx
mov dword [ebp - reloc.USER32.dll_ExitWindowsEx], 0x1001bd8
mov dword [ebp - 0x32c], ecx
mov dword [ebp - reloc.KERNEL32.dll_GetCurrentThreadId], 0x1001c60
mov dword [ebp - 0x358], 0x1001c98
mov dword [ebp - 0x350], 0x1001ca4
mov dword [ebp - 0x348], 0x1001c70
mov dword [ebp - 0x328], 0x1001d0c
mov dword [ebp - 0x320], 0x1001cfc
je 0x100a46b
dec eax
jne 0x100a551
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x100a439
mov eax, edi
jmp 0x100a553
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
push 3
call fcn.0100900f
cmp eax, 3
jne 0x100a551
lea esi, [ebp - 0x360]
mov dword [ebp - 0x314], 4
jmp 0x100a4ca
xor ebx, ebx
cmp dword [ebp + 8], ebx
push ebx
push ebx
je 0x100a4a4
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
push 3
call fcn.0100900f
cmp eax, 3
jne 0x100a551
lea esi, [ebp - 0x328]
mov dword [ebp - 0x314], 2
jmp 0x100a4ca
push ebx
lea eax, [ebp - 0x108]
push eax
push edi
call fcn.0100900f
cmp eax, edi
jne 0x100a551
lea esi, [ebp - 0x340]
mov dword [ebp - 0x314], 3
mov dword [ebp - 0x318], edi
xor edi, edi
cmp edi, dword [ebp - 0x314]
jge 0x100a549
push dword [esi + edi*8]
lea eax, [ebp - 0x310]
push dword [esi + edi*8 + 4]
push 0x1005970
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
je 0x100a515
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x100a540
push 1
push 0x1001cec
call fcn.0100cbd8
push ebx
lea eax, [ebp - 0x310]
push eax
call fcn.0100cbd8
push 1
push 0x1001cd8
call fcn.0100cbd8
mov dword [ebp - 0x318], ebx
inc edi
cmp dword [ebp - 0x318], ebx
jne 0x100a4d2
mov eax, dword [ebp - 0x318]
jmp 0x100a553
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.0100d058
leave
ret 4
Function at 0x100b2cb
Capabilities:
Get common file path
Set registry value

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 0x100b79c
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, 0x194
mov eax, dword [0x101203c]
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [0x1016c88], 1
push ebx
sete al
xor ebx, ebx
push ebx
mov dword [ebp - 0x190], eax
lea eax, [ebp - 0x18c]
push eax
call fcn.0100c68d
cmp dword [ebp - 0x18c], 7
jge 0x100b7de
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_wnsprintfA]
push edi
push dword [0x1016be4]
mov edi, 0x10169d8
push edi
push 0x1005970
lea eax, [ebp - 0x188]
push 0x104
push eax
call esi
add esp, 0x14
cmp dword [ebp - 0x190], ebx
mov eax, 0x100595c
jne 0x100b78c
mov eax, 0x1005948
mov ecx, dword [ebp - 0x18c]
push dword [ecx*4 + 0x1005a78]
push eax
lea eax, [ebp - 0x84]
push 0x80
push eax
call esi
mov eax, dword [ebp - 0x190]
add esp, 0x10
neg eax
sbb eax, eax
and eax, 0xfffffff8
push ebx
add eax, 8
or eax, 5
push eax
push ebx
push 0x10167d0
push edi
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x188]
push eax
push ebx
call dword [0x1016c94]
pop edi
pop esi
cmp dword [ebp - 0x190], ebx
pop ebx
je 0x100b810
lea eax, [ebp - 0x194]
push eax
call fcn.0100c6e3
test eax, eax
je 0x100b810
mov eax, dword [0x1016c8c]
dec eax
jne 0x100b810
push dword [ebp - 0x18c]
push dword [ebp - 0x194]
call fcn.0100b2ff
mov ecx, dword [ebp - 4]
call fcn.0100d058
leave
ret

Function at 0x100b8e6
Capabilities:
Get common file path

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 0x100b9a9
Capabilities:
Query environment variable
Query or enumerate registry value
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x101203c]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push edi
mov edi, 0x104
push edi
mov dword [ebp - 4], eax
push 0x10166cc
lea eax, [ebp - 0x108]
push eax
call esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, dword [sym.imp.USER32.dll_LoadStringA]
push 0x200
mov dword [ebp - 0x30c], eax
lea eax, [ebp - 0x308]
push eax
push 0x3f4
push dword [0x1016cac]
call ebx
mov dword [ebp - 0x314], eax
mov eax, dword [ebp - 0x30c]
mov dword [ebp - 0x310], edi
sub dword [ebp - 0x310], eax
push dword [ebp - 0x310]
lea ecx, [ebp - 0x308]
lea eax, [ebp + eax - 0x108]
push ecx
push eax
call esi
mov eax, dword [ebp - 0x314]
add eax, dword [ebp - 0x30c]
mov ecx, edi
sub ecx, eax
push ecx
push 0x1005980
lea eax, [ebp + eax - 0x108]
push eax
call esi
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x100b9de
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x200
lea eax, [ebp - 0x308]
push eax
push 0x3f3
push dword [0x1016cac]
call ebx
push dword [ebp - 0x310]
mov ebx, eax
lea eax, [ebp - 0x308]
push eax
mov eax, dword [ebp - 0x30c]
lea eax, [ebp + eax - 0x108]
push eax
call esi
add ebx, dword [ebp - 0x30c]
sub edi, ebx
push edi
push 0x10059a8
lea eax, [ebp + ebx - 0x108]
push eax
call esi
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
pop edi
pop esi
pop ebx
je 0x100ba5c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
call fcn.0100d058
leave
ret