joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40466c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404808
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40471c
xor eax, eax
push ebp
push 0x404715
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4046fe
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404828
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40471c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4047fd
cmp byte [ebp - 0xd], 0
jne 0x40475e
cmp byte [ebp - 0x12], 0
je 0x4047fd
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404777
dec ebx
cmp byte [ebx], 0x2e
je 0x404786
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404776
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4047fd
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4047b3
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4047fd
cmp byte [ebp - 0xd], 0
je 0x4047fd
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4047fd
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406be8
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.004039f4
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
jne 0x406c0a
call sub.KERNEL32.DLL_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x4070c4
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push esp
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403698
add esp, 0x104
pop ebx
ret
Function at 0x408904
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
test eax, eax
jle 0x40893d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403698
jmp 0x408946
mov eax, ebx
mov edx, esi
call fcn.0040364c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x408950
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA_1
test eax, eax
jle 0x408971
mov al, byte [esp]
jmp 0x408973
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x411bcc
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp byte [0x4392ec], 0
je 0x411c03
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00411acc
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx]
jmp 0x411c59
mov eax, dword [ebp + 8]
mov edx, 0x400
call fcn.00403b60
mov eax, dword [ebp - 4]
call fcn.004039f4
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.00403830
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.004039f4
push eax
mov eax, dword [ebp + 0xc]
call fcn.004039f4
push eax
mov eax, dword [ebp - 0xc]
call fcn.004039f4
push eax
mov eax, dword [ebp - 8]
call fcn.004039f4
push eax
call sub.KERNEL32.DLL_GetPrivateProfileStringA
mov edx, eax
mov eax, dword [ebp + 8]
call fcn.00403b60
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x411c60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x411d7b
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x4392ec], 0
je 0x411c9f
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00411acc
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
jmp 0x411d65
mov eax, 0x4000
call fcn.004025b0
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x411d5e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.0040cc90
xor eax, eax
push ebp
push 0x411d41
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x40]
mov eax, dword [ebp - 4]
call fcn.004039f4
push eax
push 0x4000
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0
call sub.KERNEL32.DLL_GetPrivateProfileStringA
test eax, eax
je 0x411d2b
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
jmp 0x411d23
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.00403768
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x10]
call fcn.00407138
inc eax
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0
jne 0x411d01
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411d48
mov eax, dword [ebp - 8]
call fcn.0040cd4c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411d82
lea eax, [ebp - 0x14]
call fcn.004035b4
ret
Function at 0x411d88
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x411eb1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x4392ec], 0
je 0x411dce
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00411acc
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x18]
jmp 0x411e9b
mov eax, 0x4000
call fcn.004025b0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x411e94
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.0040cc90
xor eax, eax
push ebp
push 0x411e77
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x40]
mov eax, dword [ebp - 4]
call fcn.004039f4
push eax
push 0x4000
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004039f4
push eax
call sub.KERNEL32.DLL_GetPrivateProfileStringA
test eax, eax
je 0x411e61
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
jmp 0x411e59
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.00403768
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x14]
call fcn.00407138
inc eax
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp byte [eax], 0
jne 0x411e37
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411e7e
mov eax, dword [ebp - 0xc]
call fcn.0040cd4c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411eb8
lea eax, [ebp - 0x18]
call fcn.004035b4
ret

Function at 0x412388
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41242b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4123b2
mov byte [ebp - 5], 1
jmp 0x412415
mov byte [ebp - 5], 0
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004039f4
push eax
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x412415
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.00403b60
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004039f4
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004039f4
push eax
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
test eax, eax
je 0x412415
mov eax, dword [ebp - 0xc]
call fcn.004039f4
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00403768
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412432
lea eax, [ebp - 0xc]
call fcn.004035b4
ret
Function at 0x41243c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4124f8
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004122a4
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0x14]
call fcn.004039f4
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4124e2
xor eax, eax
push ebp
push 0x4124db
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004039f4
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4124e2
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4124ff
lea eax, [ebp - 0x14]
call fcn.004035b4
ret

Function at 0x412908
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbdc
xor ecx, ecx
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x412a48
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0xc]
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004122a4
mov eax, dword [ebp - 8]
call fcn.0040cc90
xor eax, eax
push ebp
push 0x412a20
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x40]
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0xc]
call fcn.004039f4
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x412a0a
xor eax, eax
push ebp
push 0x412a03
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], 0x400
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4129e6
lea eax, [ebp - 0x424]
lea edx, [ebp - 0x420]
call fcn.00403768
mov edx, dword [ebp - 0x424]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc dword [ebp - 0x18]
cmp dword [ebp - 0x1c], 0
je 0x412994
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412a0a
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412a27
mov eax, dword [ebp - 8]
call fcn.0040cd4c
ret
Function at 0x412a54
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x412b0b
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004122a4
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
call fcn.004039f4
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCreateKeyA
test eax, eax
jne 0x412af1
xor eax, eax
push ebp
push 0x412aea
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.004039f4
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412af5
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov byte [ebp - 0xd], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412b12
lea eax, [ebp - 0x14]
call fcn.004035b4
ret

