joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401230
Capabilities:
Create raw socket
Create tcp socket
Create udp socket
Print debug messages
Resolve dns

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x409388
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push edi
push 1
push 3
mov ebx, ecx
push 2
call sub.WS2_32.dll_socket
mov edi, eax
cmp edi, 0xffffffff
jne 0x4012b6
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x3c], 0
call sub.WS2_32.dll_WSAGetLastError
push eax
lea eax, [esp + 0x48]
push str.socket___error:_d_n
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x50]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], edi
call sub.MFC42.DLL_CString::CString
pop edi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 8
mov edx, dword [esp + 0x44]
push edx
call sub.WS2_32.dll_gethostbyname
xor ebp, ebp
cmp eax, ebp
jne 0x4012dc
pop edi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 8
mov eax, dword [eax + 0xc]
push esi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x14], ebp
mov ecx, dword [eax]
mov edx, dword [ecx]
mov word [esp + 0x18], 2
mov dword [esp + 0x1c], edx
mov word [esp + 0x1a], bp
lea eax, [esp + 0x18]
mov ecx, ebx
push eax
push edi
call fcn.004010a0
push edi
mov ecx, ebx
call fcn.004011e0
cmp eax, 0xffffffff
je 0x401353
test eax, eax
je 0x401353
lea ecx, [esp + 0x13]
lea edx, [esp + 0x28]
push ecx
push edx
push edi
mov ecx, ebx
call fcn.00401150
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, esi
jb 0x401345
mov ecx, dword [esp + 0x48]
sub eax, esi
add ecx, eax
inc ebp
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 4
mov dword [esp + 0x14], eax
jl 0x4012fc
push edi
call sub.WS2_32.dll_closesocket
cmp eax, 0xffffffff
pop esi
jne 0x401375
pop edi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 8
test ebp, ebp
jne 0x40138f
pop edi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 8
mov eax, dword [esp + 0x44]
xor edx, edx
div ebp
mov ecx, dword [esp + 0x48]
pop edi
pop ebp
pop ebx
mov dword [ecx], eax
mov ecx, dword [esp + 0x28]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x34
ret 8
Function at 0x4033f0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
xor eax, eax
mov ecx, 0x49
lea edi, [esp + 0x10]
mov dword [esp + 0xc], ebx
push eax
rep stosd dword es:[edi], eax
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x403429
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x128
ret
mov ecx, dword [esi + 0xc4]
mov dword [esp + 0xc], 0x128
call fcn.00404980
lea eax, [esp + 0xc]
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40347c
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.00403290
test eax, eax
je 0x40346d
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0xc4]
push edx
push eax
call fcn.004048e0
inc ebx
lea eax, [esp + 0xc]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40344b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x128
ret

