joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14013ba7c
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rbp
sub rsp, 0x150
mov rbx, rdx
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14013bb09
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], pe_nt_image_headers64
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
jmp 0x14013bafc
lea rcx, [rsp + 0x4c]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x14013bac1
cmp qword [rbx + 0x18], 0xf
mov rcx, rbx
mov r8, qword [rbx + 0x10]
jbe 0x14013badb
mov rcx, qword [rbx]
cmp r8, rax
jne 0x14013baee
lea rdx, [rsp + 0x4c]
call fcn.140c85840
test eax, eax
je 0x14013bb62
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x14013bab8
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14013bb3f
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14013bb3a
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14013bbaa
mov rcx, r8
call fcn.140c4bba0
and qword [rbx + 0x10], 0
xor al, al
mov byte [rbx], 0
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov rbx, qword [rsp + 0x160]
add rsp, 0x150
pop rbp
ret
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14013bba1
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14013bb9c
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14013bbaa
mov rcx, r8
call fcn.140c4bba0
and qword [rbx + 0x10], 0
mov al, 1
jmp 0x14013bb46
call fcn.140c5acfc
int3
Function at 0x14013bbb0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
sub rsp, 0x150
mov rbx, rdx
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14013bc75
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], pe_nt_image_headers64
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
jmp 0x14013bc68
lea rcx, [rsp + 0x4c]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x14013bbfe
cmp qword [rbx + 0x18], 0xf
mov rcx, rbx
mov r8, qword [rbx + 0x10]
jbe 0x14013bc18
mov rcx, qword [rbx]
cmp r8, rax
jne 0x14013bc5a
lea rdx, [rsp + 0x4c]
call fcn.140c85840
test eax, eax
jne 0x14013bc5a
mov r8d, dword [rsp + 0x28]
lea ecx, [rax + 1]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbp, rax
test rax, rax
je 0x14013bc5a
mov edx, 9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x14013bbf5
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14013bcab
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14013bca6
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14013bcd0
mov rcx, r8
call fcn.140c4bba0
mov byte [rbx], 0
lea r11, [rsp + 0x150]
mov rbp, qword [r11 + 0x18]
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
and qword [rbx + 0x10], 0
mov rbx, qword [r11 + 0x10]
mov rsp, r11
pop rsi
ret
call fcn.140c5acfc
int3

