joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000f556
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000f595
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000f595
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000f595
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000f595
cmp dword [ecx + 0x74], 0xe
jbe 0x1000f595
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x100134bc
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10021fb4
push 0x10021fac
push str.FlsAlloc
push 0x1f
call fcn.1001333b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100134f0
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001e22c]
call esi
jmp 0x100134f6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001353a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10021fc4
push 0x10021fbc
push str.FlsGetValue
push 0x21
call fcn.1001333b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10013571
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001e22c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10013579
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10021fcc
push 0x10021fc4
push str.FlsSetValue
push 0x22
call fcn.1001333b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100135b3
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001e22c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001749c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10017539
push ebx
push esi
call fcn.10017465
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10013d61
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100174e6
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10017538
push edi
push eax
call fcn.10010a9c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10017506
call fcn.10010a62
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10017537
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10013d61
add esp, 0x20
test eax, eax
jne 0x10017525
push edi
call fcn.10010a62
jmp 0x1001752d
push ebx
call fcn.10010a62
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1001753c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1001754d
pop esi
ret
push ebx
push edi
push esi
call fcn.10017465
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10010a9c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10017575
push ebx
push esi
push edi
call fcn.10006860
add esp, 0xc
push 0
call fcn.10010a62
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10017945
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001758a

Function at 0x1001ca00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001ca2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001ca2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403619
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x509230
cmp edx, dword [eax]
je 0x40363b
add eax, 8
inc ecx
cmp eax, 0x5092c0
jl 0x40362c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x509230]
jne 0x403769
mov eax, dword [0x509d38]
cmp eax, 1
je 0x403743
test eax, eax
jne 0x40366c
cmp dword [0x50916c], 1
je 0x403743
cmp edx, 0xfc
je 0x403769
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4036a3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403e00
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404430
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4036e6
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404430
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x408574
push edi
call fcn.00405ba0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403e00
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403e10
lea eax, [ebp - 0xa0]
push 0x408554
push eax
call fcn.00403e10
push dword [esi + 0x509234]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403e10
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405b0e
add esp, 0x2c
pop edi
jmp 0x403769
lea eax, [ebp + 8]
lea esi, [esi + 0x509234]
push 0
push eax
push dword [esi]
call fcn.00404430
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40177f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x43ed50]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x22c]
push eax
push 0x20019
mov edi, ecx
xor ebx, ebx
push ebx
push dword [edi + 0x10]
mov dword [ebp - 0x238], edi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401936
mov esi, 0x103
push esi
lea eax, [ebp - 0x217]
push ebx
push eax
mov byte [ebp - 0x218], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x10f]
push ebx
push eax
mov dword [ebp - 0x21c], 0x104
mov byte [ebp - 0x110], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x228]
push eax
push ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push dword [ebp - 0x22c]
mov dword [ebp - 0x220], 0x104
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x401932
jmp 0x401856
mov edi, dword [ebp - 0x238]
cmp dword [ebp - 0x228], 4
jne 0x4018dd
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.MSVCR80.dll_atoi]
cmp eax, ebx
pop ecx
jge 0x4018dd
neg eax
mov dword [ebp - 0x230], eax
movzx eax, byte [ebp - 0x110]
call fcn.00408349
cmp dword [ebp - 0x230], ebx
mov dword [ebp - 0x234], eax
je 0x4018dd
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x240]
lea ebx, [edi + 4]
push eax
call fcn.00401e26
mov eax, dword [ebx + 4]
lea edi, [ebp - 0x248]
lea esi, [ebp - 0x240]
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x248], ebx
call fcn.00406c40
test al, al
jne 0x4018db
call fcn.00401ea8
mov ecx, dword [ebp - 0x234]
mov dword [eax + 4], ecx
xor ebx, ebx
inc dword [ebp - 0x224]
mov eax, 0x104
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x228]
push eax
push ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x224]
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x401850
mov al, 1
jmp 0x401938
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421eef
leave
ret
Function at 0x40699c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x43ed50]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [ebp - 0x22c]
push ecx
push 0x20019
xor ebx, ebx
push ebx
push dword [eax + 0x10]
mov dword [ebp - 0x234], eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406aed
mov edi, 0x103
push edi
lea eax, [ebp - 0x21b]
push ebx
push eax
mov dword [ebp - 0x220], ebx
mov byte [ebp - 0x21c], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
push edi
lea eax, [ebp - 0x113]
push ebx
lea esi, [edi + 1]
push eax
mov dword [ebp - 0x228], esi
mov byte [ebp - 0x114], bl
call sub.MSVCR80.dll_memset
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x230]
push eax
push ebx
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x230], ebx
push ebx
jmp 0x406ad3
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.MSVCR80.dll_atoi]
cmp eax, ebx
pop ecx
jle 0x406a9d
mov dword [ebp - 0x23c], eax
movzx eax, byte [ebp - 0x114]
call fcn.00408349
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x23c]
push eax
mov eax, dword [ebp - 0x234]
add eax, 4
push eax
lea ebx, [ebp - 0x248]
call fcn.00406b83
xor ebx, ebx
inc dword [ebp - 0x220]
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x230]
push eax
push ebx
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x220]
mov dword [ebp - 0x228], esi
push dword [ebp - 0x22c]
mov dword [ebp - 0x224], esi
call edi
test eax, eax
je 0x406a55
mov al, 1
jmp 0x406aef
xor al, al
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421eef
leave
ret 4

