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

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov esi, dword [0x1401a2158]
test esi, esi
je 0x14015470a
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140154701
je 0x1401546ff
movzx eax, byte [0x1402a6198]
mov edx, 0x18
xor ecx, ecx
call fcn.140188040
test rax, rax
je 0x14015471d
mov qword [rax], 0
mov byte [rax + 8], 0
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 0x1401546fa
mov edx, 8
mov rcx, rdi
call fcn.14003fe40
mov rax, rsi
jmp 0x140154701
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1401a2140]
call fcn.140153820
mov esi, eax
jmp 0x140154699
mov ecx, 8
mov edx, 0x18
call fcn.14003a45d
int3

Function at 0x140155060
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rsi
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rax, qword [0x1402a60e0]
nop word cs:[rax + rax]
cmp rax, 0xffffffffffffffff
je 0x1401550c3
lea rsi, [rax + 1]
lock cmpxchg qword [0x1402a60e0], rsi
jne 0x140155080
mov ecx, dword [0x1402a6138]
test ecx, ecx
je 0x1401550b3
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov rax, rsi
add rsp, 0x28
pop rsi
pop rbp
ret
lea rcx, [0x1402a6120]
call fcn.140153820
mov ecx, eax
jmp 0x1401550a1
call fcn.140155a90
int3

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

