joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800211b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1800211e1
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x18002125b
mov rdi, r14
mov rcx, rbx
call fcn.180022470
test rax, rax
jle 0x180021233
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.1800b21e0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x18002124b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180021253
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1800211f5
sub r14, rdi
jmp 0x18002133f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x180021272
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180021274
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800212a6
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1800b21e0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x18002133c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1800212e1
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
cmp rbp, 0xfff
jbe 0x18002131d
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1800c0ec8
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x18002133c
cmp rbp, rax
ja 0x1800212f0
test rbp, rbp
je 0x18002133c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1800c0ec8
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1800241f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x68], edi
mov qword [rcx], rdi
mov qword [rcx + 8], rdi
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], rdi
mov qword [rcx + 0x20], rdi
mov qword [rcx + 0x28], rdi
mov qword [rcx + 0x30], rdi
mov qword [rcx + 0x38], rdi
mov qword [rcx + 0x40], rdi
mov rax, qword [rcx]
cmp rax, qword [rcx + 8]
je 0x180024238
mov qword [rcx + 8], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x68], 1
xor r8d, r8d
lea rax, [0x180334780]
mov qword [rsp + 0x20], rax
lea r9, [0x18032ab80]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.180044ac0
mov r8d, edi
nop word [rax + rax]
movsxd rdx, r8d
add rdx, qword [rsp + 0x30]
lea eax, [r8 + 0x64]
xor byte [rdx], al
inc r8d
cmp r8d, 0x9c00
jb 0x180024280
lea rax, [rsp + 0x30]
cmp rbx, rax
je 0x180024312
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800242e8
mov rdx, qword [rbx + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x1800242d8
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180024382
mov rcx, r8
call fcn.1800afc8c
mov qword [rbx], rdi
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], rdi
mov rax, qword [rsp + 0x30]
mov qword [rbx], rax
mov rax, qword [rsp + 0x38]
mov qword [rbx + 8], rax
mov rax, qword [rsp + 0x40]
mov qword [rbx + 0x10], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rdi
jmp 0x180024317
mov rdi, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x18002434d
sub rdi, rcx
mov rax, rcx
cmp rdi, 0x1000
jb 0x180024345
add rdi, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002437c
mov rdx, rdi
call fcn.1800afc8c
mov rcx, qword [rbx]
mov qword [rbx + 0x30], rcx
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
mov qword [rbx + 0x38], rdx
movzx eax, word [rdx + 0x14]
lea rcx, [rdx + 0x18]
add rcx, rax
mov qword [rbx + 0x40], rcx
mov rax, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
call fcn.1800bbb24
nop
call fcn.1800bbb24
int3
Function at 0x1800248d0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
sub rsp, 0xb8
movups xmm0, xmmword [0x18014e228]
mov eax, dword [0x18014e258]
xor ecx, ecx
cmp dword [reloc.WS2_32.dll_accept], 2
movups xmm1, xmmword [0x18014e238]
mov dword [rsp + 0x60], eax
movzx eax, word [0x18014e25c]
movups xmmword [rsp + 0x30], xmm0
mov qword [r11 + 8], rcx
movups xmm0, xmmword [0x18014e248]
mov word [rsp + 0x64], ax
movups xmmword [rsp + 0x40], xmm1
movups xmmword [rsp + 0x50], xmm0
jl 0x180024a95
movdqa xmm5, xmmword [0x180151790]
lea rdx, [rsp + 0x30]
movdqa xmm4, xmmword [0x1801519e0]
mov eax, 5
movaps xmmword [r11 - 0x18], xmm6
movaps xmmword [r11 - 0x28], xmm7
movdqa xmm7, xmmword [0x1801517d0]
movaps xmmword [r11 - 0x38], xmm8
movd xmm6, eax
mov eax, 0x1f
movaps xmmword [r11 - 0x48], xmm9
movdqa xmm9, xmmword [0x180151890]
movd xmm8, eax
nop dword [rax]
nop dword [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 0x10]
paddd xmm2, xmm5
add ecx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rdx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
xorps xmm3, xmm0
movq qword [rdx - 0x10], xmm3
paddd xmm2, xmm5
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
mov eax, ecx
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rdx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
xorps xmm3, xmm0
movq qword [rdx - 8], xmm3
cmp ecx, 0x18
jl 0x180024980
movaps xmm9, xmmword [rsp + 0x70]
movaps xmm8, xmmword [rsp + 0x80]
movaps xmm7, xmmword [rsp + 0x90]
movaps xmm6, xmmword [rsp + 0xa0]
cmp eax, 0x1b
jge 0x180024ae3
movsxd rax, ecx
lea r8, [rsp + 0x30]
lea r8, [r8 + rax*2]
nop dword [rax]
nop word [rax + rax]
mov eax, 0xa0a0a0a1
lea r8, [r8 + 2]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul edx, eax, 0x33
movzx eax, cx
inc ecx
sub ax, dx
add ax, 0x37
xor word [r8 - 2], ax
cmp ecx, 0x1b
jl 0x180024ab0
lea rax, [rsp + 0xc0]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rax, qword [rsp + 0xc0]
test rax, rax
je 0x180024b2c
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0xc0]
test rax, rax
setne al
add rsp, 0xb8
ret
Function at 0x180024b40
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0xa0
mov rdi, r9
lea r14, [0x180024d40]
xor esi, esi
mov dword [rax + 0x10], esi
mov dword [rax + 0x18], esi
mov qword [rax - 0x70], rsi
xorps xmm0, xmm0
movups xmmword [rax - 0x50], xmm0
movups xmmword [rax - 0x40], xmm0
movups xmmword [rax - 0x30], xmm0
test rcx, rcx
je 0x180024d1a
movups xmmword [rax - 0x60], xmm0
mov rdx, rcx
lea rcx, [rax - 0x60]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [rsp + 0x68], 0x30
mov qword [rsp + 0x70], rsi
mov dword [rsp + 0x80], 0x40
lea rax, [rsp + 0x58]
mov qword [rsp + 0x78], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x88], xmm0
lea r8, [rsp + 0x68]
lea edx, [rsi + 1]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtOpenDirectoryObject]
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x180024d2c
nop word [rax + rax]
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], 0
mov r9b, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtQueryDirectoryObject]
mov ebx, eax
mov dword [rsp + 0x40], eax
cmp eax, 0xc0000023
jne 0x180024d08
mov r8d, dword [rsp + 0xd0]
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov edx, 8
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x180024d04
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], 0
mov r9b, 1
mov r8d, dword [rsp + 0xd0]
mov rdx, rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtQueryDirectoryObject]
mov dword [rsp + 0x40], eax
test eax, eax
js 0x180024ce6
mov rdx, rdi
mov rcx, rbx
call r14
mov dword [rsp + 0x44], eax
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov r8, qword [rsp + 0x50]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [rsp + 0x44], 0
jl 0x180024bf0
mov ebx, esi
mov dword [rsp + 0x40], ebx
jmp 0x180024d08
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov r8, qword [rsp + 0x50]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ebx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180024d18
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x180024d2a
mov eax, 0xc00000f0
jmp 0x180024d2c
mov eax, ebx
mov rbx, qword [rsp + 0xc0]
add rsp, 0xa0
pop r14
pop rdi
pop rsi
ret
Function at 0x180025420
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0xc0
mov rdi, rdx
xor ebx, ebx
mov qword [rax + 0x10], rbx
mov dword [rax - 0x34], ebx
mov dword [rax - 0x1c], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rax - 0x58]
call qword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
jne 0x180025465
xor eax, eax
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rdi
ret
mov dword [rsp + 0x90], 0x30
mov qword [rsp + 0x98], rbx
mov dword [rsp + 0xa8], 0x40
lea rax, [rsp + 0x70]
mov qword [rsp + 0xa0], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xb0], xmm0
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 5
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x80]
lea r8, [rsp + 0x90]
mov edx, 0x100002
lea rcx, [rsp + 0xd8]
call qword [sym.imp.ntdll.dll_NtCreateFile]
test eax, eax
js 0x18002553b
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 0x10ac0
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.ntdll.dll_NtWriteFile]
test eax, eax
js 0x18002553b
mov ebx, dword [rsp + 0x88]
mov dword [rsp + 0x60], ebx
mov rcx, qword [rsp + 0xd8]
test rcx, rcx
je 0x18002554e
call qword [sym.imp.ntdll.dll_NtClose]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, ebx
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rdi
ret
Function at 0x180028d10
Capabilities:
Enumerate processes

Disassembly:
push r12
push r13
push r14
push r15
sub rsp, 0x298
xor r13d, r13d
movzx r12d, r8b
mov r15, rcx
test r8b, r8b
jne 0x180028d31
mov dword [rcx], r13d
xor edx, edx
lea rcx, [rsp + 0x54]
mov r8d, 0x234
call fcn.1800b2880
xor edx, edx
mov dword [rsp + 0x50], 0x238
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x180028d71
xor al, al
add rsp, 0x298
pop r15
pop r14
pop r13
pop r12
ret
mov qword [rsp + 0x2c0], rbx
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x2c8], rbp
mov rcx, r14
mov qword [rsp + 0x2d0], rsi
mov qword [rsp + 0x290], rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x180028e93
nop word [rax + rax]
xorps xmm0, xmm0
mov qword [rsp + 0x40], r13
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x48], r13
lea rax, [rsp + 0x7c]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], r13w
jne 0x180028dd0
lea rdx, [rsp + 0x7c]
lea rcx, [rsp + 0x30]
call fcn.180006720
cmp qword [r15 + 0x90], 8
lea r9, [r15 + 0x78]
mov rax, qword [r15 + 0x88]
jb 0x180028e02
mov r9, qword [r15 + 0x78]
mov rsi, qword [rsp + 0x48]
lea rcx, [rsp + 0x30]
mov rbx, qword [rsp + 0x30]
cmp rsi, 8
mov rdx, qword [rsp + 0x40]
cmovae rcx, rbx
mov qword [rsp + 0x20], rax
xor r8d, r8d
call fcn.180012720
mov rbp, rax
cmp rsi, 8
jb 0x180028e69
lea rdx, [rsi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x180028e61
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180028ee2
mov rcx, rbx
call fcn.1800afc8c
cmp rbp, 0xffffffffffffffff
je 0x180028e7d
test r12b, r12b
je 0x180028ece
mov eax, dword [rsp + 0x58]
cmp dword [r15], eax
je 0x180028ede
lea rdx, [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180028db0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rsi, qword [rsp + 0x2d0]
mov rbp, qword [rsp + 0x2c8]
mov rbx, qword [rsp + 0x2c0]
mov rdi, qword [rsp + 0x290]
add rsp, 0x298
pop r15
pop r14
pop r13
pop r12
ret
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x58]
mov dword [r15], eax
mov al, 1
jmp 0x180028e9e
call fcn.1800bbb24
int3
Function at 0x180036620
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rsi, rcx
xor ebp, ebp
mov rdi, qword [rdx + 8]
sub rdi, qword [rdx]
lea r8, [rdi + 2]
movabs rax, 0xaaaaaaaaaaaaaaab
mul r8
shr rdx, 1
shl rdx, 2
xor r8d, r8d
call fcn.18003cd40
mov rax, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x180036675
mov rax, qword [rsi]
mov r8, rbp
lea r9, [rdi - 2]
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_SezYMYS
test r9, r9
je 0x18003670d
nop dword [rax]
mov rcx, qword [rbx]
movzx ecx, byte [rcx + r8]
shr rcx, 2
movzx ecx, byte [rcx + r10]
mov byte [rax], cl
mov rcx, qword [rbx]
movzx edx, byte [rcx + r8]
and edx, 3
shl rdx, 4
movzx ecx, byte [rcx + r8 + 1]
shr rcx, 4
or rdx, rcx
movzx ecx, byte [rdx + r10]
mov byte [rax + 1], cl
mov rcx, qword [rbx]
movzx edx, byte [rcx + r8 + 1]
and edx, 0xf
shl rdx, 2
movzx ecx, byte [rcx + r8 + 2]
shr rcx, 6
or rdx, rcx
movzx ecx, byte [rdx + r10]
mov byte [rax + 2], cl
mov rcx, qword [rbx]
movzx ecx, byte [rcx + r8 + 2]
and ecx, 0x3f
movzx ecx, byte [rcx + r10]
mov byte [rax + 3], cl
add rax, 4
add r8, 3
cmp r8, r9
jb 0x180036690
cmp r8, rdi
jae 0x180036781
mov rcx, qword [rbx]
movzx ecx, byte [r8 + rcx]
shr rcx, 2
movzx ecx, byte [rcx + r10]
mov byte [rax], cl
lea rcx, [rdi - 1]
cmp r8, rcx
mov rcx, qword [rbx]
jne 0x180036748
movzx ecx, byte [r8 + rcx]
and ecx, 3
add rcx, rcx
movzx ecx, byte [r10 + rcx*8]
mov byte [rax + 1], cl
mov cl, 0x3d
jmp 0x18003677a
movzx edx, byte [rcx + r8]
and edx, 3
shl rdx, 4
movzx ecx, byte [rcx + r8 + 1]
shr rcx, 4
or rdx, rcx
movzx ecx, byte [rdx + r10]
mov byte [rax + 1], cl
mov rcx, qword [rbx]
movzx edx, byte [rcx + r8 + 1]
and edx, 0xf
movzx ecx, byte [r10 + rdx*4]
mov byte [rax + 2], cl
mov byte [rax + 3], 0x3d
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800367c1
mov rdx, qword [rbx + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x1800367b1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800367d9
mov rcx, r8
call fcn.1800afc8c
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rbp
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call fcn.1800bbb24
int3
Function at 0x180036a70
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x30
movzx esi, r8b
mov rbx, rdx
mov rdi, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov qword [rcx], rbp
mov qword [rcx + 8], rbp
mov qword [rcx + 0x10], rbp
mov dword [rsp + 0x20], 1
mov rdx, qword [rdx + 8]
sub rdx, qword [rbx]
call fcn.1800245f0
mov rdx, qword [rdi + 8]
sub rdx, qword [rdi]
mov rcx, rdi
call fcn.18003c8d0
movzx r8d, sil
mov r9d, ebp
mov rcx, qword [rbx]
cmp qword [rbx + 8], rcx
je 0x180036b0f
nop dword [rax]
nop dword [rax + rax]
movzx edx, r8b
test r8b, r8b
cmove edx, esi
movzx r8d, dl
xor dl, byte [rcx + r9]
mov rax, qword [rdi]
mov byte [r9 + rax], dl
add r8b, 0xff
inc r9
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
sub rax, rcx
cmp r9, rax
jb 0x180036ae0
test rcx, rcx
je 0x180036b4c
mov rdx, qword [rbx + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x180036b3c
add rdx, 0x27
mov rax, qword [rcx - 8]
sub rcx, rax
add rcx, 0xfffffffffffffff8
cmp rcx, 0x1f
ja 0x180036b5c
mov rcx, rax
call fcn.1800afc8c
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rbp
mov rax, rdi
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
call fcn.1800bbb24
int3

Function at 0x180036dd0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rax, qword [rdx + 8]
xor r15d, r15d
mov rsi, r8
mov qword [rsp + 0x48], rbp
mov rdi, rdx
mov r14, rcx
mov ebp, r15d
cmp rax, qword [rdx]
je 0x180036e38
mov qword [rsp + 0x40], rbx
mov rcx, rsi
call fcn.18002fdb0
mov rbx, qword [rdi]
mov rcx, rax
xor edx, edx
mov rax, rbp
div rcx
mov rcx, rsi
call fcn.18002fdc0
movzx eax, byte [rax]
xor byte [rbx + rbp], al
inc rbp
mov rax, qword [rdi + 8]
sub rax, qword [rdi]
cmp rbp, rax
jb 0x180036e00
mov rbx, qword [rsp + 0x40]
mov rdx, rdi
mov rcx, r14
call fcn.18002fbb0
mov rcx, qword [rdi]
mov rbp, qword [rsp + 0x48]
test rcx, rcx
je 0x180036e88
mov rdx, qword [rdi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x180036e78
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180036edf
mov rcx, r8
call fcn.1800afc8c
mov qword [rdi], r15
mov qword [rdi + 8], r15
mov qword [rdi + 0x10], r15
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x180036ebe
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x180036eb9
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180036edf
mov rcx, r8
call fcn.1800afc8c
mov qword [rsi + 0x10], r15
mov rax, r14
mov qword [rsi + 0x18], send
mov byte [rsi], r15b
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
call fcn.1800bbb24
int3
Function at 0x18004beb0
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x450
mov rdi, rdx
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x20], esi
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
mov qword [rdx + 0x10], rsi
mov qword [rdx + 0x18], send
mov byte [rdx], sil
mov dword [rsp + 0x20], 1
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x460], esi
lea r8, [rsp + 0x460]
mov edx, 0x4004667f
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x18004bfd1
mov r8d, dword [rsp + 0x460]
test r8d, r8d
je 0x18004bfd1
cmp r8d, 0x400
jbe 0x18004bf3e
mov r8d, 0x400
mov dword [rsp + 0x460], r8d
xor r9d, r9d
lea rdx, [rsp + 0x50]
mov rcx, qword [rbx + 8]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x18004bfd1
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], send
mov byte [rsp + 0x28], 0
movsxd r8, eax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.18001ebe0
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.18003cd10
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x18004bfc8
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004bfc3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004bfe9
call fcn.1800afc8c
mov rcx, qword [rbx + 8]
jmp 0x18004bef4
mov rax, rdi
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.1800bbb24
int3
Function at 0x1800528d0
Capabilities:
Create thread
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x3a0
mov r14d, 2
cmp dword [0x180349ff0], 0
jne 0x18005291a
mov ecx, r14d
lea rdx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x18005291a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1800c1c64
inc dword [0x180349ff0]
xor r8d, r8d
lea edx, [r8 + 1]
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
jne 0x180052948
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1800c1c64
mov ecx, 4
call fcn.1800afc50
mov dword [rax], 1
mov qword [rsp + 0x50], rax
lea rax, [0x18014f580]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x30], r14w
mov ecx, 0x1698
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x32], ax
xor r8d, r8d
lea edx, [r8 + 1]
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
jne 0x1800529b4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1800c1c64
jmp 0x1800529f4
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1800529e5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1800c1c64
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1800529f4
mov edx, 5
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_listen]
nop
lea rax, [0x18002dc40]
mov qword [0x180349ff8], rax
xor ebp, ebp
lea r15, [0x18014f580]
nop dword [rax + rax]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_accept]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x180052a39
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x180052a39
mov rbx, rbp
jmp 0x180052a9a
mov ecx, 0x18
call fcn.1800afc50
mov rbx, rax
mov qword [rsp + 0x3e0], rax
mov qword [rax], r15
mov qword [rax + 8], rdi
cmp dword [0x180349ff0], 0
jne 0x180052a80
mov ecx, r14d
lea rdx, [rsp + 0x200]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x180052a80
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1800c1c64
inc dword [0x180349ff0]
mov ecx, 4
call fcn.1800afc50
mov dword [rax], 1
mov qword [rbx + 0x10], rax
lea rax, [rsp + 0x3d8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebp
mov r9, rbx
lea r8, [0x180050f30]
xor edx, edx
xor ecx, ecx
call fcn.1800c237c
jmp 0x180052a10
Function at 0x1800645d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x180064604
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1800645f0
ret