joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140259880
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1e0
mov rsi, rcx
mov r14, qword [rdx]
mov rbx, qword [rdx + 8]
movzx edi, word [rdx + 0x10]
mov rax, qword [0x1405451b0]
cmp rax, 3
jne 0x140259a47
cmp rbx, 0x17f
ja 0x140259a59
lea r15, [rsp + 0x60]
mov rcx, r15
mov rdx, r14
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov byte [rsp + rbx + 0x60], 0
lea rax, [rbx + 1]
cmp rbx, 0xe
ja 0x1402598f8
xor edx, edx
nop
cmp byte [rsp + rdx + 0x60], 0
je 0x1402599b4
inc rdx
cmp rax, rdx
jne 0x1402598e0
jmp 0x140259a0e
lea rcx, [rsp + 0x67]
and rcx, 0xfffffffffffffff8
sub rcx, r15
je 0x14025992e
je 0x14025992e
xor edx, edx
nop word [rax + rax]
cmp byte [rsp + rdx + 0x60], 0
je 0x1402599b4
inc rdx
cmp rcx, rdx
jne 0x140259910
lea rdx, [rbx - 0xf]
cmp rcx, rdx
jbe 0x140259934
jmp 0x140259985
lea rdx, [rbx - 0xf]
xor ecx, ecx
movabs r8, 0xfefefefefefefeff
movabs r9, 0x8080808080808080
nop dword [rax + rax]
mov r10, qword [rsp + rcx + 0x60]
mov r11, r10
not r11
add r10, r8
and r11, r9
test r11, r10
jne 0x140259985
mov r10, qword [rsp + rcx + 0x68]
mov r11, r10
not r11
add r10, r8
and r11, r9
test r11, r10
jne 0x140259985
add rcx, 0x10
cmp rcx, rdx
jbe 0x140259950
sub rax, rcx
je 0x140259a0e
lea r8, [rsp + rcx]
add r8, 0x60
xor edx, edx
nop dword [rax + rax]
cmp byte [r8 + rdx], 0
je 0x1402599b1
inc rdx
cmp rax, rdx
jne 0x1402599a0
jmp 0x140259a0e
add rdx, rcx
cmp rdx, rbx
jne 0x140259a0e
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x60]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x140259a22
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x140259a35
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x140259a38
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], di
xor eax, eax
mov qword [rsi], rax
add rsp, 0x1e0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140259eb0
cmp rbx, 0x17f
jbe 0x1402598ba
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9d, edi
add rsp, 0x1e0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp 0x140259f10
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov ebx, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.14004a360
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140259f6a
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
cmp qword [rsp + 0x38], 0
je 0x140259ff2
mov edx, 1
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140026d90
mov rdi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
sub byte [rax], al
add byte [rax], al
add byte [rbp + rcx*4 + 0x44], cl
and al, 0x50
Function at 0x140259f10
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1e0
mov rsi, rcx
mov r14, qword [rdx]
mov rbx, qword [rdx + 8]
movzx edi, word [rdx + 0x10]
mov rax, qword [0x1405451b0]
cmp rax, 3
jne 0x140259a47
cmp rbx, 0x17f
ja 0x140259a59
lea r15, [rsp + 0x60]
mov rcx, r15
mov rdx, r14
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov byte [rsp + rbx + 0x60], 0
lea rax, [rbx + 1]
cmp rbx, 0xe
ja 0x1402598f8
xor edx, edx
nop
cmp byte [rsp + rdx + 0x60], 0
je 0x1402599b4
inc rdx
cmp rax, rdx
jne 0x1402598e0
jmp 0x140259a0e
lea rcx, [rsp + 0x67]
and rcx, 0xfffffffffffffff8
sub rcx, r15
je 0x14025992e
je 0x14025992e
xor edx, edx
nop word [rax + rax]
cmp byte [rsp + rdx + 0x60], 0
je 0x1402599b4
inc rdx
cmp rcx, rdx
jne 0x140259910
lea rdx, [rbx - 0xf]
cmp rcx, rdx
jbe 0x140259934
jmp 0x140259985
lea rdx, [rbx - 0xf]
xor ecx, ecx
movabs r8, 0xfefefefefefefeff
movabs r9, 0x8080808080808080
nop dword [rax + rax]
mov r10, qword [rsp + rcx + 0x60]
mov r11, r10
not r11
add r10, r8
and r11, r9
test r11, r10
jne 0x140259985
mov r10, qword [rsp + rcx + 0x68]
mov r11, r10
not r11
add r10, r8
and r11, r9
test r11, r10
jne 0x140259985
add rcx, 0x10
cmp rcx, rdx
jbe 0x140259950
sub rax, rcx
je 0x140259a0e
lea r8, [rsp + rcx]
add r8, 0x60
xor edx, edx
nop dword [rax + rax]
cmp byte [r8 + rdx], 0
je 0x1402599b1
inc rdx
cmp rax, rdx
jne 0x1402599a0
jmp 0x140259a0e
add rdx, rcx
cmp rdx, rbx
jne 0x140259a0e
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x60]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x140259a22
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x140259a35
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x140259a38
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], di
xor eax, eax
mov qword [rsi], rax
add rsp, 0x1e0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140259eb0
cmp rbx, 0x17f
jbe 0x1402598ba
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9d, edi
add rsp, 0x1e0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp 0x140259f10
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov ebx, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.14004a360
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140259f6a
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
cmp qword [rsp + 0x38], 0
je 0x140259ff2
mov edx, 1
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140026d90
mov rdi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
sub byte [rax], al
add byte [rax], al
add byte [rbp + rcx*4 + 0x44], cl
and al, 0x50
Function at 0x1402610f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
movdqa xmmword [rsp + 0x70], xmm6
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.140235270
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
test rcx, rcx
je 0x140261165
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x58]
call fcn.140261270
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x140261173
movdqu xmm6, xmmword [rsp + 0x30]
mov rcx, rdi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x140261193
mov qword [rsi], rdi
movdqu xmmword [rsi + 8], xmm6
jmp 0x140261184
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x28]
call fcn.140235420
mov qword [rsi], 0
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
ret
mov qword [rsi], 0
movq rax, xmm6
test rax, rax
je 0x140261184
mov edx, 2
mov rcx, rdi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
jmp fcn.140026d90
Function at 0x140262aa0
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, r8
mov rbx, rdx
mov r14, rcx
movzx eax, byte [0x140545270]
mov ecx, 0x10
mov edx, 8
call fcn.140026d00
test rax, rax
je 0x140262b57
mov rsi, rax
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140262e30]
xor edi, edi
xor ecx, ecx
mov rdx, r14
mov r9, rax
call sub.kernel32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x140262b4a
mov rdi, qword [rsi]
mov rbx, qword [rsi + 8]
mov rcx, rdi
call qword [rbx]
cmp qword [rbx + 8], 0
je 0x140262b29
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
call fcn.140026d90
mov edx, 8
mov rcx, rsi
call fcn.140026d90
call sub.kernel32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 8
mov edx, 0x10
call fcn.14004a180
ud2
Function at 0x1402630c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1078
call fcn.140297be0
sub rsp, rax
movaps xmmword [rsp + 0x1060], xmm6
mov rsi, rdx
mov rdi, rcx
lea rbx, [rsp + 0x60]
mov r8d, 0x1000
mov rcx, rbx
xor edx, edx
call sub.msvcrt.dll_memset
mov dword [rsp + 0x34], 0
xorps xmm6, xmm6
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
lea r13, [rsp + 0x34]
mov qword [rsp + 0x58], r13
lea rbp, case.0x14025aefd.66
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x1000
call sub.kernel32.dll_ReadFileEx
test eax, eax
je 0x140263255
lea rbx, [rsp + 0x40]
lea r14, [rsp + 0x60]
mov ecx, 0xffffffff
mov edx, 1
call sub.kernel32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x140263153
cmp dword [rsp + 0x38], 0
jne 0x14026325a
mov r15d, dword [rsp + 0x3c]
test r15, r15
je 0x14026325a
cmp r15d, 0x1000
ja 0x14026329a
xor r12d, r12d
nop word cs:[rax + rax]
cmp r12, r15
ja 0x140263286
lea rdx, [rsp + r12]
add rdx, 0x60
mov r8d, r15d
sub r8d, r12d
mov dword [rsp + 0x34], 0
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], rbp
mov rcx, rsi
mov r9, rbx
call sub.kernel32.dll_WriteFileEx
test eax, eax
je 0x140263255
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.kernel32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x1402631f0
cmp dword [rsp + 0x38], 0
jne 0x14026325a
mov eax, dword [rsp + 0x3c]
add r12, rax
cmp r12, r15
jne 0x1402631a0
mov dword [rsp + 0x34], 0
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], rbp
mov rcx, rdi
mov rdx, r14
mov r8d, 0x1000
mov r9, rbx
call sub.kernel32.dll_ReadFileEx
test eax, eax
jne 0x140263153
call sub.kernel32.dll_GetLastError
mov rcx, rdi
call sub.kernel32.dll_CloseHandle
mov rcx, rsi
call sub.kernel32.dll_CloseHandle
movaps xmm6, xmmword [rsp + 0x1060]
add rsp, 0x1078
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r12
mov rdx, r15
call fcn.140055d90
jmp 0x1402632ae
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, r15
call fcn.140051130
ud2

