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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x10140d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, 0x105
push edi
mov dword [ebp - 0x21c], eax
xor ebx, ebx
lea eax, [ebp - 0x210]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x20019
push ebx
push 0x1001278
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1006098
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x224]
push eax
push ebx
push 0x10013d8
push dword [ebp - 0x218]
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x218]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
jne 0x1006098
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], ebx
call fcn.01005ecd
push 0x10013c4
lea ecx, [ebp - 0x214]
call fcn.01005f29
cmp eax, ebx
jne 0x100605e
push 0x10013b0
lea ecx, [ebp - 0x214]
call fcn.01005f29
cmp eax, ebx
jne 0x100604b
xor esi, esi
inc esi
lea ecx, [ebp - 0x214]
call fcn.01005f0d
mov eax, esi
jmp 0x100609b
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp - 0x21c]
call eax
mov esi, eax
jmp 0x100603c
push dword [ebp + 0x14]
mov dword [ebp - 0x234], 0x1001358
push dword [ebp + 0x10]
mov dword [ebp - 0x22c], esi
push esi
push dword [ebp - 0x21c]
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x228], ebx
call eax
lea ecx, [ebp - 0x234]
mov esi, eax
call fcn.01005e75
jmp 0x100603c
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100e410
leave
ret 0x10
Function at 0x1006cdb
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
push esi
mov esi, 0x400
push 0x800
mov dword [ebp - 4], esi
call sub.cmutil.dll_CmMalloc
mov dword [ebp - 8], eax
test eax, eax
je 0x1006ddf
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
push edi
push dword [ebp + 8]
mov edi, 0x10019b0
push esi
push eax
push edi
call ebx
lea ecx, [eax + 2]
cmp ecx, esi
jne 0x1006d54
push dword [ebp - 8]
add dword [ebp - 4], esi
call sub.cmutil.dll_CmFree
mov eax, dword [ebp - 4]
add eax, eax
push eax
call sub.cmutil.dll_CmMalloc
mov dword [ebp - 8], eax
test eax, eax
je 0x1006ddd
push dword [ebp + 8]
push dword [ebp - 4]
push eax
push edi
call ebx
lea ecx, [eax + 2]
cmp ecx, dword [ebp - 4]
je 0x1006d21
test eax, eax
je 0x1006ddd
mov eax, dword [ebp - 4]
add eax, eax
push eax
call sub.cmutil.dll_CmMalloc
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1006ddd
mov ebx, dword [ebp - 8]
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 4], eax
jmp 0x1006dc0
push 0xffffffffffffffff
push 0x1001994
push 0xffffffffffffffff
push ebx
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x1006db5
push 0x900
push 0
push 0
push ebx
push dword [ebp - 4]
push esi
call fcn.01011b30
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
sub dword [ebp - 4], eax
lea esi, [esi + eax*2]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [ebx + eax*2 + 2]
xor eax, eax
cmp ax, word [ebx]
jne 0x1006d7b
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
push eax
push edi
call esi
push dword [ebp + 8]
push dword [ebp - 0xc]
push edi
call esi
pop edi
pop ebx
push dword [ebp - 8]
call sub.cmutil.dll_CmFree
push dword [ebp - 0xc]
call sub.cmutil.dll_CmFree
pop esi
leave
ret 4
Function at 0x1006df9
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x10140d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edi
lea edx, [ebp - 0x214]
push edx
push 0xf003f
xor edi, edi
push edi
push ecx
push eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jle 0x1006e48
and eax, 0xffff
or eax, 0x80070000
cmp eax, edi
jl 0x1006f27
push ebx
push esi
xor eax, eax
push 0x208
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push edi
push eax
call sub.msvcrt.dll_memset
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x104
call ebx
mov edi, 0x103
jmp 0x1006ee5
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call fcn.01006df9
lea eax, [ebp - 0x228]
push eax
xor eax, eax
push eax
push eax
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x210]
push ecx
push eax
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x104
call ebx
mov esi, eax
cmp esi, edi
jne 0x1006ea6
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x1006eff
cmp esi, edi
jne 0x1006f13
push dword [ebp - 0x21c]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
test esi, esi
jle 0x1006f23
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0100e410
leave
ret 8
Function at 0x10087f4
Capabilities:
Delete file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x788
mov eax, dword [0x10140d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x768], eax
lea eax, [ebp - 0x628]
push eax
push dword [ebp + 0x14]
call fcn.01007f3c
test eax, eax
jl 0x1008938
push ebx
lea ecx, [ebp - 0x764]
call fcn.010103d7
push 0x20a
xor ebx, ebx
lea eax, [ebp - 0x210]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x764]
call fcn.010104a6
test eax, eax
push 0x104
lea eax, [ebp - 0x41c]
push eax
je 0x1008891
push 0xf3
push esi
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x41c]
push eax
push edi
lea eax, [ebp - 0x628]
push eax
push 0x1002758
jmp 0x10088b1
push 0xc9
push esi
call dword [sym.imp.USER32.dll_LoadStringW]
push edi
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x628]
push eax
push 0x100273c
push 0x900
push ebx
push ebx
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.01011c3f
mov eax, dword [ebp - 0x768]
add esp, 0x24
cmp eax, ebx
pop ebx
je 0x10088e6
mov ecx, dword [eax]
lea edx, [ebp - 0x210]
push edx
push eax
call dword [ecx + 0x10]
jmp 0x1008938
push 0x80
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1008938
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x788]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x210]
push 0x14
mov dword [ebp - 0x780], eax
pop eax
mov word [ebp - 0x778], ax
lea eax, [ebp - 0x788]
push eax
mov dword [ebp - 0x784], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0100e410
leave
ret 0x10
Function at 0x1008f69
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x1008ff4
cmp dword [ebp + 0x14], ebx
je 0x1008ff4
push esi
push edi
push 0x208
mov esi, 0x104
call sub.cmutil.dll_CmMalloc
mov edi, eax
cmp edi, ebx
je 0x1008fee
push dword [ebp + 0x14]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esi - 2]
cmp eax, ecx
jne 0x1008fb7
cmp dword [ebp + 8], ebx
je 0x1008fc8
cmp dword [ebp + 0xc], ebx
je 0x1008fc8
lea ecx, [esi - 1]
cmp eax, ecx
jne 0x1008fe2
cmp dword [ebp + 8], ebx
je 0x1008fe2
cmp dword [ebp + 0xc], ebx
je 0x1008fe2
add esi, esi
cmp esi, 0x100000
ja 0x1008fee
lea eax, [esi + esi]
push eax
push edi
call sub.cmutil.dll_CmRealloc
cmp eax, ebx
je 0x1008fe6
jmp 0x1008f8c
cmp eax, ebx
jne 0x1008fee
push edi
call sub.cmutil.dll_CmFree
xor edi, edi
mov eax, edi
pop edi
pop esi
jmp 0x1008ff6
xor eax, eax
pop ebx
pop ebp
ret 0x10

