joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007b5b0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x14007b5f2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14007b639
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14007b692
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x14007b650
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14007b6d3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14008e37a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14008e37b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14007b6a0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x14007b6ec
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14007b726
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14007b72b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14007b774
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x14007b774
dec r8
sub rdx, 1
jne 0x14007b75a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14007cbc8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14007cc12
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14007cc12
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14007cc12
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14007cc12
cmp dword [rcx + 0x84], 0xe
jbe 0x14007cc12
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14007cc14
xor al, al
add rsp, 0x28
ret
Function at 0x1400103f0
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x20
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov qword [rsp], 0
mov rax, qword [rsp]
cmp rax, qword [rsp + 0x18]
jae 0x140010457
mov rax, qword [rsp + 0x10]
mov rcx, qword [rsp]
movzx eax, byte [rax + rcx]
xor rax, qword [rsp + 8]
mov qword [rsp + 8], rax
movabs rax, 0x100000001b3
imul rax, qword [rsp + 8]
mov qword [rsp + 8], rax
mov rax, qword [rsp]
add rax, 1
mov qword [rsp], rax
jmp 0x14001040b
mov rax, qword [rsp + 8]
add rsp, 0x20
ret

Function at 0x140010fb0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x30], rcx
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
cmp dword [rax], 0x138
jne 0x140010fde
mov rcx, qword [rsp + 0x20]
call fcn.1400110a0
jmp 0x140010fff
mov rcx, qword [rsp + 0x20]
mov eax, 0x270
cmp eax, dword [rcx]
ja 0x140010ffa
mov rcx, qword [rsp + 0x20]
call fcn.140011170
jmp 0x140010fff
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
mov edx, eax
add edx, 1
mov dword [rcx], edx
mov eax, eax
mov rax, qword [rcx + rax*8 + 8]
and rax, 0xffffffffffffffff
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
shr rax, 0x1d
and rax, qword [rcx + 0x1388]
xor rax, qword [rsp + 0x28]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
shl rax, 0x11
movabs rcx, 0x71d67fffeda60000
and rax, rcx
xor rax, qword [rsp + 0x28]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
shl rax, 0x25
movabs rcx, 0xfff7eee000000000
and rax, rcx
xor rax, qword [rsp + 0x28]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
and rax, 0xffffffffffffffff
shr rax, 0x2b
xor rax, qword [rsp + 0x28]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rsp, 0x38
ret

