joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404898
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_2
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404a34
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x404948
xor eax, eax
push ebp
push 0x404941
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_1
test eax, eax
je 0x40492a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404a54
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404948
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
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_1
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404a29
cmp byte [ebp - 0xd], 0
jne 0x40498a
cmp byte [ebp - 0x12], 0
je 0x404a29
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4049a3
dec ebx
cmp byte [ebx], 0x2e
je 0x4049b2
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4049a2
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404a29
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4049df
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_1
mov esi, eax
test esi, esi
jne 0x404a29
cmp byte [ebp - 0xd], 0
je 0x404a29
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_1
mov esi, eax
test esi, esi
jne 0x404a29
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_1
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406ecc
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004039f8
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
pop ebx
ret

Function at 0x407370
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.0040369c
add esp, 0x104
pop ebx
ret
Function at 0x409370
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
test eax, eax
jle 0x4093a9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040369c
jmp 0x4093b2
mov eax, ebx
mov edx, esi
call fcn.00403650
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4093bc
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
test eax, eax
jle 0x4093dd
mov al, byte [esp]
jmp 0x4093df
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40f83c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push esi
push edi
push ebx
nop
test eax, eax
je 0x40f8ba
test edx, edx
je 0x40f87d
mov esi, eax
mov edi, edx
push edx
mov eax, dword [eax - 4]
mov edx, dword [edx - 4]
dec eax
sub edx, eax
dec ecx
push eax
sub edx, ecx
jle 0x40f87a
add edi, ecx
mov ecx, edx
mov edx, eax
movzx ebx, byte [esi]
mov al, byte [ebx + 0x4482ec]
movzx ebx, byte [edi]
cmp al, byte [ebx + 0x4482ec]
je 0x40f890
inc edi
dec ecx
jne 0x40f86b
add esp, 8
xor eax, eax
jmp 0x40f8ba
movzx ebx, byte [esi]
mov al, byte [ebx + 0x4482ec]
mov edx, dword [esp]
jmp 0x40f876
test edx, edx
je 0x40f8b2
mov bl, byte [esi + edx]
mov ah, byte [edi + edx]
cmp bl, ah
je 0x40f8af
mov al, byte [ebx + 0x4482ec]
movzx ebx, ah
xor al, byte [ebx + 0x4482ec]
jne 0x40f881
dec edx
jne 0x40f894
lea eax, [edi + 1]
pop ecx
sub eax, dword [esp]
pop ecx
pop ebx
pop edi
pop esi
ret

Function at 0x412cd0
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 [0x4483f0], 0
je 0x412d07
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00412bd0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx]
jmp 0x412d5d
mov eax, dword [ebp + 8]
mov edx, 0x400
call fcn.00403b64
mov eax, dword [ebp - 4]
call fcn.004039f8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.00403834
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.004039f8
push eax
mov eax, dword [ebp + 0xc]
call fcn.004039f8
push eax
mov eax, dword [ebp - 0xc]
call fcn.004039f8
push eax
mov eax, dword [ebp - 8]
call fcn.004039f8
push eax
call sub.KERNEL32.DLL_GetPrivateProfileStringA
mov edx, eax
mov eax, dword [ebp + 8]
call fcn.00403b64
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x412d64
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 0x412e7f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x4483f0], 0
je 0x412da3
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00412bd0
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
jmp 0x412e69
mov eax, 0x4000
call fcn.004025b0
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x412e62
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.0040d878
xor eax, eax
push ebp
push 0x412e45
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.004039f8
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 0x412e2f
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
jmp 0x412e27
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.0040376c
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.004073e4
inc eax
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0
jne 0x412e05
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412e4c
mov eax, dword [ebp - 8]
call fcn.0040d934
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412e86
lea eax, [ebp - 0x14]
call fcn.004035b8
ret
Function at 0x412e8c
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 0x412fb5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x4483f0], 0
je 0x412ed2
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00412bd0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x18]
jmp 0x412f9f
mov eax, 0x4000
call fcn.004025b0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x412f98
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.0040d878
xor eax, eax
push ebp
push 0x412f7b
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.004039f8
push eax
push 0x4000
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004039f8
push eax
call sub.KERNEL32.DLL_GetPrivateProfileStringA
test eax, eax
je 0x412f65
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
jmp 0x412f5d
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.0040376c
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.004073e4
inc eax
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp byte [eax], 0
jne 0x412f3b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412f82
mov eax, dword [ebp - 0xc]
call fcn.0040d934
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412fbc
lea eax, [ebp - 0x18]
call fcn.004035b8
ret

Function at 0x413420
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 0x4134c3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x41344a
mov byte [ebp - 5], 1
jmp 0x4134ad
mov byte [ebp - 5], 0
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004039f8
push eax
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x4134ad
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.00403b64
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004039f8
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004039f8
push eax
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
test eax, eax
je 0x4134ad
mov eax, dword [ebp - 0xc]
call fcn.004039f8
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.0040376c
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4134ca
lea eax, [ebp - 0xc]
call fcn.004035b8
ret
Function at 0x4135e4
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [0x448408], 0
je 0x413625
cmp dword [0x448404], 0
je 0x413625
push 0
mov eax, dword [0x448404]
push eax
mov eax, dword [ebp - 8]
call fcn.004039f8
push eax
mov eax, dword [ebp - 4]
push eax
call dword [0x448408]
test eax, eax
sete byte [ebp - 9]
jmp 0x41363d
mov eax, dword [ebp - 8]
call fcn.004039f8
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete byte [ebp - 9]
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x413644
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 0xd], 0
mov edx, 0x20019
mov eax, dword [ebp - 4]
call fcn.004134d4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4136bd
xor eax, eax
push ebp
push 0x4136b6
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.004039f8
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
sete byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4136bd
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret 4