Function at 0x14013bcd8
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x13b0
call fcn.140c4c230
sub rsp, rax
mov ebx, r8d
mov edi, edx
call fcn.140c49e80
or dword [rsp + 0x13a4], 0xffffffff
mov edx, 0x270
mov dword [rsp + 0x24], eax
mov r9d, 1
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, r9d
mov dword [rsp + r9*4 + 0x24], eax
inc r9
cmp r9, rdx
jb 0x14013bd0c
mov dword [rsp + 0x20], edx
lea rcx, [rsp + 0x13c0]
lea rdx, [rsp + 0x20]
mov r9d, ebx
mov r8d, edi
call fcn.14013bd94
mov rbx, qword [rsp + 0x13c8]
add rsp, 0x13b0
pop rdi
ret
Function at 0x14013be24
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
mov r9d, 0x270
mov rbx, rcx
cmp dword [rcx], r9d
jne 0x14013be77
lea r8, [rcx + 8]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x14013be3c
jmp 0x14013be84
cmp dword [rcx], 0x4e0
jb 0x14013be84
call fcn.14013bec4
mov eax, dword [rbx]
mov edx, dword [rbx + rax*4 + 4]
inc eax
mov dword [rbx], eax
mov ecx, edx
mov eax, dword [rbx + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 0x20
pop rbx
ret

Function at 0x14013bec4
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
lea r10, [rcx + 0x9c4]
mov r9, rcx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov edx, eax
add r10, 4
mov r11d, dword [r10]
xor edx, r11d
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14013bedb
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
mov eax, r11d
mov r8, r10
mov edx, eax
add r10, 4
mov r11d, dword [r10]
xor edx, r11d
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14013bf28
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and dword [r9], ebx
mov rbx, qword [rsp + 8]
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
shr edx, 1
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
ret
Function at 0x14013e580
Capabilities:
Read file on windows

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 r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14013e5ae
xor eax, eax
jmp 0x14013e694
cmp qword [rcx + 0x68], 0
je 0x14013e5bf
call fcn.14013f78c
jmp 0x14013e694
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14013e5d6
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14013e5d8
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14013e60a
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140c85940
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14013e68e
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14013e641
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14013e66a
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140c63ba8
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14013e68e
cmp rsi, rbx
ja 0x14013e648
test rsi, rsi
je 0x14013e68e
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140c63ba8
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140a6c2c0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x140db81c0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
sete al
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140c4bf60
add rsp, 0x1d8
ret
Function at 0x140a6e1a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x28
movsxd rcx, dword [rcx + 8]
xor r9d, r9d
nop
call qword [sym.imp.WS2_32.dll_recv]
cdqe
add rsp, 0x28
ret

Function at 0x140a6e1c0
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x28
movsxd rcx, dword [rcx + 8]
xor r9d, r9d
nop
call qword [sym.imp.WS2_32.dll_send]
cdqe
add rsp, 0x28
ret
Function at 0x140a796a0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140db81c0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x28], rdx
mov rsi, qword [rdx + 0x10]
lea rcx, [rsi + 2]
movabs rax, 0xaaaaaaaaaaaaaaab
mul rcx
shr rdx, 1
shl rdx, 2
xor r8d, r8d
mov rcx, rdi
call fcn.14013fce0
mov r8, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x140a79702
mov r8, qword [rdi]
xor edx, edx
lea r10, [rsi - 2]
lea r11, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
test r10, r10
je 0x140a797de
nop dword [rax + rax]
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140a7972d
mov rax, qword [rbx]
movzx eax, byte [rax + rdx]
shr rax, 2
movzx eax, byte [rax + r11]
mov byte [r8], al
cmp qword [rbx + 0x18], 0xf
jbe 0x140a7974d
mov rax, qword [rbx]
lea r9, [rdx + rax]
jmp 0x140a79754
lea r9, [rbx + rdx]
mov rax, rbx
movzx ecx, byte [rax + rdx + 1]
shr rcx, 4
movsx rax, byte [r9]
and eax, 3
shl rax, 4
or rcx, rax
movzx eax, byte [rcx + r11]
mov byte [r8 + 1], al
cmp qword [rbx + 0x18], 0xf
jbe 0x140a79784
mov rax, qword [rbx]
lea r9, [rax + 1]
jmp 0x140a7978b
lea r9, [rbx + 1]
mov rax, rbx
add r9, rdx
movzx ecx, byte [rax + rdx + 2]
shr rcx, 6
movsx rax, byte [r9]
and eax, 0xf
shl rax, 2
or rcx, rax
movzx eax, byte [rcx + r11]
mov byte [r8 + 2], al
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140a797bb
mov rax, qword [rbx]
movsx rax, byte [rax + rdx + 2]
and eax, 0x3f
movzx eax, byte [rax + r11]
mov byte [r8 + 3], al
add r8, 4
add rdx, 3
cmp rdx, r10
jb 0x140a79720
cmp rdx, rsi
jae 0x140a79894
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140a797f4
mov rax, qword [rbx]
movzx eax, byte [rax + rdx]
shr rax, 2
movzx eax, byte [rax + r11]
mov byte [r8], al
lea rax, [rsi - 1]
cmp rdx, rax
jne 0x140a79836
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140a7981a
mov rax, qword [rbx]
movsx rax, byte [rax + rdx]
and eax, 3
add rax, rax
movzx eax, byte [r11 + rax*8]
mov byte [r8 + 1], al
mov al, 0x3d
add r8, 2
jmp 0x140a7988c
cmp qword [rbx + 0x18], 0xf
jbe 0x140a79846
mov rax, qword [rbx]
lea r9, [rdx + rax]
jmp 0x140a7984d
lea r9, [rbx + rdx]
mov rax, rbx
movzx ecx, byte [rax + rdx + 1]
shr rcx, 4
movsx rax, byte [r9]
and eax, 3
shl rax, 4
or rcx, rax
movzx eax, byte [rcx + r11]
mov byte [r8 + 1], al
add r8, 2
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140a7987e
mov rax, qword [rbx]
movsx rax, byte [rax + rdx + 1]
and eax, 0xf
movzx eax, byte [r11 + rax*4]
mov byte [r8], al
mov byte [r8 + 1], 0x3d
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140a798ca
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140a798c5
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140a798fd
mov rcx, r8
call fcn.140c4bba0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov rax, rdi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140c4bf60
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
call fcn.140c5acfc
int3
Function at 0x140a7b730
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
mov eax, 0x13f0
call fcn.140c4c230
sub rsp, rax
mov rax, qword [0x140db81c0]
xor rax, rsp
mov qword [rsp + 0x13e0], rax
movsxd rsi, r8d
mov rdi, rdx
mov qword [rsp + 0x28], rdx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov ecx, 0x20
call fcn.140c4b84c
mov rbp, rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], 0x1a
mov qword [rsp + 0x48], 0x1f
movups xmm0, xmmword [str.0123456789ABCDEFGHabcdefgh]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x140c90ce8]
movsd qword [rax + 0x10], xmm0
movzx eax, word [0x140c90cf0]
mov word [rbp + 0x18], ax
mov byte [rbp + 0x1a], bl
call fcn.140c49e80
mov edx, eax
mov dword [rsp + 0x13d4], 0xffffffff
mov dword [rsp + 0x54], eax
mov ecx, 1
nop word [rax + rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0x54], edx
inc rcx
cmp rcx, 0x270
jb 0x140a7b7e0
mov dword [rsp + 0x50], 0x270
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov dword [rsp + 0x20], 1
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call fcn.140139e04
test rsi, rsi
jle 0x140a7b891
mov r14d, 0x80000000
nop dword [rax]
lea rcx, [rsp + 0x50]
call fcn.14013be24
mov ecx, eax
imul rax, rcx, 0x1a
cmp eax, 0x15
ja 0x140a7b86a
lea rcx, [rsp + 0x50]
call fcn.14013be24
mov ecx, eax
imul rax, rcx, 0x1a
cmp eax, 0x16
jb 0x140a7b855
shr rax, 0x20
lea rcx, [r14 + rax]
xor rcx, r14
mov rax, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x140a7b882
mov rax, qword [rdi]
movzx ecx, byte [rcx + rbp]
mov byte [rax + rbx], cl
inc rbx
cmp rbx, rsi
jl 0x140a7b840
mov edx, 0x20
mov rcx, rbp
call fcn.140c4bba0
mov rax, rdi
mov rcx, qword [rsp + 0x13e0]
xor rcx, rsp
call fcn.140c4bf60
lea r11, [rsp + 0x13f0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140a7c760
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x3f]
sub rsp, 0xe0
mov rax, qword [0x140db81c0]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rbx, r8
mov rdi, rdx
mov qword [rbp - 0x59], rdx
mov rsi, qword [rbp + 0x7f]
xor r14d, r14d
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x35], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x25], xmm1
mov dword [rbp - 0x15], r14d
mov qword [rbp - 0x41], 0x408
mov dword [rbp - 0x39], 1
lea r10, [rbp + 0x2c]
test r9d, r9d
jns 0x140a7c810
neg r9d
nop dword [rax + rax]
dec r10
mov eax, 0xcccccccd
mul r9d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r9b, cl
add r9b, 0x30
mov byte [r10], r9b
mov r9d, edx
test edx, edx
jne 0x140a7c7d0
dec r10
mov byte [r10], 0x2d
jmp 0x140a7c83a
dec r10
mov eax, 0xcccccccd
mul r9d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r9b, cl
add r9b, 0x30
mov byte [r10], r9b
mov r9d, edx
test edx, edx
jne 0x140a7c810
lea r9, [rbp - 0x61]
lea r8, [rbp + 0x2c]
mov rdx, r10
lea rcx, [rbp - 9]
call fcn.14014e008
nop
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 0xf
cmova rdx, qword [rbp - 9]
cmp qword [rbx + 0x18], 0xf
jbe 0x140a7c867
mov rbx, qword [rbx]
lea r9, [rbp - 0x51]
lea r8, [rbp - 0x41]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x140a7c8d0
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x400
lea rbx, [0x140dbb510]
mov qword [rsp + 0x20], rbx
mov r9d, 0x400
mov r8d, eax
xor edx, edx
mov ecx, 0x12ff
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], 0
jne 0x140a7c8b2
mov rdx, rbx
mov rcx, rsi
call fcn.14012db64
mov rbx, r14
mov qword [rbp - 0x51], rbx
jmp 0x140a7c8d4
mov rbx, qword [rbp - 0x51]
mov qword [rdi], r14
mov qword [rdi + 8], r14
mov rax, qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov qword [rbp - 0x59], rax
mov qword [rbp + 0x17], rbx
lea rax, [rbp - 0x59]
mov qword [rbp + 0x1f], rax
mov byte [rbp + 0x27], 1
mov ecx, 0x20
call fcn.140c4b84c
mov rcx, rax
mov qword [rbp - 0x11], rax
test rax, rax
je 0x140a7c938
mov rax, qword [rbp - 0x59]
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov dword [rcx + 8], 1
mov dword [rcx + 0xc], 1
lea rdx, vtable.std::_Ref_count_resource_struct_addrinfo____ptr64__void____cdecl___struct_addrinfo____ptr64__.0
mov qword [rcx], rdx
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rbx
jmp 0x140a7c93b
mov rcx, r14
mov qword [rdi], rbx
mov qword [rdi + 8], rcx
mov rdx, qword [rbp + 0xf]
cmp rdx, 0xf
jbe 0x140a7c979
inc rdx
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140a7c974
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140a7c9a0
call fcn.140c4bba0
mov rax, rdi
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140c4bf60
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140c5acfc
int3
Function at 0x140a82e80
Capabilities:
Read pipe
Write file on windows
Write pipe

