joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140019c20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x828
mov ecx, dword [0x1401b5018]
test ecx, ecx
je 0x140019c53
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140019c6c
cmp qword [rax + 8], 0
je 0x140019c6c
add rax, 0x10
jmp 0x140019e67
lea rcx, section..data
call fcn.14008e730
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x140019c43
mov ecx, dword [0x1401b5018]
test ecx, ecx
je 0x140019e48
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140019e65
mov rsi, rax
test rax, rax
jne 0x140019cdc
movzx eax, byte [0x140259141]
mov edx, 0x18
xor ecx, ecx
call fcn.14008b700
test rax, rax
je 0x140019e8a
mov rsi, rax
lea rax, section..data
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1401b5018]
test ecx, ecx
je 0x140019e8c
dec ecx
mov rdx, rsi
call fcn.140114e38
mov rax, qword [0x140259030]
cmp rax, 3
jne 0x140019e74
mov rdi, qword [0x140259038]
lock inc qword [rdi]
jle 0x140019e8a
mov eax, 0x60
movups xmm0, xmmword [0x1401c6dd8]
movups xmm1, xmmword [0x1401c6dc8]
nop word cs:[rax + rax]
movups xmmword [rsp + rax - 0x30], xmm0
movups xmmword [rsp + rax - 0x40], xmm1
movups xmmword [rsp + rax - 0x20], xmm1
movups xmmword [rsp + rax - 0x10], xmm0
movups xmmword [rsp + rax], xmm1
movups xmmword [rsp + rax + 0x10], xmm0
movups xmmword [rsp + rax + 0x20], xmm1
movups xmmword [rsp + rax + 0x30], xmm0
sub rax, 0xffffffffffffff80
cmp rax, 0x860
jne 0x140019d20
movzx eax, byte [0x140259141]
mov edx, 0x980
xor ecx, ecx
call fcn.14008b700
test rax, rax
je 0x140019e8a
mov r14, rax
and r14, 0xffffffffffffff80
lea rbx, [r14 + 0x80]
mov qword [r14 + 0x78], rax
mov qword [r14 + 0x80], 0
mov qword [r14 + 0x88], rdi
lea rcx, [r14 + 0x90]
lea rdx, [rsp + 0x20]
mov r8d, 0x800
call sub.msvcrt.dll_memcpy
xorps xmm0, xmm0
movaps xmmword [r14 + 0x890], xmm0
mov qword [r14 + 0x8a0], 1
mov qword [r14 + 0x8a8], 0
mov qword [r14 + 0x900], 0
mov rcx, qword [0x140259038]
mov rax, qword [rcx + 0x200]
nop word cs:[rax + rax]
mov qword [rbx], rax
lock cmpxchg qword [rcx + 0x200], rbx
jne 0x140019df0
lea rax, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], rbx
je 0x140019e67
mov rdx, qword [rcx + 0x820]
lea r8, [rdx - 1]
mov qword [rcx + 0x820], r8
cmp qword [rcx + 0x818], 0
jne 0x140019e67
cmp rdx, 1
jne 0x140019e67
mov rsi, rax
call fcn.140019100
mov rax, rsi
jmp 0x140019e67
lea rcx, section..data
call fcn.14008e730
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x140019c8b
xor eax, eax
add rsp, 0x828
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140019530
mov rdi, qword [0x140259038]
lock inc qword [rdi]
jg 0x140019cfe
ud2
lea rcx, section..data
call fcn.14008e730
mov ecx, eax
jmp 0x140019cd4
Function at 0x140024fc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x1401b5128]
test ecx, ecx
je 0x140024ff0
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140025009
cmp qword [rax + 8], 0
je 0x140025009
add rax, 0x10
jmp 0x1400250c5
lea rcx, [0x1401b5110]
call fcn.14008e730
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x140024fe0
mov ecx, dword [0x1401b5128]
test ecx, ecx
je 0x1400250a6
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400250c3
test rax, rax
jne 0x140025075
movzx eax, byte [0x140259141]
mov edx, 0x18
xor ecx, ecx
call fcn.14008b700
test rax, rax
je 0x1400250e2
lea rcx, [0x1401b5110]
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x1401b5128]
test ecx, ecx
je 0x1400250cc
dec ecx
mov rdx, rax
mov rdi, rax
call fcn.140114e38
mov rax, rdi
test rsi, rsi
je 0x14002508f
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
je 0x140025091
mov rcx, qword [rsi + 8]
jmp 0x140025091
xor ecx, ecx
lea rdx, [rax + 0x10]
mov qword [rax + 8], 1
mov qword [rax + 0x10], rcx
mov rax, rdx
jmp 0x1400250c5
lea rcx, [0x1401b5110]
call fcn.14008e730
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x140025028
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1401b5110]
mov rdi, rax
call fcn.14008e730
mov ecx, eax
mov rax, rdi
jmp 0x140025067
ud2
Function at 0x140030730
Capabilities:
Encode data using xor

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
cmp qword [rcx + 8], r8
jne 0x1400307e5
mov rsi, r8
test r8, r8
je 0x1400307e5
mov rdi, rdx
mov rbx, qword [rcx]
xor eax, eax
cmp rsi, 4
jb 0x1400307b0
mov rdx, rdi
sub rdx, rbx
cmp rdx, 0x20
jb 0x1400307b0
mov rax, rsi
and rax, 0xfffffffffffffffc
xor edx, edx
pcmpeqd xmm0, xmm0
nop word cs:[rax + rax]
movdqu xmm1, xmmword [rbx + rdx*8]
movdqu xmm2, xmmword [rbx + rdx*8 + 0x10]
pxor xmm1, xmm0
pxor xmm2, xmm0
movdqu xmmword [rdi + rdx*8], xmm1
movdqu xmmword [rdi + rdx*8 + 0x10], xmm2
add rdx, 4
cmp rax, rdx
jne 0x140030780
cmp rax, rsi
je 0x14003082e
mov r8, rsi
mov rdx, rax
and r8, 3
je 0x1400307d7
mov r9, rax
nop
lea rdx, [r9 + 1]
mov r10, qword [rbx + r9*8]
not r10
mov qword [rdi + r9*8], r10
mov r9, rdx
dec r8
jne 0x1400307c0
sub rax, rsi
cmp rax, 0xfffffffffffffffc
jbe 0x1400307f0
test rsi, rsi
jne 0x14003082e
ud2
mov rax, qword [rbx + rdx*8]
not rax
mov qword [rdi + rdx*8], rax
mov rax, qword [rbx + rdx*8 + 8]
not rax
mov qword [rdi + rdx*8 + 8], rax
mov rax, qword [rbx + rdx*8 + 0x10]
not rax
mov qword [rdi + rdx*8 + 0x10], rax
mov rax, qword [rbx + rdx*8 + 0x18]
not rax
mov qword [rdi + rdx*8 + 0x18], rax
lea rax, [rdx + 4]
mov rdx, rax
cmp rsi, rax
jne 0x1400307f0
or byte [rdi], 1
mov r14, rsi
shl r14, 6
sub r14, qword [rcx + 0x20]
je 0x140030876
mov rax, qword [rdi + rsi*8 - 8]
mov ecx, r14d
shl rax, cl
shr rax, cl
mov qword [rdi + rsi*8 - 8], rax
cmp r14, 1
adc r14, 0
nop dword [rax]
mov rcx, rdi
mov rdx, rdi
mov r8, rbx
mov r9, rsi
call fcn.1401a1140
dec r14
jne 0x140030860
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140035230
Capabilities:
Encode data using xor

Disassembly:
push r14
push rsi
push rdi
push rbx
mov al, 1
test rdx, rdx
je 0x14003533e
movzx r9d, byte [rcx]
mov r10, qword [r8]
movzx r10d, byte [r10]
not r10b
test r9b, r10b
jne 0x14003533e
mov r10, qword [r8 + 0x10]
test r10, r10
je 0x140035344
mov r8, qword [r8 + 8]
xor byte [r8], r9b
mov r11d, 1
cmp r10, 1
je 0x140035338
lea rbx, [rdx - 1]
lea rdi, [r10 - 2]
cmp rbx, rdi
mov rsi, rdi
cmovb rsi, rbx
lea r9, [r8 + 1]
inc rsi
cmp rsi, 0x10
jbe 0x14003530e
cmp rbx, rdi
cmovb rdi, rbx
lea rbx, [rcx + rdi]
add rbx, 2
cmp r9, rbx
jae 0x1400352be
add rdi, r8
add rdi, 2
lea rbx, [rcx + 1]
cmp rbx, rdi
jb 0x14003530e
mov r11d, esi
and r11d, 0xf
mov r14d, 0x10
cmovne r14, r11
mov rdi, rsi
sub rdi, r14
lea rbx, [r9 + rdi]
neg r14
lea r11, [rsi + r14]
inc r11
xor esi, esi
nop word cs:[rax + rax]
movups xmm0, xmmword [rcx + rsi + 1]
movups xmm1, xmmword [r9 + rsi]
xorps xmm1, xmm0
movups xmmword [r9 + rsi], xmm1
add rsi, 0x10
cmp rdi, rsi
jne 0x1400352f0
mov r9, rbx
add r8, r10
nop word cs:[rax + rax]
cmp rdx, r11
je 0x14003533e
movzx r10d, byte [rcx + r11]
xor byte [r9], r10b
inc r11
inc r9
cmp r9, r8
jne 0x140035320
cmp r11, rdx
setne al
pop rbx
pop rdi
pop rsi
pop r14
ret
ud2
Function at 0x140074ff0
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
test r8, r8
je 0x140075059
mov rsi, r8
mov rdi, rdx
mov r14d, 0xffffffff
jmp 0x140075018
add rdi, rbx
sub rsi, rbx
je 0x140075059
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
xor ecx, ecx
mov rdx, rdi
mov r8d, ebx
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xbfffffff
jbe 0x140075010
mov ebp, eax
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x140075010
test ebp, 0x7fffffff
setne al
jmp 0x14007505b
xor eax, eax
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x1400763f0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x140076432
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 4
jb 0x14007643a
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x14007644b
jmp 0x140076462
xor r10d, r10d
jmp 0x1400764ed
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x140076462
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x140076479
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x140076499
add r11, r8
jmp 0x1400765cb
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x140076562
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x140076510
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x140076580
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x140076592
jmp 0x1400765ad
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x1400765ad
lea rcx, [rdx + r8]
movzx esi, word [r10 + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x1400765c7
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x140082650
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
movzx r9d, byte [rdx + 0x38]
movzx r8d, byte [rdx + 0x3a]
test r8b, r8b
setne al
cmp r9b, 1
ja 0x1400826d2
test r8b, r8b
jne 0x1400826aa
movzx esi, byte [rdx + 0x10]
lea r8d, [rsi - 5]
xor eax, eax
xor r8d, r8d

Function at 0x1400862d0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 2
mov qword [rsp + 0x38], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x48], rax
xor r14d, r14d
mov edi, 0xffffffff
xor esi, esi
xor r15d, r15d
cmp r8, 0x201
jae 0x140086370
jmp 0x14008634f
jae 0x14008641a
cmp r8, 0x201
jae 0x140086370
mov ebx, 0x200
lea r12, [rsp + 0x98]
mov r13, r8
jmp 0x14008639b
sub r8, r15
sub rsi, r15
cmp rsi, r8
jb 0x1400863f9
cmp r14, rdi
mov r15d, 0xffffffff
cmovb r15, r14
mov qword [rsp + 0x38], r15
mov rsi, r14
mov rbx, r15
mov r12, qword [rsp + 0x48]
mov r13, r15
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, r12
mov edx, r13d
call sub.KERNEL32.dll_GetWindowsDirectoryW
mov ebp, eax
test eax, eax
jne 0x1400863c0
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x1400864e7
mov r8d, ebp
cmp r13, r8
jne 0x140086340
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x140086514
add r13, r13
cmp r13, rdi
cmovae r13, rdi
mov r8, r13
cmp r8, 0x201
jb 0x14008634f
jmp 0x140086370
lea rcx, [rsp + 0x28]
mov rdx, r15
call fcn.140086750
mov r14, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
jmp 0x14008637b
cmp rbx, r8
jb 0x140086514
lea r14, [rsp + 0x60]
mov rcx, r14
mov rdx, r12
call fcn.140093420
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax]
mov r8, qword [rax + 8]
mov rcx, r14
call fcn.140084390
mov rax, qword [rsp + 0x58]
cmp byte [rax], 0
jne 0x140086468
lea rdx, str.exe.NULcmd.exemaximum_number_of_ProcThreadAttributes_exceeded
lea rcx, [rsp + 0x60]
mov r8d, 3
call fcn.140085770
mov rdi, qword [rsp + 0x68]
mov r8, qword [rsp + 0x70]
lea rcx, [rsp + 0x80]
mov rdx, rdi
call fcn.14008b750
cmp qword [rsp + 0x60], 0
je 0x14008649b
mov rcx, qword [0x1402590e0]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0x80]
movups xmmword [rcx], xmm0
cmp qword [rsp + 0x28], 0
je 0x1400864d2
mov r8, qword [rsp + 0x30]
mov rcx, qword [0x1402590e0]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
nop
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 8], rax
movabs rax, 0x8000000000000001
mov qword [rcx], rax
cmp qword [rsp + 0x28], 0
jne 0x1400864bf
jmp 0x1400864d2
ud2
Function at 0x1400876e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1401b50d8]
test ecx, ecx
je 0x14008770d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140087726
cmp qword [rax + 8], 0
je 0x140087726
add rax, 0x10
add rsp, 0x20
pop rsi
ret
lea rcx, str._y_b_
call fcn.14008e730
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x1400876fc
mov ecx, dword [0x1401b50d8]
test ecx, ecx
je 0x1400877dc
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400877f9
test rax, rax
jne 0x140087792
movzx eax, byte [0x140259141]
mov edx, 0x18
xor ecx, ecx
call fcn.14008b700
test rax, rax
je 0x14008781a
lea rcx, str._y_b_
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x1401b50d8]
test ecx, ecx
je 0x140087801
dec ecx
mov rdx, rax
mov rsi, rax
call fcn.140114e38
mov rax, rsi
mov rdx, rax
add rax, 0x10
mov rcx, qword [rdx + 0x10]
cmp qword [rdx + 8], 0
mov qword [rdx + 8], 1
mov qword [rdx + 0x10], 0
je 0x140087707
test rcx, rcx
je 0x140087707
lock dec qword [rcx]
jne 0x140087707
mov rsi, rax
call fcn.1400293e0
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, str._y_b_
call fcn.14008e730
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x140087745
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, str._y_b_
mov rsi, rax
call fcn.14008e730
mov ecx, eax
mov rax, rsi
jmp 0x140087784
ud2

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1401b5060]
test ecx, ecx
je 0x14008784d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140087866
cmp qword [rax + 8], 0
je 0x140087866
add rax, 0x10
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1401b5048]
call fcn.14008e730
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14008783c
mov ecx, dword [0x1401b5060]
test ecx, ecx
je 0x14008791c
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140087939
test rax, rax
jne 0x1400878d2
movzx eax, byte [0x140259141]
mov edx, 0x18
xor ecx, ecx
call fcn.14008b700
test rax, rax
je 0x14008795a
lea rcx, [0x1401b5048]
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x1401b5060]
test ecx, ecx
je 0x140087941
dec ecx
mov rdx, rax
mov rsi, rax
call fcn.140114e38
mov rax, rsi
mov rdx, rax
add rax, 0x10
mov rcx, qword [rdx + 0x10]
cmp qword [rdx + 8], 0
mov qword [rdx + 8], 1
mov qword [rdx + 0x10], 0
je 0x140087847
test rcx, rcx
je 0x140087847
lock dec qword [rcx]
jne 0x140087847
mov rsi, rax
call fcn.1400873e0
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1401b5048]
call fcn.14008e730
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x140087885
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1401b5048]
mov rsi, rax
call fcn.14008e730
mov ecx, eax
mov rax, rsi
jmp 0x1400878c4
ud2
Function at 0x140087a80
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
cmp byte [rcx + rcx*4 - 0x3d], cl
mov r14, rdx
mov rdi, rcx
movzx eax, byte [0x140259141]
mov edx, 0x10
xor ecx, ecx
call fcn.14008b700
add byte [rax - 0x7b], cl
invalid
je 0x140087b48
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
add bh, al
and al, 0x20
add byte [rax], al
add dword [rax], eax
lea r8, [0x140087b50]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.KERNEL32.dll_CreateThread
invalid
or byte [rax], al
mov rdx, rax
test rax, rax
jne 0x140087b3b
mov rdi, qword [rsi]
mov rbx, qword [rsi + 8]
mov rcx, rdi
call qword [rbx]
cmp qword [rbx + 8], 0
cmp dword [rbx + 8], 0
je 0x140087b16
cmp qword [rbx + 0x10], 0x11
jb 0x140087b05
mov rdi, qword [rdi - 8]
mov rcx, qword [0x1402590e0]
xor edx, edx
mov r8, rdi
clc
call sub.KERNEL32.dll_HeapFree
mov rcx, qword [0x1402590e0]
xor edx, edx
mov r8, rsi
call sub.KERNEL32.dll_HeapFree
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
ud2

