joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44aee0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x490
mov eax, dword [0x4871a0]
xor eax, esp
mov dword [esp + 0x488], eax
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp esi, edi
jne 0x44af19
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x488]
xor ecx, esp
call fcn.0044fcda
add esp, 0x490
ret
push 0x208
push esi
call fcn.004534b4
add esp, 8
cmp eax, 0x208
jge 0x44aeff
push 0x410
lea ecx, [esp + 0x7e]
xor eax, eax
push edi
push ecx
mov word [esp + 0x84], ax
call fcn.00453e20
push 0x208
push esi
lea edx, [esp + 0x8c]
push 0x209
push edx
call fcn.00450a70
add esp, 0x1c
lea eax, [esp + 0x14]
push eax
push 0x8b
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, eax
cmp esi, edi
je 0x44b08d
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push ecx
push 1
push 2
push edi
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
cmp esi, edi
je 0x44b068
lea eax, [esp + 0x10]
push eax
push str.S_1_16_8192
call sub.ADVAPI32.dll_ConvertStringSidToSidW
mov esi, eax
cmp esi, edi
je 0x44b068
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], edi
push eax
mov dword [esp + 0x20], 0x20
mov dword [esp + 0x1c], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov edx, dword [esp + 0xc]
add eax, 8
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0x19
push edx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov esi, eax
cmp esi, edi
je 0x44b068
xor eax, eax
push 0x40
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x38]
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x3c], edi
call fcn.00453e20
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x34]
push edx
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [esp + 0x98]
push eax
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x44b05d
push eax
call ebx
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x44b068
push eax
call ebx
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x44b077
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x44b082
push eax
call ebx
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x44b08d
push eax
call ebx
mov ecx, dword [esp + 0x494]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0044fcda
add esp, 0x490
ret
Function at 0x44d08b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x48d828], 0
push esi
jne 0x44cffe
call fcn.0044cf24
test eax, eax
je 0x44d041
mov eax, dword [0x48d828]
cmp eax, 1
jne 0x44d01f
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x44d041
pop esi
ret
push eax
call dword [0x48d830]
test eax, eax
jne 0x44d089
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x44d045
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x48d828]
call dword [0x48d830]
mov edi, eax
test edi, edi
je 0x44d06a
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x44d086
mov edi, esi
add esi, 0xff0
push edi
push dword [0x48d828]
call dword [0x48d82c]
add edi, 0x10
cmp edi, esi
jb 0x44d072
mov eax, edi
pop edi
pop esi
ret
jmp 0x44cfeb

