joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10094350
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + esi + 0x14]
mov eax, dword [edx]
lea ecx, [ecx + esi + 0x14]
push edi
call eax
cmp eax, 0xffffffff
jbe 0x1009438e
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], 0x22
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx + 8]
mov eax, dword [edx + esi + 0x14]
lea ecx, [edx + esi + 0x14]
mov edx, dword [eax]
call edx
mov edi, eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x30], 0
mov ecx, dword [eax + 8]
mov edx, dword [ecx + esi + 0x14]
mov eax, dword [edx + 4]
lea ecx, [ecx + esi + 0x14]
call eax
mov ecx, dword [eax + 0x20]
mov edx, dword [ecx + 0x14]
add edx, dword [eax + 4]
mov eax, dword [esi + 0x14]
push 0
push esi
mov dword [esp + 0x1c], edx
push 0
mov dword [esp + 0x1c], edi
mov ecx, dword [eax + 8]
lea edx, [esp + 0x18]
push edx
mov edx, dword [ecx + esi + 0x14]
lea ecx, [ecx + esi + 0x14]
push 1
lea eax, [esp + 0x24]
push eax
mov eax, dword [edx + 8]
call eax
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x1009448b
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov esi, dword [sym.imp.MSVCR100.dll__errno]
mov ebx, eax
call esi
mov dword [eax], ebx
call esi
cmp dword [eax], 0x3e5
je 0x1009448b
call sym.ACE.dll_bool___cdecl_ACE::debug_void_
test al, al
je 0x1009447f
call edi
mov edi, eax
call esi
mov eax, dword [eax]
mov esi, edi
test eax, eax
je 0x10094437
mov esi, eax
call sym.ACE.dll_public:_static_class_ACE_Log_Msg____cdecl_ACE_Log_Msg::instance_void_
push str.Initiating_write
push 0x100a50fc
push 0x80
push eax
mov byte [eax + 0x13c], 1
mov dword [eax + 0x140], str.WIN32_Asynch_IO.cpp
mov dword [eax + 0x144], 0x420
mov dword [eax + 0x148], 0
mov dword [eax + 0x14c], esi
call sym.ACE.dll_public:_int___cdecl_ACE_Log_Msg::log_enum_ACE_Log_Priority__char_const__
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100945c0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009c538
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
push edi
mov eax, dword [0x10112018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [edi - 0x20], eax
mov eax, dword [edi - 8]
mov dword [edi - 0x24], esi
mov dword [edi - 0x1c], ecx
mov dword [edi - 0x18], edx
test eax, eax
jne 0x10094610
mov eax, dword [edi - 0x10]
add dword [eax + 8], esi
jmp 0x1009465d
mov eax, 1
test byte [0x101160f4], al
jne 0x10094638
or dword [0x101160f4], eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [ebp - 0x3c]
mov dword [0x101160f0], edx
jmp 0x1009463e
mov edx, dword [0x101160f0]
mov eax, dword [edi - 0x10]
test eax, eax
je 0x1009465d
test esi, esi
je 0x1009465d
mov ecx, edx
cmp edx, esi
jbe 0x10094651
mov ecx, esi
add dword [eax + 8], ecx
mov eax, dword [eax + 0x10]
sub esi, ecx
test eax, eax
jne 0x10094645
lea ecx, [edi - 0x48]
test ecx, ecx
jne 0x1009466a
xor eax, eax
xor edx, edx
jmp 0x10094695
mov edx, dword [edi - 0x34]
mov eax, dword [edx + 0xc]
lea ecx, [eax + edi - 0x34]
test ecx, ecx
jne 0x1009467e
xor eax, eax
xor edx, edx
jmp 0x10094695
mov edx, dword [ecx]
mov eax, dword [edx + 8]
add eax, ecx
jne 0x1009468b
xor edx, edx
jmp 0x10094695
mov edx, dword [eax + 4]
mov edx, dword [edx + 4]
lea edx, [edx + eax + 4]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], vtable.ACE_Asynch_Read_File::Result.0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov eax, dword [edi - 0x2c]
mov ecx, dword [eax]
mov ecx, dword [ecx]
test ecx, ecx
je 0x100946c2
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
lea eax, [ebp - 0x1c]
push eax
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10094db0
Capabilities:
Query environment variable
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.ACE.dll_public_virtual:_int___thiscall_ACE_WIN32_Asynch_Read_Stream::readv_class_ACE_Message_Block___unsigned_int__void_const___int__int_