Disassembly:
push rbp
push rsi
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov qword [rbp], rcx
mov ecx, dword [0x1402a6158]
test ecx, ecx
je 0x1401550ed
dec ecx
jmp 0x1401550fb
lea rcx, [0x1402a6140]
call fcn.140153820
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x14015510e
mov rax, qword [rbp]
jmp 0x140155194
mov ecx, dword [0x1402a6138]
test ecx, ecx
je 0x14015511c
dec ecx
jmp 0x14015512a
lea rcx, [0x1402a6120]
call fcn.140153820
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140155143
mov rcx, rax
mov rax, qword [rbp]
cmp qword [rax + 0x28], rcx
je 0x140155173
jmp 0x140155194
mov rax, qword [rbp]
mov rsi, qword [rax + 0x28]
mov ecx, dword [0x1402a6138]
test ecx, ecx
je 0x140155159
dec ecx
jmp 0x140155167
lea rcx, [0x1402a6120]
call fcn.140153820
mov ecx, eax
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov rax, qword [rbp]
mov rcx, qword [0x1402a9038]
add rax, 0x10
mov ecx, dword [0x1402a6158]
test ecx, ecx
je 0x14015519b
dec ecx
mov rdx, rax
call sub.KERNEL32.dll_TlsSetValue
xor eax, eax
add rsp, 0x28
pop rsi
pop rbp
ret
lea rcx, [0x1402a6140]
mov rsi, rax
call fcn.140153820
mov ecx, eax
mov rax, rsi
jmp 0x14015518a
Function at 0x1401553a0
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 0x14015551a
mov byte [rbp + 7], 0
mov eax, dword [0x1402a60b0]
cmp eax, 3
jne 0x1401554d1
cmp byte [rbp + 7], 0
jne 0x1401554e4
mov ecx, dword [0x1402a6138]
test ecx, ecx
je 0x1401554fd
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140155510
mov rcx, qword [0x1402a6078]
cmp rax, rcx
jne 0x140155414
mov eax, dword [0x1402a6080]
cmp eax, 0xffffffff
je 0x1401554e4
inc eax
jmp 0x140155435
mov rcx, rax
mov dl, 1
xor eax, eax
lock cmpxchg byte [0x1402a6084], dl
jne 0x1401554e4
mov qword [0x1402a6078], rcx
mov eax, 1
mov dword [0x1402a6080], eax
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 1
mov qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
mov byte [rbp - 3], 0
mov dword [rbp - 7], 0
cmp qword [0x1402a6088], 0
jne 0x140155526
mov qword [0x1402a6088], 0xffffffffffffffff
lea rcx, [0x1402a6090]
call fcn.140155610
movups xmm0, xmmword [rbp - 0x20]
movups xmm1, xmmword [rbp - 0x10]
movups xmmword [0x1402a60a0], xmm1
movups xmmword [0x1402a6090], xmm0
inc qword [0x1402a6088]
dec dword [0x1402a6080]
jne 0x1401554e4
mov qword [0x1402a6078], 0
xor eax, eax
xchg byte [0x1402a6084], al
cmp al, 2
jne 0x1401554e4
lea rcx, [0x1402a6084]
call fcn.14019f318
jmp 0x1401554e4
lea rcx, [rbp + 7]
call fcn.14015557c
cmp byte [rbp + 7], 0
je 0x1401553d7
mov eax, dword [0x1402a60f0]
cmp eax, 3
jne 0x1401554f5
call qword [0x1402a60e8]
nop
add rsp, 0x48
pop rsi
pop rbp
ret
lea rcx, [0x1402a6120]
call fcn.140153820
mov ecx, eax
jmp 0x1401553e7
call fcn.140155060
jmp 0x1401553f5
lea rcx, str.std_src_synconce.rs
call fcn.14006c350
lea rcx, str.std_srcio_stdio.rs
call fcn.140069e60
ud2
Function at 0x140155b50
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 0x140155c5a
mov ecx, dword [0x1402a6158]
test ecx, ecx
je 0x140155c27
dec ecx
mov edx, 1
call sub.KERNEL32.dll_TlsSetValue
mov ecx, dword [0x1402a6138]
test ecx, ecx
je 0x140155c3a
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
test rax, rax
je 0x140155c4d
movzx eax, byte [0x1402a6198]
mov edx, 0x38
xor ecx, ecx
call fcn.140188040
test rax, rax
je 0x140155c92
mov rsi, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], 2
mov qword [rax + 0x28], rdi
mov byte [rax + 0x30], 0
mov qword [rbp - 0x40], rax
mov rax, qword [0x1402a9038]
lock inc qword [rsi]
jle 0x140155ca1
mov ecx, dword [0x1402a6158]
test ecx, ecx
je 0x140155c01
dec ecx
jmp 0x140155c0f
lea rcx, [0x1402a6140]
call fcn.140153820
mov ecx, eax
add rsi, 0x10
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov rax, qword [rbp - 0x40]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1402a6140]
call fcn.140153820
mov ecx, eax
jmp 0x140155b75
lea rcx, [0x1402a6120]
call fcn.140153820
mov ecx, eax
jmp 0x140155b8f
call fcn.140155060
mov rdi, rax
jmp 0x140155ba0
cmp rcx, 1
je 0x140155ca3
lea rax, str.use_of_std::thread::current___is_not_possible_after_the_threads_n_________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.std_src_threadcurrent.rs
lea rcx, [rbp - 0x40]
call fcn.140068590
mov ecx, 8
mov edx, 0x38
call fcn.14003a45d
ud2
mov dword [rbp - 0x10], 0
mov byte [rbp - 0xc], 0
lea rax, str.fatal_runtime_error:__n_n____________Attempted_to_access_thread_local_data_while_allocating_said_data._n_n____________Do_not_access_functions_that_allocate_in_the_global_allocator__n_n____________This_is_a_bug_in_the_global_allocator._n_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.140153a00
mov qword [rbp - 0x48], rax
lea rcx, [rbp - 0x48]
call fcn.140153b10
mov ecx, 7
int 0x29
ud2

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