Function at 0x412f8c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41301f
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004122a4
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0x10]
call fcn.004039f4
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x413005
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004039f4
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete byte [ebp - 9]
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x413009
mov byte [ebp - 9], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413026
lea eax, [ebp - 0x10]
call fcn.004035b4
ret
Function at 0x413030
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4130b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004122a4
lea eax, [ebp - 0x18]
push eax
push 0x20006
push 0
mov eax, dword [ebp - 0x10]
call fcn.004039f4
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4130a3
mov eax, dword [ebp - 8]
call fcn.004039f4
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegDeleteValueA
test eax, eax
sete byte [ebp - 9]
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4130c0
lea eax, [ebp - 0x10]
call fcn.004035b4
ret

Function at 0x4130c8
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41323f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 6], 0
mov dl, 1
mov eax, dword [0x40bbe4]
call fcn.00402c4c
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x413210
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 5], 0
je 0x413173
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00412908
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x413173
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.004164fc
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x2c]
pop eax
call fcn.00403838
mov eax, dword [ebp - 0x28]
mov dl, 1
call fcn.004130c8
inc dword [ebp - 0x20]
dec dword [ebp - 0x24]
jne 0x41313b
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00416658
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00406f0c
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
call fcn.00406e44
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.00416658
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0xc]
call fcn.0040364c
lea ecx, [ebp - 0xc]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.004122a4
lea eax, [ebp - 0x18]
push eax
push 0x20006
push 0
mov eax, dword [ebp - 0xc]
call fcn.004039f4
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4131fa
mov eax, dword [ebp - 0x10]
call fcn.004039f4
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete byte [ebp - 6]
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413217
mov eax, dword [ebp - 0x1c]
call fcn.00402c74
ret
Function at 0x4132c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x413383
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004122a4
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0x10]
call fcn.004039f4
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x41336d
xor eax, eax
push ebp
push 0x413366
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.004039f4
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x41334f
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41336d
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41338a
lea eax, [ebp - 0x10]
call fcn.004035b4
ret

Function at 0x413394
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41344f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004122a4
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0x10]
call fcn.004039f4
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x413439
xor eax, eax
push ebp
push 0x413432
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004039f4
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x41341b
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413439
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413456
lea eax, [ebp - 0x10]
call fcn.004035b4
ret
Function at 0x414a2c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.004035b4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x414a9d
mov eax, dword [ebp - 8]
mov edx, 0x104
call fcn.00403b60
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004039f4
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x414a93
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004039f4
call fcn.00407138
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.00403b60
jmp 0x414a9d
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00403b60
mov esp, ebp
pop ebp
ret

Function at 0x414bf8
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 4], eax
mov byte [ebp - 5], 0
mov eax, dword [0x43a9ec]
cmp dword [eax], 2
jne 0x414c65
test byte [ebp - 4], 0xb
je 0x414c65
lea eax, [ebp - 0xc]
push eax
push 0x20
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x414c65
lea eax, [ebp - 0x18]
push eax
push 0x414c80
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
je 0x414c65
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
test eax, eax
je 0x414c79
push 0
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_ExitWindowsEx
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

Function at 0x414cb8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
mov byte [eax], 0
mov edx, 0x20
mov eax, dword [ebp - 4]
call fcn.00406a8c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x414da1
xor eax, eax
push ebp
push 0x414d9a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 1
lea edx, [ebp - 0x54]
mov ecx, 0x40
mov eax, dword [ebp - 0x10]
call fcn.00406af0
cmp eax, 0x40
je 0x414d19
call fcn.0040316c
jmp 0x414da1
cmp word [ebp - 0x54], 0x5a4d
jne 0x414d27
cmp dword [ebp - 0x18], 0
jne 0x414d2e
call fcn.0040316c
jmp 0x414da1
mov eax, dword [ebp - 4]
call fcn.004165a8
cmp eax, dword [ebp - 0x18]
jg 0x414d42
call fcn.0040316c
jmp 0x414da1
xor ecx, ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
call fcn.00406b48
inc eax
jne 0x414d59
call fcn.0040316c
jmp 0x414da1
lea edx, [ebp - 0x14]
mov ecx, 4
mov eax, dword [ebp - 0x10]
call fcn.00406af0
cmp eax, 4
je 0x414d75
call fcn.0040316c
jmp 0x414da1
cmp dword [ebp - 0x14], 0x4550
jne 0x414d84
mov eax, dword [ebp - 8]
mov byte [eax], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414da1
mov eax, dword [ebp - 0x10]
call fcn.00406b54
ret
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret