joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100421f0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1004220d
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
jmp 0x100422c6
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0xffffffe5
jmp 0x10042253
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0xfffffff8
je 0x100422c6
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0x39aea1dc
mov dword [ebp - 0x30], 0x6e149f7f
push 1
mov ecx, dword [ebp - 0x28]
call fcn.10015a6e
cmp dword [eax], 0
je 0x10042281
jmp 0x100422c6
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0xfffffff7
je 0x10042292
mov dword [ebp - 0x10], 1
jmp 0x10042296
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 8], 0
je 0x100422b7
cmp dword [ebp - 0xc], 0
je 0x100422b7
mov dword [ebp - 0x14], 1
jmp 0x100422bb
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
jmp 0x10042248
mov esp, ebp
pop ebp
ret

Function at 0x1004295f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x100429dd
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
add ecx, dword [eax + 0x24]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
lea eax, [ecx + eax*2]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov edx, dword [ebp - 4]
mov edx, dword [edx]
mov esi, dword [ebp - 0x28]
add edx, dword [esi]
mov esi, dword [ebp - 8]
mov esi, dword [esi]
mov ax, word [ecx + eax]
mov word [esi + edx], ax
jmp 0x10042a00
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax]
test eax, eax
je 0x10042a00
push 0x1404
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10075500
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1007f330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10064c9a
mov dword [ebp - 0x14], eax
cmp dword [0x1066c8fc], esi
jne 0x100755f3
push 0x800
push esi
push 0x10007adc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10075580
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x100756d3
push esi
push esi
push 0x10007adc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x100756d3
push 0x10007af4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100756d3
push eax
call ebx
push 0x10007b00
push edi
mov dword [0x1066c8fc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007b10
push edi
mov dword [0x1066c900], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007b24
push edi
mov dword [0x1066c904], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1066c90c], eax
test eax, eax
je 0x100755f0
push 0x10007b40
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1066c908], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10075618
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1007560b
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1007562d
push 4
pop eax
jmp 0x100756d5
cmp dword [ebp - 0x14], esi
je 0x1007562d
push dword [0x1066c8fc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10075612
mov eax, dword [0x1066c908]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1007568b
cmp dword [0x1066c90c], edi
je 0x1007568b
push eax
call ebx
push dword [0x1066c90c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1007568b
test eax, eax
je 0x1007568b
call ecx
test eax, eax
je 0x10075680
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10075680
test byte [ebp - 8], 1
jne 0x1007568b
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x100756bb
mov eax, dword [0x1066c900]
cmp eax, edi
je 0x100756b8
push eax
call ebx
test eax, eax
je 0x100756b8
call eax
mov esi, eax
test esi, esi
je 0x100756b8
mov eax, dword [0x1066c904]
cmp eax, edi
je 0x100756b8
push eax
call ebx
test eax, eax
je 0x100756b8
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1066c8fc]
call ebx
test eax, eax
je 0x100756d3
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x100756d5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100609b9
mov esp, ebp
pop ebp
ret
Function at 0x402594
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x4025a2
call dword [0x40c004]
or eax, eax
je 0x4025a3
ret
mov al, 1
jmp fcn.00402614

Function at 0x4025ac
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x4025ba
call dword [0x40c008]
or eax, eax
jne 0x4025bb
ret
mov al, 2
jmp fcn.00402614

Function at 0x4025c4
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [eax]
test ecx, ecx
je 0x4025fc
test edx, edx
je 0x4025e6
push eax
mov eax, ecx
call dword [0x40c00c]
pop ecx
or eax, eax
je 0x4025f5
mov dword [ecx], eax
ret
mov al, 2
jmp fcn.00402614
mov dword [eax], edx
mov eax, ecx
call dword [0x40c008]
or eax, eax
jne 0x4025df
ret
mov al, 1
jmp fcn.00402614
test edx, edx
je 0x402610
push eax
mov eax, edx
call dword [0x40c004]
pop ecx
or eax, eax
je 0x4025f5
mov dword [ecx], eax
ret

Function at 0x403780
Capabilities:
Terminate process

Disassembly:
mov al, 0x10
jmp fcn.00402614
cmp eax, edx
je 0x4037f0
cmp word [eax], 8
jb 0x4037a5
push eax
push edx
cmp word [eax], 0x100
je 0x40379b
push eax
call sub.oleaut32.dll_VariantClear
jmp 0x4037a3
add eax, 8
call fcn.00403198
pop edx
pop eax
cmp word [edx], 8
jae 0x4037bc
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [edx + 0xc]
mov dword [eax + 0xc], ecx
ret
cmp word [edx], 0x100
jne 0x4037dc
mov edx, dword [edx + 8]
or edx, edx
je 0x4037d3
mov ecx, dword [edx - 8]
inc ecx
jle 0x4037d3
mov dword [edx - 8], ecx
mov word [eax], pe_nt_image_headers32
mov dword [eax + 8], edx
ret
mov word [eax], 0
push edx
push eax
call sub.oleaut32.dll_VariantCopyInd
or eax, eax
jne 0x403744
ret

Function at 0x4045a0
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, ebx
mov eax, esp
call fcn.0040458c
add esp, 0x104
pop ebx
ret

Function at 0x405694
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 0x4056cd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x4056d6
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4056e0
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 0x405701
mov al, byte [esp]
jmp 0x405703
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x406e64
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406eac
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406e00
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406eb3
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x4070b4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x407142
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x4070ff
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403278
jmp 0x40712c
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x407113
lea eax, [ebp - 4]
call fcn.00403198
jmp 0x407122
lea edx, [ebp - 4]
call fcn.00406f78
test ebx, ebx
je 0x407122
dec ebx
jmp 0x407104
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407149
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x407150
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00405268
add esp, 0x104
pop ebx
ret
Function at 0x4072c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4073fc
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x4073e6
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x407321
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x4073e6
cmp dword [ebp - 0x10], 0
jne 0x407336
mov eax, dword [ebp - 8]
call fcn.00403198
mov bl, 1
jmp 0x4073e6
cmp dword [ebp - 0x10], 0x70000000
jb 0x407344
call fcn.00405d0c
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
lea eax, [ebp - 0x14]
mov ecx, esi
xor edx, edx
call fcn.00403278
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
call fcn.00403420
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
cmp eax, 0xea
je 0x4072ea
test eax, eax
jne 0x4073e6
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x407394
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x4073e6
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
jmp 0x40739f
dec esi
test esi, esi
je 0x4073ad
mov eax, dword [ebp - 0x14]
cmp byte [eax + esi - 1], 0
je 0x40739e
cmp dword [ebp - 0xc], 7
jne 0x4073b8
test esi, esi
je 0x4073b8
inc esi
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.004034f0
cmp dword [ebp - 0xc], 7
jne 0x4073d9
test esi, esi
je 0x4073d9
lea eax, [ebp - 0x14]
call fcn.00403420
mov byte [eax + esi - 1], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.004031e8
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407403
lea eax, [ebp - 0x14]
call fcn.00403198
ret

Function at 0x407d44
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40d560
mov eax, esi
mov edx, 8
test al, 1
je 0x407d60
shr eax, 1
xor eax, 0xedb88320
jmp 0x407d62
shr eax, 1
dec edx
jne 0x407d53
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x407d4c
pop esi
ret

Function at 0x407d8f
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40d55c], 0
jne 0x407d9b
call fcn.00407d44
push 1
push 0x40d55c
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x407dc6
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40d560]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x407da1
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x405634
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x405676
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x405696
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00409864
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x40735c
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.0040781c
mov byte [esp], al
cmp byte [esp], 0
jne 0x4074e5
test edi, edi
je 0x4074e5
mov byte [esp + 1], 0
test ebp, ebp
jle 0x407425
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x407400
cmp edi, 0xffffffff
je 0x4073c1
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4073c1
mov byte [esp], 0
jmp 0x4074e5
cmp dword [esi], 1
jg 0x407400
cmp dword [esi], 0
jne 0x4073f2
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4073f2
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4074e5
lea eax, [esp + 0xc]
call fcn.0040703c
dec ebp
test ebp, ebp
jg 0x4073a6
cmp edi, 0xffffffff
je 0x407425
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407423
mov byte [esp], 0
jmp 0x4074e5
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40736a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407425
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00407560
mov edx, eax
mov ebx, dword [0x6578fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x407489
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x407487
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x407489
xor edi, edi
cmp byte [esp], 0
je 0x4074af
mov ebx, dword [esi]
test bl, 1
jne 0x4074c5
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40748f
mov byte [esp + 1], 1
jmp 0x4074c5
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4074af
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40743c
cmp byte [esp], 0
je 0x4074e5
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 0x4083a4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x65705c], 0
je 0x40840b
cmp word [0x657348], 0xd7b2
jne 0x4083cd
cmp dword [0x657350], 0
jbe 0x4083cd
mov eax, 0x657344
call dword [0x657360]
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, 0x408438
call fcn.004091b4
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x651032], 0
jne 0x408427
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4085cc
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 [0x651034], 0
je 0x4085f7
mov edx, edi
mov eax, esi
call dword [0x651034]
mov ebx, eax
jmp 0x408608
mov eax, 8
call fcn.00405490
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x65705d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x408594
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 0x408638
mov eax, ebx
call fcn.004054ac
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40c1d4
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 0x40c339
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040870c
cmp si, word [0x651a10]
jb 0x40c26c
cmp si, word [0x651c10]
ja 0x40c26c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c26c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x651a10]
jae 0x40c246
mov edi, ebx
dec edi
jmp 0x40c267
cmp si, word [ebx*8 + 0x651a10]
jbe 0x40c256
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c267
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x651a14]
call fcn.0040c0f4
jmp 0x40c26c
cmp edi, dword [ebp - 8]
jae 0x40c230
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c31b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c31b
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.00409864
push dword [ebp - 0x160]
push 0x40c354
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00409864
push dword [ebp - 0x164]
push 0x40c364
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00409864
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00409a9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c340
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040876c
ret
Function at 0x40c4ec
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 0x40c5f0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x659c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x659c2c]
jne 0x40c538
mov eax, esi
mov edx, 0x659c2e
mov ecx, 0x55
call fcn.00409864
push 0x659c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40c5da
push 0x659c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040870c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c5a7
cmp byte [0x659c10], 0
je 0x40c56c
mov edx, esi
mov eax, ebx
call fcn.0040c3d0
jmp 0x40c5a7
mov edx, esi
mov eax, ebx
call fcn.0040c1d4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40c5a7
cmp dword [esi], 0
je 0x40c590
mov eax, esi
mov edx, 0x40c608
call fcn.004099bc
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c1d4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004099bc
push 0x659c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x659c2c], bx
mov eax, dword [esi]
call fcn.004097c0
mov ecx, eax
mov eax, 0x659c2e
mov edx, 0xaa
call fcn.0040c054
push 0x659c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c5f7
lea eax, [ebp - 4]
call fcn.0040870c
ret
Function at 0x40c820
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.004087f0
xor eax, eax
push ebp
push 0x40ca45
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40c860
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40c87a
mov eax, dword [ebp - 4]
call fcn.004097c0
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c054
cmp word [ebp - 0x21a], 0
je 0x40ca2f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ca54
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c949
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ca54
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c949
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ca90
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c949
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ca90
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c949
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cac4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c949
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40caf8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40ca2f
xor eax, eax
push ebp
push 0x40ca28
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c630
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 0x40c9b8
mov eax, dword [ebp - 0x10]
call fcn.00405490
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.00409828
jmp 0x40ca03
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40cb38
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40ca03
mov eax, dword [ebp - 0x10]
call fcn.00405490
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40cb38
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00409828
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ca2f
cmp dword [ebp - 8], 0
je 0x40ca1e
mov eax, dword [ebp - 8]
call fcn.004054ac
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 0x40ca4c
lea eax, [ebp - 4]
call fcn.0040870c
ret