joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007740
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [rcx + 0x8c]
xor ebp, ebp
mov rsi, rdx
test ecx, ecx
je 0x1400077b0
movsxd r9, dword [rbx + 0x88]
mov r10d, 1
mov eax, 8
sub eax, ecx
mov r8d, r10d
shl r8b, cl
movzx ecx, al
dec r8b
shl r8b, cl
mov ecx, 7
and byte [r9 + rbx + 0x47], r8b
sub ecx, dword [rbx + 0x8c]
movsxd rdx, dword [rbx + 0x88]
shl r10b, cl
xor byte [rdx + rbx + 0x47], r10b
mov dword [rbx + 0x8c], ebp
jmp 0x1400077c2
movsxd rax, dword [rbx + 0x88]
mov byte [rax + rbx + 0x48], 0x80
inc dword [rbx + 0x88]
mov eax, dword [rbx + 0x88]
cmp eax, 0x38
jle 0x140007805
cmp eax, 0x40
jge 0x1400077ed
movsxd rax, dword [rbx + 0x88]
mov byte [rax + rbx + 0x48], bpl
inc dword [rbx + 0x88]
cmp dword [rbx + 0x88], 0x40
jl 0x1400077d2
lea rdx, [rbx + 0x48]
mov r8d, 0x40
mov rcx, rbx
call fcn.140007120
mov dword [rbx + 0x88], ebp
cmp dword [rbx + 0x88], 0x38
jge 0x14000782b
nop
movsxd rax, dword [rbx + 0x88]
mov byte [rax + rbx + 0x48], bpl
inc dword [rbx + 0x88]
cmp dword [rbx + 0x88], 0x38
jl 0x140007810
inc dword [rbx + 0x40]
jne 0x140007833
inc dword [rbx + 0x44]
mov dword [rbx + 0x88], 0x40
nop dword [rax]
dec dword [rbx + 0x88]
movzx eax, byte [rbx + 0x40]
movsxd rcx, dword [rbx + 0x88]
mov byte [rcx + rbx + 0x48], al
shr dword [rbx + 0x40], 8
cmp dword [rbx + 0x88], 0x3c
jg 0x140007840
cmp dword [rbx + 0x88], 0x38
jle 0x140007892
nop dword [rax + rax]
dec dword [rbx + 0x88]
movzx eax, byte [rbx + 0x44]
movsxd rcx, dword [rbx + 0x88]
mov byte [rcx + rbx + 0x48], al
shr dword [rbx + 0x44], 8
cmp dword [rbx + 0x88], 0x38
jg 0x140007870
lea rdx, [rbx + 0x48]
mov r8d, 0x40
mov rcx, rbx
call fcn.140007120
mov rcx, rbx
call fcn.140007490
lea rcx, [rbx + 0x20]
sub rsi, rbx
mov edx, 0x20
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rsi + rcx - 0x21], al
dec rdx
jne 0x1400078c0
mov rsi, qword [rsp + 0x40]
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x48], rbp
mov qword [rbx + 0x50], rbp
mov qword [rbx + 0x58], rbp
mov qword [rbx + 0x60], rbp
mov qword [rbx + 0x68], rbp
mov qword [rbx + 0x70], rbp
mov qword [rbx + 0x78], rbp
mov qword [rbx + 0x80], rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140008f90
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x140105358]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
lea rsi, reloc.WS2_32.dll_accept
lea r14, sym.NsCpuCNMiner.exe__6j_:_nxZkVi0F7Aj_TnR__ExM0:aC_l_.YJ_q_FiyMRMH
lea r15, str.Nabil_S._Al_Ramli
nop
mov rax, qword [rbx + 0x28]
mov r9d, 4
mov r10, rbx
xor rax, qword [rbx + 0xa0]
lea r11d, [r9 + 1]
xor rax, qword [rbx + 0x50]
xor rax, qword [rbx]
xor rax, qword [rbx + 0x78]
mov qword [rsp], rax
mov rax, qword [rbx + 0x80]
xor rax, qword [rbx + 0x30]
xor rax, qword [rbx + 8]
xor rax, qword [rbx + 0xa8]
xor rax, qword [rbx + 0x58]
mov qword [rsp + 8], rax
mov rax, qword [rbx + 0x38]
xor rax, qword [rbx + 0xb0]
xor rax, qword [rbx + 0x60]
xor rax, qword [rbx + 0x88]
xor rax, qword [rbx + 0x10]
mov qword [rsp + 0x10], rax
mov rax, qword [rbx + 0xb8]
xor rax, qword [rbx + 0x68]
xor rax, qword [rbx + 0x90]
xor rax, qword [rbx + 0x18]
xor rax, qword [rbx + 0x40]
mov qword [rsp + 0x18], rax
mov rax, qword [rbx + 0x98]
xor rax, qword [rbx + 0x20]
xor rax, qword [rbx + 0x48]
xor rax, qword [rbx + 0xc0]
xor rax, qword [rbx + 0x70]
mov qword [rsp + 0x20], rax
nop word [rax + rax]
lea ecx, [r9 - 3]
mov eax, 0x66666667
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
sub ecx, eax
movsxd rax, ecx
mov ecx, r9d
mov r8, qword [rsp + rax*8]
mov eax, 0x66666667
rol r8, 1
imul r9d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
sub ecx, eax
movsxd rax, ecx
mov ecx, 5
xor r8, qword [rsp + rax*8]
mov rax, r10
nop dword [rax + rax]
xor qword [rax], r8
lea rax, [rax + 0x28]
dec rcx
jne 0x1400090d0
inc r9d
add r10, 8
dec r11
jne 0x140009080
mov r9, qword [rbx + 8]
xor r8d, r8d
nop
movsxd rax, dword [r8 + r14 + 0xd33b0]
mov ecx, dword [r8 + r14 + 0xd3350]
add r8, 4
mov rdx, qword [rbx + rax*8]
rol r9, cl
mov qword [rbx + rax*8], r9
mov r9, rdx
cmp r8, 0x60
jl 0x1400090f0
lea r11, [rbx + 0x10]
mov edi, 5
mov r10, qword [r11 - 0x10]
mov r9, qword [r11 - 8]
mov rcx, qword [r11]
mov rdx, qword [r11 + 8]
mov r8, qword [r11 + 0x10]
mov rax, r9
not rax
lea r11, [r11 + 0x28]
and rax, rcx
not rcx
and rcx, rdx
xor rax, r10
not rdx
mov qword [r11 - 0x38], rax
xor qword [r11 - 0x30], rcx
and rdx, r8
xor qword [r11 - 0x28], rdx
not r8
and r8, r10
not r10
xor qword [r11 - 0x20], r8
and r10, r9
xor qword [r11 - 0x18], r10
dec rdi
jne 0x140009121
mov rax, qword [rsi]
add rsi, 8
xor qword [rbx], rax
cmp rsi, r15
jl 0x140008fd0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140084a30
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140014e30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
mov eax, 0x8080
call fcn.140096ce0
sub rsp, rax
mov rax, qword [0x140105358]
xor rax, rsp
mov qword [rsp + 0x8060], rax
mov ebx, ecx
mov r8, rdx
lea r9, [rsp + 0x80a0]
lea rcx, [rsp + 0x60]
mov edx, 0x3f9c
call fcn.140094090
cmp ebx, dword [0x140130cec]
jg 0x140014e8d
lea rcx, [rsp + 0x60]
call fcn.140014c90
cmp byte [0x14012ce90], 0
je 0x140015003
or rbx, 0xffffffffffffffff
lea rcx, [rsp + 0x60]
mov rax, rbx
inc rax
cmp byte [rcx + rax], 0
jne 0x140014ea6
dec eax
movsxd rcx, eax
cmp rcx, 0x4000
jae 0x14001501c
mov qword [rsp + 0x8078], rdi
mov byte [rsp + rcx + 0x60], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rcx, [rsp + 0x48]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [0x14012ce80]
movzx edx, word [rsp + 0x56]
test ecx, ecx
je 0x140014f32
cmp ecx, 0xffffffff
jne 0x140014f18
movzx ecx, dx
mov dword [0x14012ce80], ecx
test ecx, ecx
jne 0x140014f09
mov ecx, 1
jmp 0x140014f29
cmp ecx, 0x3bb
jle 0x140014f2f
mov ecx, 0x3bb
jmp 0x140014f29
mov eax, dword [0x14012ce88]
add eax, 3
mov dword [0x14012ce88], eax
add ecx, eax
mov dword [0x14012ce80], ecx
movzx edx, cx
movzx ecx, word [rsp + 0x54]
movzx r9d, word [rsp + 0x52]
movzx r8d, word [rsp + 0x50]
movzx eax, dx
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rdx, str._.2d:_.2d:_.2d:_.3d_t_x_t_s_r_n
lea rcx, [rsp + 0x4060]
call fcn.140085764
xor r9d, r9d
mov qword [rsp + 0x30], 0
lea rcx, [0x14012ce90]
lea r8d, [r9 + 1]
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140014ffb
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rax, [rsp + 0x4060]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140014fc7
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x4060]
mov r8, rbx
mov rcx, rdi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x8078]
mov rcx, qword [rsp + 0x8060]
xor rcx, rsp
call fcn.140084a30
add rsp, 0x8080
pop rbx
ret
call fcn.1400861e0
int3
Function at 0x140016100
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
add r8d, 0xdeadbeef
mov rdi, rdx
mov r11, rcx
add r8d, edx
mov r10d, r8d
mov ebx, r8d
cmp rdx, 0xc
jbe 0x140016233
mov qword [rsp + 0x10], rsi
lea r9, [rdx - 0xd]
movabs rax, 0xaaaaaaaaaaaaaaab
mul r9
mov rsi, rdx
shr rsi, 3
inc rsi
mov rax, rsi
imul rax, rax, 0xfffffffffffffff4
add rdi, rax
movzx eax, byte [r11 + 6]
movzx ecx, byte [r11 + 7]
movzx r9d, byte [r11 + 4]
movzx edx, byte [r11 + 8]
shl ecx, 8
add r9d, r10d
add ecx, eax
movzx eax, byte [r11 + 5]
add edx, r8d
shl ecx, 8
add r11, 0xc
add ecx, eax
movzx eax, byte [r11 - 2]
shl ecx, 8
add r9d, ecx
movzx ecx, byte [r11 - 1]
shl ecx, 8
add ecx, eax
movzx eax, byte [r11 - 3]
shl ecx, 8
add ecx, eax
movzx eax, byte [r11 - 0xa]
shl ecx, 8
add edx, ecx
movzx ecx, byte [r11 - 9]
shl ecx, 8
mov r8d, edx
add ecx, eax
movzx eax, byte [r11 - 0xb]
rol r8d, 4
shl ecx, 8
add ecx, eax
movzx eax, byte [r11 - 0xc]
shl ecx, 8
add ecx, eax
sub ecx, edx
add edx, r9d
add ecx, ebx
xor r8d, ecx
sub r9d, r8d
mov eax, r8d
add r8d, edx
rol eax, 6
xor eax, r9d
sub edx, eax
mov ecx, eax
add eax, r8d
rol ecx, 8
xor ecx, edx
sub r8d, ecx
mov ebx, ecx
add ecx, eax
rol ebx, 0x10
xor ebx, r8d
sub eax, ebx
mov r10d, ebx
add ebx, ecx
ror r10d, 0xd
xor r10d, eax
sub ecx, r10d
mov r8d, r10d
add r10d, ebx
rol r8d, 4
xor r8d, ecx
dec rsi
jne 0x140016150
mov rsi, qword [rsp + 0x10]
cmp rdi, 0xc
ja 0x1400162bc
lea rcx, sym.NsCpuCNMiner.exe__6j_:_nxZkVi0F7Aj_TnR__ExM0:aC_l_.YJ_q_FiyMRMH
mov eax, dword [rcx + rdi*4 + 0x1631c]
add rax, rcx
jmp rax
movzx eax, byte [r11 + 0xb]
shl eax, 0x18
add r8d, eax
movzx eax, byte [r11 + 0xa]
shl eax, 0x10
add r8d, eax
movzx eax, byte [r11 + 9]
shl eax, 8
add r8d, eax
movzx eax, byte [r11 + 8]
add r8d, eax
movzx eax, byte [r11 + 7]
shl eax, 0x18
add r10d, eax
movzx eax, byte [r11 + 6]
shl eax, 0x10
add r10d, eax
movzx eax, byte [r11 + 5]
shl eax, 8
add r10d, eax
movzx eax, byte [r11 + 4]
add r10d, eax
movzx eax, byte [r11 + 3]
shl eax, 0x18
add ebx, eax
movzx eax, byte [r11 + 2]
shl eax, 0x10
add ebx, eax
movzx eax, byte [r11 + 1]
shl eax, 8
add ebx, eax
movzx eax, byte [r11]
add ebx, eax
xor r8d, r10d
mov eax, r10d
rol eax, 0xe
sub r8d, eax
mov eax, r8d
mov edx, r8d
xor edx, ebx
rol eax, 0xb
sub edx, eax
xor r10d, edx
mov eax, edx
ror eax, 7
sub r10d, eax
xor r8d, r10d
mov eax, r10d
rol eax, 0x10
sub r8d, eax
mov eax, r8d
mov ecx, r8d
xor ecx, edx
rol eax, 4
sub ecx, eax
xor r10d, ecx
mov eax, ecx
rol eax, 0xe
sub r10d, eax
mov eax, r10d
xor r8d, r10d
ror eax, 8
sub r8d, eax
mov eax, r8d
mov rbx, qword [rsp + 0x18]
pop rdi
ret
Function at 0x140018a80
Capabilities:
Get user security identifier

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x40
lea rax, [r11 + 0x20]
lea r9, [r11 + 0x18]
xor r8d, r8d
mov qword [r11 - 0x28], rax
lea rax, [r11 + 8]
xor ecx, ecx
mov qword [r11 - 0x30], rax
mov rbx, rdx
mov dword [rsp + 0x70], 0
mov qword [r11 - 0x38], 0
mov dword [rsp + 0x60], 0
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
mov ecx, dword [rsp + 0x70]
call fcn.140085684
mov ecx, dword [rsp + 0x60]
mov rdi, rax
call fcn.140085684
lea r9, [rsp + 0x70]
mov rsi, rax
lea rax, [rsp + 0x78]
mov r8, rdi
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov rdx, rbx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
jne 0x140018b1f
test rdi, rdi
je 0x140018b1d
mov rcx, rdi
call fcn.1400855f8
xor edi, edi
test rsi, rsi
je 0x140018b2c
mov rcx, rsi
call fcn.1400855f8
mov rax, rdi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x140018b40
Capabilities:
Manipulate user privileges

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
xor ebx, ebx
movzx r15d, r9b
mov r14, rdx
mov qword [rbp - 0x29], rbx
mov edi, ebx
test rdx, rdx
jne 0x140018bb1
mov qword [rbp - 0x21], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x21]
lea edx, [rbx + 8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140018bcc
mov rcx, qword [rbp - 0x21]
call fcn.1400189e0
mov rdi, rax
test rax, rax
je 0x140018ba5
mov rax, qword [rax]
mov qword [rbp - 0x29], rax
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140018bcc
call fcn.140018a80
mov qword [rbp - 0x29], rax
test rax, rax
jne 0x140018bd6
lea rdx, [rbp - 0x29]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidA]
cmp qword [rbp - 0x29], rbx
je 0x140018cc7
lea rax, [rbp - 0x19]
test rax, rax
je 0x140018cc7
lea rdx, str.SeLockMemoryPrivilege
mov eax, ebx
mov ecx, reloc.WS2_32.dll_setsockopt
test rdx, rdx
mov qword [rbp - 0x11], rdx
lea r9, [rbp - 9]
cmovne eax, ecx
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 1]
add ax, ax
mov r8d, 0xf0fff
mov qword [rsp + 0xc0], rsi
mov word [rbp - 0x19], ax
add ax, 2
mov qword [rbp + 7], rbx
mov word [rbp - 0x17], ax
xor eax, eax
mov dword [rbp - 1], 0x20000
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], rax
mov qword [rbp + 0x27], rax
mov qword [rbp + 0x2f], rax
mov qword [rbp + 0x37], rax
call qword [sym.imp.ADVAPI32.dll_LsaOpenPolicy]
test eax, eax
je 0x140018c60
mov ecx, eax
call qword [sym.imp.ADVAPI32.dll_LsaNtStatusToWinError]
mov rsi, rbx
jmp 0x140018c64
mov rsi, qword [rbp - 9]
mov rdx, qword [rbp - 0x29]
mov rcx, rsi
test r15b, r15b
je 0x140018c82
lea r8, [rbp - 0x19]
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_LsaAddAccountRights]
jmp 0x140018c97
lea r9, [rbp - 0x19]
xor r8d, r8d
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_LsaRemoveAccountRights]
mov rcx, rsi
mov r15d, eax
call qword [sym.imp.ADVAPI32.dll_LsaClose]
mov rsi, qword [rsp + 0xc0]
test r14, r14
jne 0x140018cbd
test rdi, rdi
je 0x140018cbd
mov rcx, rdi
call fcn.1400855f8
test r15d, r15d
sete bl
mov eax, ebx
jmp 0x140018cc9
xor eax, eax
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14001c710
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x28
mov rbx, rcx
mov ecx, dword [0x140133c18]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edi, edi
test rax, rax
je 0x14001c769
mov rax, qword [rax + 8]
test rax, rax
je 0x14001c769
mov rcx, qword [rax]
test rcx, rcx
je 0x14001c769
mov qword [rax], rdi
movzx eax, byte [rcx]
cmp rax, rbx
jb 0x14001c764
mov byte [rcx + rbx], al
mov rax, rcx
add rsp, 0x28
pop rdi
pop rbx
ret
call fcn.1400855f8
lea rcx, [rbx + 1]
call fcn.140085684
cmp rbx, 0xff
ja 0x14001c77e
movzx edi, bl
mov byte [rax + rbx], dil
add rsp, 0x28
pop rdi
pop rbx
ret