Disassembly:
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov ecx, dword [0x1402a6158]
test ecx, ecx
je 0x140155df2
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jbe 0x140155e02
lock inc qword [rax - 0x10]
jle 0x140155e0f
add rax, 0xfffffffffffffff0
add rsp, 0x20
pop rbp
ret
lea rcx, [0x1402a6140]
call fcn.140153820
mov ecx, eax
jmp 0x140155dd6
mov rcx, rax
add rsp, 0x20
pop rbp
jmp fcn.140155b50
ud2
Function at 0x140157110
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3d8], rcx
mov qword [rbp + 0x3e0], 0
mov qword [rbp + 0x3e8], 2
mov qword [rbp + 0x3f0], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3d0], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x1401571a0
jmp 0x14015718f
jae 0x14015726a
cmp r8, 0x201
jae 0x1401571a0
mov r14d, 0x200
lea r15, [rbp - 0x50]
mov r12, r8
jmp 0x140157206
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x1401571de
mov qword [rsp + 0x20], 2
mov r9d, 2
lea rcx, [rbp + 0x3e0]
mov rdx, rbx
call fcn.140159080
mov rsi, qword [rbp + 0x3e0]
mov rax, qword [rbp + 0x3e8]
mov qword [rbp + 0x3d0], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3f0], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3d0]
mov r12, rbx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov ecx, r12d
mov rdx, r15
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov r13d, eax
test eax, eax
jne 0x14015722c
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x1401572ce
mov r8d, r13d
cmp r12, r8
jne 0x140157180
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x1401572ff
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14015718f
jmp 0x1401571a0
cmp r14, r8
jb 0x140157319
lea rcx, [rbp + 0x3b0]
mov rdx, r15
call fcn.140157b80
movups xmm0, xmmword [rbp + 0x3b0]
movups xmm1, xmmword [rbp + 0x3c0]
mov rax, qword [rbp + 0x3d8]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
cmp qword [rbp + 0x3e0], 0
je 0x1401572b9
mov rcx, qword [rbp + 0x3e8]
mov edx, 2
call fcn.14003fe40
nop
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rbp + 0x3d8]
mov qword [rcx + 8], rax
movabs rax, 0x8000000000000000
mov qword [rcx], rax
cmp qword [rbp + 0x3e0], 0
jne 0x1401572a8
jmp 0x1401572b9
lea rcx, [0x14028560a]
lea r8, str.std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140069290
jmp 0x14015732e
lea rax, str.std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.140068dd0
ud2
Function at 0x140159c20
Capabilities:
Read file via mapping

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x90
lea rbp, [rsp + 0x80]
movaps xmmword [rbp], xmm6
mov rax, r8
mov rdi, rcx
mov dword [rbp - 0x40], 0
xorps xmm6, xmm6
movups xmmword [rbp - 0x38], xmm6
mov dword [rbp - 0x28], 7
mov qword [rbp - 0x24], 0
mov word [rbp - 0x1c], 0
mov byte [rbp - 0x20], 1
lea r8, [rbp - 0x40]
mov rcx, rdx
mov rdx, rax
call fcn.140175f30
mov rsi, rdx
test rax, rax
je 0x140159cd2
mov eax, esi
and eax, 3
cmp eax, 1
jne 0x140159cc6
mov rax, rsi
dec rsi
mov rbx, qword [rax - 1]
mov r14, qword [rax + 7]
mov rax, qword [r14]
test rax, rax
je 0x140159ca6
mov rcx, rbx
call rax
cmp qword [r14 + 8], 0
je 0x140159cb9
mov rdx, qword [r14 + 0x10]
mov rcx, rbx
call fcn.14003fe40
mov edx, 8
mov rcx, rsi
call fcn.14003fe40
mov qword [rdi], 0
jmp 0x140159e7b
movaps xmmword [rbp - 0x20], xmm6
movaps xmmword [rbp - 0x30], xmm6
movaps xmmword [rbp - 0x40], xmm6
mov dword [rbp - 0x10], 0
lea rdx, [rbp - 0x40]
mov rcx, rsi
call sub.KERNEL32.dll_GetFileInformationByHandle
test eax, eax
je 0x140159d74
test byte [rbp - 0x3f], 4
je 0x140159d1e
mov qword [rbp - 0x48], 0
lea r8, [rbp - 0x48]
mov rcx, rsi
mov edx, 9
mov r9d, 8
call sub.KERNEL32.dll_GetFileInformationByHandleEx
test eax, eax
je 0x140159d74
mov r12d, dword [rbp - 0x20]
mov r15d, dword [rbp - 0x1c]
test rsi, rsi
je 0x140159de4
mov qword [rbp - 0x40], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbp - 0x40]
mov rcx, rax
mov rdx, rsi
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x140159e67
mov rbx, qword [rbp - 0x40]
jmp 0x140159de6
call sub.KERNEL32.dll_GetLastError
mov cl, 1
test cl, cl
jne 0x140159dc0
shl rax, 0x20
or rax, 2
lea rbx, [rax - 1]
mov r14, qword [rax - 1]
mov r15, qword [rax + 7]
mov rax, qword [r15]
test rax, rax
je 0x140159da0
mov rcx, r14
call rax
cmp qword [r15 + 8], 0
je 0x140159db3
mov rdx, qword [r15 + 0x10]
mov rcx, r14
call fcn.14003fe40
mov edx, 8
mov rcx, rbx
call fcn.14003fe40
mov qword [rdi], 0
mov rcx, rsi
movaps xmm6, xmmword [rbp]
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
jmp sub.KERNEL32.dll_CloseHandle
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileMappingA
test rax, rax
je 0x140159e56
mov r14, rax
shl r12, 0x20
or r12, r15
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call sub.KERNEL32.dll_CloseHandle
test r15, r15
je 0x140159e56
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r12
mov qword [rdi], 1
jmp 0x140159e73
mov qword [rdi], 0
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
jmp 0x140159e73
call sub.KERNEL32.dll_GetLastError
mov qword [rdi], 0
mov rcx, rsi
call sub.KERNEL32.dll_CloseHandle
movaps xmm6, xmmword [rbp]
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
Function at 0x1401785a0
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, 0x78
lea rbp, [rsp + 0x70]
mov rsi, r9
mov rdi, r8
mov qword [rbp - 8], rdx
mov qword [rbp], rcx
add rsi, r8
mov qword [rbp - 0x30], r8
mov qword [rbp - 0x28], rsi
mov byte [rbp - 0x20], 0x81