Function at 0x140088720
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x14008877e
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x14008877e
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x14008877e
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x14008877e
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x1400887be
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1006
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1400887ac
xor eax, eax
add rsp, 0x38
ret
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
lea rax, [0x1401dbba0]
add rsp, 0x38
ret

Function at 0x1400887d0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x14008882e
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x14008882e
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x14008882e
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x14008882e
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x14008886e
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1005
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14008885c
xor eax, eax
add rsp, 0x38
ret
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
lea rax, [0x1401dbba0]
add rsp, 0x38
ret
Function at 0x1400890b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1401b5080]
test ecx, ecx
je 0x14008914e
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400890d6
cmp byte [rax + 8], 0
jne 0x140089144
mov ecx, dword [0x1401b5080]
test ecx, ecx
je 0x140089170
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14008918d
test rax, rax
jne 0x14008913e
movzx eax, byte [0x140259141]
mov edx, 0x10
xor ecx, ecx
call fcn.14008b700
test rax, rax
je 0x1400891ab
lea rcx, [0x1401b5068]
mov qword [rax], rcx
mov byte [rax + 8], 0
mov ecx, dword [0x1401b5080]
test ecx, ecx
je 0x140089195
dec ecx
mov rdx, rax
mov rsi, rax
call fcn.140114e38
mov rax, rsi
mov word [rax + 8], 1
add rax, 9
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1401b5068]
call fcn.14008e730
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x1400890d0
jmp 0x1400890d6
lea rcx, [0x1401b5068]
call fcn.14008e730
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1400890f5
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1401b5068]
mov rsi, rax
call fcn.14008e730
mov ecx, eax
mov rax, rsi
jmp 0x140089130
ud2
Function at 0x14008ad60
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rbx, r9
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.14000b810
mov rax, qword [rsp + 0x30]
movabs rcx, 0x8000000000000000
cmp rax, rcx
jne 0x14008adf8
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
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x14008ae16
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov byte [rdi], 0
test r14, r14
jne 0x14008ae3a
jmp 0x14008ae57
lea rcx, str.file_name_contained_an_unexpected_NUL_byteNotFoundPermissionDeniedConnectionRefusedConnectionResetHostUnreachableNetworkUnreachableConnectionAbortedNotConnectedAddrInUseAddrNotAvailableNetworkDownBrokenPipeAlreadyExistsWouldBlockNotADirectoryIsADirectoryDirectoryNotEmptyReadOnlyFilesystemFilesystemLoopStaleNetworkFileHandleInvalidInputInvalidDataTimedOutWriteZeroStorageFullNotSeekableFilesystemQuotaExceededFileTooLargeResourceBusyExecutableFileBusyDeadlockCrossesDevicesTooManyLinksInvalidFilenameArgumentListTooLongInterruptedUnsupportedUnexpectedEofOutOfMemoryUncategorizedcannot_set_a_0_duration_timeoutconnection_timed_out
mov qword [rsi + 8], rcx
mov qword [rsi], 1
test rax, rax
je 0x14008ae57
mov rdi, qword [rsp + 0x38]
jmp 0x14008ae3a
mov rax, qword [rbx]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rax]
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rcx
mov word [rsi + 0x18], ax
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test r14, r14
je 0x14008ae57
mov rcx, qword [0x1402590e0]
xor edx, edx
mov r8, rdi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
jmp sub.KERNEL32.dll_HeapFree
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14008ae70
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
test dx, dx
mov eax, 2
mov edi, 0x17
cmove edi, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, edi
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x14008aebe
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14008af2e
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2726
je 0x14008aed1
cmp eax, 0x2739
jne 0x14008af1b
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, edi
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x14008af16
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.KERNEL32.dll_SetHandleInformation
test eax, eax
je 0x14008af35
mov qword [rsi + 8], rdi
jmp 0x14008aeb5
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0x38
pop rdi
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
add rsp, 0x38
pop rdi
pop rsi
jmp sub.ws2_32.dll_closesocket