Function at 0x1402632e0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x80
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
mov edx, 0x10
call sub.advapi32.dll_SystemFunction036
test al, al
je 0x140263316
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rsp, 0x80
pop rsi
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rax, [fcn.1402525d0]
mov qword [rsp + 0x48], rax
lea rax, [0x1404c0a20]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.0_nL_
lea rcx, [rsp + 0x50]
call fcn.14004fdf0
ud2
Function at 0x140265530
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
cmp qword [rdx], 0
jne 0x140265635
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x140265568
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x14026561e
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x140265600
sub rax, rdx
add rdx, qword [rbx]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x30], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x30]
mov r8d, eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x1402655bd
mov eax, dword [rsp + 0x30]
mov ecx, 2
test rax, rax
jne 0x1402655d9
jmp 0x1402655ce
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
je 0x1402655d4
cmp eax, 0x6d
jne 0x1402655f0
mov byte [rsi + 1], 0
jmp 0x1402655e4
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
xor eax, eax
mov byte [rsi], al
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x1402655e6
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.1402380f0
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x140265575
mov r8d, 0x10
mov rcx, rbx
call fcn.1402380f0
mov rax, qword [rbx + 8]
jmp 0x140265568
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140265650
ud2

Function at 0x140265c70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1403a0258]
test ecx, ecx
je 0x140265d0f
dec ecx
call fcn.14029819c
cmp rax, 1
jbe 0x140265c99
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x140265cfe
mov ecx, dword [0x1403a0258]
test ecx, ecx
je 0x140265d22
dec ecx
call fcn.14029819c
cmp rax, 1
je 0x140265d04
mov rsi, rax
test rax, rax
jne 0x140265cf8
movzx eax, byte [0x140545270]
mov ecx, 0x10
mov edx, 8
call fcn.140026d00
test rax, rax
je 0x140265d45
mov rsi, rax
lea rax, [0x1403a0240]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x1403a0258]
test ecx, ecx
je 0x140265d35
dec ecx
mov rdx, rsi
call fcn.1402981a4
mov word [rsi + 8], 1
add rsi, 9
jmp 0x140265d06
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1403a0240]
call fcn.1402332b0
mov ecx, eax
jmp 0x140265c85
lea rcx, [0x1403a0240]
call fcn.1402332b0
mov ecx, eax
jmp 0x140265ca5
lea rcx, [0x1403a0240]
call fcn.1402332b0
mov ecx, eax
jmp 0x140265cf0
mov ecx, 8
mov edx, 0x10
call fcn.14004a180
ud2
Function at 0x14026b650
Capabilities:
Copy file

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x60
mov r14, r9
mov rbx, rcx
lea rcx, [rsp + 0x30]
call fcn.140235270
mov rax, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
test rax, rax
je 0x14026b760
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x30]
mov r8b, 1
call fcn.140251260
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
test rdi, rdi
je 0x14026b760
mov r8, qword [rsp + 0xb0]
lea rcx, [rsp + 0x30]
mov rdx, r14
call fcn.140235270
mov rax, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
test rax, rax
je 0x14026b76d
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x30]
mov r8b, 1
call fcn.140251260
mov r14, qword [rsp + 0x48]
mov r15, qword [rsp + 0x50]
test r14, r14
je 0x14026b76d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [0x14026b7e0]
lea r9, [rsp + 0x30]
mov rcx, rdi
mov rdx, r14
call sub.kernel32.dll_CopyFileExW
test eax, eax
je 0x14026b77a
mov rax, qword [rsp + 0x30]
mov qword [rbx + 8], rax
mov qword [rbx], 0
test r15, r15
jne 0x14026b797
jmp 0x14026b7a4
mov qword [rbx + 8], rsi
mov qword [rbx], 1
jmp 0x14026b7b6
mov qword [rbx + 8], r15
mov qword [rbx], 1
jmp 0x14026b7a4
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbx + 8], rax
mov qword [rbx], 1
test r15, r15
je 0x14026b7a4
mov edx, 2
mov rcx, r14
call fcn.140026d90
test rsi, rsi
je 0x14026b7b6
mov edx, 2
mov rcx, rdi
call fcn.140026d90
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14026bb70
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rbx, r8
mov rsi, rcx
test rdx, rdx
je 0x14026bb9b
mov qword [rsi + 8], rbx
mov qword [rsi], 1
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov rax, qword [0x1405451b0]
cmp rax, 3
jne 0x14026bd17
cmp word [rbx], 0
mov eax, 2
mov ebp, 0x17
cmove ebp, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14026bc10
cmp word [rbx], 0
je 0x14026bc86
movups xmm0, xmmword [rbx + 4]
mov eax, dword [rbx + 0x14]
mov edx, dword [rbx + 0x18]
movzx ecx, word [rbx + 0x1c]
mov r8d, 0x1c
mov r9w, 0x17
jmp 0x14026bc9b
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2739
je 0x14026bc2a
mov r14d, eax
cmp eax, 0x2726
jne 0x14026bd06
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x14026bcfe
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.kernel32.dll_SetHandleInformation
test eax, eax
jne 0x14026bbe8
call sub.kernel32.dll_GetLastError
mov r14d, eax
mov rcx, rdi
call sub.ws2_32.dll_closesocket
jmp 0x14026bd06
mov eax, dword [rbx + 2]
movzx ecx, word [rbx + 6]
mov r8d, 0x10
mov r9w, 2
xorps xmm0, xmm0
rol cx, 8
mov word [rsp + 0x34], r9w
mov word [rsp + 0x36], cx
mov dword [rsp + 0x38], eax
movups xmmword [rsp + 0x3c], xmm0
mov dword [rsp + 0x4c], edx
lea rdx, [rsp + 0x34]
mov rcx, rdi
call sub.ws2_32.dll_bind
cmp eax, 0xffffffff
je 0x14026bcd9
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x14026bb90
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call sub.ws2_32.dll_closesocket
jmp 0x14026bb90
call sub.ws2_32.dll_WSAGetLastError
mov r14d, eax
shl r14, 0x20
or r14, 2
mov qword [rsi + 8], r14
jmp 0x14026bb89
call fcn.140259eb0
jmp 0x14026bbac
Function at 0x14026bd70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x40
mov ecx, dword [0x1403a0278]
test ecx, ecx
je 0x14026be34
dec ecx
call fcn.14029819c
cmp rax, 1
jbe 0x14026bda0
mov rsi, rax
cmp qword [rax + 8], 0
je 0x14026bda0
add rsi, 0x10
jmp 0x14026bdbd
mov ecx, dword [0x1403a0278]
test ecx, ecx
je 0x14026be47
dec ecx
call fcn.14029819c
cmp rax, 1
jne 0x14026bdc6
xor esi, esi
mov rax, rsi
add rsp, 0x40
pop rsi
ret
mov rsi, rax
test rax, rax
jne 0x14026be64
mov qword [rsp + 0x30], 0
lea rax, [0x1403a0260]
mov qword [rsp + 0x28], rax
movzx eax, byte [0x140545270]
mov ecx, 0x18
mov edx, 8
call fcn.140026d00
test rax, rax
je 0x14026beb2
mov rsi, rax
mov rax, qword [rsp + 0x38]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rsi], xmm0
mov ecx, dword [0x1403a0278]
test ecx, ecx
jne 0x14026be5a
lea rcx, [0x1403a0260]
call fcn.1402332b0
mov ecx, eax
jmp 0x14026be5c
lea rcx, [0x1403a0260]
call fcn.1402332b0
mov ecx, eax
jmp 0x14026bd85
lea rcx, [0x1403a0260]
call fcn.1402332b0
mov ecx, eax
jmp 0x14026bdb0
dec ecx
mov rdx, rsi
call fcn.1402981a4
call fcn.140265b90
mov rdx, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rcx
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], rax
test rdx, rdx
je 0x14026bd9a
test rcx, rcx
je 0x14026bd9a
lock dec qword [rcx]
jne 0x14026bd9a
lea rcx, [rsp + 0x30]
call fcn.140262c50
jmp 0x14026bd9a
mov ecx, 8
mov edx, 0x18
call fcn.14004a180
ud2

Function at 0x14026bfe0
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x30
mov ecx, dword [0x1403a02b8]
test ecx, ecx
je 0x14026c0d9
dec ecx
call fcn.14029819c
cmp rax, 1
jbe 0x14026c010
cmp qword [rax + 8], 0
je 0x14026c010
add rax, 0x10
jmp 0x14026c0d3
mov ecx, dword [0x1403a02b8]
test ecx, ecx
je 0x14026c0ec
dec ecx
call fcn.14029819c
cmp rax, 1
je 0x14026c0b3
mov rsi, rax
test rax, rax
jne 0x14026c083
movzx eax, byte [0x140545270]
mov ecx, 0x20
mov edx, 8
call fcn.140026d00
test rax, rax
je 0x14026c112
mov rsi, rax
lea rax, str.PK_
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1403a02b8]
test ecx, ecx
je 0x14026c0ff
dec ecx
mov rdx, rsi
call fcn.1402981a4
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x14026c0b7
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x14026c0bf
xor eax, eax
jmp 0x14026c0d3
call fcn.1402632e0
mov rcx, rax
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
add rsp, 0x30
pop rsi
ret
lea rcx, str.PK_
call fcn.1402332b0
mov ecx, eax
jmp 0x14026bff5
lea rcx, str.PK_
call fcn.1402332b0
mov ecx, eax
jmp 0x14026c020
lea rcx, str.PK_
call fcn.1402332b0
mov ecx, eax
jmp 0x14026c07b
mov ecx, 8
mov edx, 0x20
call fcn.14004a180
ud2
Function at 0x140274aa3
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x140274abc
dec ecx
add rsp, 0x28
jmp fcn.14029819c
mov rcx, rax
call fcn.1402332b0
mov ecx, eax
jmp 0x140274ab3

