joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009120
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400c60c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000914d
xor eax, eax
jmp 0x1400092bf
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140009187
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140009187
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 0x1400092bf
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400092b2
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400091ca
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 0x1400091f7
mov rdx, qword ds:[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
cmovne ecx, edi
mov eax, ecx
jmp 0x1400092b7
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
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 0x14000926a
nop dword [rax]
sub eax, 1
je 0x14000926a
cmp eax, 2
jne 0x1400092b2
movsx ecx, byte [rsp + 0x50]
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
cmovne ecx, edi
mov eax, ecx
jmp 0x1400092b7
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140009298
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400092b2
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400092b7
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14007b750
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000bb20
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400c60c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000bbf9
cmp byte [rcx + 0x71], 0
je 0x14000bbf9
mov rax, qword ds:[rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14000bbf5
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000bbba
sub eax, 1
je 0x14000bbbe
cmp eax, 2
jne 0x14000bbf5
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14007b750
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000bbec
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000bbf5
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000bba2
xor al, al
jmp 0x14000bba2
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14007b750
add rsp, 0x60
pop rbx
ret
Function at 0x14001f284
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x1400c60c0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rdx
mov dword [rsp + 0x40], 0x104
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
lea r9, [rsp + 0x40]
xor edx, edx
mov rcx, rax
lea r8, [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_QueryFullProcessImageNameW]
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rdi, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14001f32d
and qword [rsp + 0x28], 0
xor r9d, r9d
and dword [rsp + 0x20], 0
xor edx, edx
mov rcx, rdi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
test rax, rax
jne 0x14001f35a
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
and qword [rbx], 0
and qword [rbx + 8], 0
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14007b750
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov qword [rbx + 8], rax
mov qword [rbx], rdi
jmp 0x14001f336
Function at 0x14002037c
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x78], 0
je 0x1400203a2
xor edx, edx
movzx eax, dx
mov r8d, 0x26c3
sub ax, r8w
xor word [rcx + rdx*2], ax
inc rdx
cmp rdx, 0x3b
jb 0x140020384
mov byte [rcx + 0x78], 0
mov rax, rcx
ret
Function at 0x140020b50
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
xor r9d, r9d
cmp byte [0x1400c6d85], r9b
jne 0x140020bd4
movdqa xmm0, xmmword [0x14008b510]
lea edx, [r9 + 0x18]
movdqu xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x30], 0x689e9e57
mov ecx, r9d
mov dword [rbp - 0x2c], 0x77507e7d
lea rax, [0x14008b300]
mov al, byte [rcx + rax]
xor byte [rbp + rcx - 0x40], al
inc rcx
sub rdx, 1
jne 0x140020b87
xorps xmm0, xmm0
mov qword [rbp - 0x18], r9
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x10], r9
lea rax, [rbp - 0x40]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r9b
jne 0x140020bb5
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x28]
call fcn.140003e60
lea rcx, [rbp - 0x28]
call fcn.140021b10
add rsp, 0x60
pop rbp
ret
Function at 0x140020bdc
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1400c60c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r15, rcx
mov byte [rsp + 0x20], dl
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov rsi, rax
test rax, rax
je 0x140020dd5
mov r12d, 0x5a4d
cmp word [rax], r12w
jne 0x140020dd5
movsxd rbx, dword [rax + 0x3c]
mov r13d, 0x4550
add rbx, rax
cmp dword [rbx], r13d
jne 0x140020dd5
movzx ebp, word [rbx + 0x14]
lea rdx, [rsp + 0x30]
add rbp, 0x18
lea rcx, [rsp + 0x21]
mov r8, rax
add rbp, rbx
call fcn.14001f284
mov rdi, qword [rsp + 0x38]
test rdi, rdi
je 0x140020dd5
mov r14, qword [rsp + 0x30]
lea rax, [r14 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140020dd5
cmp word [rdi], r12w
jne 0x140020dc3
movsxd rcx, dword [rdi + 0x3c]
add rcx, rdi
cmp dword [rcx], r13d
jne 0x140020dc3
mov eax, dword [rbx + 8]
cmp dword [rcx + 8], eax
jne 0x140020dc3
movzx edx, word [rcx + 6]
cmp dx, word [rbx + 6]
jne 0x140020dc3
movzx r12d, word [rcx + 0x14]
xor r13b, r13b
add r12, 0x18
xor r9d, r9d
add r12, rcx
mov r10d, edx
test edx, edx
je 0x140020dac
mov r8, r15
mov rax, rbp
sub r8, rbp
movzx ecx, byte [rax]
movzx edx, byte [rax + r8]
sub ecx, edx
jne 0x140020cf3
inc rax
test edx, edx
jne 0x140020ce0
test ecx, ecx
jne 0x140020d00
test dword [rbp + 0x24], 0x20000000
jne 0x140020d15
inc r9d
add rbp, 0x28
add r12, 0x28
cmp r9d, r10d
jl 0x140020cd7
jmp 0x140020dac
mov edx, dword [rbp + 0x10]
xor ebx, ebx
test edx, edx
je 0x140020dac
mov r14b, byte [rsp + 0x20]
mov eax, dword [r12 + 0x14]
mov r10d, dword [rbp + 0xc]
mov r15d, ebx
add rax, r15
add r10, r15
add r10, rsi
mov cl, byte [rax + rdi]
mov eax, edx
mov byte [rsp + 0x20], cl
cmp byte [r10], cl
je 0x140020d9f
test r14b, r14b
je 0x140020d9c
mov edx, 1
mov dword [rsp + 0x24], 0x40
lea r9, [rsp + 0x28]
mov rcx, r10
lea r8d, [rdx + 0x3f]
call qword [sym.imp.KERNEL32.DLL_VirtualProtect]
mov eax, dword [rbp + 0xc]
lea r9, [rsp + 0x24]
mov cl, byte [rsp + 0x20]
add rax, r15
mov edx, 1
mov byte [rax + rsi], cl
mov ecx, dword [rbp + 0xc]
mov r8d, dword [rsp + 0x28]
add rcx, r15
add rcx, rsi
call qword [sym.imp.KERNEL32.DLL_VirtualProtect]
mov eax, dword [rbp + 0x10]
mov r13b, 1
inc ebx
mov edx, eax
cmp ebx, eax
jb 0x140020d27
mov r14, qword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, r13b
jmp 0x140020dd7
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14007b750
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14002b9cc
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rdx
xor r8d, r8d
mov rdx, rcx
mov qword [rsp + 0x28], rbx
cmp byte [rcx + 5], r8b
je 0x14002b9fc
mov ecx, r8d
lea eax, [rcx + 0x3d]
xor byte [rdx + rcx], al
inc rcx
cmp rcx, 4
jb 0x14002b9e9
mov byte [rdx + 5], r8b
xorps xmm0, xmm0
lea rax, [rdx + 4]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x18], r8
cmp rdx, rax
jne 0x14002ba24
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], r8b
jmp 0x14002ba32
mov r8d, 4
mov rcx, rbx
call fcn.140003e60
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x14002ba3c
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rdx
xor r8d, r8d
mov rdx, rcx
mov qword [rsp + 0x28], rbx
cmp byte [rcx + 6], r8b
je 0x14002ba6c
mov ecx, r8d
lea eax, [rcx + 0x3d]
xor byte [rdx + rcx], al
inc rcx
cmp rcx, 5
jb 0x14002ba59
mov byte [rdx + 6], r8b
xorps xmm0, xmm0
lea rax, [rdx + 5]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x18], r8
cmp rdx, rax
jne 0x14002ba94
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], r8b
jmp 0x14002baa2
mov r8d, 5
mov rcx, rbx
call fcn.140003e60
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x14002baac
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rdx
xor r8d, r8d
mov rdx, rcx
mov qword [rsp + 0x28], rbx
cmp byte [rcx + 7], r8b
je 0x14002badc
mov ecx, r8d
lea eax, [rcx + 0x3d]
xor byte [rdx + rcx], al
inc rcx
cmp rcx, 6
jb 0x14002bac9
mov byte [rdx + 7], r8b
xorps xmm0, xmm0
lea rax, [rdx + 6]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x18], r8
cmp rdx, rax
jne 0x14002bb04
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], r8b
jmp 0x14002bb12
mov r8d, 6
mov rcx, rbx
call fcn.140003e60
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x14002bb1c
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rdx
xor r8d, r8d
mov rdx, rcx
mov qword [rsp + 0x28], rbx
cmp byte [rcx + 8], r8b
je 0x14002bb4c
mov ecx, r8d
lea eax, [rcx + 0x3d]
xor byte [rdx + rcx], al
inc rcx
cmp rcx, 7
jb 0x14002bb39
mov byte [rdx + 8], r8b
xorps xmm0, xmm0
lea rax, [rdx + 7]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x18], r8
cmp rdx, rax
jne 0x14002bb74
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], r8b
jmp 0x14002bb82
mov r8d, 7
mov rcx, rbx
call fcn.140003e60
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x14002bb8c
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rdx
xor r8d, r8d
mov rdx, rcx
mov qword [rsp + 0x28], rbx
cmp byte [rcx + 9], r8b
je 0x14002bbbc
mov ecx, r8d
lea eax, [rcx + 0x3d]
xor byte [rdx + rcx], al
inc rcx
cmp rcx, 8
jb 0x14002bba9
mov byte [rdx + 9], r8b
xorps xmm0, xmm0
lea rax, [rdx + 8]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x18], r8
cmp rdx, rax
jne 0x14002bbe4
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], r8b
jmp 0x14002bbf2
mov r8d, 8
mov rcx, rbx
call fcn.140003e60
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x14002bbfc
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rdx
xor r8d, r8d
mov rdx, rcx
mov qword [rsp + 0x28], rbx
cmp byte [rcx + 0xa], r8b
je 0x14002bc2c
mov ecx, r8d
lea eax, [rcx + 0x3d]
xor byte [rdx + rcx], al
inc rcx
cmp rcx, 9
jb 0x14002bc19
mov byte [rdx + 0xa], r8b
xorps xmm0, xmm0
lea rax, [rdx + 9]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x18], r8
cmp rdx, rax
jne 0x14002bc54
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], r8b
jmp 0x14002bc62
mov r8d, 9
mov rcx, rbx
call fcn.140003e60
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x14002bc6c
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rdx
xor r8d, r8d
mov rdx, rcx
mov qword [rsp + 0x28], rbx
cmp byte [rcx + 0x14], r8b
je 0x14002bc9c
mov ecx, r8d
lea eax, [rcx + 0x3d]
xor byte [rdx + rcx], al
inc rcx
cmp rcx, 0x13
jb 0x14002bc89
mov byte [rdx + 0x14], r8b
xorps xmm0, xmm0
lea rax, [rdx + 0x13]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x18], r8
cmp rdx, rax
jne 0x14002bcc4
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], r8b
jmp 0x14002bcd2
mov r8d, reloc.WS2_32.dll_send
mov rcx, rbx
call fcn.140003e60
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x14002bcdc
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rdx
xor r8d, r8d
mov rdx, rcx
mov qword [rsp + 0x28], rbx
cmp byte [rcx + 0x31], r8b
je 0x14002bd0c
mov ecx, r8d
lea eax, [rcx + 0x3d]
xor byte [rdx + rcx], al
inc rcx
cmp rcx, 0x30
jb 0x14002bcf9
mov byte [rdx + 0x31], r8b
xorps xmm0, xmm0
lea rax, [rdx + 0x30]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x18], r8
cmp rdx, rax
jne 0x14002bd34
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], r8b
jmp 0x14002bd42
mov r8d, Ordinal_50
mov rcx, rbx
call fcn.140003e60
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x14002bd4c
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rdx
xor r8d, r8d
mov rdx, rcx
mov qword [rsp + 0x28], rbx
cmp byte [rcx + 0xb], r8b
je 0x14002bd7c
mov ecx, r8d
lea eax, [rcx + 0x3d]
xor byte [rdx + rcx], al
inc rcx
cmp rcx, 0xa
jb 0x14002bd69
mov byte [rdx + 0xb], r8b
xorps xmm0, xmm0
lea rax, [rdx + 0xa]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x18], r8
cmp rdx, rax
jne 0x14002bda4
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], r8b
jmp 0x14002bdb2
mov r8d, 0xa
mov rcx, rbx
call fcn.140003e60
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x14002bdbc
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rdx
xor r8d, r8d
mov rdx, rcx
mov qword [rsp + 0x28], rbx
cmp byte [rcx + 0xc], r8b
je 0x14002bdec
mov ecx, r8d
lea eax, [rcx + 0x3d]
xor byte [rdx + rcx], al
inc rcx
cmp rcx, 0xb
jb 0x14002bdd9
mov byte [rdx + 0xc], r8b
xorps xmm0, xmm0
lea rax, [rdx + 0xb]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x18], r8
cmp rdx, rax
jne 0x14002be14
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], r8b
jmp 0x14002be22
mov r8d, recv
mov rcx, rbx
call fcn.140003e60
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x14002be2c
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
xor r9d, r9d
mov qword [rsp + 0x28], rdx
mov rbx, rdx
cmp byte [rcx + 0xc], r9b
je 0x14002be64
mov edx, r9d
movzx eax, dx
mov r8d, 0x26c3
sub ax, r8w
xor word [rcx + rdx*2], ax
inc rdx
cmp rdx, 5
jb 0x14002be46
mov byte [rcx + 0xc], r9b
xorps xmm0, xmm0
lea rax, [rcx + 0xa]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r9
mov qword [rbx + 0x18], r9
cmp rcx, rax
jne 0x14002be8d
mov qword [rbx + 0x10], r9
mov qword [rbx + 0x18], 7
mov word [rbx], r9w
jmp 0x14002be9e
mov rdx, rcx
mov r8d, 5
mov rcx, rbx
call fcn.14001c120
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x14002bea8
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
xor r9d, r9d
mov qword [rsp + 0x28], rdx
mov rbx, rdx
cmp byte [rcx + 0x14], r9b
je 0x14002bee0
mov edx, r9d
movzx eax, dx
mov r8d, 0x26c3
sub ax, r8w
xor word [rcx + rdx*2], ax
inc rdx
cmp rdx, 9
jb 0x14002bec2
mov byte [rcx + 0x14], r9b
xorps xmm0, xmm0
lea rax, [rcx + 0x12]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r9
mov qword [rbx + 0x18], r9
cmp rcx, rax
jne 0x14002bf09
mov qword [rbx + 0x10], r9
mov qword [rbx + 0x18], 7
mov word [rbx], r9w
jmp 0x14002bf1a
mov rdx, rcx
mov r8d, 9
mov rcx, rbx
call fcn.14001c120
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x140030c70
Capabilities:
Encode data using xor
Get storage device properties

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x1e8]
sub rsp, 0x2e0
mov rax, qword [0x1400c60c0]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rbx, rcx
mov qword [rbp - 0x70], rcx
xor r14d, r14d
mov dword [rbp - 0x78], r14d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], r14b
mov dword [rbp - 0x78], 1
movdqa xmm0, xmmword [0x14008d1a0]
movdqu xmmword [rsp + 0x70], xmm0
mov dword [rbp - 0x80], 0x100693d
mov ecx, r14d
lea eax, [rcx + 0x48]
xor byte [rsp + rcx + 0x70], al
inc rcx
cmp rcx, 0x12
jb 0x140030ce1
mov byte [rbp - 0x7d], r14b
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov r8d, 3
mov dword [rsp + 0x20], r8d
xor r9d, r9d
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.DLL_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140030e3a
mov qword [rbp - 0x3c], r14
mov dword [rbp - 0x48], r14d
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x40], r14d
mov qword [rsp + 0x38], r14
lea rax, [rbp - 0x48]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x200
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9d, recv
lea r8, [rbp - 0x40]
mov edx, 0x2d1400
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x140030dc9
mov ecx, dword [rbp - 0x18]
test ecx, ecx
je 0x140030d95
lea rdx, [rbp - 0x30]
add rdx, rcx
mov rcx, rbx
call fcn.140009a40
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rax, rbx
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.14007b750
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
movdqa xmm0, xmmword [0x14008d190]
movdqu xmmword [rsp + 0x40], xmm0
movdqa xmm1, xmmword [0x14008d1b0]
movdqu xmmword [rsp + 0x50], xmm1
mov dword [rsp + 0x60], 0x3b35303a
mov dword [rsp + 0x64], 0x2a3e223e
mov dword [rsp + 0x68], 0x2b2522
mov byte [rsp + 0x6c], 1
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x40]
call fcn.140030b90
nop
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x70]
call fcn.140003240
lea rdx, [0x1400c2478]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
movdqa xmm0, xmmword [0x14008d1c0]
movdqu xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], 0x38332f3d
mov dword [rsp + 0x54], 0x3e367d39
mov dword [rsp + 0x58], 0x60e050e
mov word [rsp + 0x5c], 0x100
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x40]
call fcn.140030b78
nop
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x70]
call fcn.140003240
lea rdx, [0x1400c2478]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140030fc8
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rdx
xor r8d, r8d
mov rdx, rcx
mov qword [rsp + 0x28], rbx
cmp byte [rcx + 0x1d], r8b
je 0x140030ff8
mov ecx, r8d
lea eax, [rcx + 0x48]
xor byte [rdx + rcx], al
inc rcx
cmp rcx, 0x1c
jb 0x140030fe5
mov byte [rdx + 0x1d], r8b
xorps xmm0, xmm0
lea rax, [rdx + 0x1c]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x18], r8
cmp rdx, rax
jne 0x140031020
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], r8b
jmp 0x14003102e
mov r8d, Ordinal_33
mov rcx, rbx
call fcn.140003e60
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x140031038
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rdx
xor r8d, r8d
mov rdx, rcx
mov qword [rsp + 0x28], rbx
cmp byte [rcx + 0x2c], r8b
je 0x140031068
mov ecx, r8d
lea eax, [rcx + 0x48]
xor byte [rdx + rcx], al
inc rcx
cmp rcx, 0x2b
jb 0x140031055
mov byte [rdx + 0x2c], r8b
xorps xmm0, xmm0
lea rax, [rdx + 0x2b]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x18], r8
cmp rdx, rax
jne 0x140031090
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], r8b
jmp 0x14003109e
mov r8d, Ordinal_46
mov rcx, rbx
call fcn.140003e60
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x140031138
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x1400c60c0]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov r15, qword [rbp + 0xa0]
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov r12d, 0x40
lea rcx, [rsp + 0x70]
mov r8d, r12d
xor edx, edx
mov r14, r9
call sub.VCRUNTIME140.dll_memset
mov r8d, r12d
lea edx, [r12 - 0xa]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memset
mov r8d, r12d
lea edx, [r12 + 0x1c]
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll_memset
cmp rbx, r12
jbe 0x1400311c1
mov r9d, r12d
lea r8, [rsp + 0x70]
mov rdx, rbx
mov rcx, rdi
call fcn.140031288
jmp 0x1400311d1
mov r8, rbx
lea rcx, [rsp + 0x70]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
xor eax, eax
movdqu xmm1, xmmword [rsp + rax + 0x70]
movdqu xmm0, xmmword [rbp + rax - 0x50]
xorps xmm0, xmm1
movdqu xmmword [rbp + rax - 0x50], xmm0
movdqu xmm0, xmmword [rbp + rax - 0x10]
xorps xmm0, xmm1
movdqu xmmword [rbp + rax - 0x10], xmm0
add rax, 0x10
cmp rax, r12
jl 0x1400311d3
lea rax, [rsp + 0x30]
mov edi, reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x28], rdi
lea rcx, [rbp - 0x50]
mov r9, r14
mov qword [rsp + 0x20], rax
mov r8, rsi
mov rdx, r12
call fcn.1400310a8
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rdi
mov r9d, edi
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x30]
mov rdx, r12
lea rcx, [rbp - 0x10]
call fcn.1400310a8
mov rbx, qword [rbp + 0xa8]
lea rdx, [rsp + 0x50]
cmp rbx, rdi
mov rcx, r15
cmova rbx, rdi
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, rbx
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.14007b750
add rsp, 0x140
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140031460
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
cdqe
add rsp, 0x28
ret