Disassembly:
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
cmp qword [rcx + 0x40], 0
mov rdi, rcx
je 0x140a82eaf
mov al, 1
mov rdi, qword [rsp + 0x158]
add rsp, 0x130
pop rbp
ret
mov qword [rsp + 0x150], rsi
call fcn.140a82d90
mov rsi, rax
test rax, rax
je 0x140a83014
mov qword [rsp + 0x148], rbx
mov ebx, dword [rdi + 0x38]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movups xmm0, xmmword [rdi + 0x28]
mov dword [rbp - 0x6c], eax
lea r9, [rsp + 0x40]
lea rax, [rdi + 0x5c]
mov dword [rbp - 0x68], ebx
xor ebx, ebx
mov qword [rbp - 0x60], rax
lea rax, [rdi + 0x60]
mov qword [rsp + 0x30], rbx
mov qword [rbp - 0x58], rax
lea rdx, [rbp - 0x70]
lea rax, [rdi + 0x68]
mov dword [rbp - 0x70], 1
mov qword [rbp - 0x50], rax
xorps xmm1, xmm1
lea rax, [rbp + 0x40]
mov qword [rbp - 0x38], rbx
movups xmmword [rbp - 0x48], xmm0
mov qword [rsp + 0x28], rax
mov r8d, 0x50
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x50
mov rcx, rsi
movdqa xmmword [rbp - 0x30], xmm0
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], ebx
movdqa xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rbx
movups xmmword [rsp + 0x68], xmm1
mov qword [rsp + 0x78], rbx
movdqa xmmword [rbp - 0x80], xmm0
mov dword [rbp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x140a83000
cmp dword [rsp + 0x40], 2
jne 0x140a83000
cmp dword [rsp + 0x44], ebx
je 0x140a83000
cmp qword [rsp + 0x78], rbx
je 0x140a83000
cmp qword [rbp - 0x80], rbx
je 0x140a83000
cmp qword [rbp - 0x78], rbx
je 0x140a83000
xorps xmm0, xmm0
mov qword [rbp - 0x1c], rbx
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x10], xmm0
lea r9, [rbp + 0x40]
movdqa xmmword [rbp + 0x20], xmm0
mov r8d, 0x50
mov qword [rbp], rbx
lea rdx, [rbp - 0x20]
mov qword [rbp + 0x18], rbx
mov rcx, rsi
mov dword [rbp - 0x20], 3
movups xmmword [rbp + 8], xmm1
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140a83000
mov rax, qword [rsp + 0x78]
mov bl, 1
mov qword [rdi + 0x40], rax
mov rax, qword [rbp - 0x80]
mov qword [rdi + 0x48], rax
mov rax, qword [rbp - 0x78]
mov qword [rdi + 0x50], rax
mov eax, dword [rsp + 0x44]
mov dword [rdi + 0x58], eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
mov rbx, qword [rsp + 0x148]
mov rsi, qword [rsp + 0x150]
mov rdi, qword [rsp + 0x158]
add rsp, 0x130
pop rbp
ret

Function at 0x140a85a50
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.140c4c230
sub rsp, rax
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x140a943b0
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, reloc.WS2_32.dll_WSASetLastError
call fcn.140c4c230
sub rsp, rax
mov rax, qword [0x140db81c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, r9
mov rbx, rcx
cmp edx, 0x1d
je 0x140a943e7
mov eax, 0xfffffffe
jmp 0x140a94509
test rbx, rbx
je 0x140a94507
cmp r8d, 0x30
jne 0x140a94507
mov r8d, gethostbyname
mov rdx, rdi
call fcn.140a94270
test eax, eax
jle 0x140a94507
movdqa xmm0, xmmword [str.6666666666666666O]
lea rdx, [rsp + 0x20]
mov r8d, 0x28
movq qword [rsp + 0x40], xmm0
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
call fcn.140a94270
test eax, eax
je 0x140a94507
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140a94070
test eax, eax
je 0x140a94507
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx + 0x14], xmm0
mov r8d, gethostbyname
mov rdx, rdi
movups xmmword [rbx + 0x24], xmm0
mov rcx, rbx
movups xmmword [rbx + 0x34], xmm0
movups xmmword [rbx + 0x44], xmm0
mov qword [rbx + 0x54], rax
mov dword [rbx + 0x5c], eax
mov dword [rbx], 0x67452301
mov dword [rbx + 4], 0xefcdab89
mov dword [rbx + 8], 0x98badcfe
mov dword [rbx + 0xc], 0x10325476
mov dword [rbx + 0x10], 0xc3d2e1f0
call fcn.140a94270
test eax, eax
jle 0x140a94507
movdqa xmm0, xmmword [0x140cad590]
lea rdx, [rsp + 0x20]
mov r8d, 0x28
movq qword [rsp + 0x40], xmm0
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
call fcn.140a94270
test eax, eax
je 0x140a94507
mov r8d, socket
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.140a94270
test eax, eax
je 0x140a94507
mov edx, socket
lea rcx, [rsp + 0x48]
call fcn.140001240
mov eax, 1
jmp 0x140a94509
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140c4bf60
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x140a95a70
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x28
call fcn.140c4c230
sub rsp, rax
cmp dword [0x140dbba10], 0
jne 0x140a95bf1
mov qword [rsp + 0x30], rbx
lea rcx, [0x140cad5a0]
mov qword [rsp + 0x40], rsi
lea rbx, [0x140dbb9b0]
mov qword [rsp + 0x38], rbp
mov rdx, rbx
mov qword [rsp + 0x48], rdi
mov r8d, gethostbyname
mov qword [rsp + 0x20], r14
mov dword [0x140dbba10], 1
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x2e
ja 0x140a95bb3
movzx edi, word [rbx]
xor ebp, ebp
cmp di, 0x7e
mov ecx, ebp
mov r14d, 2
cmove ecx, r14d
add rcx, rbx
call fcn.140a95c00
mov rsi, rax
cmp di, 0x7e
jne 0x140a95b2f
lea rcx, [0x140dc1a00]
mov rdi, rax
call fcn.140001030
not rsi
movabs rcx, 0xedfff7fdffffffff
and rax, rsi
and edi, 0x1000000
mov rsi, rax
and rsi, rcx
test rdi, rdi
cmove rsi, rax
jmp 0x140a95b44
cmp word [rbx], 0x3a
jne 0x140a95b44
lea rcx, [0x140dc1a00]
call fcn.140001030
mov rsi, rax
movzx eax, word [rbx]
test ax, ax
je 0x140a95b61
nop dword [rax]
cmp ax, 0x3a
je 0x140a95b6a
add rbx, r14
movzx eax, word [rbx]
test ax, ax
jne 0x140a95b50
mov qword [0x140dc1a08], rbp
jmp 0x140a95bc2
test rbx, rbx
je 0x140a95b61
add rbx, r14
movzx edi, word [rbx]
cmp di, 0x7e
cmove rbp, r14
lea rcx, [rbx + rbp]
call fcn.140a95c00
mov rcx, rax
shr rcx, 0x20
cmp di, 0x7e
jne 0x140a95ba5
not eax
not ecx
and dword [0x140dc1a08], eax
and dword [0x140dc1a0c], ecx
jmp 0x140a95bc2
mov dword [0x140dc1a08], eax
mov dword [0x140dc1a0c], ecx
jmp 0x140a95bc2
lea rcx, [0x140dc1a00]
call fcn.140001030
mov rsi, rax
mov r14, qword [rsp + 0x20]
mov eax, esi
mov rdi, qword [rsp + 0x48]
bts eax, 0xa
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
shr rsi, 0x20
mov dword [0x140dc1a04], esi
mov rsi, qword [rsp + 0x40]
mov dword [0x140dc1a00], eax
add rsp, 0x28
ret

Function at 0x140a97c60
Capabilities:
Encode data using add xor sub operations

Disassembly:
xor eax, eax
mov r10, rcx
test rcx, rcx
je 0x140a97ccc
movzx ecx, byte [rcx]
test cl, cl
je 0x140a97ccc
mov r11d, 0x100
nop word [rax + rax]
movsx r9d, cl
lea r10, [r10 + 1]
or r9d, r11d
mov r8d, eax
mov edx, r9d
mov ecx, 0x20
shr edx, 2
add r11d, 0x100
xor edx, r9d
imul r9d, r9d
and edx, 0xf
sub ecx, edx
shr r8, cl
mov ecx, edx
mov edx, eax
mov eax, r8d
shl edx, cl
movzx ecx, byte [r10]
or eax, edx
xor eax, r9d
test cl, cl
jne 0x140a97c80
mov ecx, eax
shr ecx, 0x10
xor eax, ecx
ret

Function at 0x140a97cd0
Capabilities:
Encode data using add xor sub operations

Disassembly:
xor eax, eax
mov r10, rcx
test rcx, rcx
je 0x140a97d40
movzx ecx, byte [rcx]
test cl, cl
je 0x140a97d40
mov r11d, 0x100
nop word [rax + rax]
movsx r9d, cl
lea r10, [r10 + 1]
mov r8d, eax
and r9d, 0xffffffdf
or r9d, r11d
mov ecx, 0x20
mov edx, r9d
add r11d, 0x100
shr edx, 2
xor edx, r9d
imul r9d, r9d
and edx, 0xf
sub ecx, edx
shr r8, cl
mov ecx, edx
mov edx, eax
mov eax, r8d
shl edx, cl
movzx ecx, byte [r10]
or eax, edx
xor eax, r9d
test cl, cl
jne 0x140a97cf0
mov ecx, eax
shr ecx, 0x10
xor eax, ecx
ret