Function at 0x403490
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x4097bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push ebp
push esi
mov ebx, ecx
push edi
xor ebp, ebp
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], ebp
push ebp
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4034da
xor eax, eax
jmp 0x403567
mov eax, dword [ebx + 0x7c]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x18], 0x128
call fcn.004088ee
push str..exe
lea ecx, [esp + 0x14]
mov dword [esp + 0x148], ebp
call fcn.00408996
lea ecx, [esp + 0x14]
xor edi, edi
push ecx
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40354a
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x38]
push edx
push eax
call ebx
add esp, 8
test eax, eax
jne 0x403534
inc edi
cmp edi, 1
jg 0x403545
lea ecx, [esp + 0x14]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40354a
jmp 0x40351b
mov ebp, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x144], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, ebp
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x138
ret
Function at 0x4045f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x409a3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x40ac84
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x404680
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov ebx, edi
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x404647
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
jne 0x404671
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x404686
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x404686
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x40ac70
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x40a844
mov dword [esp + 0x1c], 0xffffffff
call fcn.00408b0a
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4056f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x409ba8
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call sub.MFC42.DLL_AfxGetModuleState
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x48]
and eax, 0xffff
push str.IMAGE
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x40577e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40577e
push 0
push ebx
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CMemFile::CMemFile
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 0
push ecx
mov ecx, ebp
call fcn.004057a0
lea ecx, [esp + 0x10]
mov esi, eax
mov dword [esp + 0x40], 0xffffffff
call fcn.00408c0c
mov eax, esi
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 4
Function at 0x4078e0
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x409cd2
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x407a8e
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
push edi
lea eax, [esp + 0x48]
push ebx
push eax
mov ecx, esi
call sub.MFC42.DLL_CListCtrl::GetItemText
mov ecx, dword [esi + 0x20]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 1
push ebx
push 0x1013
push ecx
mov dword [esp + 0x48], 0
call ebp
test eax, eax
jne 0x407957
lea ecx, [esp + 0x44]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x407a8e
lea edx, [esp + 0x10]
mov ecx, esi
push edx
push 0
push edi
push ebx
call sub.MFC42.DLL_CListCtrl::GetSubItemRect
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x407984
cmp eax, dword [esp + 0x28]
jle 0x4079a2
mov edx, dword [esi + 0x20]
push 0
push eax
push 0x1014
push edx
mov ebx, eax
call ebp
mov eax, dword [esp + 0x10]
sub eax, ebx
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x20]
push 0
push edi
push 0x101d
push eax
call ebp
mov ecx, dword [esp + 0x10]
add eax, ecx
mov ecx, dword [esp + 0x28]
cmp eax, ecx
mov dword [esp + 0x18], eax
jle 0x4079c6
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 0x4c]
mov edx, ecx
sub edx, dword [esp + 0x14]
imul edx, eax
mov eax, dword [esp + 0x2c]
lea ecx, [ecx + edx + 0x32]
add eax, 0x64
cmp ecx, eax
mov dword [esp + 0x1c], ecx
jle 0x4079ed
mov dword [esp + 0x1c], eax
push 0x68
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x40], eax
test eax, eax
mov byte [esp + 0x38], 1
je 0x407a15
lea ecx, [esi + 0x40]
push ecx
push edi
push ebx
mov ecx, eax
call fcn.004013c0
mov edi, eax
jmp 0x407a17
xor edi, edi
push 0x1235
lea edx, [esp + 0x14]
push esi
push edx
push 0x50300803
mov ecx, edi
mov byte [esp + 0x48], 0
call sub.MFC42.DLL_CComboBox::Create
push 0
push 0x200
push 0
mov ecx, edi
call sub.MFC42.DLL_CWnd::ModifyStyleEx
push 0
push 0x400
push 0
mov ecx, edi
call sub.MFC42.DLL_CWnd::ModifyStyle
mov eax, dword [edi + 0x20]
push 0
push 1
push 0x14f
push eax
call ebp
push 1
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [edi + 0x20]
push eax
push 0xffffffffffffffff
push 0x14d
push ecx
call ebp
lea ecx, [esp + 0x44]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, edi
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
Function at 0x4043ac
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.00406ab0
test esi, esi
jne 0x4043e2
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.00406c08
jmp 0x404400
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004042f0
mov edi, eax
test esi, esi
je 0x404400
cmp dword [ebx], 0
je 0x404400
dec esi
jmp 0x4043e9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x405cb8
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.00405f54
mov byte [esp], al
cmp byte [esp], 0
jne 0x405e42
test edi, edi
je 0x405e42
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405d82
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x405d5d
cmp edi, 0xffffffff
je 0x405d1d
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405d1d
mov byte [esp], 0
jmp 0x405e42
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405d5d
test ebx, ebx
jne 0x405d4f
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x405d4f
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405e42
lea eax, [esp + 0xc]
call fcn.00405a68
dec ebp
test ebp, ebp
jg 0x405d02
cmp edi, 0xffffffff
je 0x405d82
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405d80
mov byte [esp], 0
jmp 0x405e42
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405cc6
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405d82
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405eb0
mov edx, eax
mov ebx, dword [0x4378f4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405de6
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405de4
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405de6
xor edi, edi
cmp byte [esp], 0
je 0x405e0c
mov ebx, dword [esi]
test bl, 1
jne 0x405e22
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405dec
mov byte [esp + 1], 1
jmp 0x405e22
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405e0c
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405d99
cmp byte [esp], 0
je 0x405e42
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 0x406824
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x437054], 0
je 0x40688b
cmp word [0x437340], 0xd7b2
jne 0x40684d
cmp dword [0x437348], 0
jbe 0x40684d
mov eax, 0x43733c
call dword [0x437358]
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, 0x4068b8
call fcn.00407064
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x435026], 0
jne 0x4068a7
push 0
push 0x4359b2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4084d8
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 0x40863d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406ab0
cmp si, word [0x4359f0]
jb 0x408570
cmp si, word [0x435bf0]
ja 0x408570
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408570
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4359f0]
jae 0x40854a
mov edi, ebx
dec edi
jmp 0x40856b
cmp si, word [ebx*8 + 0x4359f0]
jbe 0x40855a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40856b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4359f4]
call fcn.004083f8
jmp 0x408570
cmp edi, dword [ebp - 8]
jae 0x408534
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40861f
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40861f
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.004071fc
push dword [ebp - 0x160]
push 0x408658
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004071fc
push dword [ebp - 0x164]
push 0x408668
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004071fc
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004073b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408644
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406b10
ret
Function at 0x4087f0
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 0x4088f4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x439b84
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x439b9c]
jne 0x40883c
mov eax, esi
mov edx, 0x439b9e
mov ecx, 0x55
call fcn.004071fc
push 0x439b84
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4088de
push 0x439b84
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406ab0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4088ab
cmp byte [0x439b80], 0
je 0x408870
mov edx, esi
mov eax, ebx
call fcn.004086d4
jmp 0x4088ab
mov edx, esi
mov eax, ebx
call fcn.004084d8
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4088ab
cmp dword [esi], 0
je 0x408894
mov eax, esi
mov edx, 0x40890c
call fcn.004072d4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004084d8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004072d4
push 0x439b84
call sub.kernel32.dll_EnterCriticalSection
mov word [0x439b9c], bx
mov eax, dword [esi]
call fcn.00407168
mov ecx, eax
mov eax, 0x439b9e
mov edx, 0xaa
call fcn.00408358
push 0x439b84
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4088fb
lea eax, [ebp - 4]
call fcn.00406ab0
ret
Function at 0x408b24
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.00406b94
xor eax, eax
push ebp
push 0x408d49
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408b64
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408b7e
mov eax, dword [ebp - 4]
call fcn.00407168
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408358
cmp word [ebp - 0x21a], 0
je 0x408d33
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408d58
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408c4d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408d58
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408c4d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408d94
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408c4d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408d94
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408c4d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408dc8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408c4d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408dfc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x408d33
xor eax, eax
push ebp
push 0x408d2c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408934
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 0x408cbc
mov eax, dword [ebp - 0x10]
call fcn.0040404c
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.004071c0
jmp 0x408d07
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x408e3c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408d07
mov eax, dword [ebp - 0x10]
call fcn.0040404c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x408e3c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004071c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408d33
cmp dword [ebp - 8], 0
je 0x408d22
mov eax, dword [ebp - 8]
call fcn.00404068
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 0x408d50
lea eax, [ebp - 4]
call fcn.00406ab0
ret
Function at 0x409038
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.00406b94
xor eax, eax
push ebp
push 0x4090f8
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.004071fc
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040732c
mov eax, dword [ebx]
call fcn.00408f00
test al, al
jne 0x4090d5
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004071fc
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040732c
mov eax, dword [ebx]
call fcn.00408f00
test al, al
jne 0x4090d5
mov eax, ebx
call fcn.00406ab0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4090ff
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406b10
lea eax, [ebp - 4]
call fcn.00406ab0
ret

Function at 0x40977c
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 0x4168d8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x416911
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406c08
jmp 0x41691a
mov eax, ebx
mov edx, esi
call fcn.00406dbc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x416924
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x416946
movzx eax, word [esp]
jmp 0x416948
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x417c40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x417d65
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00417a48
mov esi, eax
mov eax, dword [0x436c74]
cmp byte [eax], 0
je 0x417d0d
mov eax, dword [0x436afc]
call fcn.00404884
call fcn.004041a0
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x417c10]
call fcn.00407e0c
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x417d80
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x417d49
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x436ac0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x439c4c]
call fcn.00407ff8
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417d6c
lea eax, [ebp - 4]
mov edx, dword [0x417c10]
call fcn.00407f30
ret