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

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x50
mov rax, qword [rcx + 8]
mov ebp, r8d
mov ecx, 0x3e80000
mov rbx, qword [rax + 0x2f0]
mov rax, qword [rdx + 0x80]
movzx edx, word [rdx + 0x68]
movzx edi, word [rax + 0x18]
mov eax, 0x40000
shl edi, 0x10
cmp edi, eax
cmovl edi, eax
shl edx, 0x10
call fcn.1401a6360
mov dword [rsp + 0x24], eax
mov ecx, eax
cmp eax, 0x28f
jge 0x1401e5166
xor eax, eax
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0x24]
mov qword [rsp + 0x80], rsi
mov esi, dword [rbx + 0x28]
mov qword [rsp + 0x48], r12
mov r12d, dword [rbx + 0x3c]
mov qword [rsp + 0x40], r13
mov r13d, dword [rbx + 0x38]
mov dword [rsp + 0x88], eax
mov eax, dword [rbx + 0x2c]
mov qword [rsp + 0x38], r14
mov r14d, dword [rbx + 0x40]
mov dword [rsp + 0x70], eax
mov eax, dword [rbx + 0x34]
mov qword [rsp + 0x30], r15
mov r15d, dword [rbx + 0x30]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x20], r12d
test ebp, ebp
jg 0x1401e51bd
mov ebp, 0x4b0000
jmp 0x1401e51cb
shl ebp, 0x10
mov edx, ecx
mov ecx, ebp
call fcn.1401a6340
mov ebp, eax
bsr ecx, ebp
bsr eax, edi
shl r12d, 0x10
add eax, ecx
cmp eax, 0x2e
jl 0x1401e51e1
mov eax, r12d
jmp 0x1401e51ea
mov edx, edi
mov ecx, ebp
call fcn.1401a6340
mov r9d, dword [rsp + 0x88]
mov ecx, r9d
shl ecx, 0x10
cmp eax, ecx
jge 0x1401e5206
shl esi, 0x10
mov ecx, esi
jmp 0x1401e52f5
mov r8d, dword [rsp + 0x70]
mov edx, r8d
shl edx, 0x10
mov dword [rsp + 0x88], edx
cmp eax, edx
jge 0x1401e5264
mov ebx, r8d
mov edx, edi
sub ebx, r9d
call fcn.1401a6360
mov ecx, ebp
sub ecx, eax
test ebx, ebx
je 0x1401e5254
sub r15d, esi
mov r8d, ebx
mov edx, r15d
call fcn.1401a62a0
shl esi, 0x10
mov edx, edi
mov ecx, esi
mov ebx, eax
call fcn.1401a6360
add ebx, eax
jmp 0x1401e52fe
mov esi, dword [rsp + 0x78]
mov ebx, esi
mov r8d, dword [rsp + 0x70]
shl ebx, 0x10
jmp 0x1401e5271
mov esi, dword [rsp + 0x78]
mov ebx, esi
shl ebx, 0x10
cmp eax, ebx
jge 0x1401e52b0
mov ecx, dword [rsp + 0x88]
mov r12d, esi
mov edx, edi
sub r12d, r8d
call fcn.1401a6360
mov ecx, ebp
sub ecx, eax
test r12d, r12d
je 0x1401e52b5
sub r13d, r15d
mov r8d, r12d
mov edx, r13d
call fcn.1401a62a0
shl r15d, 0x10
mov edx, edi
mov ecx, r15d
mov ebx, eax
call fcn.1401a6360
add ebx, eax
jmp 0x1401e52fe
cmp eax, r12d
jge 0x1401e52ee
mov r15d, dword [rsp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.1401a6360
sub ebp, eax
sub r15d, esi
je 0x1401e52ee
sub r14d, r13d
mov r8d, r15d
mov edx, r14d
mov ecx, ebp
call fcn.1401a62a0
shl r13d, 0x10
mov edx, edi
mov ecx, r13d
mov ebx, eax
call fcn.1401a6360
add ebx, eax
jmp 0x1401e52fe
shl r14d, 0x10
mov ecx, r14d
mov edx, edi
call fcn.1401a6360
mov ebx, eax
mov edx, dword [rsp + 0x24]
mov ecx, ebx
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rbp
pop rbx
jmp fcn.1401a6360
Function at 0x140231130
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x250
mov rax, qword [0x14045eb18]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov eax, dword [rcx + 0x58]
lea rbx, [rsp + 0x30]
mov dword [rsp + 0x40], eax
mov ebp, r9d
mov eax, dword [rcx + 0x5c]
mov rsi, rcx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x290]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], r8d
mov dword [rsp + 0x30], r9d
mov qword [rsp + 0x278], rdi
nop dword [rax]
mov r10d, dword [rbx + 0x14]
mov eax, r10d
mov r14d, dword [rbx + 4]
cmp r10d, r14d
mov r9d, dword [rbx + 0xc]
cmovg eax, r14d
cmp r9d, eax
jl 0x1402312cc
cmp r10d, r14d
mov eax, r14d
cmovg eax, r10d
cmp r9d, eax
jg 0x1402312cc
cmp r10d, r14d
jne 0x1402311d0
sub rbx, 0x10
jmp 0x140231314
mov edx, dword [rsi + 0x88]
xor r9d, r9d
cmp r10d, r14d
setge r9b
inc r9d
cmp edx, r9d
je 0x140231242
mov eax, dword [rsi + 4]
mov ecx, eax
mov r8d, dword [rsi + 8]
neg ecx
cmp r10d, r14d
jge 0x140231204
dec eax
add eax, r10d
and eax, ecx
sub eax, r10d
jmp 0x14023120c
and ecx, r10d
mov eax, r10d
sub eax, ecx
cmp eax, r8d
setge r11b
test edx, edx
je 0x14023122b
movzx edx, r11b
mov rcx, rsi
call fcn.140230a00
test al, al
jne 0x140231325
movzx r8d, r11b
mov edx, r9d
mov rcx, rsi
call fcn.140230910
test al, al
jne 0x140231325
mov edx, dword [rsi + 0x64]
lea r9, [0x140230b30]
mov ecx, dword [rsi + 0x60]
mov r8, rbx
cmp r10d, r14d
jge 0x14023126e
mov dword [rsp + 0x28], edx
mov edx, 2
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call fcn.140230df0
jmp 0x1402312c2
mov eax, dword [rbx + 4]
neg ecx
movzx edi, byte [rsi + 0x6a]
neg eax
mov dword [rbx + 4], eax
neg edx
mov eax, dword [rbx + 0xc]
neg eax
mov dword [rsp + 0x28], ecx
mov dword [rbx + 0xc], eax
mov rcx, rsi
mov eax, dword [rbx + 0x14]
neg eax
mov dword [rsp + 0x20], edx
mov edx, 2
mov dword [rbx + 0x14], eax
call fcn.140230df0
test dil, dil
je 0x1402312ba
cmp byte [rsi + 0x6a], 0
jne 0x1402312ba
mov rdx, qword [rsi + 0x70]
mov ecx, dword [rdx + 0x20]
neg ecx
mov dword [rdx + 0x20], ecx
mov ecx, dword [rbx + 4]
neg ecx
mov dword [rbx + 4], ecx
test al, al
jne 0x140231325
sub rbx, 0x10
jmp 0x140231314
mov eax, dword [rbx + 8]
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x20], ecx
add ecx, eax
mov dword [rbx + 0x24], r10d
lea edx, [rax + rbp]
mov eax, ecx
sar eax, 1
mov dword [rbx + 0x18], eax
lea eax, [rcx + rdx]
sar eax, 2
lea ecx, [r10 + r9]
mov dword [rbx + 0x10], eax
mov eax, ecx
sar edx, 1
sar eax, 1
mov dword [rbx + 8], edx
lea edx, [r14 + r9]
mov dword [rbx + 0x1c], eax
lea eax, [rcx + rdx]
sar eax, 2
sar edx, 1
mov dword [rbx + 0x14], eax
mov dword [rbx + 0xc], edx
add rbx, 0x10
lea rax, [rsp + 0x30]
cmp rbx, rax
jb 0x140231329
mov ebp, dword [rbx]
jmp 0x140231190
mov al, 1
jmp 0x140231332
mov dword [rsi + 0x58], ebp
xor al, al
mov dword [rsi + 0x5c], r14d
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14016e210
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r14
pop rsi
pop rbp
ret
Function at 0x140231960
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rax, qword [rcx + 0x20]
xor r15d, r15d
sub rax, 0x34
mov qword [rcx + 0x78], r15
mov qword [rcx + 0x28], rax
mov r14d, edx
mov rax, qword [rcx + 0x30]
mov rbx, rcx
mov word [rcx + 0x6a], r15w
lea ebp, [r15 - 1]
mov dword [rcx + 0x3c], r15d
mov edi, r15d
mov qword [rcx + 0x70], rax
mov qword [rax + 0x10], rax
mov word [rcx + 0x68], r15w
cmp r15w, word [rcx + 0xb8]
jge 0x140231a9b
mov esi, r15d
mov rax, qword [rbx + 0xd0]
lea edx, [rbp + 1]
mov dword [rbx + 0x88], r15d
mov r9d, r14d
mov qword [rbx + 0x80], r15
mov rcx, rbx
movsx ebp, word [rsi + rax]
mov r8d, ebp
call fcn.140231620
test al, al
jne 0x140231b36
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 0x5c]
lea eax, [r8 - 1]
test edx, eax
jne 0x140231a2f
cmp edx, dword [rbx + 0x60]
jl 0x140231a2f
cmp edx, dword [rbx + 0x64]
jg 0x140231a2f
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x140231a2f
mov rax, qword [rbx + 0x70]
movzx ecx, byte [rcx + 0x18]
xor cl, byte [rax + 0x18]
test cl, 8
jne 0x140231a2f
add qword [rbx + 0x30], 0xfffffffffffffffc
mov r9, qword [rbx + 0x70]
mov rax, qword [r9 + 0x10]
cmp qword [rbx + 0x30], rax
je 0x140231a52
test byte [r9 + 0x18], 8
je 0x140231a52
neg r8d
and r8d, edx
sub edx, r8d
cmp edx, dword [rbx + 8]
jmp 0x140231a63
lea eax, [r8 - 1]
neg r8d
add eax, edx
and eax, r8d
sub eax, edx
cmp eax, dword [rbx + 8]
setge dl
mov rcx, rbx
call fcn.140230a00
test al, al
jne 0x140231b36
mov rax, qword [rbx + 0x80]
test rax, rax
je 0x140231a86
mov qword [r9 + 0x28], rax
movsx eax, word [rbx + 0xb8]
inc edi
add rsi, 2
cmp edi, eax
jl 0x1402319c3
movzx edi, word [rbx + 0x68]
mov rdx, qword [rbx + 0x78]
cmp di, 1
jbe 0x140231b3a
test rdx, rdx
je 0x140231b3a
mov ebp, 0xffff
nop dword [rax + rax]
lea rsi, [rdx + 8]
cmp di, 1
jbe 0x140231ad8
movsxd rcx, dword [rdx + 0x1c]
mov rax, qword [rdx + 0x10]
lea r10, [rax + rcx*4]
jmp 0x140231adb
mov r10, r15
mov qword [rsi], r10
test byte [rdx + 0x18], 8
mov r11d, dword [rdx + 0x20]
mov r8d, r11d
mov eax, dword [rdx + 0x1c]
je 0x140231af6
dec r11d
add r11d, eax
jmp 0x140231b0d
sub r8d, eax
inc r8d
dec eax
mov dword [rdx + 0x20], r8d
movsxd rcx, eax
shl rcx, 2
add qword [rdx + 0x10], rcx
mov edx, r8d
mov rcx, rbx
call fcn.140230aa0
test al, al
jne 0x140231b36
lea edx, [r11 + 1]
mov rcx, rbx
call fcn.140230aa0
test al, al
jne 0x140231b36
mov rdx, qword [rsi]
add di, bp
jne 0x140231ac0
jmp 0x140231b3e
mov al, 1
jmp 0x140231b49
mov qword [rbx + 0x78], r15
mov rax, qword [rbx + 0x28]
cmp qword [rbx + 0x30], rax
setae al
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140236f50
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x140236f6c
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140236fc0
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1402370e5
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x1402370e5
test rax, rax
je 0x1402370e5
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
test rax, rax
je 0x1402370e5
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x14023705a
lea rax, [0x140237110]
jmp 0x1402370b3
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1402370e5
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1402370d3
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x140237080
lea rax, [0x140237140]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x1402370fa
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x140237990
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push r12
push r14
push r15
sub rsp, 0x20
mov rbp, rcx
mov r12, r9
mov rcx, r8
mov r14, rdx
call fcn.1401876c0
mov r8d, dword [rbp + 0x18]
mov ecx, dword [rbp + 0x20]
add rcx, 0x18
mov r15d, eax
lea r9d, [r8 + r8]
add rcx, r9
call qword [fcn.140358908]
mov rbx, rax
test rax, rax
je 0x140237b36
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x58], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x60], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x140237a20
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbp + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor esi, esi
test r15, r15
je 0x140237a82
mov rsi, r15
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x50]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x50], al
mov rcx, qword [rbx + 8]
call qword [rbp + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x50]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x50], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rbp + reloc.WS2_32.dll_htonl]
sub r15, 1
jne 0x140237a40
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x140237ac3
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x14039d178]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x14039d179]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140237a90
mov rcx, qword [rsp + 0x70]
call fcn.1401876c0
mov r9, qword [rbx]
mov r8d, eax
mov rcx, qword [rbx + 8]
mov rdx, r12
call qword [r9 + reloc.WS2_32.dll_htonl]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rbx]
test rdi, rdi
jne 0x140237af2
mov edi, dword [rsi + 0x18]
add rdi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rdi
call qword [rsi + reloc.WS2_32.dll_recv]
mov r8d, dword [rsi + 0x20]
mov rdx, rdi
mov rcx, qword [rbx + 0x10]
call qword [rsi + reloc.WS2_32.dll_htonl]
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
call qword [rsi + reloc.WS2_32.dll_recv]
mov rcx, rbx
call qword [fcn.140356d88]
mov rdi, qword [rsp + 0x60]
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
mov eax, 0x1b
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret

Function at 0x140239000
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
xor ecx, ecx
mov dword [rbx], eax
cmp eax, 0xffffffff
setne cl
mov eax, ecx
add rsp, 0x20
pop rbx
ret
Function at 0x140239030
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140239070
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x14023a2f0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov dword [rsp + 0x40], edx
lea r8, [rsp + 0x40]
mov edx, 0x8004667e
movsxd rcx, ecx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor ebx, ebx
mov edi, eax
test eax, eax
jns 0x14023a338
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, [0x1403fcc7b]
mov dword [rsp + 0x20], ebx
mov r8d, eax
lea edx, [rbx + 5]
lea ecx, [rbx + 2]
call fcn.1401d65d0
test edi, edi
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14023a350
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x38
cmp dword [0x1406c2b00], 0
jne 0x14023a3e4
xor edx, edx
mov dword [0x1406c2b00], 1
mov r8d, 0x198
lea rcx, [0x1406c2b10]
call fcn.14033b730
mov ecx, 0x202
lea rdx, [0x1406c2b10]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14023a3e4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, 9
mov dword [rsp + 0x20], 0
lea r9, [0x1403fcc7b]
mov r8d, eax
lea ecx, [rdx - 7]
call fcn.1401d65d0
mov edx, reloc.WS2_32.dll_WSASetLastError
mov dword [rsp + 0x20], 0
lea r9, [0x1403fcc7b]
lea r8d, [rdx + 0xa]
lea ecx, [rdx - 0x50]
call fcn.1401d65d0
mov eax, 0xffffffff
add rsp, 0x38
ret
mov eax, 1
add rsp, 0x38
ret
Function at 0x14023a7a0
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
xor edi, edi
mov ebx, r9d
mov ebp, r8d
mov r14, rdx
mov rsi, rcx
cmp r9d, 0x17
ja 0x14023a914
mov eax, 0x800005
bt eax, ebx
jae 0x14023a914
call fcn.14023a350
cmp eax, 1
jne 0x14023a930
mov eax, dword [rsp + 0xa0]
mov ecx, edi
mov qword [rsp + 0x80], r15
xorps xmm0, xmm0
mov dword [rsp + 0x30], ecx
xorps xmm1, xmm1
mov dword [rsp + 0x34], ebx
mov r15d, edi
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x3c], edi
movdqu xmmword [rsp + 0x40], xmm0
movdqu xmmword [rsp + 0x50], xmm1
test rsi, rsi
je 0x14023a82d
test ebx, ebx
jne 0x14023a82d
bts ecx, 0xa
mov dword [rsp + 0x30], ecx
cmp ebp, 1
jne 0x14023a838
or ecx, ebp
mov dword [rsp + 0x30], ecx
mov rbp, qword [rsp + 0xa8]
lea r8, [rsp + 0x30]
mov r9, rbp
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebx, eax
test eax, eax
je 0x14023a89b
nop word [rax + rax]
cmp ebx, 8
je 0x14023a8ee
mov ecx, dword [rsp + 0x30]
bt ecx, 0xa
jae 0x14023a8ad
btr ecx, 0xa
lea r8, [rsp + 0x30]
or ecx, 4
mov r9, rbp
mov dword [rsp + 0x30], ecx
mov rdx, r14
mov rcx, rsi
mov r15d, ebx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebx, eax
test eax, eax
jne 0x14023a860
mov r15, qword [rsp + 0x80]
mov edi, 1
jmp 0x14023a930
mov edx, 0x8f
mov dword [rsp + 0x20], edi
lea r9, [0x1403fcc7b]
lea ecx, [rdx - 0x6f]
lea r8d, [rcx - 0x1e]
call fcn.1401d65d0
test r15d, r15d
cmovne ebx, r15d
mov ecx, ebx
call fcn.14023a410
mov rdx, rax
mov ecx, 1
call fcn.1401d6c50
mov r15, qword [rsp + 0x80]
jmp 0x14023a930
mov edx, 0x8f
mov dword [rsp + 0x20], edi
lea r9, [0x1403fcc7b]
lea ecx, [rdx - 0x6f]
lea r8d, [rdx - 0x4e]
call fcn.1401d65d0
mov r15, qword [rsp + 0x80]
jmp 0x14023a930
mov edx, 0x8f
mov dword [rsp + 0x20], edi
lea r9, [0x1403fcc7b]
lea ecx, [rdx - 0x6f]
lea r8d, [rdx - 0xc]
call fcn.1401d65d0
lea r11, [rsp + 0x60]
mov eax, edi
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14023a970
Capabilities:
Resolve dns

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x488
mov rax, qword [0x14045eb18]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rbx, r9
mov rdi, r8
mov esi, edx
mov r14, rcx
call fcn.14023a350
cmp eax, 1
je 0x14023a9ab
xor eax, eax
jmp 0x14023ab5f
xor edx, edx
mov qword [rsp + 0x480], rbp
mov r8d, 0x400
mov byte [rsp + 0x60], 0
lea rcx, [rsp + 0x61]
call fcn.14033b730
xor eax, eax
mov byte [rsp + 0x40], 0
mov qword [rsp + 0x51], rax
lea r8, [rsp + 0x60]
mov dword [rsp + 0x59], eax
neg esi
mov word [rsp + 0x5d], ax
mov ecx, reloc.WS2_32.dll_recv
mov byte [rsp + 0x5f], al
mov edx, 0x1c
sbb eax, eax
xorps xmm0, xmm0
and eax, 0xa
mov r9d, 0x401
cmp word [r14], 2
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x40]
cmove edx, ecx
mov dword [rsp + 0x28], 0x20
mov rcx, r14
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x41], xmm0
call qword [sym.imp.WS2_32.dll_getnameinfo]
xor esi, esi
mov ebp, eax
test eax, eax
je 0x14023aa6b
lea r9, [0x1403fcc7b]
mov dword [rsp + 0x20], esi
mov edx, 0x86
lea ecx, [rsi + 0x20]
lea r8d, [rsi + 2]
call fcn.1401d65d0
mov ecx, ebp
call fcn.14023a410
mov rdx, rax
lea ecx, [rsi + 1]
call fcn.1401d6c50
xor eax, eax
jmp 0x14023ab57
cmp byte [rsp + 0x40], sil
jne 0x14023aab2
movzx eax, word [r14]
cmp ax, 2
jne 0x14023aa83
movzx ecx, word [r14 + 2]
jmp 0x14023aa92
cmp ax, 0x17
jne 0x14023aa90
movzx ecx, word [r14 + 2]
jmp 0x14023aa92
mov ecx, esi
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r9d, ax
lea r8, [0x1403fd790]
mov edx, 0x20
lea rcx, [rsp + 0x40]
call fcn.1401ba550
test rdi, rdi
je 0x14023aace
xor r8d, r8d
lea rdx, [0x1403fcc7b]
lea rcx, [rsp + 0x60]
call fcn.140239fb0
mov qword [rdi], rax
test rbx, rbx
je 0x14023aaea
xor r8d, r8d
lea rdx, [0x1403fcc7b]
lea rcx, [rsp + 0x40]
call fcn.140239fb0
mov qword [rbx], rax
test rdi, rdi
je 0x14023aaf4
cmp qword [rdi], rsi
je 0x14023ab03
test rbx, rbx
je 0x14023ab52
cmp qword [rbx], rsi
jne 0x14023ab52
test rdi, rdi
je 0x14023ab18
mov rcx, qword [rdi]
lea rdx, [0x1403fcc7b]
xor r8d, r8d
call fcn.1401b7e40
mov qword [rdi], rsi
test rbx, rbx
je 0x14023ab32
mov rcx, qword [rbx]
lea rdx, [0x1403fcc7b]
xor r8d, r8d
call fcn.1401b7e40
mov qword [rbx], rsi
mov edx, 0x86
mov dword [rsp + 0x20], esi
lea r9, [0x1403fcc7b]
lea ecx, [rdx - 0x66]
lea r8d, [rdx - 0x45]
call fcn.1401d65d0
xor eax, eax
jmp 0x14023ab57
mov eax, 1
mov rbp, qword [rsp + 0x480]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14016e210
add rsp, 0x488
pop r14
pop rdi
pop rsi
pop rbx
ret