Function at 0x1400110a0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x20
mov qword [rsp + 0x18], rcx
mov rax, qword [rsp + 0x18]
mov qword [rsp], rax
mov qword [rsp + 0x10], 0x138
cmp qword [rsp + 0x10], 0x270
jae 0x140011160
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x10]
sub rcx, 0x138
mov rcx, qword [rax + rcx*8 + 8]
and rcx, 0xffffffff80000000
mov rdx, qword [rsp + 0x10]
sub rdx, 0x138
mov rdx, qword [rax + rdx*8 + 0x10]
and rdx, 0x7fffffff
or rcx, rdx
mov qword [rsp + 8], rcx
mov rdx, qword [rsp + 8]
shr rdx, 1
mov r9, qword [rsp + 8]
and r9, 1
xor ecx, ecx
movabs r8, 0xb5026f5aa96619e9
cmp r9, 0
cmovne rcx, r8
xor rdx, rcx
mov rcx, qword [rsp + 0x10]
sub rcx, 0x138
xor rdx, qword [rax + rcx*8 + 0x4e8]
mov rcx, qword [rsp + 0x10]
mov qword [rax + rcx*8 + 8], rdx
mov rax, qword [rsp + 0x10]
add rax, 1
mov qword [rsp + 0x10], rax
jmp 0x1400110bb
add rsp, 0x20
ret
Function at 0x140011170
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x50
mov qword [rsp + 0x48], rcx
mov rax, qword [rsp + 0x48]
mov qword [rsp], rax
mov qword [rsp + 0x40], 0x137
mov qword [rsp + 0x38], 0x9c
mov qword [rsp + 0x30], 0
cmp qword [rsp + 0x30], 0x9c
jae 0x140011233
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rax + rcx*8 + 0x9c8]
and rcx, 0xffffffff80000000
mov rdx, qword [rsp + 0x30]
mov rdx, qword [rax + rdx*8 + 0x9d0]
and rdx, 0x7fffffff
or rcx, rdx
mov qword [rsp + 0x28], rcx
mov rdx, qword [rsp + 0x28]
shr rdx, 1
mov r9, qword [rsp + 0x28]
and r9, 1
xor ecx, ecx
movabs r8, 0xb5026f5aa96619e9
cmp r9, 0
cmovne rcx, r8
xor rdx, rcx
mov rcx, qword [rsp + 0x30]
xor rdx, qword [rax + rcx*8 + 0xea8]
mov rcx, qword [rsp + 0x30]
mov qword [rax + rcx*8 + 8], rdx
mov rax, qword [rsp + 0x30]
add rax, 1
mov qword [rsp + 0x30], rax
jmp 0x14001119d
mov qword [rsp + 0x20], 0x9c
cmp qword [rsp + 0x20], 0x137
jae 0x1400112d9
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rax + rcx*8 + 0x9c8]
and rcx, 0xffffffff80000000
mov rdx, qword [rsp + 0x20]
mov rdx, qword [rax + rdx*8 + 0x9d0]
and rdx, 0x7fffffff
or rcx, rdx
mov qword [rsp + 0x18], rcx
mov rdx, qword [rsp + 0x18]
shr rdx, 1
mov r9, qword [rsp + 0x18]
and r9, 1
xor ecx, ecx
movabs r8, 0xb5026f5aa96619e9
cmp r9, 0
cmovne rcx, r8
xor rdx, rcx
mov rcx, qword [rsp + 0x20]
sub rcx, 0x138
xor rdx, qword [rax + rcx*8 + 0x4e8]
mov rcx, qword [rsp + 0x20]
mov qword [rax + rcx*8 + 8], rdx
mov rax, qword [rsp + 0x20]
add rax, 1
mov qword [rsp + 0x20], rax
jmp 0x14001123c
mov rax, qword [rsp]
mov qword [rsp + 0x10], 0x137
mov rcx, qword [rax + 0x1380]
and rcx, 0xffffffff80000000
mov rdx, qword [rax + 8]
and rdx, 0x7fffffff
or rcx, rdx
mov qword [rsp + 8], rcx
mov rcx, qword [rsp + 8]
shr rcx, 1
mov r9, qword [rsp + 8]
and r9, 1
xor edx, edx
movabs r8, 0xb5026f5aa96619e9
cmp r9, 0
cmovne rdx, r8
xor rcx, rdx
xor rcx, qword [rax + 0x4e0]
mov qword [rax + 0x9c0], rcx
mov dword [rax], 0
add rsp, 0x50
ret
Function at 0x140012f90
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x1a0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x118], 0xfffffffffffffffe
mov qword [rbp - 0x50], rcx
mov rax, rcx
mov qword [rbp - 0x48], rax
mov qword [rbp + 0x110], rcx
mov dword [rbp + 0x10c], edx
mov ecx, 2
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdx, rax
lea rcx, [rbp + 0xf8]
call fcn.140013510
lea rcx, [rbp + 0xf8]
call fcn.140013550
test al, 1
jne 0x140012ff7
jmp 0x140013096
mov dword [rbp - 0x38], 0x130
lea rcx, [rbp + 0xf8]
call fcn.1400041c0
mov rcx, rax
lea rdx, [rbp - 0x38]
call sub.KERNEL32.dll_Process32First
mov dword [rbp - 0x54], eax
jmp 0x14001301e
mov eax, dword [rbp - 0x54]
cmp eax, 0
je 0x140013091
jmp 0x14001302f
mov eax, dword [rbp - 0x30]
cmp eax, dword [rbp + 0x10c]
jne 0x140013060
mov rcx, qword [rbp - 0x50]
lea r8, [rbp - 0xc]
lea rdx, [rbp - 0x30]
call fcn.140013570
jmp 0x140013054
mov dword [rbp - 0x3c], 1
jmp 0x1400130b7
lea rcx, [rbp + 0xf8]
call fcn.1400041c0
mov rcx, rax
lea rdx, [rbp - 0x38]
call sub.KERNEL32.dll_Process32Next
mov dword [rbp - 0x58], eax
jmp 0x140013080
mov eax, dword [rbp - 0x58]
cmp eax, 0
jne 0x14001302f
jmp 0x140013091
jmp 0x140013096
mov rcx, qword [rbp - 0x50]
xor edx, edx
mov r8d, 8
call fcn.1400f60e0
mov rcx, qword [rbp - 0x50]
call fcn.140013630
mov dword [rbp - 0x3c], 1
lea rcx, [rbp + 0xf8]
call fcn.140013650
mov rax, qword [rbp - 0x48]
add rsp, 0x1a0
pop rbp
ret
Function at 0x1400132f0
Capabilities:
Enumerate process modules