Function at 0x407a48
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0xf003f
push 0
push 0
mov dword [ebx], 2
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
mov dword [ebp - 4], eax
jne 0x407a6c
leave
ret
push esi
push edi
push 0xf01ff
push str.NeroSVC
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
jne 0x407a9b
xor eax, eax
inc eax
mov dword [ebx], eax
mov edi, eax
push dword [ebp - 4]
call esi
mov eax, edi
jmp 0x407ac9
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
push edi
jne 0x407ab1
call esi
xor edi, edi
jmp 0x407a92
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 4]
call esi
xor eax, eax
inc eax
cmp dword [ebp - 0x1c], eax
jne 0x407ac9
and dword [ebx], 0
pop edi
pop esi
leave
ret
Function at 0x407b34
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 8]
push eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.SOFTWAREAheadNero_BurnRights
push SysReAllocStringLen
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x407b9c
push edi
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push esi
push str.FirstStartDone
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, esi
sete al
pop edi
jmp 0x407ba7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
leave
ret
Function at 0x408413
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [esi + 0x20]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x4084af
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.QueryCurrentNeroGroup
push eax
call edi
mov dword [esi + 4], eax
mov eax, dword [esi + 0x20]
push str.GrantDriveAccess
push eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi + 0x20]
push str.GrantClassAccess
push eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x20]
push str.RemoveGroupACEfromDrives
push eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x20]
push str.SecurityCleanup
push eax
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x20]
push str.RemoveCoinstaller
push eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x20]
push str.AddString
push eax
call edi
cmp dword [esi + 4], ebx
mov dword [esi + 0x1c], eax
pop edi
je 0x4084af
cmp dword [esi + 8], ebx
je 0x4084af
cmp dword [esi + 0xc], ebx
je 0x4084af
cmp dword [esi + 0x10], ebx
je 0x4084af
cmp dword [esi + 0x14], ebx
je 0x4084af
cmp dword [esi + 0x18], ebx
je 0x4084af
cmp eax, ebx
je 0x4084af
xor eax, eax
inc eax
pop ebx
ret
xor eax, eax
pop ebx
ret

Function at 0x408820
Capabilities:
List user account groups

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor edi, edi
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 4]
push eax
push edi
push edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
call sub.NETAPI32.dll_NetLocalGroupEnum
test eax, eax
je 0x40885d
push 0xffffffffffffffff
push 0x30
push 3
call sub.MFC80.DLL_Ordinal_1122
xor eax, eax
jmp 0x4088ad
mov esi, dword [ebp - 4]
mov dword [ebp - 8], edi
xor ebx, ebx
cmp ebx, dword [ebp - 0xc]
jae 0x4088a2
push dword [esi]
lea eax, [ebp - 0x10]
push eax
call fcn.00408e53
mov eax, dword [ebp + 8]
pop ecx
pop ecx
push dword [eax]
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC80.DLL_Ordinal_1486]
test eax, eax
jne 0x408890
mov dword [ebp - 8], 1
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
inc ebx
add esi, 4
cmp dword [ebp - 8], edi
je 0x408865
push dword [ebp - 4]
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4088b2
Capabilities:
Add user account group