Function at 0x1401789b0
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, 0x68
lea rbp, [rsp + 0x60]
mov rbx, rdx
mov qword [rbp - 0x20], rcx
movzx eax, byte [rdx + 0x18]
mov byte [rbp + 7], al
mov byte [rdx + 0x18], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 2
mov qword [rbp - 8], 0
movzx r15d, word [rdx + 0x10]
mov rsi, qword [rdx]
mov r12, qword [rdx + 8]
mov eax, 2
xor edi, edi
xor r13d, r13d
jmp 0x140178a25
shl edx, 6
or edx, r9d
mov r14d, edx
xor r15d, r15d
mov rsi, rcx
cmp r14w, 0x22
jne 0x140178b15
xor r13b, 1
mov r14d, r15d
test r15w, r15w
jne 0x140178ac0
cmp rsi, r12
je 0x140178b54
lea rcx, [rsi + 1]
mov qword [rbx], rcx
movzx r14d, byte [rsi]
test r14b, r14b
jns 0x140178a10
mov edx, r14d
and edx, 0x1f
lea rcx, [rsi + 2]
mov qword [rbx], rcx
movzx r9d, byte [rsi + 1]
and r9d, 0x3f
cmp r14b, 0xdf
jbe 0x140178a07
lea rcx, [rsi + 3]
mov qword [rbx], rcx
movzx r8d, byte [rsi + 2]
shl r9d, 6
and r8d, 0x3f
or r8d, r9d
cmp r14b, 0xf0
jb 0x140178ace
lea rcx, [rsi + 4]
mov qword [rbx], rcx
movzx r14d, byte [rsi + 3]
and edx, 7
shl edx, 0x12
shl r8d, 6
and r14d, 0x3f
or r14d, r8d
or r14d, edx
cmp r14d, 0xffff
jbe 0x140178a10
jmp 0x140178ae4
mov word [rbx + 0x10], 0
xor r15d, r15d
jmp 0x140178a16
shl edx, 0xc
or r8d, edx
mov r14d, r8d
cmp r14d, 0xffff
jbe 0x140178a10
lea edx, [r14 + 0xff0000]
shr edx, 0xa
or edx, 0xd800
and r14d, 0x3ff
or r14d, 0xdc00
mov word [rbx + 0x10], r14w
mov rsi, rcx
mov r15d, r14d
mov r14d, edx
jmp 0x140178a16
movzx ecx, r14w
cmp ecx, 0x3b
jne 0x140178b2c
test r13b, 1
je 0x140178b50
mov r13b, 1
mov r14w, 0x3b
cmp rdi, qword [rbp - 0x18]
jne 0x140178b3f
lea rcx, [rbp - 0x18]
call fcn.1401769d0
mov rax, qword [rbp - 0x10]
mov word [rax + rdi*2], r14w
inc rdi
mov qword [rbp - 8], rdi
jmp 0x140178a25
mov byte [rbx + 0x18], 1
test rdi, rdi
setne al
or byte [rbp + 7], al
je 0x140178b9a
mov rdx, qword [rbp - 0x10]
lea rcx, [rbp - 0x40]
mov r8, rdi
call fcn.140157b80
movups xmm0, xmmword [rbp - 0x40]
movups xmm1, xmmword [rbp - 0x30]
mov rax, qword [rbp - 0x20]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
cmp qword [rbp - 0x18], 0
jne 0x140178bb2
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movabs rax, 0x8000000000000000
mov rcx, qword [rbp - 0x20]
mov qword [rcx], rax
cmp qword [rbp - 0x18], 0
je 0x140178b89
mov rcx, qword [rbp - 0x10]
mov edx, 2
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp fcn.14003fe40
Function at 0x140178e50
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, 0x28
lea rbp, [rsp + 0x20]
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 0x140178ebc
movzx r8d, byte [rbx + rcx - 2]
mov r9d, r8d
and r9b, 0xf0
xor r14d, r14d
cmp r9b, 0xa0
jne 0x140178ebc
xor r14d, r14d
cmp byte [rbx + rcx - 3], 0xed
jne 0x140178ebc
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 0x140178f68
cmp byte [rdx], 0xed
jne 0x140178f71
movzx r12d, byte [rdx + 1]
mov r8d, r12d
and r8b, 0xf0
cmp r8b, 0xb0
setne r8b
xor al, 1
or al, r8b
jne 0x140178f71
movzx r13d, byte [rdx + 2]
cmp rbx, 3
jb 0x140178f01
add rbx, 0xfffffffffffffffd
mov qword [rsi + 0x10], rbx
and r13d, 0x3f
shl r12d, 6
lea r8, [rdi + 1]
mov rax, qword [rsi]
sub rax, rbx
cmp rax, r8
jb 0x14017905b
add rdx, 3
mov r15, rdx
and r12d, 0x3c0
or r14d, r13d
or r14d, r12d
add r14d, 0x10000
mov rcx, rsi
mov edx, r14d
call fcn.140158f60
add rdi, 0xfffffffffffffffd
mov rax, qword [rsi]
mov rbx, qword [rsi + 0x10]
sub rax, rbx
cmp rax, rdi
jb 0x140179080
mov rcx, qword [rsi + 8]
add rcx, rbx
mov rdx, r15
jmp 0x14017900e
test rdi, rdi
je 0x140179000
lea rax, [rdx + rdi]
mov r9, rdx
jmp 0x140178f98
add r9, 2
cmp r8, rax
cmovne r8, r9
nop word cs:[rax + rax]
mov r9, r8
cmp r8, rax
je 0x140179000
lea r8, [r9 + 1]
movzx r10d, byte [r9]
test r10b, r10b
jns 0x140178f90
cmp r10b, 0xe0
jb 0x140178f7a
cmp r10b, 0xed
jne 0x140178fcf
cmp r8, rax
je 0x140179000
lea r8, [r9 + 2]
cmp r8, rax
je 0x140179000
cmp byte [r9 + 1], 0x9f
ja 0x140178ffc
add r9, 3
mov r8, r9
jmp 0x140178f90
add r9, 2
cmp r8, rax
cmove r9, r8
xor r8d, r8d
ror byte [rcx + 0x39], 0xc1
setne r8b
add r8, r9
cmp r10b, 0xf0
jb 0x140178f90
xor r9d, r9d
cmp r8, rax
setne r9b
add r8, r9
jmp 0x140178f90
mov byte [rsi + 0x18], 0
mov rax, qword [rsi]
sub rax, rbx
cmp rax, rdi
jb 0x14017902e
add rcx, rbx
mov r8, rdi
call sub.msvcrt.dll_memcpy
add rbx, rdi
mov qword [rsi + 0x10], rbx
add rsp, 0x28
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.140159080
mov rdx, r14
mov rcx, qword [rsi + 8]
mov rbx, qword [rsi + 0x10]
jmp 0x14017900b
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r15, rdx
mov rdx, rbx
call fcn.140159080
mov rdx, r15
jmp 0x140178f1c
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
call fcn.140159080
mov rbx, qword [rsi + 0x10]
jmp 0x140178f59
Function at 0x1401790d0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x14027f678]
movaps xmmword [rbp], xmm0
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0x20
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x140179130
mov rcx, rsi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rbp]
cmp eax, 0xc0000011
jne 0x14017913d
xor edx, edx
xor eax, eax
jmp 0x140179179
cmp eax, 0x103
je 0x140179183
test eax, eax
js 0x140179150
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x140179179
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov rsi, rax
shl rsi, 0x20
or rsi, 2
mov ecx, eax
call fcn.140156450
dec dword [rcx + 0x31d231c1]
rol byte [rax - 0x6af0f407], 0xc0
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, [0x14027f6e8]
adc byte gs:[rax], al