Disassembly:
push rbp
sub rsp, 0x2f0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x268], 0xfffffffffffffffe
mov qword [rbp - 0x40], rdx
mov rax, rdx
mov qword [rbp - 0x38], rax
mov qword [rbp + 0x260], rdx
mov dword [rbp + 0x25c], r8d
mov qword [rbp + 0x250], rcx
mov rax, qword [rbp + 0x250]
mov qword [rbp - 0x30], rax
mov edx, dword [rax]
mov ecx, 0x18
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdx, rax
lea rcx, [rbp + 0x240]
call fcn.140013510
lea rcx, [rbp + 0x240]
call fcn.140013550
test al, 1
jne 0x14001336a
jmp 0x140013472
mov dword [rbp + 8], 0x238
lea rcx, [rbp + 0x240]
call fcn.1400041c0
mov rcx, rax
lea rdx, [rbp + 8]
call sub.KERNEL32.dll_Module32First
mov dword [rbp - 0x44], eax
jmp 0x140013391
mov eax, dword [rbp - 0x44]
cmp eax, 0
je 0x14001346d
jmp 0x1400133a2
mov rax, qword [rbp - 0x30]
mov eax, dword [rax]
cmp eax, dword [rbp + 0x10]
jne 0x14001343c
mov eax, dword [rbp + 0x28]
mov qword [rbp - 0x58], rax
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp - 0x10]
call fcn.140001fe0
mov r8, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x10]
lea rcx, [rbp - 8]
call fcn.140026940
mov rax, qword [rbp - 0x30]
mov r8d, dword [rax]
mov ecx, dword [rbp + 0x25c]
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
xor edx, edx
call rax
mov qword [rbp - 0x50], rax
jmp 0x1400133f7
mov rax, qword [rbp - 0x50]
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x18]
lea rdx, [rbp - 0x20]
call fcn.1400137e0
jmp 0x140013411
mov rcx, qword [rbp - 0x40]
lea rdx, [rbp - 0x18]
lea r8, [rbp - 8]
call fcn.140013720
jmp 0x140013427
lea rcx, [rbp - 0x18]
call fcn.140013840
mov dword [rbp - 0x24], 1
jmp 0x140013493
lea rcx, [rbp + 0x240]
call fcn.1400041c0
mov rcx, rax
lea rdx, [rbp + 8]
call sub.KERNEL32.dll_Module32Next
mov dword [rbp - 0x5c], eax
jmp 0x14001345c
mov eax, dword [rbp - 0x5c]
cmp eax, 0
jne 0x1400133a2
jmp 0x14001346d
jmp 0x140013472
mov rcx, qword [rbp - 0x40]
xor edx, edx
mov r8d, reloc.WS2_32.dll_recv
call fcn.1400f60e0
mov rcx, qword [rbp - 0x40]
call fcn.140005030
mov dword [rbp - 0x24], 1
lea rcx, [rbp + 0x240]
call fcn.140013650
mov rax, qword [rbp - 0x38]
add rsp, 0x2f0
pop rbp
ret
Function at 0x14001b8d0
Capabilities:
Read file on windows

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [rbp - 0x10], rcx
mov rcx, qword [rbp - 0x10]
mov qword [rbp - 0x40], rcx
mov rax, rcx
add rax, 0x18
mov qword [rbp - 0x38], rax
mov rax, rcx
add rax, 0x10
mov qword [rbp - 0x20], rax
add rcx, 0x48
mov qword [rbp - 0x48], rcx
call fcn.1400029f0
mov rcx, qword [rbp - 0x48]
mov dword [rbp - 0x24], eax
call fcn.140002560
mov rcx, qword [rbp - 0x40]
mov qword [rbp - 0x30], rax
add rcx, 0x38
call fcn.1400041c0
mov r10, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x30]
mov r8d, dword [rbp - 0x24]
mov r9, qword [rbp - 0x20]
mov rcx, rax
mov rax, rsp
mov qword [rax + 0x20], r10
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
mov dword [rbp - 0x14], eax
jmp 0x14001b95f
mov eax, dword [rbp - 0x14]
cmp eax, 0
jne 0x14001b992
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov dword [rbp - 0x4c], eax
jmp 0x14001b97c
mov eax, dword [rbp - 0x4c]
cmp eax, 0x3e5
jne 0x14001b992
mov rax, qword [rbp - 0x40]
mov byte [rax + 0xc], 1
add rsp, 0x80
pop rbp
ret

Function at 0x14001bc80
Capabilities:
Write file on windows

Disassembly:
push rbp
sub rsp, 0xa0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x18], 0xfffffffffffffffe
mov qword [rbp + 0x10], r8
mov qword [rbp + 8], rdx
mov qword [rbp], rcx
mov rcx, qword [rbp]
mov qword [rbp - 0x40], rcx
xorps xmm0, xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
mov eax, dword [rbp + 0x10]
mov dword [rbp - 0x30], eax
mov rax, qword [rbp + 8]
mov qword [rbp - 0x38], rax
add rcx, 0x38
call fcn.1400041c0
mov rdx, qword [rbp - 0x38]
mov r8d, dword [rbp - 0x30]
mov rcx, rax
mov rax, rsp
lea r9, [rbp - 0x20]
mov qword [rax + 0x20], r9
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [rbp - 0x24]
call rax
mov dword [rbp - 0x2c], eax
jmp 0x14001bcf9
mov eax, dword [rbp - 0x2c]
mov dword [rbp - 0x28], eax
cmp dword [rbp - 0x28], 0
jne 0x14001bd5d
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov dword [rbp - 0x44], eax
jmp 0x14001bd1a
mov eax, dword [rbp - 0x44]
cmp eax, 0x3e5
jne 0x14001bd5d
mov rcx, qword [rbp - 0x40]
add rcx, 0x38
call fcn.1400041c0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
lea rdx, [rbp - 0x20]
lea r8, [rbp - 0x24]
mov r9d, 1
call rax
mov dword [rbp - 0x48], eax
jmp 0x14001bd57
mov eax, dword [rbp - 0x48]
mov dword [rbp - 0x28], eax
xor eax, eax
cmp dword [rbp - 0x28], 0
mov byte [rbp - 0x49], al
je 0x14001bd79
mov eax, dword [rbp - 0x24]
cmp rax, qword [rbp + 0x10]
sete al
mov byte [rbp - 0x49], al
mov al, byte [rbp - 0x49]
and al, 1
movzx eax, al
add rsp, 0xa0
pop rbp
ret
Function at 0x1400205f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x28], 0xfffffffffffffffe
mov qword [rbp + 0x20], rdx
mov qword [rbp + 0x18], r9
mov qword [rbp + 0x10], r8
mov qword [rbp + 8], rcx
mov rax, qword [rbp + 8]
mov qword [rbp - 0x20], rax
mov qword [rbp], 0
mov rax, qword [rbp + 0x18]
mov qword [rbp - 0x10], rax
lea rcx, [rbp + 0x20]
call fcn.140020900
mov rcx, qword [rbp - 0x20]
mov qword [rbp - 0x18], rax
call fcn.140002090
mov rcx, rax
call fcn.1400041c0
mov rdx, qword [rbp - 0x18]
mov r8, qword [rbp - 0x10]
mov rcx, rax
mov rax, rsp
lea r9, [rbp - 4]
mov qword [rax + 0x20], r9
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r9d, 0x40
call rax
jmp 0x140020678
mov rax, qword [rbp + 0x18]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x30], rax
lea rcx, [rbp + 0x20]
call fcn.140020900
mov rcx, qword [rbp - 0x20]
mov qword [rbp - 0x38], rax
call fcn.140002090
mov rcx, rax
call fcn.1400041c0
mov rdx, qword [rbp - 0x38]
mov r8, qword [rbp - 0x30]
mov r9, qword [rbp - 0x28]
mov rcx, rax
mov rax, rsp
mov r10, rbp
mov qword [rax + 0x20], r10
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
jmp 0x1400206cd
mov eax, dword [rbp - 4]
mov dword [rbp - 0x3c], eax
mov rax, qword [rbp + 0x18]
mov qword [rbp - 0x48], rax
lea rcx, [rbp + 0x20]
call fcn.140020900
mov rcx, qword [rbp - 0x20]
mov qword [rbp - 0x50], rax
call fcn.140002090
mov rcx, rax
call fcn.1400041c0
mov rdx, qword [rbp - 0x50]
mov r8, qword [rbp - 0x48]
mov r9d, dword [rbp - 0x3c]
mov rcx, rax
mov rax, rsp
lea r10, [rbp - 4]
mov qword [rax + 0x20], r10
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
call rax
jmp 0x140020721
mov rax, qword [rbp]
add rsp, 0xb0
pop rbp
ret

Function at 0x140020750
Capabilities:
Create thread

Disassembly:
push rbp
sub rsp, 0x90
lea rbp, [rsp + 0x80]
mov qword [rbp + 8], 0xfffffffffffffffe
mov qword [rbp - 0x48], rdx
mov rax, rdx
mov qword [rbp - 0x40], rax
mov qword [rbp], rdx
mov qword [rbp - 8], r9
mov qword [rbp - 0x10], r8
mov qword [rbp - 0x18], rcx
mov rcx, qword [rbp - 0x18]
mov rax, qword [rbp - 8]
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x30], rax
call fcn.140002090
mov rcx, rax
call fcn.1400041c0
mov rdx, qword [rbp - 0x38]
mov r9, qword [rbp - 0x30]
mov rcx, rax
mov rax, rsp
mov qword [rax + 0x20], rdx
mov qword [rax + 0x30], 0
mov dword [rax + 0x28], 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
xor edx, edx
mov r8d, edx
mov rdx, r8
call rax
mov qword [rbp - 0x28], rax
jmp 0x1400207df
mov rcx, qword [rbp - 0x48]
mov rax, qword [rbp - 0x28]
mov qword [rbp - 0x20], rax
lea rdx, [rbp - 0x20]
call fcn.1400137e0
jmp 0x1400207f9
mov rax, qword [rbp - 0x40]
add rsp, 0x90
pop rbp
ret
Function at 0x1400279c0
Capabilities:
Read file on windows

