joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180020110
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov qword [rsp + 0x50], r14
mov rdi, rdx
mov qword [rsp + 0x20], r15
mov rsi, rcx
cmp rcx, rdx
je 0x18002013f
mov rdx, qword [rdx]
mov r8, qword [rdi + 8]
sub r8, rdx
sar r8, 5
call fcn.1800204f0
mov eax, dword [rdi + 0x18]
lea r15, [rdi + 0x48]
mov dword [rsi + 0x18], eax
lea r14, [rsi + 0x48]
mov eax, dword [rdi + 0x1c]
mov dword [rsi + 0x1c], eax
mov eax, dword [rdi + 0x20]
mov dword [rsi + 0x20], eax
mov eax, dword [rdi + 0x24]
mov dword [rsi + 0x24], eax
mov eax, dword [rdi + 0x28]
mov dword [rsi + 0x28], eax
movzx eax, byte [rdi + 0x2c]
mov byte [rsi + 0x2c], al
mov eax, dword [rdi + 0x30]
mov dword [rsi + 0x30], eax
movzx eax, byte [rdi + 0x34]
mov byte [rsi + 0x34], al
movzx eax, byte [rdi + 0x35]
mov byte [rsi + 0x35], al
mov eax, dword [rdi + 0x38]
mov dword [rsi + 0x38], eax
mov eax, dword [rdi + 0x3c]
mov dword [rsi + 0x3c], eax
mov eax, dword [rdi + 0x40]
mov dword [rsi + 0x40], eax
cmp r14, r15
je 0x1800201f7
cmp qword [r15 + 0x18], 8
mov r9, r15
mov rdx, qword [r15 + 0x10]
jb 0x1800201a8
mov r9, qword [r15]
mov rax, qword [r14 + 0x18]
cmp rdx, rax
ja 0x1800201ef
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov rbp, r14
cmp rax, 8
jb 0x1800201c7
mov rbp, qword [r14]
lea rbx, [rdx + rdx]
mov qword [r14 + 0x10], rdx
mov r8, rbx
mov rdx, r9
mov rcx, rbp
call fcn.1800bc4c0
xor eax, eax
mov word [rbx + rbp], ax
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
jmp 0x1800201f7
mov rcx, r14
call fcn.180014620
lea rdx, [r15 + 0x20]
mov r15, qword [rsp + 0x20]
lea rcx, [r14 + 0x20]
mov r14, qword [rsp + 0x50]
cmp rcx, rdx
je 0x180020221
cmp qword [rdx + 0x18], 0x10
mov r8, qword [rdx + 0x10]
jb 0x18002021c
mov rdx, qword [rdx]
call fcn.180020390
movzx eax, byte [rdi + 0x88]
mov byte [rsi + 0x88], al
mov eax, dword [rdi + 0x8c]
mov dword [rsi + 0x8c], eax
mov eax, dword [rdi + 0x90]
mov dword [rsi + 0x90], eax
mov rax, qword [rdi + 0x98]
mov qword [rsi + 0x98], rax
mov rax, qword [rdi + 0xa0]
mov qword [rsi + 0xa0], rax
mov rax, qword [rdi + 0xa8]
mov qword [rsi + 0xa8], rax
mov rax, qword [rdi + 0xb0]
mov qword [rsi + 0xb0], rax
mov rax, qword [rdi + 0xb8]
mov qword [rsi + 0xb8], rax
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x180021290
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x140
mov rbx, r9
mov rsi, r8
call fcn.1800266c0
test eax, eax
jne 0x1800212bd
mov rbx, qword [rsp + 0x158]
add rsp, 0x140
pop rsi
ret
call fcn.1800207d0
test al, al
jne 0x1800212dc
mov eax, 0x1faf
mov rbx, qword [rsp + 0x158]
add rsp, 0x140
pop rsi
ret
xor edx, edx
mov qword [rsp + 0x150], rdi
mov r8d, 0x110
lea rcx, [rsp + 0x24]
call fcn.1800bcb60
xor eax, eax
lea rdi, [rsp + 0x20]
mov ecx, 0x114
rep stosb byte [rdi], al
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.ntdll.dll_RtlGetVersion]
mov edi, eax
test eax, eax
jne 0x180021379
cmp dword [rsp + 0x24], 6
jae 0x18002132b
mov edi, 0x1f90
jmp 0x180021379
mov eax, dword [rsp + 0x2c]
mov dword [0x180361c10], eax
call fcn.180027220
mov byte [0x180361be4], al
test al, al
je 0x18002134b
mov edi, 0x1ff5
jmp 0x180021379
call fcn.180029020
mov qword [0x1801712f8], rax
mov edi, 0x205a
cmp rax, 0xffffffffffffffff
je 0x180021374
mov rdx, rbx
mov rcx, rsi
call fcn.18002a680
mov edi, eax
call fcn.18002a010
call fcn.18002a010
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rbx, qword [rsp + 0x158]
mov eax, edi
mov rdi, qword [rsp + 0x150]
add rsp, 0x140
pop rsi
ret
Function at 0x180022c50
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 0x180022c81
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 0x180022cfb
mov rdi, r14
mov rcx, rbx
call fcn.180023f10
test rax, rax
jle 0x180022cd3
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.1800bc4c0
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 0x180022ceb
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180022cf3
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x180022c95
sub r14, rdi
jmp 0x180022ddf
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x180022d12
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180022d14
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180022d46
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1800bc4c0
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 0x180022ddc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180022d81
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 0x180022dbd
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1800cb1a8
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x180022ddc
cmp rbp, rax
ja 0x180022d90
test rbp, rbp
je 0x180022ddc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1800cb1a8
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 0x180027220
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
sub rsp, 0xb8
movups xmm0, xmmword [str.aRAAVJ_ftN_S_]
mov eax, dword [0x180158248]
xor ecx, ecx
cmp dword [reloc.WS2_32.dll_accept], 2
movups xmm1, xmmword [0x180158228]
mov dword [rsp + 0x60], eax
movzx eax, word [0x18015824c]
movups xmmword [rsp + 0x30], xmm0
mov qword [r11 + 8], rcx
movups xmm0, xmmword [0x180158238]
mov word [rsp + 0x64], ax
movups xmmword [rsp + 0x40], xmm1
movups xmmword [rsp + 0x50], xmm0
jl 0x1800273e5
movdqa xmm5, xmmword [0x18015bd60]
lea rdx, [rsp + 0x30]
movdqa xmm4, xmmword [0x18015bfd0]
mov eax, 5
movaps xmmword [r11 - 0x18], xmm6
movaps xmmword [r11 - 0x28], xmm7
movdqa xmm7, xmmword [0x18015bdf0]
movaps xmmword [r11 - 0x38], xmm8
movd xmm6, eax
mov eax, 0x1f
movaps xmmword [r11 - 0x48], xmm9
movdqa xmm9, xmmword [str.222222223333333388888888]
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 0x1800272d0
movaps xmm9, xmmword [rsp + 0x70]
movaps xmm8, xmmword [rsp + 0x80]
movaps xmm7, xmmword [rsp + 0x90]
movaps xmm6, xmmword [rsp + 0xa0]
cmp eax, 0x1b
jge 0x180027433
movsxd rax, ecx
lea r8, [rsp + 0x30]
lea r8, [r8 + rax*2]
nop dword [rax]
nop word [rax + rax]
mov eax, 0x8fb823ef
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, 0x39
movzx eax, cx
inc ecx
sub ax, dx
add ax, 0x32
xor word [r8 - 2], ax
cmp ecx, 0x1b
jl 0x180027400
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 0x18002747c
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 0x180027490
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, [0x180027690]
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 0x18002766a
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 0x18002767c
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 0x180027658
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 0x180027654
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 0x180027636
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 0x180027540
mov ebx, esi
mov dword [rsp + 0x40], ebx
jmp 0x180027658
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 0x180027668
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x18002767a
mov eax, 0xc00000f0
jmp 0x18002767c
mov eax, ebx
mov rbx, qword [rsp + 0xc0]
add rsp, 0xa0
pop r14
pop rdi
pop rsi
ret
Function at 0x180027d70
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 0x180027db5
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 0x180027e8b
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 0x180027e8b
mov ebx, dword [rsp + 0x88]
mov dword [rsp + 0x60], ebx
mov rcx, qword [rsp + 0xd8]
test rcx, rcx
je 0x180027e9e
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 0x18002b750
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 0x18002b771
mov dword [rcx], r13d
xor edx, edx
lea rcx, [rsp + 0x54]
mov r8d, 0x234
call fcn.1800bcb60
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 0x18002b7b1
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 0x18002b8d3
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 0x18002b810
lea rdx, [rsp + 0x7c]
lea rcx, [rsp + 0x30]
call fcn.180006af0
cmp qword [r15 + 0x90], 8
lea r9, [r15 + 0x78]
mov rax, qword [r15 + 0x88]
jb 0x18002b842
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.1800134a0
mov rbp, rax
cmp rsi, 8
jb 0x18002b8a9
lea rdx, [rsi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x18002b8a1
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002b922
mov rcx, rbx
call fcn.1800b9f6c
cmp rbp, 0xffffffffffffffff
je 0x18002b8bd
test r12b, r12b
je 0x18002b90e
mov eax, dword [rsp + 0x58]
cmp dword [r15], eax
je 0x18002b91e
lea rdx, [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x18002b7f0
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 0x18002b8de
call fcn.1800c5e04
int3
Function at 0x18003ff50
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.1800465f0
mov rax, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x18003ffa5
mov rax, qword [rsi]
mov r8, rbp
lea r9, [rdi - 2]
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__C5
test r9, r9
je 0x18004003d
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 0x18003ffc0
cmp r8, rdi
jae 0x1800400b1
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 0x180040078
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 0x1800400aa
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 0x1800400f1
mov rdx, qword [rbx + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x1800400e1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180040109
mov rcx, r8
call fcn.1800b9f6c
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.1800c5e04
int3
Function at 0x1800403a0
Capabilities:
Encode data using xor

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.180026f00
mov rdx, qword [rdi + 8]
sub rdx, qword [rdi]
mov rax, qword [rdi + 0x10]
sub rax, qword [rdi]
cmp rdx, rax
jbe 0x180040413
movabs rax, 0x7fffffffffffffff
cmp rdx, rax
ja 0x1800404ab
mov rcx, rdi
call fcn.180026f80
movzx edx, sil
mov r9, rbp
mov r8, qword [rbx]
cmp qword [rbx + 8], r8
je 0x18004045b
nop dword [rax]
nop word [rax + rax]
movzx ecx, dl
test dl, dl
cmove ecx, esi
movzx edx, cl
xor cl, byte [r8 + r9]
mov rax, qword [rdi]
mov byte [r9 + rax], cl
add dl, 0xff
inc r9
mov r8, qword [rbx]
mov rax, qword [rbx + 8]
sub rax, r8
cmp r9, rax
jb 0x180040430
test r8, r8
je 0x18004049b
mov rdx, qword [rbx + 0x10]
sub rdx, r8
cmp rdx, 0x1000
jb 0x180040488
add rdx, 0x27
mov rcx, qword [r8 - 8]
sub r8, rcx
lea rax, [r8 - 8]
cmp rax, 0x1f
ja 0x1800404b1
mov r8, rcx
mov rcx, r8
call fcn.1800b9f6c
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.180005ff0
nop
call fcn.1800c5e04
int3

Function at 0x180040720
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 0x180040788
mov qword [rsp + 0x40], rbx
mov rcx, rsi
call fcn.1800338a0
mov rbx, qword [rdi]
mov rcx, rax
xor edx, edx
mov rax, rbp
div rcx
mov rcx, rsi
call fcn.1800338b0
movzx eax, byte [rax]
xor byte [rbx + rbp], al
inc rbp
mov rax, qword [rdi + 8]
sub rax, qword [rdi]
cmp rbp, rax
jb 0x180040750
mov rbx, qword [rsp + 0x40]
mov rdx, rdi
mov rcx, r14
call fcn.1800336a0
mov rcx, qword [rdi]
mov rbp, qword [rsp + 0x48]
test rcx, rcx
je 0x1800407d8
mov rdx, qword [rdi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x1800407c8
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18004082f
mov rcx, r8
call fcn.1800b9f6c
mov qword [rdi], r15
mov qword [rdi + 8], r15
mov qword [rdi + 0x10], r15
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x18004080e
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x180040809
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18004082f
mov rcx, r8
call fcn.1800b9f6c
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.1800c5e04
int3
Function at 0x180055350
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 0x180055471
mov r8d, dword [rsp + 0x460]
test r8d, r8d
je 0x180055471
cmp r8d, 0x400
jbe 0x1800553de
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 0x180055471
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.180020390
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.1800465c0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x180055468
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180055463
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180055489
call fcn.1800b9f6c
mov rcx, qword [rbx + 8]
jmp 0x180055394
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.1800c5e04
int3