Function at 0x140242bf0
Capabilities:
Encode data using xor

Disassembly:
xor r9b, r9b
mov r10, rdx
test r8, r8
je 0x140242c17
sub r10, rcx
nop
movzx edx, byte [r10 + rcx]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
xor dl, al
or r9b, dl
sub r8, 1
jne 0x140242c00
movzx eax, r9b
ret
Function at 0x140247d30
Capabilities:
Hash data using sha512

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x110
mov rax, qword [0x14045eb18]
xor rax, rsp
mov qword [rsp + 0x100], rax
movabs rax, 0x6a09e667f3bcc908
mov dword [rsp + 0xf4], 0x40
mov qword [rsp + 0x20], rax
lea rsi, [0x1406c3570]
movabs rax, 0xbb67ae8584caa73b
test r8, r8
mov qword [rsp + 0x28], rax
mov rbx, rdx
movabs rax, 0x3c6ef372fe94f82b
cmovne rsi, r8
mov qword [rsp + 0x30], rax
mov rdi, rcx
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rsp + 0x38], rax
movabs rax, 0x510e527fade682d1
mov qword [rsp + 0x40], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rsp + 0x48], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rsp + 0x50], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rsp + 0x58], rax
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0xf0], eax
test rdx, rdx
je 0x140247e57
mov rax, rdx
lea rcx, [rdx*8]
shr rax, 0x3d
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x60], rcx
cmp rdx, 0x80
jb 0x140247e40
mov r8, rdx
lea rcx, [rsp + 0x20]
shr r8, 7
mov rdx, rdi
call fcn.140247fd0
add rdi, rbx
and ebx, 0x7f
sub rdi, rbx
test rbx, rbx
je 0x140247e57
mov r8, rbx
lea rcx, [rsp + 0x70]
mov rdx, rdi
call fcn.14033b090
mov dword [rsp + 0xf0], ebx
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140247520
mov edx, 0xd8
lea rcx, [rsp + 0x20]
call fcn.140239a30
mov rax, rsi
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.14016e210
add rsp, 0x110
pop rdi
pop rsi
pop rbx
ret