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

Disassembly:
sub rsp, 0x28
call fcn.14027bfec
cdqe
add rsp, 0x28
ret
mov rax, qword [rcx + 0x10]
mov ecx, dword [rax]
jmp 0x140025660

Function at 0x1400ebe40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rdi, r8
mov rsi, rdx
mov rax, qword [0x1403a8f38]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rax, qword [rcx + 0x10]
mov ecx, dword [rax]
call fcn.140285718
mov rbx, rax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov rcx, rax
mov rdx, rsi
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400ebf1e
mov edi, dword [rsp + 0x44]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x1400ebf25
mov ecx, dword [rsp + 0x44]
add rcx, rcx
call fcn.140265fb8
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov ebx, eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov ecx, ebx
xor edx, edx
mov r8, rsi
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov r9d, dword [rsp + 0x44]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov ecx, ebx
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
mov rcx, rdi
call fcn.14026624c
movsxd rdi, esi
jmp 0x1400ebf25
mov rdi, 0xffffffffffffffff
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140265f90
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400ec080
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rbx, rdx
mov rsi, rcx
mov rax, qword [rcx + 0x10]
mov ecx, dword [rax]
call fcn.140285718
xor edi, edi
mov rcx, rax
mov rdx, rbx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400ec0ca
mov rax, qword [rsi + 0x10]
mov ecx, dword [rax]
call fcn.140285718
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne dil
mov eax, edi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400ecfe0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov ebx, r8d
mov rax, qword [0x1403a8f38]
xor rax, rsp
mov qword [rsp + 0x90], rax
lea rax, [0x1402d1910]
mov qword [rsp + 0x50], rax
lea r9, [rsp + 0x50]
mov qword [rsp + 0x88], r9
lea rcx, [rsp + 0x40]
mov r8b, 1
call fcn.1400ec370
mov rsi, qword [rsp + 0x48]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r14, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, 0xfde9
xor edx, edx
mov r8, rsi
mov r9d, 0xffffffff
call r14
movsxd r15, eax
lea rcx, [r15 + r15]
call fcn.140023a40
mov rdi, rax
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
xor edx, edx
mov r8, rsi
mov r9d, 0xffffffff
call r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400ed0a8
mov ebp, eax
test eax, 0x400
jne 0x1400ed0b2
shr ebp, 4
and ebp, 1
jmp 0x1400ed137
mov ebp, 5
jmp 0x1400ed137
mov ebp, 2
test bl, bl
je 0x1400ed137
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
mov rcx, rdi
xor edx, edx
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x1400ed120
mov rbx, rax
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
mov ebp, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x50]
shr eax, 4
and eax, 1
test ebp, ebp
mov ebp, 2
cmovne ebp, eax
jmp 0x1400ed137
call qword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 0xfffffffe
xor ecx, ecx
cmp eax, 2
sete cl
lea ebp, [rcx + rcx*2]
add ebp, 2
mov rcx, rdi
call fcn.14026f0d8
cmp byte [rsp + 0x40], 0
je 0x1400ed14e
mov rcx, rsi
call fcn.14026f0d8
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140265f90
mov eax, ebp
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400ed320
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rax, qword [0x1403a8f38]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rax, [0x1402d1940]
mov qword [rsp + 0x40], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x78], r9
lea rcx, [rsp + 0x30]
mov r8b, 1
call fcn.1400ec370
mov rdi, qword [rsp + 0x38]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rbx, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, 0xfde9
xor edx, edx
mov r8, rdi
mov r9d, 0xffffffff
call rbx
movsxd r14, eax
lea rcx, [r14 + r14]
call fcn.140023a40
mov rsi, rax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
xor edx, edx
mov r8, rdi
mov r9d, 0xffffffff
call rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400ed3e2
mov ecx, eax
and ecx, 0x400
je 0x1400ed3e2
mov rcx, rsi
test al, 0x10
jne 0x1400ed3f1
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1400ed3f7
mov ecx, 0x1126
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
jmp 0x1400ed3fd
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne dil
mov rcx, rsi
call fcn.14026f0d8
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140265f90
mov eax, edi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400ed430
Capabilities:
Move file

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rdi, r8
mov rsi, rcx
mov rax, qword [0x1403a8f38]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea r15, [0x1402d1940]
mov qword [rsp + 0x40], r15
lea rbx, [rsp + 0x40]
mov qword [rsp + 0x78], rbx
lea rcx, [rsp + 0x30]
mov r8b, 1
mov r9, rbx
call fcn.1400ec370
mov r14, qword [rsp + 0x38]
mov rdx, r14
xor r8d, r8d
call fcn.1400ecfe0
test eax, eax
je 0x1400ed4a4
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x1400ed5c1
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x78], rbx
lea rcx, [rsp + 0x30]
mov rdx, rdi
mov r8b, 1
mov r9, rbx
call fcn.1400ec370
mov rbx, qword [rsp + 0x38]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r15, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, 0xfde9
xor edx, edx
mov r8, r14
mov r9d, 0xffffffff
call r15
movsxd r12, eax
lea rcx, [r12 + r12]
call fcn.140023a40
mov rdi, rax
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
xor edx, edx
mov r8, r14
mov r9d, 0xffffffff
call r15
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, 0xffffffff
call r15
movsxd r12, eax
lea rcx, [r12 + r12]
call fcn.140023a40
mov r14, rax
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, 0xffffffff
call r15
mov rcx, rsi
mov rdx, rbx
call fcn.1400e62f0
cmp eax, 1
jne 0x1400ed599
mov rdx, rbx
xor r8d, r8d
call fcn.1400ecfe0
cmp eax, 2
jne 0x1400ed599
mov rdx, rbx
call fcn.1400ed320
test al, al
je 0x1400ed5e4
mov rcx, rdi
mov rdx, r14
mov r8d, 9
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne sil
mov rcx, r14
call fcn.14026f0d8
mov rcx, rdi
call fcn.14026f0d8
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140265f90
mov eax, esi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x1400ed5b1
Function at 0x1400ed5f0
Capabilities:
Move file

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rbx, r8
mov rdi, rcx
mov rax, qword [0x1403a8f38]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea r13, [0x1402d1940]
mov qword [rsp + 0x40], r13
lea r14, [rsp + 0x40]
mov qword [rsp + 0x78], r14
lea rcx, [rsp + 0x30]
mov r8b, 1
mov r9, r14
call fcn.1400ec370
mov r15, qword [rsp + 0x38]
mov rdx, r15
xor r8d, r8d
call fcn.1400ecfe0
cmp eax, 2
jne 0x1400ed77c
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r12, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, 0xfde9
xor edx, edx
mov r8, r15
mov r9d, 0xffffffff
call r12
movsxd rbp, eax
lea rcx, [rbp*2]
call fcn.140023a40
mov rsi, rax
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
xor edx, edx
mov r8, r15
mov r9d, 0xffffffff
call r12
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x78], r14
lea rcx, [rsp + 0x30]
mov rdx, rbx
mov r8b, 1
mov r9, r14
call fcn.1400ec370
mov r14, qword [rsp + 0x38]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov ecx, 0xfde9
xor edx, edx
mov r8, r14
mov r9d, 0xffffffff
call r12
movsxd r15, eax
lea rcx, [r15 + r15]
call fcn.140023a40
mov rbx, rax
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
xor edx, edx
mov r8, r14
mov r9d, 0xffffffff
call r12
mov rcx, rdi
mov rdx, r14
call fcn.1400e62f0
cmp eax, 1
jne 0x1400ed752
mov rdx, r14
xor r8d, r8d
call fcn.1400ecfe0
cmp eax, 2
jne 0x1400ed752
mov rdx, r14
call fcn.1400ed320
test al, al
je 0x1400ed7af
mov rcx, rsi
mov rdx, rbx
mov r8d, 9
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne dil
mov rcx, rbx
call fcn.14026f0d8
mov rcx, rsi
call fcn.14026f0d8
jmp 0x1400ed789
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140265f90
mov eax, edi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor edi, edi
jmp 0x1400ed76a
Function at 0x1400eefc0
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1403a8f38]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 0x18
call fcn.140266210
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rsi
lea rcx, [rsp + 0x34]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
lea r8, [0x1400ef060]
xor esi, esi
xor ecx, ecx
mov edx, 0x100000
mov r9, rax
call fcn.1402860c0
lea rcx, [rax + 1]
cmp rcx, 1
ja 0x1400ef031
call fcn.140279af0
mov esi, dword [rax]
jmp 0x1400ef03a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140265f90
mov eax, esi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400ef6e0
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
movaps xmmword [rsp + 0x50], xmm6
mov rsi, rdx
mov ebx, ecx
mov rax, qword [0x1403a8f38]
xor rax, rsp
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x44]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rdi, rax
test rax, rax
je 0x1400ef7c7
mov eax, dword [rsp + 0x44]
cmp eax, ebx
jle 0x1400ef736
mov dword [rsp + 0x44], ebx
mov eax, ebx
test eax, eax
jle 0x1400ef7be
xor r12d, r12d
xorps xmm6, xmm6
mov r13, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
nop dword [rax + rax]
mov rbx, qword [rdi + r12*8]
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, 0xffffffff
call r13
movsxd r14, eax
mov rcx, r14
call fcn.140023a40
mov r15, rax
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, 0xffffffff
call r13
mov qword [rsi + r12*8], r15
inc r12
movsxd rax, dword [rsp + 0x44]
cmp r12, rax
jl 0x1400ef750
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140265f90
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14010fa70
Capabilities:
Enumerate process modules

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
mov eax, 0x2040
call fcn.140266270
sub rsp, rax
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1403a8f38]
xor rax, rsp
mov qword [rsp + 0x2038], rax
cmp qword [0x1403ab3f0], 0
jne 0x14010fac1
mov ecx, 8
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov qword [0x1403ab3f0], rax
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, 0x410
xor edx, edx
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
je 0x14010fb4e
mov rbx, rax
lea rdx, [rsp + 0x30]
lea r9, [rsp + 0x2c]
mov rcx, rax
mov r8d, 0x2000
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x14010fb2f
cmp dword [rsp + 0x2c], 8
jb 0x14010fb2f
xor r14d, r14d
mov r15, qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax]
mov rcx, qword [rsp + r14*8 + 0x30]
mov rdx, rdi
call r15
test rax, rax
jne 0x14010fb84
inc r14
mov eax, dword [rsp + 0x2c]
shr eax, 3
cmp r14, rax
jb 0x14010fb10
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.None_of_the_loaded_modules_contained_the_requested_symbol__s.
xor r14d, r14d
xor ecx, ecx
mov r8, rdi
call fcn.140190c20
jmp 0x14010fb5f
lea rdx, str.Failed_to_open_current_process.
xor r14d, r14d
xor ecx, ecx
call fcn.140190c20
mov qword [rsi], rax
mov rcx, qword [rsp + 0x2038]
xor rcx, rsp
call fcn.140265f90
mov rax, r14
add rsp, 0x2040
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov r14, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14010fb62
Function at 0x140132de0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov eax, dword [0x1403b0260]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rsi, qword [rax + 8]
test rsi, rsi
je 0x140132e48
mov rcx, qword [rsi + 0x698]
lea rax, [0x1403ab6f8]
test rcx, rcx
je 0x140132eaa
mov rdx, qword [0x1403ab6e8]
test rdx, rdx
je 0x140132e73
mov rcx, qword [rcx + 0x380]
mov rcx, qword [rcx + 8]
mov rdi, rax
call fcn.140269e80
mov rcx, rax
mov rax, rdi
test rcx, rcx
jne 0x140132ea2
jmp 0x140132eaa
mov ecx, dword [0x1403a6e30]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140132e6c
cmp byte [rax + 8], 0
jne 0x140132ea6
mov rcx, rax
call fcn.140048a50
test rax, rax
jne 0x140132ea6
call fcn.14018fdf0
jmp 0x140132ea6
mov rdx, qword [0x1403ab460]
test rdx, rdx
je 0x140132e8a
mov rdx, qword [rdx + 0x50]
cmp rdx, rcx
jne 0x140132e91
jmp 0x140132ea2
xor edx, edx
cmp rdx, rcx
je 0x140132ea2
mov rdi, rax
call fcn.14012c780
mov ecx, eax
mov rax, rdi
test cl, cl
jne 0x140132eaa
mov rax, qword [rsi + 0x10]
mov rax, qword [rax + 0x38]
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x140164490
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rsi, r9
mov rdi, r8
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x1403a8f38]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov eax, dword [0x1403b0260]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 8]
mov rcx, qword [rax + 0x698]
mov rcx, qword [rcx + 0x20]
mov rdx, qword [rcx + 0x4e0]
mov rcx, qword [rax + 0x18]
call fcn.140164770
mov qword [rsp + 0x20], r14
mov rcx, qword [r14 + 8]
test byte [rcx + 7], 2
cmove rax, r14
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
pcmpeqd xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], 0xffffffffffffffff
lea rcx, [rsp + 0x20]
call fcn.140164640
test al, al
je 0x14016461c
lea r15, [rsp + 0x20]
lea r12, [0x1402b0da9]
lea r13, [0x1403081ee]
nop dword [rax + rax]
mov r8d, dword [rsp + 0x38]
add r8, rdi
mov rcx, rbx
lea rdx, str.0x_.8llx:
call fcn.1400242a0
mov rbp, qword [rsp + 0x48]
test rbp, rbp
js 0x140164590
add rbp, qword [rsp + 0x50]
jg 0x1401645a4
jmp 0x140164600
mov rcx, r15
call fcn.140180f70
mov rbp, qword [rsp + 0x48]
add rbp, qword [rsp + 0x50]
jle 0x140164600
xor r14d, r14d
jmp 0x1401645c0
mov rcx, rbx
call fcn.140024410
inc r14
cmp rbp, r14
je 0x140164600
cmp qword [rsp + 0x48], 0
jns 0x1401645d0
mov rcx, r15
call fcn.140180f70
mov rax, r14
shr rax, 3
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 8]
add rcx, qword [rsp + 0x58]
movzx eax, byte [rax + rcx + 0xb]
mov ecx, r14d
and ecx, 7
bt eax, ecx
mov rdx, r12
jae 0x1401645b0
mov rdx, r13
jmp 0x1401645b0
mov rcx, r15
call fcn.140164640
test al, al
je 0x14016461c
mov rcx, rbx
mov rdx, rsi
call fcn.140024410
jmp 0x140164560
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140265f90
nop
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140166010
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rax, r8
mov r8, rdx
mov qword [rsp + 0x48], rcx
mov rsi, qword [rsp + 0xd8]
mov ecx, dword [rsp + 0xe0]
mov rdx, qword [0x1403a8f38]
xor rdx, rsp
mov qword [rsp + 0x60], rdx
mov edx, dword [0x1403b0260]
mov r10, qword gs:[0x58]
mov rdx, qword [r10 + rdx*8]
mov rdx, qword [rdx + 8]
mov r15, qword [rdx + 0x18]
mov dword [rsp + 0x38], ecx
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x20], r9
lea rcx, [rsp + 0x58]
mov rdx, r15
mov r9, rax
call fcn.140165df0
mov rdx, qword [rsp + 0x58]
mov rcx, r15
call fcn.140165f30
mov rdi, rax
lea rbx, [rsi + 2]
lea r8, [rsi*2 + 4]
lea rcx, [rsp + 0x50]
mov edx, 0x59
mov r9d, 1
call fcn.140176140
mov rdx, qword [rsp + 0x50]
mov rcx, r15
call fcn.1400f3310
mov r14, rax
mov rcx, r15
call fcn.1400f9e60
test rsi, rsi
jle 0x14016611c
mov r15, rax
mov rbp, qword [rsp + 0xe8]
xor r13d, r13d
mov r12, rsi
nop word cs:[rax + rax]
mov rax, qword [rbp + 0x10]
mov r8, qword [rax + r13]
add r8, r8
mov qword [r15 + 8], r8
mov rcx, qword [r14 + 8]
lea rdx, [rcx + r13]
add rdx, 0x17
dec rcx
call fcn.1400f0620
add r13, 8
dec r12
jne 0x1401660f0
mov r15, qword [rsp + 0xf0]
mov rax, qword [r15 + 8]
mov rcx, qword [rax + 0x3f]
call fcn.140120570
mov rcx, qword [r14 + 8]
mov r8, qword [rax + 8]
lea rdx, [rcx + rsi*8]
add rdx, 0x1f
dec rcx
call fcn.1400f0620
mov rcx, qword [r14 + 8]
mov r8, qword [r15 + 8]
lea rdx, [rcx + rsi*8]
add rdx, 0x17
dec rcx
call fcn.1400f0620
mov rcx, r14
mov rdx, rbx
mov r8, rdi
call fcn.1401650a0
mov rdx, qword [rdi + 8]
lea rcx, [rdx - 1]
mov r8, qword [r14 + 8]
add rdx, 0x17
call fcn.14017eb80
mov rax, qword [rdi + 8]
mov rsi, qword [rsp + 0x48]
mov qword [rsi], rax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140265f90
mov rax, rsi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140171060
Capabilities:
Access peb ldr_data

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x1403a8f38]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov eax, dword [0x1403b0260]
mov rcx, qword gs:[0x58]
mov r14, qword [rcx + rax*8]
mov rdi, qword [r14 + 8]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 8
mov byte [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
mov edx, 0x3c
mov r8d, reloc.WS2_32.dll_recv
mov r9d, 1
call fcn.14014d0e0
mov rcx, qword [rsp + 0x40]
call fcn.140171c00
mov rcx, qword [rax + 8]
mov qword [rcx + 7], rbx
mov rdx, qword [rax + 8]
mov rcx, qword [rdi + 0x18]
call fcn.140171c30
mov rbx, rax
mov r8d, 0x430
add r8, qword [rdi + 0x698]
mov rdx, qword [r14 + 8]
lea r14, [rsp + 0x40]
mov rcx, r14
call fcn.1401326d0
mov rax, qword [rbx]
lea rdx, [rsp + 0x38]
mov rcx, rbx
mov r8, rdi
call qword [rax + 0x2d8]
lea rax, [0x140306130]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x58]
call fcn.14009cff0
mov rcx, r14
call fcn.140111480
mov rax, qword [rsp + 0x38]
mov qword [rbx + 8], rax
mov qword [rsi], rax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140265f90
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140171eb0
Capabilities:
Access peb ldr_data

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x70], xmm6
movaps xmm6, xmm1
mov rsi, rcx
mov rax, qword [0x1403a8f38]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov eax, dword [0x1403b0260]
mov rcx, qword gs:[0x58]
mov r14, qword [rcx + rax*8]
mov rdi, qword [r14 + 8]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 8
mov byte [rsp + 0x20], 0
lea rcx, [rsp + 0x48]
mov edx, 0x3d
mov r8d, reloc.WS2_32.dll_recv
mov r9d, 1
call fcn.14014d0e0
mov rcx, qword [rsp + 0x48]
call fcn.140171e80
mov rcx, qword [rax + 8]
movsd qword [rcx + 7], xmm6
mov rdx, qword [rax + 8]
mov rcx, qword [rdi + 0x18]
call fcn.140171fd0
mov rbx, rax
mov r8d, 0x430
add r8, qword [rdi + 0x698]
mov rdx, qword [r14 + 8]
lea r14, [rsp + 0x48]
mov rcx, r14
call fcn.1401326d0
mov rax, qword [rbx]
lea rdx, [rsp + 0x40]
mov rcx, rbx
mov r8, rdi
call qword [rax + 0x2d8]
lea rax, [0x140306130]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x60]
call fcn.14009cff0
mov rcx, r14
call fcn.140111480
mov rax, qword [rsp + 0x40]
mov qword [rbx + 8], rax
mov qword [rsi], rax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140265f90
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140173670
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
movdqa xmmword [rsp + 0x90], xmm11
movdqa xmmword [rsp + 0x80], xmm10
movdqa xmmword [rsp + 0x70], xmm9
movdqa xmmword [rsp + 0x60], xmm8
movdqa xmmword [rsp + 0x50], xmm7
movdqa xmmword [rsp + 0x40], xmm6
mov rax, r8
mov r8, rdx
mov rsi, rcx
mov rcx, qword [0x1403a8f38]
xor rcx, rsp
mov qword [rsp + 0x38], rcx
test rax, rax
jle 0x140173874
xor ecx, ecx
cmp rax, 4
jae 0x1401736de
mov r11b, 1
xor r10d, r10d
mov rdx, rax
jmp 0x140173830
mov r10, rax
and r10, 0xfffffffffffffffc
movq xmm1, rax
movdqa xmm2, xmmword [0x14030fe20]
pxor xmm0, xmm0
xor edx, edx
movdqa xmm3, xmmword [0x140306960]
movdqa xmm4, xmmword [0x14030fe30]
movdqa xmm5, xmmword [0x14030fe40]
movdqa xmm6, xmmword [0x14030fe50]
movdqa xmm7, xmmword [0x14030fe60]
movdqa xmm8, xmm2
nop word cs:[rax + rax]
movdqa xmm10, xmm8
movdqa xmm8, xmm2
movq xmm11, qword [r8 + rdx*4]
movq xmm9, qword [r8 + rdx*4 + 8]
movdqa xmm2, xmm11
pxor xmm2, xmm3
pcmpgtd xmm2, xmm4
packssdw xmm2, xmm2
packsswb xmm2, xmm2
pandn xmm2, xmm8
movdqa xmm8, xmm9
pxor xmm8, xmm3
pcmpgtd xmm8, xmm4
packssdw xmm8, xmm8
packsswb xmm8, xmm8
pandn xmm8, xmm10
paddd xmm11, xmm5
paddd xmm9, xmm5
pxor xmm11, xmm3
movdqa xmm10, xmm6
pcmpgtd xmm10, xmm11
pshufd xmm10, xmm10, 0xd4
pand xmm10, xmm7
paddq xmm1, xmm10
pxor xmm9, xmm3
movdqa xmm10, xmm6
pcmpgtd xmm10, xmm9
pshufd xmm9, xmm10, 0xd4
pand xmm9, xmm7
paddq xmm0, xmm9
add rdx, 4
cmp r10, rdx
jne 0x140173730
movdqa xmm3, xmmword [0x14030fe20]
pcmpeqb xmm2, xmm3
pcmpeqd xmm4, xmm4
pxor xmm2, xmm4
pcmpeqb xmm8, xmm3
pxor xmm8, xmm4
por xmm8, xmm2
punpcklbw xmm8, xmm8
pshuflw xmm2, xmm8, 0x50
pshufd xmm2, xmm2, 0x50
movmskpd edx, xmm2
test edx, edx
sete r11b
paddq xmm0, xmm1
pshufd xmm1, xmm0, 0xee
paddq xmm1, xmm0
movq rdx, xmm1
cmp r10, rax
je 0x14017385a
nop dword [rax + rax]
mov edi, dword [r8 + r10*4]
cmp edi, 0x100
movzx r11d, r11b
cmovae r11d, ecx
add edi, 0xffff0000
cmp edi, 0x100000
adc rdx, 0
inc r10
cmp rax, r10
jne 0x140173830
test r11b, 1
jne 0x140173874
mov dword [rsp + 0x20], r9d
lea rcx, [rsp + 0x30]
mov r9, rax
call fcn.140173a60
jmp 0x140173884
lea rcx, [rsp + 0x30]
mov rdx, r8
mov r8, rax
call fcn.1401738d0
mov rax, qword [rsp + 0x30]
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140265f90
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x40]
movaps xmm7, xmmword [rsp + 0x50]
movaps xmm8, xmmword [rsp + 0x60]
movaps xmm9, xmmword [rsp + 0x70]
movaps xmm10, xmmword [rsp + 0x80]
movaps xmm11, xmmword [rsp + 0x90]
add rsp, 0xa8
pop rdi
pop rsi
ret