Function at 0x10094ee0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009c538
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
push edi
mov eax, dword [0x10112018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [edi - 0x20], eax
mov eax, dword [edi - 8]
mov dword [edi - 0x24], esi
mov dword [edi - 0x1c], ecx
mov dword [edi - 0x18], edx
test eax, eax
jne 0x10094f30
mov eax, dword [edi - 0x10]
add dword [eax + 4], esi
jmp 0x10094f7d
mov eax, 1
test byte [0x101160ec], al
jne 0x10094f58
or dword [0x101160ec], eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [ebp - 0x3c]
mov dword [0x101160e8], edx
jmp 0x10094f5e
mov edx, dword [0x101160e8]
mov eax, dword [edi - 0x10]
test eax, eax
je 0x10094f7d
test esi, esi
je 0x10094f7d
mov ecx, edx
cmp edx, esi
jbe 0x10094f71
mov ecx, esi
add dword [eax + 4], ecx
mov eax, dword [eax + 0x10]
sub esi, ecx
test eax, eax
jne 0x10094f65
lea ecx, [edi - 0x48]
test ecx, ecx
jne 0x10094f8a
xor eax, eax
xor edx, edx
jmp 0x10094fb5
mov edx, dword [edi - 0x34]
mov eax, dword [edx + 0xc]
lea ecx, [eax + edi - 0x34]
test ecx, ecx
jne 0x10094f9e
xor eax, eax
xor edx, edx
jmp 0x10094fb5
mov edx, dword [ecx]
mov eax, dword [edx + 8]
add eax, ecx
jne 0x10094fab
xor edx, edx
jmp 0x10094fb5
mov edx, dword [eax + 4]
mov edx, dword [edx + 4]
lea edx, [edx + eax + 4]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], vtable.ACE_Asynch_Write_File::Result.0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov eax, dword [edi - 0x2c]
mov ecx, dword [eax]
mov ecx, dword [ecx]
test ecx, ecx
je 0x10094fe2
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [ebp - 0x1c]
push eax
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10095700
Capabilities:
Query environment variable
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.ACE.dll_public_virtual:_int___thiscall_ACE_WIN32_Asynch_Write_Stream::writev_class_ACE_Message_Block___unsigned_int__void_const___int__int_
Function at 0x10095fd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009f83c
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10112018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0xc], ecx
je 0x1009604e
mov dword [esi + 0x18], sym.ACE.dll_const_ACE_WIN32_Asynch_Connect::vbtablefor__ACE_WIN32_Asynch_Operation
mov dword [esi + 0x94], sym.ACE.dll_const_ACE_WIN32_Asynch_Accept::vbtablefor__ACE_Asynch_Accept_Impl
mov dword [esi + 0x88], vtable.ACE_Asynch_Operation_Impl.0
mov eax, dword [esi + 0x94]
mov dword [esi + 0x90], vtable.ACE_Asynch_Connect_Impl.0
mov edx, dword [eax + 4]
mov dword [edx + esi + 0x94], vtable.ACE_Asynch_Connect_Impl.1.0
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 3
mov eax, dword [esi + 0x18]
mov edx, dword [eax + 4]
lea edi, [esi + 0x18]
mov dword [edi + edx], vtable.ACE_WIN32_Asynch_Operation.0
mov eax, dword [edi]
mov eax, dword [eax + 4]
lea edx, [eax - 0x1c]
mov dword [eax + edi - 4], edx
mov eax, dword [ebp + 8]
push 0x10115520
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
push 8
mov dword [ebp - 0x18], edi
mov dword [edi + 0xc], vtable.ACE_Refcounted_Auto_Ptr_class_ACE_Handler::Proxy__class_ACE_Thread_Mutex_.0
call fcn.1009ae46
xor ebx, ebx
add esp, 8
cmp eax, ebx
je 0x10096135
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0xffffffff
mov dword [ebp - 4], 3
mov dword [esi], vtable.ACE_Event_Handler.0
mov eax, 1
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], vtable.ACE_Event_Handler::Reference_Counting_Policy.0
mov dword [esi + 0x14], eax
mov byte [ebp - 4], 4
mov eax, dword [edi]
mov dword [esi], vtable.ACE_WIN32_Asynch_Connect.0
mov ecx, dword [eax + 4]
mov dword [ecx + esi + 0x18], vtable.ACE_WIN32_Asynch_Connect.1.0
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov dword [eax + esi + 0x18], vtable.ACE_WIN32_Asynch_Connect.2.0
mov ecx, dword [edi]
mov eax, dword [ecx + 4]
lea edx, [eax - 0x70]
mov dword [eax + esi + 0x14], edx
mov eax, dword [edi]
mov eax, dword [eax + 8]
lea ecx, [eax - 0x78]
mov dword [eax + esi + 0x14], ecx
lea eax, [esi + 0x34]
mov byte [esi + 0x30], bl
call fcn.10018e60
push ebx
push ebx
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 5
call sym.ACE.dll_public:_void___thiscall_ACE_Thread_Mutex::constructor_char_const___struct_ACE_mutexattr_t__
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.MSVCR100.dll__errno]
push 1
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x24]
mov dword [eax], 0xc
mov dword [ebp + 0xc], str.bad_allocation
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const___int_]
push 0x100b36f8
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3
Function at 0x1009acfd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10112018]
jne 0x1009ad07
repz ret
jmp fcn.1009b3e3
Function at 0x10001380
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x10001330
call dword [sym.imp.USER32.dll_EnumWindows]
xor ecx, ecx
test eax, eax
push 0
cmove ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10001b40
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x23c
mov eax, dword [0x10001004]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push esi
lea edx, [esp + 0x134]
push edi
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x10001b66
mov ebx, dword [sym.imp.USER32.dll_CharLowerBuffA]
lea eax, [esp + 0x138]
push 0x104
push eax
call ebx
push 0
push 2
mov dword [esp + 0x18], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x10001c13
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x10001c0c
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
nop word [eax + eax]
push 0x104
lea eax, [esp + 0x38]
push eax
call ebx
lea eax, [esp + 0x138]
lea ecx, [esp + 0x34]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10001bf7
test dl, dl
je 0x10001bf3
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10001bf7
add ecx, 2
add eax, 2
test dl, dl
jne 0x10001bd7
xor eax, eax
jmp 0x10001bfc
sbb eax, eax
or eax, 1
test eax, eax
je 0x10001c2a
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x10001bc0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.1000233c
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x244]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000233c
mov esp, ebp
pop ebp
ret