Function at 0x14001c790
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x28
mov rbx, rcx
mov ecx, dword [0x140133c18]
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c7bd
mov r8, qword [rax + 8]
jmp 0x14001c7c0
xor r8d, r8d
cmp rdi, 0xff
ja 0x14001c7e4
test r8, r8
je 0x14001c7e4
cmp qword [r8], 0
jne 0x14001c7e4
movzx eax, byte [rbx + rdi]
mov byte [rbx], al
mov qword [r8], rbx
add rsp, 0x28
pop rdi
pop rbx
ret
mov rcx, rbx
add rsp, 0x28
pop rdi
pop rbx
jmp fcn.1400855f8

Function at 0x14001cb40
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 0x10]
xor r8d, r8d
mov rbx, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 8]
lea rdx, [rsp + 0x20]
lea ecx, [r8 + 2]
or r9d, 0xffffffff
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x140133bec], eax
test eax, eax
je 0x14001cb9b
mov rcx, qword [rbx + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
add rsp, 0x30
pop rbx
ret
mov rdx, qword [rbx + 8]
lea rcx, [fcn.1400010a0]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add rsp, 0x30
pop rbx
ret
Function at 0x14001d3a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov eax, ebx
lock xadd dword [rcx + 0x30], eax
test eax, eax
jne 0x14001d3ed
call fcn.14001d4a0
mov dword [rsp + 0x28], ebx
call fcn.14006cb10
mov rcx, qword [rsp + 0x28]
mov qword [rsi], rcx
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14001d471
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov ecx, dword [0x140133c18]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x38]
mov ecx, dword [0x140133c18]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov r8, rsi
mov rcx, rdi
call fcn.14001d790
test rax, rax
je 0x14001d44d
cmp rbx, 0xffffffffffffffff
je 0x14001d43d
inc rbx
mov r8, rsi
mov rcx, rdi
call fcn.14001d790
test rax, rax
jne 0x14001d434
mov rdx, qword [rsp + 0x48]
mov ecx, dword [0x140133c18]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14001d46e
call fcn.1400855f8
mov rax, rbx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x14001dd90
Capabilities:
Initialize winsock library