Disassembly:
push 0x30
mov eax, 0x42960a
call fcn.004223ae
xor esi, esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], esi
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x3c]
call fcn.00408f08
pop ecx
lea ecx, [ebp + 8]
call dword [sym.imp.MFC80.DLL_Ordinal_310]
push 0xa
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call dword [sym.imp.MFC80.DLL_Ordinal_4035]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 2
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
call fcn.00408f08
pop ecx
push esi
lea ecx, [ebp - 0x3c]
call fcn.00409885
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
call fcn.00409885
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push 1
push esi
mov dword [ebp - 0x14], esi
call sub.NETAPI32.dll_NetLocalGroupAdd
xor ecx, ecx
cmp eax, esi
sete cl
mov byte [ebp - 4], 1
mov esi, ecx
lea ecx, [ebp - 0x2c]
call fcn.00409a46
lea ecx, [ebp + 8]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00409a46
mov eax, esi
call fcn.00422486
ret

Function at 0x408a5e
Capabilities:
Shutdown system

Disassembly:
push 0x2c
mov eax, 0x428c96
call fcn.004223e1
call fcn.0040a7ab
xor esi, esi
test eax, eax
je 0x408b10
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x14]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x408aa7
mov dword [ebp - 0x18], esi
push 0x4373bc
lea eax, [ebp - 0x18]
push eax
call sub.MSVCR80.dll__CxxThrowException
lea eax, [ebp - 0x28]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x408ac8
mov dword [ebp - 0x1c], esi
push 0x4373bc
lea eax, [ebp - 0x1c]
jmp 0x408aa1
mov eax, dword [ebp - 0x28]
push esi
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x24]
push esi
push esi
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x38]
push eax
push esi
push dword [ebp - 0x14]
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x408b10
mov dword [ebp - 0x20], esi
push 0x4373bc
lea eax, [ebp - 0x20]
jmp 0x408aa1
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
call fcn.00422486
ret
Function at 0x408b25
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x20
mov eax, 0x4295d6
call fcn.004223ae
lea eax, [ebp - 0x14]
push eax
push 0x20019
xor edi, edi
push edi
push dword [ebp + 8]
mov dword [ebp - 0x14], edi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x408b5a
xor eax, eax
call fcn.00422486
ret
mov eax, 0x400
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], eax
call fcn.004098b0
lea eax, [ebp - 0x1c]
push eax
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.004098f6
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x14]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
mov dword [ebp - 0x14], edi
je 0x408baf
cmp dword [ebp - 0x18], 1
je 0x408bbf
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00409a98
mov eax, esi
jmp 0x408b54
push edi
lea ecx, [ebp - 0x2c]
call fcn.004098f6
mov ecx, dword [ebp + 0x10]
push eax
call dword [sym.imp.MFC80.DLL_Ordinal_784]
jmp 0x408baf

Function at 0x408bd4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push dword [ebp + 8]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x408bff
xor eax, eax
leave
ret
and dword [ebp - 8], 0
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0xc], 4
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]
test esi, esi
je 0x408c42
cmp dword [ebp - 8], 4
je 0x408c42
xor eax, eax
jmp 0x408c44
mov eax, esi
pop esi
leave
ret
Function at 0x408c47
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push 0x2c
mov eax, 0x4295b3
call fcn.004223ae
lea eax, [ebp - 0x10]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x408c7c
xor eax, eax
call fcn.00422486
ret
mov edi, 0x400
push edi
lea ecx, [ebp - 0x28]
call fcn.004098d3
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 4], ebx
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x18], 0x3ff
call fcn.004098f6
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push str.ImagePath
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x10]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
mov dword [ebp - 0x10], ebx
jne 0x408cdd
lea ecx, [ebp - 0x28]
call fcn.00409ae8
jmp 0x408c74
cmp dword [ebp - 0x14], 2
je 0x408d01
cmp dword [ebp - 0x14], 1
lea ecx, [ebp - 0x28]
jne 0x408cd6
push ebx
call fcn.004098f6
mov ecx, dword [ebp + 0xc]
push eax
call dword [sym.imp.MFC80.DLL_Ordinal_784]
xor ebx, ebx
inc ebx
jmp 0x408d3c
push edi
lea ecx, [ebp - 0x38]
call fcn.004098b0
push 0x3ff
push ebx
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.004098f6
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.004098f6
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
lea ecx, [ebp - 0x38]
jne 0x408d4b
mov byte [ebp - 4], bl
call fcn.00409a98
lea ecx, [ebp - 0x28]
call fcn.00409ae8
mov eax, ebx
jmp 0x408c76
push ebx
call fcn.004098f6
mov ecx, dword [ebp + 0xc]
push eax
call dword [sym.imp.MFC80.DLL_Ordinal_784]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], bl
call fcn.00409a98
jmp 0x408cfc