Function at 0x14017b1f0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rsi, qword [rcx]
mov ecx, dword [0x1402a6138]
test ecx, ecx
je 0x14017b24f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
test rax, rax
je 0x14017b25f
mov rax, qword [rsi]
cmp rdi, rax
jne 0x14017b22f
mov eax, dword [rsi + 8]
cmp eax, 0xffffffff
je 0x14017b274
inc eax
mov dword [rsi + 8], eax
jmp 0x14017b244
mov cl, 1
xor eax, eax
lock cmpxchg byte [rsi + 0xc], cl
jne 0x14017b269
mov qword [rsi], rdi
mov dword [rsi + 8], 1
mov rax, rsi
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1402a6120]
call fcn.140153820
mov ecx, eax
jmp 0x14017b20b
call fcn.140155060
mov rdi, rax
jmp 0x14017b218
lea rcx, [rsi + 0xc]
call fcn.140159390
jmp 0x14017b23a
lea rcx, str.lock_count_overflow_in_reentrant_mutexstd_src_sync_reentrant_lock.rs
lea r8, [0x14027eb90]
mov edx, 0x26
call fcn.14006c370
int3

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

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov esi, dword [0x1401a2178]
test esi, esi
je 0x14017b700
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14017b6f7
je 0x14017b6f5
movzx eax, byte [0x1402a6198]
mov edx, 0x10
xor ecx, ecx
call fcn.140188040
test rax, rax
je 0x14017b713
mov qword [rax], 0
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 0x14017b6f0
mov rax, qword [rdi]
test rax, rax
je 0x14017b6e3
lock dec qword [rax]
jne 0x14017b6e3
mov rcx, qword [rdi]
call fcn.14017b730
mov edx, 8
mov rcx, rdi
call fcn.14003fe40
mov rax, rsi
jmp 0x14017b6f7
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1401a2160]
call fcn.140153820
mov esi, eax
jmp 0x14017b67d
mov ecx, 8
mov edx, 0x10
call fcn.14003a45d
int3
Function at 0x14017bcb0
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 [0x1402a60f0]
cmp eax, 3
jne 0x14017be9c
lea rax, [rbp + 0x166]
mov qword [rbp + 0x150], rax
cmp rdi, 0x17f
ja 0x14017beac
lea rbx, [rbp - 0x60]
mov rcx, rbx
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov byte [rbp + rdi - 0x60], 0
lea rax, [rdi + 1]
cmp rdi, 0xe
ja 0x14017bd48
xor edx, edx
nop word cs:[rax + rax]
cmp byte [rbp + rdx - 0x60], 0
je 0x14017be04
inc rdx
cmp rax, rdx
jne 0x14017bd30
jmp 0x14017be67
lea rcx, [rbp - 0x59]
and rcx, 0xfffffffffffffff8
sub rcx, rbx
je 0x14017bd7e
xor edx, edx
nop word [rax + rax]
cmp byte [rbp + rdx - 0x60], 0
je 0x14017be04
inc rdx
cmp rcx, rdx
jne 0x14017bd60
lea rdx, [rdi - 0xf]
cmp rcx, rdx
jbe 0x14017bd82
jmp 0x14017bdd0
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 0x14017bdd0
add rcx, 0x10
cmp rcx, rdx
jbe 0x14017bda0
sub rax, rcx
je 0x14017be67
lea r8, [rcx + rbp]
add r8, 0xffffffffffffffa0
xor edx, edx
nop word cs:[rax + rax]
cmp byte [r8 + rdx], 0
je 0x14017be01
inc rdx
cmp rax, rdx
jne 0x14017bdf0
jmp 0x14017be67
add rdx, rcx
cmp rdx, rdi
jne 0x14017be67
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 0x14017be7b
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x14017be93
lea rax, [0x14027ec70]
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x14017bebe
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
jmp 0x14017bebe
mov rbx, rdx
call fcn.14017c222
mov rdx, rbx
jmp 0x14017bcea
lea r9, [rbp + 0x150]
mov rcx, rsi
mov r8, rdi
call fcn.14017c280
nop
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop rbp
ret