Function at 0x14027549f
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.140275282
mov rcx, qword [rax]
movzx eax, bl
lea r9, [rsp + 0x2c]
mov dword [r9], eax
mov dword [rsp + 0x20], 4
mov edx, 6
mov r8d, 1
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1402754da
xor eax, eax
jmp 0x1402754e7
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret
Function at 0x14027573b
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rdi, r9
mov rbx, r8
mov r14, rdx
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0xc0]
lea rbp, [rsp + 0x42]
lea r15, [rdx + 0x18]
xor ecx, ecx
cmp qword [rdx + 0x18], 0xffffffffffffffff
cmove r15, rcx
mov r12d, 0x7fffffff
cmp rax, r12
cmovb r12, rax
lea r13, [rsp + 0x52]
mov qword [rsp + 0x30], r15
mov rdx, qword [r14 + 0x10]
lea rcx, [rsp + 0x38]
mov r8, rbx
call fcn.140278939
mov al, byte [rsp + 0x41]
cmp al, 3
je 0x14027589e
mov rcx, qword [rsp + 0x38]
cmp al, 2
je 0x1402758ac
mov dl, byte [rsp + 0x40]
movzx r8d, word [rbp + 4]
mov word [r13 + 4], r8w
mov r8d, dword [rbp]
mov dword [r13], r8d
mov qword [rsp + 0x48], rcx
mov byte [rsp + 0x50], dl
mov byte [rsp + 0x51], al
mov rcx, r15
lea rdx, str.phL_
call fcn.1402752a0
mov rcx, qword [r15]
mov rdx, rdi
mov r8d, r12d
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x1402758be
call sub.ws2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
call fcn.14006c8ac
cmp al, 0xd
jne 0x140275878
mov rax, qword [r15 + 8]
test rax, rax
je 0x140275878
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x1402758f0
mov r15, r14
mov r14, rbx
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call fcn.14015d718
mov rbx, rax
xor ecx, ecx
call fcn.14015c019
test rbx, rbx
je 0x14027586d
mov ecx, 1
mov rdx, rsi
call fcn.14015c023
mov rsi, rbx
mov rbx, r14
mov r14, r15
mov r15, qword [rsp + 0x30]
mov rcx, rsi
call fcn.14006c8ac
cmp al, 0xd
jne 0x1402758cf
mov rcx, r14
lea rdx, [rsp + 0x48]
call fcn.140278b4c
mov rcx, rsi
call fcn.14015c4cf
jmp 0x14027578c
mov rax, qword [rsp + 0x28]
mov qword [rax], 2
jmp 0x1402758df
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rcx
jmp 0x1402758df
cdqe
mov rcx, qword [rsp + 0x28]
and qword [rcx], 0
mov qword [rcx + 8], rax
jmp 0x1402758df
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rsi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2

Function at 0x140277cd2
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x140277cd9
test al, 1
je 0x140277cf8
test al, 2
jne 0x140277d0d
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1404c5fe8]
mov edx, 0x23
jmp 0x140277d20
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1404c5fa8]
mov edx, 0x25
call fcn.1400519b0
ud2