Function at 0x408d68
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x408d96
xor eax, eax
jmp 0x408dc6
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x408dc9
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push dword [ebp + 8]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x408df2
xor eax, eax
leave
ret
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
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 0x40a56b
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x425b80
call fcn.00422300
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x10], esp
push 0x43c018
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [esi], ebx
mov dword [ebp - 4], ebx
call sub.MSVCR80.dll_fopen
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
mov dword [ebp + 0xc], edi
jne 0x40a5b4
lea eax, [ebp - 0x11]
push 0x433fec
push eax
mov byte [ebp - 0x11], bl
call sub.MSVCR80.dll__CxxThrowException
push 2
push ebx
push edi
call sub.MSVCR80.dll_fseek
add esp, 0xc
test eax, eax
je 0x40a5d5
lea eax, [ebp - 0x12]
push 0x433fec
push eax
mov byte [ebp - 0x12], bl
call sub.MSVCR80.dll__CxxThrowException
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
push eax
push edi
mov dword [ebp - 0x20], ebx
call sub.MSVCR80.dll_fgetpos
pop ecx
test eax, eax
pop ecx
je 0x40a5fc
lea eax, [ebp - 0x13]
push 0x433fec
push eax
mov byte [ebp - 0x13], bl
call sub.MSVCR80.dll__CxxThrowException
mov eax, dword [ebp - 0x24]
cmp eax, ebx
mov dword [esi], eax
jne 0x40a616
lea eax, [ebp - 0x14]
push 0x433fec
push eax
mov byte [ebp - 0x14], bl
call sub.MSVCR80.dll__CxxThrowException
push ebx
push ebx
push edi
call sub.MSVCR80.dll_fseek
add esp, 0xc
test eax, eax
je 0x40a636
lea eax, [ebp - 0x15]
push 0x433fec
push eax
mov byte [ebp - 0x15], bl
call sub.MSVCR80.dll__CxxThrowException
push dword [esi]
call sub.MFC80.DLL_Ordinal_762
cmp eax, ebx
pop ecx
mov dword [ebp - 0x1c], eax
jne 0x40a656
lea eax, [ebp - 0x16]
push 0x433fec
push eax
mov byte [ebp - 0x16], bl
call sub.MSVCR80.dll__CxxThrowException
push edi
push 1
push dword [esi]
push eax
call sub.MSVCR80.dll_fread
add esp, 0x10
cmp eax, 1
je 0x40a698
lea eax, [ebp - 0x17]
push 0x433fec
push eax
mov byte [ebp - 0x17], bl
call sub.MSVCR80.dll__CxxThrowException
xor ebx, ebx
cmp dword [ebp - 0x1c], ebx
je 0x40a68d
push dword [ebp - 0x1c]
call sub.MFC80.DLL_Ordinal_764
pop ecx
mov dword [ebp - 0x1c], ebx
mov eax, 0x40a693
ret
cmp edi, ebx
je 0x40a6a3
push edi
call sub.MSVCR80.dll_fclose
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x40ac39
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x43ed50]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx], 0xffffffff
je 0x40ac79
call fcn.0040ab49
push 7
lea ecx, [ebp - 0xc]
push ecx
movzx eax, ax
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x40ac79
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.MSVCR80.dll_atoi]
pop ecx
jmp 0x40ac7b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421eef
leave
ret