Function at 0x413ac4
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe4
xor ecx, ecx
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x413be0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.0040d878
xor eax, eax
push ebp
push 0x413bc0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x40]
mov edx, 0x20019
mov eax, dword [ebp - 4]
call fcn.004134d4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x413baa
xor eax, eax
push ebp
push 0x413ba3
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0x400
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x418]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x413b86
lea eax, [ebp - 0x41c]
lea edx, [ebp - 0x418]
call fcn.0040376c
mov edx, dword [ebp - 0x41c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc dword [ebp - 0x10]
cmp dword [ebp - 0x14], 0
je 0x413b34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413baa
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413bc7
mov eax, dword [ebp - 8]
call fcn.0040d934
ret
Function at 0x413bec
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00413558
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x413c5e
xor eax, eax
push ebp
push 0x413c57
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.004039f8
push eax
mov eax, dword [ebp - 0x14]
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 0x413c62
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov byte [ebp - 0xd], 0
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret 8

Function at 0x414094
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edx, 0x20019
mov eax, dword [ebp - 4]
call fcn.004134d4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4140e1
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004039f8
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
sete byte [ebp - 9]
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
jmp 0x4140e5
mov byte [ebp - 9], 0
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x4140ec
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 9], 0
mov edx, 0x20006
mov eax, dword [ebp - 4]
call fcn.004134d4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x414133
mov eax, dword [ebp - 8]
call fcn.004039f8
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegDeleteValueA
test eax, eax
sete byte [ebp - 9]
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x4142b4
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 4], eax
mov byte [ebp - 5], 0
mov edx, 0x20019
mov eax, dword [ebp - 4]
call fcn.004134d4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41430d
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
jne 0x414304
cmp dword [ebp - 0x10], 0
setg byte [ebp - 5]
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x41438c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov edx, 0x20019
mov eax, dword [ebp - 4]
call fcn.004134d4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x414405
xor eax, eax
push ebp
push 0x4143fe
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.004039f8
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x4143e7
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414405
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x41440c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov edx, 0x20019
mov eax, dword [ebp - 4]
call fcn.004134d4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x414485
xor eax, eax
push ebp
push 0x41447e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004039f8
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x414467
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414485
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x414574
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
test byte [ebp - 4], 1
je 0x41459f
mov eax, dword [ebp - 4]
shr eax, 1
xor eax, 0xedb88320
mov dword [ebp - 4], eax
jmp 0x4145a2
shr dword [ebp - 4], 1
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 8
jne 0x41458a
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [eax*4 + 0x44a620], edx
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x100
jne 0x41457f
mov esp, ebp
pop ebp
ret
Function at 0x415844
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.004035b8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x4158b5
mov eax, dword [ebp - 8]
mov edx, 0x104
call fcn.00403b64
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004039f8
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x4158ab
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004039f8
call fcn.004073e4
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.00403b64
jmp 0x4158b5
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00403b64
mov esp, ebp
pop ebp
ret

Function at 0x415f74
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 [0x449c64]
cmp dword [eax], 2
jne 0x415fe1
test byte [ebp - 4], 0xb
je 0x415fe1
lea eax, [ebp - 0xc]
push eax
push 0x20
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x415fe1
lea eax, [ebp - 0x18]
push eax
push 0x415ffc
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
je 0x415fe1
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 0x415ff5
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 0x416034
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.00406d84
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x41611d
xor eax, eax
push ebp
push 0x416116
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.00406de8
cmp eax, 0x40
je 0x416095
call fcn.00403170
jmp 0x41611d
cmp word [ebp - 0x54], 0x5a4d
jne 0x4160a3
cmp dword [ebp - 0x18], 0
jne 0x4160aa
call fcn.00403170
jmp 0x41611d
mov eax, dword [ebp - 4]
call fcn.00417b08
cmp eax, dword [ebp - 0x18]
jg 0x4160be
call fcn.00403170
jmp 0x41611d
xor ecx, ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
call fcn.00406e40
inc eax
jne 0x4160d5
call fcn.00403170
jmp 0x41611d
lea edx, [ebp - 0x14]
mov ecx, 4
mov eax, dword [ebp - 0x10]
call fcn.00406de8
cmp eax, 4
je 0x4160f1
call fcn.00403170
jmp 0x41611d
cmp dword [ebp - 0x14], 0x4550
jne 0x416100
mov eax, dword [ebp - 8]
mov byte [eax], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41611d
mov eax, dword [ebp - 0x10]
call fcn.00406e4c
ret
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret
Function at 0x4168f4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004039e8
xor eax, eax
push ebp
push 0x416a02
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
lea ecx, [ebp - 0x24]
mov dl, 0x22
mov eax, dword [ebp - 4]
call fcn.0040fe64
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 4]
call fcn.00403650
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.004039f8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4169e4
mov eax, dword [ebp - 0x14]
inc eax
call fcn.004025b0
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4169dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.004039f8
push eax
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x416a14
mov eax, dword [ebp - 0x1c]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
jne 0x4169ad
call fcn.00403170
jmp 0x4169e4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4169e4
mov eax, dword [ebp - 0x1c]
call fcn.004025c8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416a09
lea eax, [ebp - 0x24]
call fcn.004035b8
lea eax, [ebp - 4]
call fcn.004035b8
ret