Function at 0x1009000
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push edi
lea eax, [ebp - 8]
push eax
xor edi, edi
push 0x28
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1009041
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x100903c
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x10090b8
push ebx
push esi
lea eax, [ebp - 0x14]
push eax
push 0x1002d90
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov ebx, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push edi
push edi
push edi
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp - 8]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x1009095
call esi
cmp eax, edi
jle 0x1009090
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x10090b6
push 1
push edi
push 0x14
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
test eax, eax
je 0x1009080
push edi
push edi
push edi
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp - 8]
mov dword [ebp - 0xc], edi
call ebx
pop esi
pop ebx
cmp dword [ebp - 8], edi
pop edi
je 0x10090c7
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
leave
ret
Function at 0x10090d1
Capabilities:
Bypass uac via icmluautil

Disassembly:
mov edi, edi
push esi
xor esi, esi
call sub.cmutil.dll_GetOSVersion
cmp eax, 2
jne 0x10091cd
call sub.cmutil.dll_GetOSMajorVersion
cmp eax, 6
jb 0x10091cd
cmp dword [0x1014680], esi
jne 0x10091cd
cmp dword [0x10140d4], 0x800704c7
je 0x10091d0
mov eax, dword [0x10140d0]
cmp eax, esi
je 0x100913f
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, esi
mov dword [0x10140d0], eax
jge 0x100913f
push eax
push 0x1002e08
push dword [0x10143ec]
call fcn.0100f2af
add esp, 0xc
xor eax, eax
pop esi
ret
push 0x101467c
push 0x1002d28
push 0x1002d58
push 0x1014688
push dword [0x1014684]
call dword [sym.imp.USER32.dll_IsWindow]
neg eax
sbb eax, eax
and eax, dword [0x1014684]
push eax
call fcn.0100fac8
cmp eax, esi
mov dword [0x10140d4], eax
jl 0x10091b7
mov eax, dword [0x101467c]
mov ecx, dword [eax]
push 0x1014680
push 0x1002ce8
push eax
call dword [ecx]
cmp eax, esi
jge 0x10091cd
push eax
push 0x1002db8
push dword [0x10143ec]
call fcn.0100f2af
mov eax, dword [0x101467c]
mov ecx, dword [eax]
add esp, 0xc
push eax
call dword [ecx + 8]
mov dword [0x101467c], esi
jmp 0x10091d0
push eax
push 0x1002db8
push dword [0x10143ec]
call fcn.0100f2af
add esp, 0xc
jmp 0x10091d0
xor esi, esi
inc esi
mov eax, esi
pop esi
ret
Function at 0x1009691
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x854
mov eax, dword [0x10140d8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10097a1
push 0x1002fa0
lea eax, [ebp - 0x41c]
push eax
mov ebx, 0x10028fc
push ebx
mov edi, 0x900
push edi
push 0
push 0
mov esi, 0x105
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.01011c3f
add esp, 0x20
test eax, eax
jl 0x10097a1
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x638]
call fcn.01010ef7
lea ecx, [ebp - 0x638]
call fcn.01010ea7
cmp eax, 0x40046
jb 0x1009796
lea ecx, [ebp - 0x638]
call fcn.01010ea7
cmp eax, 0x40046
jne 0x1009744
lea ecx, [ebp - 0x638]
call fcn.01010eb3
cmp eax, 0x515
jb 0x1009796
push 0x1002f88
lea eax, [ebp - 0x41c]
push eax
push ebx
push edi
push 0
push 0
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.01011c3f
add esp, 0x20
test eax, eax
jl 0x1009796
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x854]
call fcn.01010ef7
lea ecx, [ebp - 0x854]
call fcn.01010e9b
lea ecx, [ebp - 0x854]
test eax, eax
jne 0x10097b4
call fcn.01010e08
lea ecx, [ebp - 0x638]
call fcn.01010e08
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100e410
leave
ret 4
call fcn.01010e08
lea ecx, [ebp - 0x638]
call fcn.01010e08
xor eax, eax
inc eax
jmp 0x10097a3
Function at 0x10097ce
Capabilities:
Query environment variable
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [0x10140d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push ebx
push esi
push edi
push ecx
push eax
push 0x1002fd0
xor ebx, ebx
mov edi, 0x900
push edi
push ebx
push ebx
mov esi, 0x105
lea eax, [ebp - 0x210]
push esi
push eax
mov dword [ebp - 0x634], edx
mov dword [ebp - 0x630], ebx
mov dword [ebp - 0x62c], ebx
call fcn.01011c3f
add esp, 0x20
push 0x104
lea eax, [ebp - 0x628]
push eax
push 0x1002fbc
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebx
je 0x1009948
cmp eax, 0x104
ja 0x1009948
push edi
push ebx
push ebx
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
lea eax, [ebp - 0x41c]
push eax
call fcn.01011b73
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1009948
push edi
push ebx
push ebx
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp + eax*2 - 0x210]
push eax
push esi
lea eax, [ebp - 0x41c]
push eax
call fcn.01011b30
push edi
push ebx
push ebx
push 0x1002fbc
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.01011b30
push edi
push ebx
push ebx
lea eax, [ebp - 0x41c]
push eax
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.01011bb9
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x62c]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push 0x1001660
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1009948
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x210]
push eax
xor esi, esi
inc esi
push esi
push ebx
push dword [ebp - 0x634]
push dword [ebp - 0x62c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1009948
mov dword [ebp - 0x630], esi
cmp dword [ebp - 0x62c], ebx
pop edi
pop esi
pop ebx
je 0x100995f
push dword [ebp - 0x62c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x630]
xor ecx, ebp
call fcn.0100e410
leave
ret 0xc
Function at 0x100a044
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1474
call fcn.0100e440
mov eax, dword [0x10140d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x1474], eax
mov eax, dword [ebp + 0x14]
xor esi, esi
mov dword [ebp - 0x1464], eax
cmp eax, esi
je 0x100a287
xor ecx, ecx
cmp cx, word [eax]
je 0x100a287
cmp ebx, esi
je 0x100a287
xor eax, eax
cmp ax, word [ebx]
je 0x100a287
push edi
mov edi, 0x410
push edi
mov word [ebp - 0x624], ax
lea eax, [ebp - 0x622]
push esi
push eax
mov dword [ebp - 0x146c], 1
mov dword [ebp - 0x1470], 0x104
mov dword [ebp - 0x1468], esi
call sub.msvcrt.dll_memset
xor eax, eax
push edi
mov word [ebp - 0xa38], ax
lea eax, [ebp - 0xa36]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0x1468]
push eax
xor eax, eax
cmp dword [ebp + 0xc], esi
push 0x20019
setne al
push esi
push 0x1001660
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100a26a
lea eax, [ebp - 0x1470]
push eax
lea eax, [ebp - 0x624]
push eax
push esi
push esi
push ebx
push dword [ebp - 0x1468]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100a26a
mov eax, dword [ebp - 0x1470]
shr eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x624], cx
push 0x104
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x100a26a
lea eax, [ebp - 0x210]
push eax
call fcn.01010f56
test eax, eax
je 0x100a26a
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x1460]
call fcn.0100f4f8
lea eax, [ebp - 0x104a]
push eax
push dword [ebp - 0x1464]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x100a21b
cmp dword [ebp + 0x18], esi
jne 0x100a263
mov edi, 0x209
push edi
lea eax, [ebp - 0x624]
push eax
push 0xe9
push dword [ebp - 0x1474]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x100a263
push ebx
lea eax, [ebp - 0x104a]
push eax
push dword [ebp - 0x1464]
lea eax, [ebp - 0x624]
push eax
push 0x900
push esi
push esi
lea eax, [ebp - 0xa38]
push edi
push eax
call fcn.01011c3f
add esp, 0x24
push esi
push ebx
lea eax, [ebp - 0xa38]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x100a263
push dword [ebp - 0x1464]
lea eax, [ebp - 0xc44]
push 0x1014470
push 0x1003194
push 0x900
push esi
push esi
push 0x105
push eax
call fcn.01011c3f
add esp, 0x20
lea eax, [ebp - 0xc44]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x1464]
call fcn.01009db9
test eax, eax
jne 0x100a26a
or dword [ebp - 0x146c], 0xffffffff
pop edi
cmp dword [ebp - 0x1468], esi
je 0x100a27f
push dword [ebp - 0x1468]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x146c]
jmp 0x100a289
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0100e410
leave
ret 0x14
Function at 0x100a6e5
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa44
mov eax, dword [0x10140d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0xa44], eax
lea eax, [ebp - 0xa30]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x1001278
push 0x80000002
mov dword [ebp - 0xa30], ebx
mov dword [ebp - 0xa34], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100a865
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
push 4
pop edi
lea eax, [ebp - 0xa3c]
push eax
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0xa40]
push eax
push ebx
push 0x1003224
push dword [ebp - 0xa30]
mov dword [ebp - 0xa3c], edi
mov dword [ebp - 0xa40], ebx
call esi
test eax, eax
jne 0x100a7ed
push dword [ebp - 0xa44]
lea ecx, [ebp - 0xa2c]
call fcn.0100f4f8
push 0x10016c0
lea eax, [ebp - 0x616]
push eax
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x822]
push eax
push 0x10018c4
push 0x900
push ebx
push ebx
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.01011c3f
add esp, 0x28
test eax, eax
jl 0x100a85d
lea eax, [ebp - 0x210]
push eax
push 0xffffffffffffffff
push 0x1002c8c
push 0x1002bf8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp dword [ebp - 0xa38], eax
ja 0x100a85d
lea eax, [ebp - 0xa3c]
push eax
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0xa40]
push eax
push ebx
push 0x1003200
push dword [ebp - 0xa30]
mov dword [ebp - 0xa3c], edi
call esi
test eax, eax
jne 0x100a825
mov eax, dword [ebp - 0xa38]
cmp eax, dword [ebp + 8]
ja 0x100a85d
lea eax, [ebp - 0xa3c]
push eax
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0xa40]
push eax
push ebx
push 0x10031d8
push dword [ebp - 0xa30]
mov dword [ebp - 0xa3c], edi
call esi
test eax, eax
jne 0x100a863
mov eax, dword [ebp - 0xa38]
cmp eax, dword [ebp + 0xc]
jbe 0x100a863
mov dword [ebp - 0xa34], ebx
pop edi
pop esi
cmp dword [ebp - 0xa30], ebx
pop ebx
je 0x100a87a
push dword [ebp - 0xa30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xa34]
xor ecx, ebp
call fcn.0100e410
leave
ret 0xc
Function at 0x100a893
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push edi
push 0
push 0
mov dword [ebp - 4], 0x8000ffff
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, eax
test edi, edi
je 0x100a966
push ebx
push esi
mov esi, 0x1003334
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add edi, eax
lea ebx, [edi + 1]
push ebx
call sub.cmutil.dll_CmMalloc
mov dword [ebp - 8], eax
test eax, eax
je 0x100a95d
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x100a953
push 0x900
push 0
push 0
push esi
push ebx
push dword [ebp - 8]
call fcn.01011bfc
push dword [ebp - 8]
mov esi, eax
call sub.cmutil.dll_SzToWzWithAlloc
mov edi, eax
test esi, esi
jl 0x100a946
test edi, edi
je 0x100a946
push edi
call fcn.01010f56
test eax, eax
je 0x100a946
push 0x100
push 0x1003094
push edi
push dword [0x1014680]
call fcn.0101089c
push eax
push 0x1003250
push dword [0x10143ec]
mov dword [ebp - 4], eax
call fcn.0100f2af
add esp, 0xc
jmp 0x100a94d
mov dword [ebp - 4], 1
push edi
call sub.cmutil.dll_CmFree
push dword [ebp - 8]
call sub.cmutil.dll_CmFree
jmp 0x100a964
mov dword [ebp - 4], 0x8007000e
pop esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
leave
ret
Function at 0x100af5e
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc4c
mov eax, dword [0x10140d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc4c], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov dword [ebp - 0xc44], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0xc48], eax
xor eax, eax
mov esi, 0x208
push esi
mov word [ebp - 0x210], ax
xor edi, edi
lea eax, [ebp - 0x20e]
push edi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push 0x618
mov word [ebp - 0xc40], ax
lea eax, [ebp - 0xc3e]
push edi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push 0x410
mov word [ebp - 0x624], ax
lea eax, [ebp - 0x622]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0x24
push dword [ebp - 0xc44]
call fcn.01010f56
test eax, eax
je 0x100b09d
push dword [ebp - 0xc44]
lea eax, [ebp - 0x210]
push 0x105
push eax
push 0x10017d4
push 0x1002c74
push 0x1001784
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push ebx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x100b09d
cmp dword [ebp + 0x1c], edi
jne 0x100b099
push esi
lea eax, [ebp - 0x624]
push eax
push 0xe8
push dword [ebp - 0xc4c]
call dword [sym.imp.USER32.dll_LoadStringW]
push dword [ebp - 0xc48]
lea eax, [ebp - 0x210]
push eax
push ebx
lea eax, [ebp - 0x624]
push eax
push 0x900
push edi
push edi
lea eax, [ebp - 0xc40]
push 0x30d
push eax
call fcn.01011c3f
add esp, 0x24
push 0x41000
push ebx
lea eax, [ebp - 0xc40]
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x100b0a0
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100e410
leave
ret 0x18
Function at 0x100c420
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, dword [ecx + 8]
xor ebx, ebx
cmp esi, ebx
je 0x100c48f
push 0x3c
lea eax, [ebp - 0x3c]
push ebx
push eax
call sub.msvcrt.dll_memset
and dword [ebp - 0x34], ebx
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 5
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0x1003808
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x30], 0x10037fc
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x100c48f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100c48d
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
pop esi
mov eax, ebx
pop ebx
leave
ret