Disassembly:
push rdi
sub rsp, 0x1f0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x208], rbx
mov rax, qword [0x140105358]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
mov eax, 1
lock xadd dword [0x14012cdf0], eax
inc eax
cmp eax, 1
jne 0x14001ddec
lea ecx, [rax + 1]
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x14012cdf4], eax
xor edi, edi
mov ecx, edi
lock xadd dword [0x14012cdf4], ecx
test ecx, ecx
je 0x14001de02
call fcn.140001d40
nop
mov ecx, 0x38
call fcn.140085684
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14001de28
or r9, 0xffffffffffffffff
mov rdx, rbx
mov rcx, rax
call fcn.140045070
mov rdi, rax
mov qword [rbx + 8], rdi
mov rcx, qword [rdi + 0x30]
mov qword [rbx + 0x10], rcx
mov rax, rbx
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.140084a30
mov rbx, qword [rsp + 0x208]
add rsp, 0x1f0
pop rdi
ret
Function at 0x14001dfb0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
mov rdi, r9
mov rbp, rdx
mov r14, rcx
mov esi, r15d
cmp rcx, 0xffffffffffffffff
je 0x14001e0e4
test r8b, r8b
je 0x14001e038
test byte [rdx], 8
je 0x14001e038
mov dword [rsp + 0x60], r15d
call fcn.14006cb10
or byte [rbp], 8
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea r9, [rsp + 0x60]
mov edx, 0xffff
mov r8d, 0x80
mov rcx, r14
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call fcn.14006cb10
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x14001e038
call fcn.14006cb10
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
call fcn.14006cb10
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x30]
mov qword [rdi], rax
mov qword [rdi + 8], rbx
test esi, esi
je 0x14001e0e4
call fcn.14006cb10
cmp qword [rdi + 8], rax
jne 0x14001e080
cmp dword [rdi], 0x2733
je 0x14001e093
call fcn.14006cb10
cmp qword [rdi + 8], rax
jne 0x14001e0e0
cmp dword [rdi], 0x4d5
jne 0x14001e0e0
lea r8, [rsp + 0x60]
mov edx, 0x8004667e
mov rcx, r14
mov dword [rsp + 0x60], r15d
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [rbp], 0xfc
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
call fcn.14006cb10
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x30]
mov qword [rdi], rcx
mov qword [rdi + 8], rbx
test esi, esi
jne 0x14001e0fa
mov dword [rsp + 0x30], r15d
call fcn.14006cb10
mov rcx, qword [rsp + 0x30]
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov eax, esi
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14001e120
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
mov byte [rsp + 0x18], r8b
push rsi
sub rsp, 0x30
mov rsi, r9
mov rbp, rdx
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x14001e16e
mov dword [rsp + 0x20], 0x2719
call fcn.14006cb10
mov rcx, qword [rsp + 0x20]
mov qword [rsi], rcx
mov qword [rsi + 8], rax
xor al, al
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
xor ecx, ecx
mov qword [rsp + 0x40], rdi
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea r8, [rsp + 0x50]
mov edx, 0x8004667e
mov rcx, rbx
mov dword [rsp + 0x50], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov edi, eax
call fcn.14006cb10
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
mov rdi, qword [rsp + 0x40]
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x20]
mov qword [rsi], rcx
mov qword [rsi + 8], rbx
js 0x14001e15c
mov dword [rsp + 0x20], 0
call fcn.14006cb10
mov rcx, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x48]
mov qword [rsi], rcx
mov qword [rsi + 8], rax
or byte [rbp], 2
mov rbp, qword [rsp + 0x58]
mov al, 1
add rsp, 0x30
pop rsi
ret

Function at 0x14001e1f0
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x14001e233
mov dword [rsp + 0x20], 0x2719
call fcn.14006cb10
mov rcx, qword [rsp + 0x20]
mov qword [rdi], rcx
mov qword [rdi + 8], rax
or eax, ebx
jmp 0x14001e285
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r8d, esi
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
mov esi, eax
call fcn.14006cb10
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x20]
mov qword [rdi], rcx
mov qword [rdi + 8], rbx
test esi, esi
jne 0x14001e283
mov dword [rsp + 0x20], esi
call fcn.14006cb10
mov rcx, qword [rsp + 0x20]
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov eax, esi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret