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

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x80]
mov eax, dword [rdx + 0x24]
test al, 0x10
jne 0x14011201d
test al, 0x20
jne 0x140112068
movzx eax, byte [rcx]
cmp rax, 0x64
jb 0x1401120e8
movzx ecx, al
lea r8d, [rcx + rcx*4]
lea r8d, [rcx + r8*8]
shr r8d, 0xc
imul ecx, r8d, 0x64
sub al, cl
movzx eax, al
lea rcx, str.00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899n
movzx eax, word [rcx + rax*2]
mov word [rbp - 0x4f], ax
xor ecx, ecx
mov eax, r8d
jmp 0x1401120f1
movzx eax, byte [rcx]
mov r9d, 0x81
mov r8d, eax
nop dword [rax]
mov rcx, r9
shr r8b, 4
mov r9d, eax
and r9b, 0xf
lea r10d, [r9 + 0x30]
lea r11d, [r9 + 0x57]
cmp r9b, 0xa
movzx r9d, r10b
movzx r10d, r11b
cmovb r10d, r9d
mov byte [rbp + rcx - 0x52], r10b
lea r9, [rcx - 1]
cmp al, 0xf
mov eax, r8d
ja 0x140112030
jmp 0x1401120b6
movzx eax, byte [rcx]
mov r9d, 0x81
mov r8d, eax
nop word cs:[rax + rax]
mov rcx, r9
shr r8b, 4
mov r9d, eax
and r9b, 0xf
lea r10d, [r9 + 0x30]
lea r11d, [r9 + 0x37]
cmp r9b, 0xa
movzx r9d, r10b
movzx r10d, r11b
cmovb r10d, r9d
mov byte [rbp + rcx - 0x52], r10b
lea r9, [rcx - 1]
cmp al, 0xf
mov eax, r8d
ja 0x140112080
add rcx, 0xfffffffffffffffe
lea rax, [rcx + rbp]
add rax, 0xffffffffffffffb0
mov ecx, 0x81
sub rcx, r9
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r8, str.0x0X
mov r9d, 2
mov rcx, rdx
mov dl, 1
jmp 0x140112131
mov ecx, 2
cmp al, 0xa
jae 0x1401120f9
or al, 0x30
mov byte [rbp + rcx - 0x50], al
jmp 0x14011210d
lea rcx, str.00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899n
movzx eax, word [rcx + rax*2]
mov word [rbp - 0x4f], ax
mov ecx, 1
lea rax, [rcx + rbp]
add rax, 0xffffffffffffffb0
xor rcx, 3
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r8d, 1
mov rcx, rdx
mov dl, 1
xor r9d, r9d
call fcn.140009c30
nop
add rsp, 0xb0
pop rbp
ret