Disassembly:
push rbp
mov eax, 0x1090
call fcn.1400c2f60
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1008], 0xfffffffffffffffe
mov qword [rbp - 0x58], rdx
mov rax, rcx
mov rcx, qword [rbp - 0x58]
mov rdx, rcx
mov qword [rbp - 0x50], rdx
mov qword [rbp + 0x1000], rcx
mov qword [rbp + 0xff8], rax
mov rax, qword [rbp + 0xff8]
mov qword [rbp - 0x48], rax
mov byte [rbp + 0xff7], 0
call fcn.140009830
mov rax, qword [rbp - 0x48]
mov rcx, qword [rax]
mov rax, rsp
mov qword [rax + 0x20], 0
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
lea rdx, [rbp - 0x10]
mov r8d, 0x1000
lea r9, [rbp - 0x14]
call rax
mov dword [rbp - 0x3c], eax
jmp 0x140027a49
mov eax, dword [rbp - 0x3c]
cmp eax, 0
je 0x140027a83
mov eax, dword [rbp - 0x14]
mov r8d, eax
lea rcx, [rbp - 0x38]
lea rdx, [rbp - 0x10]
call fcn.1400035f0
jmp 0x140027a6d
mov rcx, qword [rbp - 0x58]
lea rdx, [rbp - 0x38]
call fcn.14000ab70
lea rcx, [rbp - 0x38]
call fcn.140002220
mov byte [rbp + 0xff7], 1
test byte [rbp + 0xff7], 1
jne 0x140027aa0
mov rcx, qword [rbp - 0x58]
call fcn.140002220
mov rax, qword [rbp - 0x50]
add rsp, 0x1090
pop rbp
ret

Function at 0x140027ae0
Capabilities:
Write file on windows

Disassembly:
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [rbp - 0x10], rdx
mov qword [rbp - 0x18], rcx
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rcx, qword [rbp - 0x10]
call fcn.1400029f0
mov dword [rbp - 0x24], eax
mov rcx, qword [rbp - 0x10]
call fcn.140002a00
mov r8d, dword [rbp - 0x24]
mov rdx, rax
mov rax, qword [rbp - 0x20]
mov rcx, qword [rax]
mov rax, rsp
mov qword [rax + 0x20], 0
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
xor r9d, r9d
call rax
jmp 0x140027b41
add rsp, 0x50
pop rbp
ret

Function at 0x140033b40
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x30], rcx
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rax, 0x50
mov qword [rsp + 0x20], rax
call fcn.1400331f0
mov rdx, qword [rsp + 0x20]
mov rcx, rax
call fcn.140033f10
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rsp + 0x28]
add rcx, 8
call fcn.140033f60
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x28], 0
call fcn.1400331f0
mov rcx, qword [rsp + 0x28]
mov rdx, rax
add rcx, 0x50
call fcn.140033f10
mov rcx, qword [rsp + 0x28]
add rcx, 0x20
call fcn.140033ff0
xor al, 0xff
test al, 1
jne 0x140033b53
add rsp, 0x38
ret

Function at 0x14004cfe0
Capabilities:
Initialize winsock library

Disassembly:
push rbp
sub rsp, 0x1d0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x148], 0xfffffffffffffffe
mov qword [rbp + 0x140], rcx
mov rax, qword [0x140160cf0]
mov rcx, rax
add rcx, 1
mov qword [0x140160cf0], rcx
cmp rax, 0
jne 0x14004d042
mov word [rbp - 0x5a], 0x202
mov cx, word [rbp - 0x5a]
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
lea rdx, [rbp - 0x58]
call rax
jmp 0x14004d03d
jmp 0x14004d042
add rsp, 0x1d0
pop rbp
ret
Function at 0x14004d600
Capabilities:
Connect socket

Disassembly:
push rbp
sub rsp, 0xa0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x18], 0xfffffffffffffffe
mov qword [rbp + 8], rdx
mov qword [rbp], rcx
mov rax, qword [rbp]
mov qword [rbp - 0x48], rax
mov rcx, qword [rbp + 8]
mov rdx, qword [rcx]
mov qword [rax + 0x38], rdx
mov rdx, qword [rcx + 8]
mov qword [rax + 0x40], rdx
mov rcx, qword [rcx + 0x10]
mov qword [rax + 0x48], rcx
mov rcx, qword [rbp + 8]
call fcn.140053ff0
test al, 1
jne 0x14004d659
jmp 0x14004d70c
mov rcx, qword [rbp - 0x48]
mov edx, 2
mov r8d, 1
call fcn.14004d190
mov byte [rbp - 0x49], al
jmp 0x14004d675
mov al, byte [rbp - 0x49]
test al, 1
jne 0x14004d685
jmp 0x14004d696
mov rcx, qword [rbp - 0x48]
call fcn.14004d890
test al, 1
jne 0x14004d69f
mov byte [rbp + 0x17], 0
jmp 0x14004d7b3
xorps xmm0, xmm0
movaps xmmword [rbp - 0x10], xmm0
mov word [rbp - 0x10], 2
mov rcx, qword [rbp + 8]
add rcx, 0x10
call fcn.1400023e0
mov ax, word [rax]
mov word [rbp - 0xe], ax
mov rcx, qword [rbp + 8]
lea rdx, [rbp - 0x18]
mov qword [rbp - 0x58], rdx
call fcn.140054020
mov rcx, qword [rbp - 0x58]
call fcn.1400023e0
mov rcx, qword [rbp - 0x48]
mov eax, dword [rax]
mov dword [rbp - 0xc], eax
add rcx, 0x30
call fcn.1400023e0
mov rcx, qword [rax]
mov rax, qword [sym.imp.WS2_32.dll_connect]
lea rdx, [rbp - 0x10]
mov r8d, reloc.WS2_32.dll_recv
call rax
jmp 0x14004d707
jmp 0x14004d7af
mov rcx, qword [rbp - 0x48]
mov edx, reloc.WS2_32.dll_socket
mov r8d, 1
call fcn.14004d190
mov byte [rbp - 0x59], al
jmp 0x14004d728
mov al, byte [rbp - 0x59]
test al, 1
jne 0x14004d738
jmp 0x14004d749
mov rcx, qword [rbp - 0x48]
call fcn.14004d890
test al, 1
jne 0x14004d752
mov byte [rbp + 0x17], 0
jmp 0x14004d7b3
xorps xmm0, xmm0
movups xmmword [rbp - 0x34], xmm0
movaps xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x40], reloc.WS2_32.dll_socket
mov rcx, qword [rbp + 8]
add rcx, 0x10
call fcn.1400023e0
mov rcx, qword [rbp - 0x48]
mov ax, word [rax]
mov word [rbp - 0x3e], ax
mov rax, qword [rbp + 8]
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x38], xmm0
add rcx, 0x30
call fcn.1400023e0
mov rcx, qword [rax]
mov rax, qword [sym.imp.WS2_32.dll_connect]
lea rdx, [rbp - 0x40]
mov r8d, 0x1c
call rax
jmp 0x14004d7aa
jmp 0x14004d7af
mov byte [rbp + 0x17], 1
mov al, byte [rbp + 0x17]
and al, 1
movzx eax, al
add rsp, 0xa0
pop rbp
ret

Function at 0x14004e1c0
Capabilities:
Set socket configuration

Disassembly:
push rbp
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov qword [rbp - 8], 0xfffffffffffffffe
and dl, 1
mov byte [rbp - 9], dl
mov qword [rbp - 0x18], rcx
mov rcx, qword [rbp - 0x18]
mov al, byte [rbp - 9]
not al
movzx eax, al
and eax, 1
mov dword [rbp - 0x1c], eax
add rcx, 0x30
call fcn.1400023e0
mov rcx, qword [rax]
mov rax, qword [sym.imp.WS2_32.dll_ioctlsocket]
mov edx, 0x8004667e
lea r8, [rbp - 0x1c]
call rax
mov dword [rbp - 0x20], eax
jmp 0x14004e214
mov eax, dword [rbp - 0x20]
cmp eax, 0
sete al
and al, 1
movzx eax, al
add rsp, 0x40
pop rbp
ret