Function at 0x44e3d0
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2c14
call fcn.00456af0
mov eax, dword [0x4871a0]
xor eax, esp
mov dword [esp + 0x2c10], eax
mov eax, dword [esp + 0x2c18]
push edi
xor edi, edi
mov dword [esp + 0xc], eax
cmp eax, edi
je 0x44e53b
cmp dword [esp + 0x2c20], edi
je 0x44e53b
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov dword [esp + 0x10], edi
xor ebx, ebx
lea ebx, [ebx]
push ebx
push str..PhysicalDrive_d
lea eax, [esp + 0x30]
push 0x100
push eax
call fcn.0042a9e0
add esp, 0x10
push edi
push edi
push 3
push edi
push 3
push edi
lea ecx, [esp + 0x40]
push ecx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x44e514
xor eax, eax
push 0x2710
lea edx, [esp + 0x514]
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.00453e20
add esp, 0xc
push edi
lea eax, [esp + 0x18]
push eax
push 0x2710
lea ecx, [esp + 0x51c]
push ecx
push 0xc
lea edx, [esp + 0x30]
push edx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x44e507
push 0x3e8
lea eax, [esp + 0x12c]
push edi
push eax
call fcn.00453e20
mov edx, dword [esp + 0x534]
lea ecx, [esp + 0x134]
push ecx
push 1
push edx
lea eax, [esp + 0x528]
push eax
call fcn.0044faf0
mov edx, dword [esp + 0x2c48]
mov eax, dword [esp + 0x34]
add esp, 0x1c
lea ecx, [esp + 0x128]
push ecx
push edx
push eax
call fcn.0042a9b0
test eax, eax
jne 0x44e507
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], edi
jne 0x44e51e
inc ebx
cmp ebx, 0x10
jl 0x44e420
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x2c10]
xor ecx, esp
call fcn.0044fcda
add esp, 0x2c14
ret
mov ecx, dword [esp + 0x2c14]
pop edi
xor ecx, esp
xor eax, eax
call fcn.0044fcda
add esp, 0x2c14
ret
Function at 0x44e7e0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x2ec
mov eax, dword [0x4871a0]
xor eax, esp
mov dword [esp + 0x2e8], eax
push edi
mov edi, dword [esp + 0x2f4]
mov dword [esp + 0x18], edi
test edi, edi
je 0x44e9e1
cmp dword [esp + 0x2f8], 0
je 0x44e9e1
push 0x64
lea eax, [esp + 0x20]
push 0
push eax
call fcn.00453e20
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 8
push 0
push 0x471654
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44e9a8
mov ecx, dword [esp + 4]
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x100]
push eax
push ebx
mov esi, 0x104
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x44e99b
lea ebx, [ebx]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 1
push 0
lea eax, [esp + 0xf8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44e969
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1f4]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push str.ServiceName
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x44e95e
push 0x64
push eax
lea eax, [esp + 0x90]
push eax
call fcn.00453e20
lea ecx, [esp + 0x1fc]
push 0x64
push ecx
lea edi, [esp + 0x9c]
call fcn.0044e6d0
add esp, 0x14
test eax, eax
je 0x44e95e
cmp byte [esp + 0x24], 0
je 0x44e922
lea edx, [esp + 0x24]
push edx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x44e95e
lea eax, [esp + 0x24]
lea esi, [esp + 0x88]
mov ecx, eax
mov edx, 0x64
sub esi, ecx
lea ecx, [edx + 0x7fffff9a]
test ecx, ecx
je 0x44e951
mov cl, byte [esi + eax]
test cl, cl
je 0x44e951
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x44e936
jmp 0x44e955
test edx, edx
jne 0x44e956
dec eax
mov byte [eax], 0
mov esi, 0x104
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0xc]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x100]
push ecx
inc ebx
push ebx
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x44e880
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
cmp byte [esp + 0x1c], 0
je 0x44e9e1
mov edx, dword [esp + 0x2f8]
lea ecx, [esp + 0x1c]
push ecx
push edx
push edi
call fcn.0042a9b0
xor ecx, ecx
test eax, eax
setge cl
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.0044fcda
add esp, 0x2ec
ret
mov ecx, dword [esp + 0x2ec]
pop edi
xor ecx, esp
xor eax, eax
call fcn.0044fcda
add esp, 0x2ec
ret
Function at 0x44ec50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x50c
mov eax, dword [0x4871a0]
xor eax, esp
mov dword [esp + 0x508], eax
push ebp
mov ebp, dword [esp + 0x514]
test edi, edi
je 0x44edcd
cmp ebp, 0x20
jb 0x44edcd
push 0x400
lea eax, [esp + 0x110]
push 0
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0x400
call fcn.00453e20
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x10]
push eax
push 0x4716c4
push str.Software360SafeLiveup
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x44edcd
lea eax, [esp + 0x10c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44ece0
sub eax, edx
cmp eax, 0x40
jne 0x44edcd
push ebx
lea edx, [eax + 0x40]
push esi
lea eax, [esp + 0x14]
lea esi, [esp + 0x114]
mov ecx, eax
sub esi, ecx
lea ecx, [edx - 0x60]
test ecx, ecx
je 0x44ed1e
mov cl, byte [esi + eax]
test cl, cl
je 0x44ed1e
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x44ed06
jmp 0x44ed22
test edx, edx
jne 0x44ed23
dec eax
mov byte [eax], 0
lea eax, [esp + 0x94]
lea edx, [esp + 0x134]
mov ecx, eax
mov esi, 0x80
sub edx, ecx
lea ecx, [ecx]
lea ecx, [esi + 0x7fffff7e]
test ecx, ecx
je 0x44ed5b
mov cl, byte [edx + eax]
test cl, cl
je 0x44ed5b
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x44ed40
jmp 0x44ed5f
test esi, esi
jne 0x44ed60
dec eax
push 0x400
lea edx, [esp + 0x118]
push 0
push edx
mov byte [eax], 0
call fcn.00453e20
push 0x400
lea ebx, [esp + 0x124]
lea ecx, [esp + 0x24]
call fcn.0044de50
add esp, 0x10
lea eax, [esp + 0x94]
push eax
mov ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
pop esi
pop ebx
test eax, eax
jne 0x44edcd
lea edx, [esp + 0xc]
push edx
push ebp
push edi
call fcn.0042a9b0
neg eax
sbb eax, eax
inc eax
pop ebp
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.0044fcda
add esp, 0x50c
ret
mov ecx, dword [esp + 0x50c]
pop ebp
xor ecx, esp
xor eax, eax
call fcn.0044fcda
add esp, 0x50c
ret

Function at 0x44edf0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x188
mov eax, dword [0x4871a0]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
push esi
push 0x80
lea eax, [esp + 0xc]
push 0
push eax
mov esi, ecx
call fcn.00453e20
push 0x80
lea ebx, [esp + 0x18]
mov ecx, esi
call fcn.0044de50
lea eax, [esp + 0x98]
mov ecx, eax
add esp, 0x10
mov edx, 0x104
sub esi, ecx
lea esp, [esp]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x44ee5b
mov cl, byte [esi + eax]
test cl, cl
je 0x44ee5b
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x44ee40
jmp 0x44ee5f
test edx, edx
jne 0x44ee60
dec eax
lea edx, [esp + 8]
push edx
mov byte [eax], 0
push 0x104
lea eax, [esp + 0x90]
push eax
call fcn.0044dd60
lea eax, [esp + 0x88]
pop esi
lea edx, [eax + 1]
pop ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44ee86
sub eax, edx
push eax
lea ecx, [esp + 0x84]
push ecx
push 1
push 0x4716c4
push str.Software360SafeLiveup
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.0044fcda
add esp, 0x188
ret

Function at 0x44fcda
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4871a0]
jne 0x44fce4
repz ret
jmp fcn.00456c5c
Function at 0x463c34
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00456dd4
and dword [ebp - 4], 0
cmp dword [0x48edd8], 0
mov ebx, eax
jne 0x463ce5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x463d96
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x463d96
push eax
call fcn.00456d62
mov dword [esp], 0x473c38
push edi
mov dword [0x48edd8], eax
call esi
push eax
call fcn.00456d62
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x48eddc], eax
call esi
push eax
call fcn.00456d62
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x48ede0], eax
call esi
push eax
call fcn.00456d62
pop ecx
mov dword [0x48ede8], eax
test eax, eax
je 0x463ce5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00456d62
pop ecx
mov dword [0x48ede4], eax
mov eax, dword [0x48ede4]
cmp eax, ebx
je 0x463d3d
cmp dword [0x48ede8], ebx
je 0x463d3d
push eax
call fcn.00456ddd
push dword [0x48ede8]
mov esi, eax
call fcn.00456ddd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x463d3d
test edi, edi
je 0x463d3d
call esi
test eax, eax
je 0x463d34
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x463d34
test byte [ebp - 0xc], 1
jne 0x463d3d
or dword [ebp + 0x10], 0x200000
jmp 0x463d76
mov eax, dword [0x48eddc]
cmp eax, ebx
je 0x463d76
push eax
call fcn.00456ddd
pop ecx
test eax, eax
je 0x463d76
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x463d76
mov eax, dword [0x48ede0]
cmp eax, ebx
je 0x463d76
push eax
call fcn.00456ddd
pop ecx
test eax, eax
je 0x463d76
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x48edd8]
call fcn.00456ddd
pop ecx
test eax, eax
je 0x463d96
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x463d98
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407208
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00409c60
test esi, esi
jne 0x40723e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00409de8
jmp 0x40725c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040714c
mov edi, eax
test esi, esi
je 0x40725c
cmp dword [ebx], 0
je 0x40725c
dec esi
jmp 0x407245
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4088ec
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00408d4c
mov byte [esp], al
cmp byte [esp], 0
jne 0x408a75
test edi, edi
je 0x408a75
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4089b5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408990
cmp edi, 0xffffffff
je 0x408951
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408951
mov byte [esp], 0
jmp 0x408a75
cmp dword [esi], 1
jg 0x408990
cmp dword [esi], 0
jne 0x408982
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408982
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408a75
lea eax, [esp + 0xc]
call fcn.004085b0
dec ebp
test ebp, ebp
jg 0x408936
cmp edi, 0xffffffff
je 0x4089b5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4089b3
mov byte [esp], 0
jmp 0x408a75
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4088fa
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4089b5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408ae4
mov edx, eax
mov ebx, dword [0x66b8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408a19
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408a17
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408a19
xor edi, edi
cmp byte [esp], 0
je 0x408a3f
mov ebx, dword [esi]
test bl, 1
jne 0x408a55
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408a1f
mov byte [esp + 1], 1
jmp 0x408a55
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408a3f
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4089cc
cmp byte [esp], 0
je 0x408a75
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4098f8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x66b05c], 0
je 0x40995f
cmp word [0x66b348], 0xd7b2
jne 0x409921
cmp dword [0x66b350], 0
jbe 0x409921
mov eax, 0x66b344
call dword [0x66b360]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x40998c
call fcn.0040a484
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x661032], 0
jne 0x40997b
push 0
push 0x6619c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409b20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x661034], 0
je 0x409b4b
mov edx, edi
mov eax, esi
call dword [0x661034]
mov ebx, eax
jmp 0x409b5c
mov eax, 8
call fcn.00406e88
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x66b05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409ae8
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x409b8c
mov eax, ebx
call fcn.00406ea4
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40c900
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40ca65
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409c60
cmp si, word [0x661a00]
jb 0x40c998
cmp si, word [0x661c00]
ja 0x40c998
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c998
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x661a00]
jae 0x40c972
mov edi, ebx
dec edi
jmp 0x40c993
cmp si, word [ebx*8 + 0x661a00]
jbe 0x40c982
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c993
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x661a04]
call fcn.0040c820
jmp 0x40c998
cmp edi, dword [ebp - 8]
jae 0x40c95c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40ca47
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40ca47
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a83c
push dword [ebp - 0x160]
push 0x40ca80
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a83c
push dword [ebp - 0x164]
push 0x40ca90
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a83c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040aa74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ca6c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409cc0
ret
Function at 0x40cc18
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40cd1c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x66db8c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x66dba4]
jne 0x40cc64
mov eax, esi
mov edx, 0x66dba6
mov ecx, 0x55
call fcn.0040a83c
push 0x66db8c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40cd06
push 0x66db8c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409c60
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40ccd3
cmp byte [0x66db88], 0
je 0x40cc98
mov edx, esi
mov eax, ebx
call fcn.0040cafc
jmp 0x40ccd3
mov edx, esi
mov eax, ebx
call fcn.0040c900
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40ccd3
cmp dword [esi], 0
je 0x40ccbc
mov eax, esi
mov edx, 0x40cd34
call fcn.0040a994
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c900
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a994
push 0x66db8c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x66dba4], bx
mov eax, dword [esi]
call fcn.0040a780
mov ecx, eax
mov eax, 0x66dba6
mov edx, 0xaa
call fcn.0040c780
push 0x66db8c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cd23
lea eax, [ebp - 4]
call fcn.00409c60
ret
Function at 0x40cf4c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409d44
xor eax, eax
push ebp
push 0x40d171
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40cf8c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40cfa6
mov eax, dword [ebp - 4]
call fcn.0040a780
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c780
cmp word [ebp - 0x21a], 0
je 0x40d15b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d180
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d075
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d180
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d075
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d1bc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d075
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d1bc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d075
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d1f0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d075
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d224
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40d15b
xor eax, eax
push ebp
push 0x40d154
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040cd5c
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40d0e4
mov eax, dword [ebp - 0x10]
call fcn.00406e88
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a7e8
jmp 0x40d12f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40d264
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40d12f
mov eax, dword [ebp - 0x10]
call fcn.00406e88
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40d264
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a7e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d15b
cmp dword [ebp - 8], 0
je 0x40d14a
mov eax, dword [ebp - 8]
call fcn.00406ea4
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 0x40d178
lea eax, [ebp - 4]
call fcn.00409c60
ret