Function at 0x10001cb0
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10001004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0xf003f
push 0
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x10001cf3
push 0xf01ff
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x10001d05
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000233c
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
neg eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
sbb edi, edi
and edi, 1
call esi
push ebx
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000233c
mov esp, ebp
pop ebp
ret
Function at 0x10001d40
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10001004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0xf003f
push 0
push 0
mov esi, edx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x10001d83
push 0xf01ff
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x10001d95
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000233c
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
neg eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
sbb edi, edi
and edi, 1
call esi
push ebx
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000233c
mov esp, ebp
pop ebp
ret

Function at 0x10002030
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10004900
push 0x10002dbb
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10001004]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor esi, esi
mov dword [ebp - 4], esi
push esi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x10002093
test byte [ebp - 0x1c], 7
mov eax, 1
cmovne esi, eax
jmp 0x10002090
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100020b0
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10003030
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x10001004]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x42c], edx
nop
nop
nop
nop
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x420], 1
push eax
mov dword [ebp - 0x1c], 0x74736554
mov dword [ebp - 0x18], 0x676e69
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
mov dword [ebp - 0x430], esi
test esi, esi
je 0x10002209
push 0
push 0x4000000
push 0
push 0
push edi
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x424], eax
test eax, eax
je 0x10002200
push 0x10004a18
lea eax, [ebp - 0x428]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x428], 0x42
call sub.VCRUNTIME140.dll__CxxThrowException
push 0x10004260
push dword [ebp - 0x42c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x100021e4
cmp dword [ebp - 0x420], 0
jbe 0x100021da
mov edi, dword [ebp - 0x424]
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [ebp - 0x420]
push eax
push 0x3ff
lea eax, [ebp - 0x41c]
push eax
push edi
call ebx
push esi
push dword [ebp - 0x420]
lea eax, [ebp - 0x41c]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x420], 0
ja 0x100021a2
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov eax, 0x100021ea
ret
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1000233c
mov esp, ebp
pop ebp
ret
Function at 0x10002230
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
push 0x40
lea eax, [ebp - 0x60]
mov dword [ebp - 8], 0
mov esi, ecx
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], 0
call sub.VCRUNTIME140.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
add esp, 0xc
xorps xmm0, xmm0
mov dword [ebp - 0x64], 0x44
movups xmmword [ebp - 0x20], xmm0
call edi
mov ebx, dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
lea ecx, [ebp - 8]
push ecx
push eax
call ebx
test eax, eax
jne 0x100022a7
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call esi
call edi
lea ecx, [ebp - 8]
push ecx
push eax
call ebx
test eax, eax
je 0x10002290
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
push 1
push 1
push 0
push 0x2000000
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x100022c7
xor esi, esi
jmp 0x1000230b
push 0
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x100022de
xor esi, esi
jmp 0x1000230b
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push 0
push dword [ebp - 0xc]
push 0x430
push 0
push 0
push 0
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov esi, eax
neg esi
sbb esi, esi
and esi, 1
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x10002319
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10002329
push eax
call edi
mov eax, dword [ebp - 8]
test eax, eax
je 0x10002333
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404be0
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404d98
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404c41
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404db4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404cae
xor eax, eax
push ebp
push 0x404ca7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404c90
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404dd4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404cae
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404d8f
cmp byte [ebp - 0xd], 0
jne 0x404cf0
cmp byte [ebp - 0x12], 0
je 0x404d8f
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404d09
dec ebx
cmp byte [ebx], 0x2e
je 0x404d18
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404d08
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404d8f
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404d45
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404d8f
cmp byte [ebp - 0xd], 0
je 0x404d8f
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404d8f
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408268
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_1
test eax, eax
jle 0x4082a1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403978
jmp 0x4082aa
mov eax, ebx
mov edx, esi
call fcn.0040392c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4082b4
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_1
test eax, eax
jle 0x4082d5
mov al, byte [esp]
jmp 0x4082d7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x41356c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x413572
ret

Function at 0x415a20
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x415a71
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x415a58
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x415a48
jmp 0x415a71
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x415a59
pop ebx
mov esp, ebp
pop ebp
ret