Function at 0x140113320
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rsi
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rax, qword [0x1401aa0d8]
nop word cs:[rax + rax]
cmp rax, 0xffffffffffffffff
je 0x140113373
lea rsi, [rax + 1]
lock cmpxchg qword [0x1401aa0d8], rsi
jne 0x140113340
mov ecx, dword [0x1401aa118]
test ecx, ecx
je 0x140113378
call fcn.140113de0
lea rcx, [0x1401aa100]
call fcn.1400edca0
sbb al, 0xa9
std
invalid
mov ecx, eax
jmp 0x140113361
Function at 0x1401136a0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rsi
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov rax, qword [rcx]
cmp byte [rax], 0
mov byte [rax], 0
je 0x140113826
mov byte [rbp + 7], 0
mov eax, dword [0x1401aa0a8]
cmp eax, 3
jne 0x140113708
cmp byte [rbp + 7], 0
jne 0x1401137f4
mov ecx, dword [0x1401aa118]
test ecx, ecx
je 0x14011371c
dec ecx
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x140113734
mov rcx, qword [0x1401aa070]
cmp rax, rcx
jne 0x140113745
lea rcx, [rbp + 7]
call fcn.14011389a
cmp byte [rbp + 7], 0
je 0x1401136d3
jmp 0x1401137f4
lea rcx, [0x1401aa100]
call fcn.1400edca0
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x1401136e9
call fcn.140113320
mov rcx, qword [0x1401aa070]
cmp rax, rcx
je case.0x140115222.261
mov rcx, rax
mov dl, 1
xor eax, eax
lock cmpxchg byte [0x1401aa07c], dl
jne 0x1401137f4
mov qword [0x1401aa070], rcx
mov eax, 1
lea rcx, str.library_std_src_synconce.rs
call fcn.14000cb60
Function at 0x140113ea0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x70
lea rbp, [rsp + 0x70]
test rcx, rcx
jne 0x140113f77
mov ecx, dword [0x1401aa138]
test ecx, ecx
je 0x140113fb3
dec ecx
mov edx, 1
call sub.kernel32.dll_TlsSetValue
mov ecx, dword [0x1401aa118]
test ecx, ecx
je 0x140113fc6
dec ecx
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
test rax, rax
je 0x140113fe5
movzx eax, byte [0x1401aa178]
mov edx, 0x30
xor ecx, ecx
call fcn.14011ab20
test rax, rax
je 0x140114009
mov rsi, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x18], 0
mov qword [rax + 0x10], rdi
mov byte [rax + 0x28], 0
mov qword [rbp - 0x40], 1
mov qword [rbp - 0x38], rax
mov rax, qword [0x1401ae038]
lock inc qword [rsi]
jle 0x140114066
mov ecx, dword [0x1401aa138]
test ecx, ecx
je 0x140113ff2
dec ecx
add rsi, 0x10
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x38]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
cmp rcx, 1
je 0x140114018
lea rax, str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
mov qword [rbp - 0x30], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
lea rdx, str.library_std_src_threadcurrent.rs
lea rcx, [rbp - 0x40]
call fcn.140009c00
lea rcx, [0x1401aa120]
call fcn.1400edca0
mov ecx, eax
jmp 0x140113ec5
lea rcx, [0x1401aa100]
call fcn.1400edca0
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
test rax, rax
jne 0x140113ef0
call fcn.140113320
mov rdi, rax
jmp 0x140113ef0
lea rdi, [rbp - 0x38]
lea rcx, [0x1401aa120]
call fcn.1400edca0
mov ecx, eax
jmp 0x140113f5b
mov ecx, 8
mov edx, 0x30
call fcn.140006e69
mov dword [rbp - 0x10], 0
mov byte [rbp - 0xc], 0
lea rax, str.fatal_runtime_error:__nAttempted_to_access_thread_local_data_while_allocating_said_data._nDo_not_access_functions_that_allocate_in_the_global_allocator__nThis_is_a_bug_in_the_global_allocator._n_n
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
lea rax, [rbp - 8]
mov qword [rbp - 0x30], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
lea rcx, [rbp - 0x10]
lea rdx, [rbp - 0x40]
call fcn.1400eda00
mov qword [rbp - 0x48], rax
lea rcx, [rbp - 0x48]
call fcn.1400edb30
mov ecx, 7
int 0x29
ud2
Function at 0x140114310
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov rdi, rcx
mov esi, dword [0x140142170]
test esi, esi
je 0x1401143b7
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x1401143ae
je 0x140114359
test rdi, rdi
je 0x14011435d
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x14011435f
mov rbx, qword [rdi + 8]
jmp 0x14011435f
xor eax, eax
jmp 0x1401143ae
xor ebx, ebx
mov qword [rbp - 8], rbx
mov dword [rbp], esi
movzx eax, byte [0x1401aa178]
mov edx, 0x10
xor ecx, ecx
call fcn.14011ab20
test rax, rax
je 0x1401143d8
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x1401143ab
mov rcx, rdi
call fcn.140112af0
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140142158]
call fcn.1400edca0
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x14011433d
jmp 0x1401143ae
mov ecx, 8
mov edx, 0x10
call fcn.140006e69
ud2

Function at 0x140115ce0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov ecx, dword [0x1401aa138]
test ecx, ecx
je 0x140115daf
lea rcx, [0x1401aa120]
call fcn.1400edca0
in eax, 0x7e
std
dec dword [rcx - 0x67b5173f]
shr eax, 0x4a
cwde
add al, byte [rax]
Function at 0x140116f40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
movdqa xmmword [rbp - 0x10], xmm6
mov rdi, r8
mov rsi, rcx
mov rcx, qword [rcx + 8]
mov rbx, qword [rsi + 0x10]
xor r14d, r14d
mov eax, 0
cmp rbx, 3
jb 0x140116fb1
movzx r8d, byte [rbx + rcx - 2]
mov r9d, r8d
and r9b, 0xf0
xor r14d, r14d
cmp r9b, 0xa0
jne 0x140116fb1
xor r14d, r14d
cmp byte [rbx + rcx - 3], 0xed
jne 0x140116fb1
movzx r14d, byte [rbx + rcx - 1]
and r8d, 0xf
and r14d, 0x3f
shl r8d, 0x10
shl r14d, 0xa
or r14d, r8d
mov al, 1
cmp rdi, 3
jb 0x14011708c
cmp byte [rdx], 0xed
jne 0x140117095
movzx r15d, byte [rdx + 1]
mov r8d, r15d
and r8b, 0xf0
cmp r8b, 0xb0
setne r8b
xor al, 1
or al, r8b
jne 0x140117095
cmp rbx, 3
jb 0x140116ff1
add rbx, 0xfffffffffffffffd
mov qword [rsi + 0x10], rbx
movzx r12d, byte [rdx + 2]
shl r15d, 6
lea r8, [rdi + 1]
mov rax, qword [rsi]
mov rcx, rax
sub rcx, rbx
cmp rcx, r8
jb 0x14011717f
and r15d, 0x3c0
or r15d, r14d
or r12d, r15d
lea r8d, [r12 + 0x10000]
mov r9d, r8d
shr r9d, 0x12
shr r8d, 4
and r8d, 0xff00
or r8d, r9d
shl r15d, 0xa
and r15d, 0xff0000
or r15d, r8d
shl r12d, 0x18
or r12d, r15d
movd xmm6, r12d
pand xmm6, xmmword [str._a___]
por xmm6, xmmword [0x140148b70]
cmp rcx, 3
jbe 0x1401171b1
add rdx, 3
mov rcx, qword [rsi + 8]
movd dword [rcx + rbx], xmm6
add rbx, 4
mov qword [rsi + 0x10], rbx
add rdi, 0xfffffffffffffffd
jmp 0x140117123
test rdi, rdi
je 0x140117120
lea rax, [rdx + rdi]
mov r9, rdx
jmp 0x1401170b8
add r9, 2
cmp r8, rax
cmovne r8, r9
nop dword [rax]
mov r9, r8
cmp r8, rax
je 0x140117120
lea r8, [r9 + 1]
movzx r10d, byte [r9]
test r10b, r10b
jns 0x1401170b0
cmp r10b, 0xe0
jb 0x14011709e
cmp r10b, 0xed
jne 0x1401170ef
cmp r8, rax
je 0x140117120
lea r8, [r9 + 2]
cmp r8, rax
je 0x140117120
cmp byte [r9 + 1], 0x9f
ja 0x14011711c
add r9, 3
mov r8, r9
jmp 0x1401170b0
add r9, 2
cmp r8, rax
cmove r9, r8
xor r8d, r8d
cmp r9, rax
setne r8b
add r8, r9
cmp r10b, 0xf0
jb 0x1401170b0
xor r9d, r9d
cmp r8, rax
setne r9b
add r8, r9
jmp 0x1401170b0
mov byte [rsi + 0x18], 0
mov rax, qword [rsi]
sub rax, rbx
cmp rax, rdi
jb 0x140117152
add rcx, rbx
mov r8, rdi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add rbx, rdi
mov qword [rsi + 0x10], rbx
movaps xmm6, xmmword [rbp - 0x10]
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r14, rdx
mov rdx, rbx
mov r8, rdi
call fcn.1400ee8b0
mov rdx, r14
mov rcx, qword [rsi + 8]
mov rbx, qword [rsi + 0x10]
jmp 0x14011712b
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r13, rdx
mov rdx, rbx
call fcn.1400ee8b0
mov rdx, r13
mov rax, qword [rsi]
mov rbx, qword [rsi + 0x10]
mov rcx, rax
sub rcx, rbx
jmp 0x140117010
mov qword [rsp + 0x20], 1
mov r8d, 4
mov r9d, 1
mov rcx, rsi
mov r14, rdx
mov rdx, rbx
call fcn.1400ee8b0
mov rdx, r14
mov rax, qword [rsi]
mov rbx, qword [rsi + 0x10]
jmp 0x14011706e
Function at 0x140117f90
Capabilities:
Create directory

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x10]
call fcn.14010dea0
Function at 0x140119db0
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x1e8
lea rbp, [rsp + 0x80]
mov rax, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov rdi, qword [rax + 8]
movzx eax, word [rax + 0x10]
mov word [rbp + 0x166], ax
mov eax, dword [0x1401aa0e8]
cmp eax, 3
jne 0x140119fa6
lea rax, [rbp + 0x166]
mov qword [rbp + 0x150], rax
cmp rdi, 0x17f
ja 0x140119fcc
lea rbx, [rbp - 0x60]
mov rcx, rbx
mov r8, rdi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov byte [rbp + rdi - 0x60], 0
lea rax, [rdi + 1]
cmp rdi, 0xe
ja 0x140119e48
xor edx, edx
nop word cs:[rax + rax]
cmp byte [rbp + rdx - 0x60], 0
je 0x140119f04
inc rdx
cmp rax, rdx
jne 0x140119e30
jmp 0x140119f67
lea rcx, [rbp - 0x59]
and rcx, 0xfffffffffffffff8
sub rcx, rbx
je 0x140119e7e
xor edx, edx
nop word [rax + rax]
cmp byte [rbp + rdx - 0x60], 0
je 0x140119f04
inc rdx
cmp rcx, rdx
jne 0x140119e60
lea rdx, [rdi - 0xf]
cmp rcx, rdx
jbe 0x140119e82
jmp 0x140119ed0
lea rdx, [rdi - 0xf]
movabs r8, 0x8080808080808080
movabs r9, 0x101010101010100
nop word cs:[rax + rax]
mov r10, qword [rbp + rcx - 0x60]
mov r11, qword [rbp + rcx - 0x58]
mov rbx, r9
sub rbx, r11
or rbx, r11
mov r11, r9
sub r11, r10
or r11, r10
and r11, r8
and r11, rbx
cmp r11, r8
jne 0x140119ed0
add rcx, 0x10
cmp rcx, rdx
jbe 0x140119ea0
sub rax, rcx
je 0x140119f67
lea r8, [rcx + rbp]
add r8, 0xffffffffffffffa0
xor edx, edx
nop word cs:[rax + rax]
cmp byte [r8 + rdx], 0
je 0x140119f01
inc rdx
cmp rax, rdx
jne 0x140119ef0
jmp 0x140119f67
add rdx, rcx
cmp rdx, rdi
jne 0x140119f67
xorps xmm0, xmm0
movaps xmmword [rbp + 0x120], xmm0
movaps xmmword [rbp + 0x140], xmm0
movaps xmmword [rbp + 0x130], xmm0
mov dword [rbp + 0x128], 1
mov qword [rbp + 0x158], 0
lea rcx, [rbp - 0x60]
lea r8, [rbp + 0x120]
lea r9, [rbp + 0x158]
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x140119f7b
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x140119f93
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x140119f9a
mov rax, qword [rbp + 0x158]
movzx ecx, word [rbp + 0x166]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rbx, rdx
call fcn.14011a340
mov rdx, rbx
lea rax, [rbp + 0x166]
mov qword [rbp + 0x150], rax
cmp rdi, 0x17f
jbe 0x140119e05
lea r9, [rbp + 0x150]
mov rcx, rsi
mov r8, rdi
call fcn.14011a3a0
jmp 0x140119f9a
Function at 0x14011a3a0
Capabilities:
Resolve dns

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
lea rbp, [rsp + 0x60]
cmp r8, 0xffffffffffffffff
je 0x14011a5b9
mov rbx, r8
mov r15, r8
inc r15
js 0x14011a5c5
mov rdi, r9
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x1401aa178]
xor ecx, ecx
mov rdx, r15
call fcn.14011ab20
test rax, rax
je 0x14011a5d1
mov r12, rax
mov rcx, rax
mov rdx, r14
mov r8, rbx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rbx, 0x10
jae 0x14011a438
test rbx, rbx
je 0x14011a4df
xor eax, eax
nop word cs:[rax + rax]
cmp byte [r14 + rax], 0
je 0x14011a542
inc rax
cmp rbx, rax
jne 0x14011a420
jmp 0x14011a4df
lea rax, [r14 + 7]
and rax, 0xfffffffffffffff8
sub rax, r14
jne 0x14011a491
lea rcx, [rbx - 0x10]
xor eax, eax
movabs rdx, 0x8080808080808080
movabs r8, 0x101010101010100
nop
mov r9, qword [r14 + rax]
mov r10, qword [r14 + rax + 8]
mov r11, r8
sub r11, r10
or r11, r10
mov r10, r8
sub r10, r9
or r10, r9
and r10, rdx
and r10, r11
cmp r10, rdx
jne 0x14011a4bc
add rax, 0x10
cmp rax, rcx
jbe 0x14011a460
jmp 0x14011a4bc
xor ecx, ecx
nop word cs:[rax + rax]
cmp byte [r14 + rcx], 0
je 0x14011a542
inc rcx
cmp rax, rcx
jne 0x14011a4a0
lea rcx, [rbx - 0x10]
cmp rax, rcx
jbe 0x14011a44b
cmp rax, rbx
je 0x14011a4df
nop word cs:[rax + rax]
cmp byte [r14 + rax], 0
je 0x14011a542
inc rax
cmp rbx, rax
jne 0x14011a4d0
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], rbx
lea rcx, [rbp - 0x40]
call fcn.140006f80
mov rbx, rax
mov r14, rdx
xorps xmm0, xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x38], 1
mov qword [rbp - 8], 0
lea r8, [rbp - 0x40]
lea r9, [rbp - 8]
mov rcx, rax
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x14011a574
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x14011a588
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
call sub.kernel32.dll_GetProcessHeap
mov rcx, rax
xor edx, edx
mov r8, r12
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
jmp sub.kernel32.dll_HeapFree
mov rcx, qword [rdi]
mov rax, qword [rbp - 8]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rbx], 0
test r14, r14
je 0x14011a5a9
call sub.kernel32.dll_GetProcessHeap
mov rcx, rax
xor edx, edx
mov r8, rbx
call sub.kernel32.dll_HeapFree
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea rcx, str.library_alloc_src_ffic_str.rs
call fcn.14000cb60
lea rcx, str.library_alloc_src_ffic_str.rs
call fcn.140006e30
mov ecx, 1
mov rdx, r15
call fcn.140006e69
int3
Function at 0x14011a830
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rdi, r8
mov r14, rdx
mov rbx, rcx
movzx eax, byte [0x1401aa178]
mov edx, 0x10
xor ecx, ecx
call fcn.14011ab20
test rax, rax
je 0x14011a909
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14011a970]
xor edi, edi
xor ecx, ecx
mov rdx, rbx
mov r9, rax
call sub.kernel32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x14011a8fb
mov rdi, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, qword [r14]
test rax, rax
je 0x14011a8b1
mov rcx, rdi
call rax
cmp qword [r14 + 8], 0
je 0x14011a8d5
cmp qword [r14 + 0x10], 0x11
jb 0x14011a8c3
mov rdi, qword [rdi - 8]
call sub.kernel32.dll_GetProcessHeap
mov rcx, rax
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
call sub.kernel32.dll_GetProcessHeap
mov rcx, rax
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 edi, 1
mov rax, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov ecx, 8
mov edx, 0x10
call fcn.140006e69
ud2

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

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
movaps xmmword [rbp - 0x10], xmm6
mov rdi, rcx
mov esi, dword [0x140142150]
test esi, esi
je case.0x1400e38ff.57
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x14011b45f
je 0x14011b45d
test rdi, rdi
je 0x14011b3f0
movups xmm6, xmmword [rdi + 8]
test byte [rdi], 1
mov qword [rdi], 0
jne 0x14011b409
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call sub.bcryptprimitives.dll_ProcessPrng
movaps xmm6, xmmword [rbp - 0x20]
movzx eax, byte [0x1401aa178]
mov edx, 0x18
xor ecx, ecx
call fcn.14011ab20
test rax, rax
je 0x14011b48d
movups xmmword [rax], xmm6
mov dword [rax + 0x10], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x14011b458
call sub.kernel32.dll_GetProcessHeap
mov rcx, rax
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
mov rax, rsi
jmp 0x14011b45f
xor eax, eax
movaps xmm6, xmmword [rbp - 0x10]
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140142138]
call fcn.1400edca0
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x14011b3d5
jmp 0x14011b45f
mov ecx, 8
mov edx, 0x18
call fcn.140006e69
int3
Function at 0x14011e850
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov esi, dword [0x140142190]
test esi, esi
je 0x14011e92a
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x14011e922
je 0x14011e920
movzx eax, byte [0x1401aa178]
mov edx, 0x28
xor ecx, ecx
call fcn.14011ab20
test rax, rax
je 0x14011e94b
mov rdi, rax
mov qword [rax], 1
mov qword [rax + 8], 1
xorps xmm0, xmm0
movups xmmword [rax + 0x10], xmm0
mov byte [rax + 0x20], 0
movzx eax, byte [0x1401aa178]
mov edx, 0x10
xor ecx, ecx
call fcn.14011ab20
test rax, rax
je 0x14011e95a
mov qword [rax], rdi
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x14011e91b
mov rax, qword [rdi]
lock dec qword [rax]
jne 0x14011e909
mov rcx, qword [rdi]
call fcn.14003c590
call sub.kernel32.dll_GetProcessHeap
mov rcx, rax
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
mov rax, rsi
jmp 0x14011e922
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140142178]
call fcn.1400edca0
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x14011e878
jmp 0x14011e922
mov ecx, 8
mov edx, 0x28
call fcn.140006e69
mov ecx, 8
mov edx, 0x10
call fcn.140006e69
int3
Function at 0x140122850
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, 0x48
mov qword [rsp + 0x40], r8
mov rbx, rdx
mov rax, qword [rcx + 0x18]
mov qword [rsp + 0x38], rax
cmp rax, 0xffffffffffffffff
je 0x1401229ff
mov r14, qword [rcx + 0x10]
mov r12, qword [rcx + 0x20]
cmp r9, 0x7fffffff
mov r15d, 0x7fffffff
cmovb r15, r9
jmp 0x1401228c7
call sub.kernel32.dll_GetProcessHeap
mov rcx, rax
xor edx, edx
mov r8, rbp
call sub.kernel32.dll_HeapFree
dec r13
call sub.kernel32.dll_GetProcessHeap
mov rcx, rax
xor edx, edx
mov r8, r13
call sub.kernel32.dll_HeapFree
lea rcx, [rsp + 0x28]
mov rdx, r14
mov r8, rbx
mov r9b, 1
call fcn.14011d7f0
movzx eax, byte [rsp + 0x31]
cmp al, 3
je 0x140122a1c
mov rbp, qword [rsp + 0x28]
cmp al, 2
je 0x140122a36
movzx edi, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov r8d, r15d
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x140122a40
test r12, r12
sete sil
call sub.ws2_32.dll_WSAGetLastError
mov r13d, eax
shl r13, 0x20
or r13, 2
mov rcx, r13
call fcn.14004f890
cmp al, 0xd
setne al
or al, sil
jne 0x140122973
mov rcx, qword [r12]
mov rax, qword [r12 + 8]
lock inc qword [rax]
jle 0x140122a59
add rcx, 0x10
mov rdx, qword [r12 + 8]
mov r8, qword [r12 + 0x10]
movzx r9d, byte [r12 + 0x18]
call fcn.14004f620
test rax, rax
cmovne r13, rax
mov rcx, r13
call fcn.14008b6c0
cmp al, 0xd
jne 0x140122a2f
and ebp, 0x23
mov rax, qword [r14 + 0x90]
xor rbp, 0x2f
mov ecx, edi
shl ecx, 0x10
nop word cs:[rax + rax]
mov edx, eax
shr edx, 0x10
cmp dil, dl
jne 0x1401229bc
mov edx, ebp
and edx, eax
or rdx, rcx
lock cmpxchg qword [r14 + 0x90], rdx
jne 0x1401229a0
mov eax, r13d
and eax, 3
cmp eax, 1
jne 0x1401228c7
mov rbp, qword [r13 - 1]
mov rdi, qword [r13 + 7]
mov rax, qword [rdi]
test rax, rax
je 0x1401229e0
mov rcx, rbp
call rax
cmp qword [rdi + 8], 0
je 0x1401228b2
cmp qword [rdi + 0x10], 0x11
jb 0x1401228a0
mov rbp, qword [rbp - 8]
jmp 0x1401228a0
mov rdx, qword [rcx + 0x10]
lea rcx, [rsp + 0x28]
mov r8, rbx
mov r9b, 1
call fcn.14011d7f0
movzx eax, byte [rsp + 0x31]
cmp al, 3
jne 0x140122a26
mov eax, 2
mov r13, rbp
jmp 0x140122a45
cmp al, 2
jne 0x140122a5b
mov r13, qword [rsp + 0x28]
mov eax, 1
jmp 0x140122a45
mov eax, 1
mov r13, rbp
jmp 0x140122a45
movsxd r13, eax
xor eax, eax
mov rdx, r13
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
lea rcx, [0x140192af0]
call fcn.14000cb60
int3
Function at 0x140124870
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov esi, dword [0x1401421b8]
test esi, esi
je 0x14012496d
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x140124965
je 0x140124939
movzx eax, byte [0x1401aa178]
mov edx, 0x50
xor ecx, ecx
call fcn.14011ab20
test rax, rax
je 0x14012498e
movups xmm0, xmmword [0x140190f48]
movups xmmword [rax + 0x30], xmm0
movups xmm0, xmmword [0x140190f38]
movups xmmword [rax + 0x20], xmm0
movups xmm0, xmmword [0x140190f28]
movups xmmword [rax + 0x10], xmm0
movups xmm0, xmmword [0x140190f18]
movups xmmword [rax], xmm0
movabs rcx, 0x2000000000000
mov qword [rax + 0x40], rcx
mov dword [rax + 0x48], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x140124962
mov rax, qword [rdi + 8]
cmp rax, 2
je 0x140124950
test rax, rax
je 0x14012493d
mov rax, qword [rdi + 0x10]
lock dec qword [rax]
jne 0x140124950
mov rcx, qword [rdi + 0x10]
call fcn.140128500
jmp 0x140124950
xor eax, eax
jmp 0x140124965
mov rax, qword [rdi + 0x10]
lock dec qword [rax]
jne 0x140124950
mov rcx, qword [rdi + 0x10]
call fcn.1401283c0
call sub.kernel32.dll_GetProcessHeap
mov rcx, rax
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1401421a0]
call fcn.1400edca0
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x140124898
jmp 0x140124965
mov ecx, 8
mov edx, 0x50
call fcn.140006e69
int3