joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18004b0e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1c8]
add rdx, 0x698
mov rbx, rcx
cmp dword [rax + 0x10], 0
je 0x18004b138
cmp qword [rdx + 0xb8], 0
je 0x18004b138
xor r9d, r9d
mov qword [rsp + 0x30], rdi
lea r8, str.REST__d
call fcn.1800634a0
mov edi, eax
test eax, eax
jne 0x18004b12d
mov dl, 0x1a
mov rcx, rbx
call fcn.1800493d0
mov eax, edi
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.18004ac80

Function at 0x18004b5f0
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbp, qword [rcx + 0x18]
lea eax, [rdx - 0xc8]
xor edi, edi
movzx esi, r8b
mov rbx, rcx
cmp eax, 0x64
jb 0x18004b630
lea rdx, str.Couldnt_set_desired_mode
call fcn.18001e7e0
lea eax, [rdi + 0x11]
jmp 0x18004b794
cmp edx, 0xc8
je 0x18004b647
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.18001e8d0
cmp sil, 0x13
jne 0x18004b65d
mov rdx, rbp
mov rcx, rbx
call fcn.18004b300
jmp 0x18004b790
cmp sil, 0x14
jne 0x18004b772
cmp byte [rbx + 0x700], 2
mov rbp, qword [rbx + 0x18]
jne 0x18004b6db
mov rax, qword [rbx + 0x1c8]
mov rcx, qword [rax]
test rcx, rcx
je 0x18004b6db
xor r9d, r9d
mov qword [rsp + 0x40], rdi
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], 3
xor edx, edx
call fcn.18002a360
test eax, eax
jne 0x18004b790
mov rcx, qword [rsp + 0x40]
lea edx, [rax + 0x2f]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x18004b6d0
mov rdi, qword [rsp + 0x40]
mov ecx, 1
sub rax, rdi
cmovne rcx, rax
mov byte [rcx + rdi], 0
jmp 0x18004b6db
mov rcx, qword [rsp + 0x40]
call qword [fcn.18006b280]
mov rdx, qword [rbx + 0x808]
test rdx, rdx
jne 0x18004b700
cmp byte [rbx + 0x1329], 0
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x18006edc6]
test rdi, rdi
mov r9, r8
lea rax, [0x18006fc6c]
cmovne r9, rdi
lea rcx, [0x18007061c]
cmovne r8, rax
call fcn.180025200
mov rcx, rdi
mov rsi, rax
call qword [fcn.18006b280]
test rsi, rsi
jne 0x18004b73e
lea edi, [rsi + 0x1b]
jmp 0x18004b792
lea rdx, [rbp + 0x698]
mov r9, rsi
lea r8, [0x18006ddac]
mov rcx, rbx
call fcn.1800634a0
mov rcx, rsi
mov edi, eax
call qword [fcn.18006b280]
test edi, edi
jne 0x18004b792
mov dl, 0x1f
mov rcx, rbx
call fcn.1800493d0
jmp 0x18004b792
cmp sil, 0x15
jne 0x18004b77d
mov r8b, reloc.WS2_32.dll_listen
jmp 0x18004b786
cmp sil, 0x16
jne 0x18004b792
mov r8b, ntohs
mov dl, 1
mov rcx, rbx
call fcn.18004ae40
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180053340
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x18008a8c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, r8
mov rsi, rdx
mov r13, rcx
cmp r8, 4
jb 0x1800534ce
inc rsi
lea rdx, str.0123456789abcdefABCDEF:.
mov rcx, rsi
sub rdi, 2
call sub.api_ms_win_crt_string_l1_1_0.dll_strspn
cmp rdi, rax
je 0x180053444
cmp byte [rsi + rax], 0x25
lea r14, [rsi + rax]
mov rdi, rax
jne 0x1800534ce
xor ebp, ebp
lea rdx, [0x180079d74]
lea rcx, [r14 + 1]
lea rbx, [r14 + 1]
lea r8d, [rbp + 2]
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
test eax, eax
jne 0x1800533d2
movzx eax, byte [r14 + 3]
lea rcx, [r14 + 3]
test al, al
je 0x1800533d2
cmp al, 0x5d
cmovne rbx, rcx
movzx eax, byte [rbx]
test al, al
je 0x1800534ce
mov rcx, rbp
cmp al, 0x5d
je 0x1800533fd
cmp rcx, 0xf
jge 0x1800533fd
inc rbx
mov byte [rsp + rcx + 0x20], al
inc ebp
inc rcx
movzx eax, byte [rbx]
test al, al
jne 0x1800533e0
test ebp, ebp
je 0x1800534ce
cmp byte [rbx], 0x5d
jne 0x1800534ce
movsxd rax, ebp
cmp rax, 0x10
jae 0x1800534ef
lea rcx, [rsp + 0x20]
mov byte [rsp + rax + 0x20], 0
call qword [case.0x180018ffc.1]
mov qword [r13 + 0x28], rax
test rax, rax
jne 0x18005343e
mov eax, 7
jmp 0x1800534d3
mov word [r14], 0x5d
lea r8, [rsp + 0x20]
mov byte [rdi + rsi], 0
mov rdx, rsi
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1800534ce
lea r9d, [rax + 0x2d]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
lea ecx, [rax + 0x16]
call sub.WS2_32.dll_inet_ntop
test rax, rax
je 0x1800534c6
lea rax, [rsp + 0x30]
mov rdx, 0xffffffffffffffff
inc rdx
cmp byte [rax + rdx], 0
jne 0x180053487
cmp rdx, rdi
jae 0x1800534c6
lea rax, [rsp + 0x30]
mov r8, rsi
sub r8, rax
lea rcx, [rsp + 0x30]
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [r8 + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1800534b0
mov rdi, rdx
mov byte [rdx + rsi + 1], al
mov byte [rdi + rsi], 0x5d
xor eax, eax
jmp 0x1800534d3
mov eax, socket
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18006a1c0
add rsp, 0x70
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.18006a798
int3
Function at 0x180065ed0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov rsi, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [section..data]
mov rbx, rax
test rax, rax
jne 0x180065f13
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rdi
mov qword [rbx + 0x10], rax
lea rdi, [rbp + 8]
mov qword [rsp + 0x50], r14
cmp r15d, dword [rbp + 0x1c]
jbe 0x180065f60
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, rsi
call qword [rdi]
mov esi, dword [rbp + 0x18]
add rsi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rsi
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor r14d, r14d
test r15, r15
je 0x180065fc2
mov r14, r15
nop dword [rax]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rdi]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea rsi, [rsi + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rdi]
sub r15, 1
jne 0x180065f80
lea rdi, [rbp + 8]
mov eax, dword [rbp + 0x1c]
cmp r14, rax
jae 0x180066001
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x18007d651]
mov r8d, 1
call qword [rdi]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x18007d652]
mov r8d, 1
call qword [rdi]
mov eax, dword [rbp + 0x1c]
inc r14
cmp r14, rax
jb 0x180065fd0
mov r14, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret
Function at 0x1800661f0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x18008a8c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, r8
mov dword [rsp + 0x20], 0xf0000040
mov rsi, rdx
mov rdi, rcx
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
mov r9d, 0x18
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x18006623c
mov eax, 0x1b
jmp 0x18006630e
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x180066280
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov qword [rsp + 0x38], 0
jmp 0x18006630e
mov rcx, rbp
call fcn.180022a90
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, eax
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0
lea edx, [r8 + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x20
jne 0x1800662ea
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, rdi
mov dword [rsp + 0x20], 0
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1800662fa
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x18006630c
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18006a1c0
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x1800670d0
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x180067135
nop dword [rax + rax]
movzx r8d, byte [r10]
lea r10, [r10 + 1]
movzx eax, r8b
movzx r9d, r8b
shr r9b, 1
and al, 0xfe
not r9b
movzx eax, al
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
or r8b, 1
test r9b, 2
movzx ecx, r8b
cmove ecx, eax
mov byte [r10 - 1], cl
sub rdx, 1
jne 0x1800670e0
ret
Function at 0x140011195
Capabilities:
Change the wallpaper

Disassembly:
jmp 0x140015890
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x140029119]
call fcn.140011627
mov rcx, qword [rbp + 0x100]
call fcn.1400110aa
mov r9d, 3
mov r8, rax
xor edx, edx
mov ecx, 0x14
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x14001590a
lea rdx, str.Fondo_de_escritorio_cambiado_exitosamente.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400110c8
mov qword [rbp + 0xd8], rax
lea rdx, [0x14001104b]
mov rcx, qword [rbp + 0xd8]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140015938
lea rdx, str.Error_al_cambiar_el_fondo_de_escritorio.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400110c8
mov qword [rbp + 0xd8], rax
lea rdx, [0x14001104b]
mov rcx, qword [rbp + 0xd8]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x140011375
Capabilities:
Terminate process

Disassembly:
jmp 0x140017990
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011460
Capabilities:
Parse pe header

Disassembly:
jmp 0x140018ce0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140018d00
xor al, al
jmp 0x140018d81
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140018d13
xor al, al
jmp 0x140018d81
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140018d3d
xor al, al
jmp 0x140018d81
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140018d51
xor al, al
jmp 0x140018d81
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140018d63
xor al, al
jmp 0x140018d81
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140018d7f
xor al, al
jmp 0x140018d81
mov al, 1
add rsp, 0x38
ret
Function at 0x140001a70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
sub rsp, 0x78
lea rbp, [rsp + 0x70]
call fcn.140038840
lea rdx, [0x140010e20]
xor ecx, ecx
call sub.KERNEL32.dll_AddVectoredExceptionHandler
mov dword [rbp - 0x40], 0x5000
lea rcx, [rbp - 0x40]
call sub.KERNEL32.dll_SetThreadStackGuarantee
call sub.KERNEL32.dll_GetCurrentThread
mov r8, qword [0x14003a008]
lea rdx, [0x141a9bc20]
mov rcx, rax
call r8
mov ecx, dword [0x141aa20d8]
test ecx, ecx
je 0x140001acf
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x140001aec
jmp 0x140001ae7
lea rcx, [0x141aa20c0]
call fcn.14000ecf0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x140001aec
call fcn.140011000
mov rsi, rax
movzx eax, byte [0x141aa2030]
mov ecx, 0x38
call fcn.140034ef0
test rax, rax
je 0x140001cc1
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], 0
mov qword [rax + 0x28], rsi
mov byte [rax + 0x30], 0
mov qword [rbp - 0x40], rax
mov ecx, dword [0x141aa20f8]
test ecx, ecx
je 0x140001b86
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x140001b9e
mov ecx, dword [0x141aa20d8]
test ecx, ecx
je 0x140001bf5
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140001c11
mov rsi, qword [rbp - 0x40]
cmp qword [rsi + 0x28], rax
jne 0x140001ba2
mov rax, qword [0x141aa4038]
mov ecx, dword [0x141aa20f8]
test ecx, ecx
je 0x140001c56
dec ecx
jmp 0x140001c64
lea rcx, [0x141aa20e0]
call fcn.14000ecf0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140001b42
mov rsi, qword [rbp - 0x40]
mov qword [rbp - 0x48], rsi
mov dword [rbp - 8], 0
mov byte [rbp - 4], 0
lea rax, [0x141a9a8a0]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
mov rax, rbp
mov qword [rbp - 0x30], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
lea rcx, [rbp - 8]
lea rdx, [rbp - 0x40]
call fcn.14000eec0
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 0x10]
call fcn.14000f000
mov ecx, 7
int 0x29
ud2
lea rcx, [0x141aa20c0]
call fcn.14000ecf0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x140001b60
mov rax, qword [rbp - 0x40]
mov rsi, qword [rax + 0x28]
mov ecx, dword [0x141aa20d8]
test ecx, ecx
je 0x140001c27
dec ecx
jmp 0x140001c35
lea rcx, [0x141aa20c0]
call fcn.14000ecf0
mov ecx, eax
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov rsi, qword [rbp - 0x40]
mov rax, qword [0x141aa4038]
mov ecx, dword [0x141aa20f8]
test ecx, ecx
jne 0x140001b7f
lea rcx, [0x141aa20e0]
call fcn.14000ecf0
mov ecx, eax
add rsi, 0x10
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
lea rcx, [0x1400014c0]
call fcn.140001440
mov eax, dword [0x141aa2034]
cmp eax, 3
je 0x140001cb8
mov byte [rbp - 0x10], 1
lea rax, [rbp - 0x10]
mov qword [rbp - 0x40], rax
lea rax, [0x141a9a8c0]
mov qword [rsp + 0x20], rax
lea rcx, [0x141aa2034]
lea r9, [0x141a9af08]
lea r8, [rbp - 0x40]
xor edx, edx
call fcn.140011070
xor eax, eax
add rsp, 0x78
pop rsi
pop rbp
ret
mov ecx, 8
mov edx, 0x38
call fcn.140001f5d
ud2
Function at 0x14000b440
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x14000b465
cmp rax, rcx
je 0x14000b46b
cmp rdx, 4
jae 0x14000b46f
xor eax, eax
xor r8d, r8d
jmp 0x14000b500
pop rbp
jmp fcn.140002bd0
xor eax, eax
pop rbp
ret
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14003b3c0]
movdqa xmm3, xmmword [0x14003b3d0]
pxor xmm1, xmm1
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14000b490
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14000b517
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14000b500
pop rbp
ret

Function at 0x14000ecf0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, rcx
cmp qword [rcx], 0
je 0x14000ed85
mov dword [rbp], 0
lea rbx, [rsi + 0x10]
mov r8, rbp
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
mov dword [rbp - 4], eax
cmp eax, 1
jne 0x14000edc4
cmp dword [rbp], 0
je 0x14000eda8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14000edd9
mov edi, eax
mov rax, qword [0x141aa4038]
mov rax, qword [0x141aa20b8]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x141aa20b8], rsi
jne 0x14000ed60
mov eax, edi
inc eax
mov dword [rsi + 0x18], eax
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x14000edb9
call sub.KERNEL32.dll_TlsAlloc
mov dword [rbp + 4], eax
cmp eax, 0xffffffff
je 0x14000ee1b
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x14000edad
mov edi, dword [rbp + 4]
jmp 0x14000edb9
mov edi, dword [rsi + 0x18]
jmp 0x14000edb7
mov edi, eax
mov ecx, dword [rbp + 4]
call sub.KERNEL32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov qword [rbp - 0x38], 0
lea rcx, [rbp - 4]
lea rdx, [rbp - 0x38]
call fcn.1400103d7
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
lea rax, [0x141a9bf00]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rdx, [0x141a9bf38]
lea rcx, [rbp - 0x38]
call fcn.140002910
lea rax, [0x141a9bf00]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 4]
lea rdx, [rbp - 0x38]
call fcn.14001041e
int3
Function at 0x14000f6f0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x141a9b778]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x14000f75f
mov rcx, rsi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rbp]
cmp eax, 0x103
je 0x14000f78b
test eax, eax
js 0x14000f76b
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x14000f781
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, [0x141a9b7e0]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.14000eec0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.14000f000
mov ecx, 7
int 0x29
ud2

Function at 0x1400102a0
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 [0x14003a060]
test esi, esi
je 0x14001032c
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140010323
je 0x140010321
movzx eax, byte [0x141aa2030]
mov ecx, 0x18
call fcn.140034ef0
test rax, rax
je 0x14001034d
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 0x14001031c
mov rcx, qword [0x141aa20b0]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov rax, rsi
jmp 0x140010323
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x14003a048]
call fcn.14000ecf0
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400102c6
jmp 0x140010323
mov ecx, 8
mov edx, 0x18
call fcn.140001f5d
int3

Function at 0x140011000
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rsi
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rax, qword [0x141aa20a8]
nop word cs:[rax + rax]
cmp rax, 0xffffffffffffffff
je 0x140011063
lea rsi, [rax + 1]
lock cmpxchg qword [0x141aa20a8], rsi
jne 0x140011020
mov ecx, dword [0x141aa20d8]
test ecx, ecx
je 0x140011053
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov rax, rsi
add rsp, 0x28
pop rsi
pop rbp
ret
lea rcx, [0x141aa20c0]
call fcn.14000ecf0
mov ecx, eax
jmp 0x140011041
call fcn.140011980
int3
Function at 0x140011240
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 0x1400113a4
mov byte [rbp + 7], 0
mov eax, dword [0x141aa2070]
cmp eax, 3
jne 0x1400112a8
cmp byte [rbp + 7], 0
jne 0x14001139c
mov ecx, dword [0x141aa20d8]
test ecx, ecx
je 0x1400112bc
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x1400112d4
mov rcx, qword [0x141aa2038]
cmp rax, rcx
jne 0x1400112e5
mov eax, dword [0x141aa2040]
cmp eax, 0xffffffff
je 0x14001139c
inc eax
jmp 0x140011306
lea rcx, [rbp + 7]
call fcn.140011403
cmp byte [rbp + 7], 0
je 0x140011273
jmp 0x14001139c
lea rcx, [0x141aa20c0]
call fcn.14000ecf0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x140011289
call fcn.140011000
mov rcx, qword [0x141aa2038]
cmp rax, rcx
je 0x140011295
mov rcx, rax
mov dl, 1
xor eax, eax
lock cmpxchg byte [0x141aa2044], dl
jne 0x14001139c
mov qword [0x141aa2038], rcx
mov eax, 1
mov dword [0x141aa2040], 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 [0x141aa2048], 0
jne 0x1400113b0
mov qword [0x141aa2048], 0xffffffffffffffff
lea rcx, [0x141aa2050]
call fcn.1400114b0
movups xmm0, xmmword [rbp - 0x20]
movups xmm1, xmmword [rbp - 0x10]
movups xmmword [0x141aa2060], xmm1
movups xmmword [0x141aa2050], xmm0
inc qword [0x141aa2048]
dec dword [0x141aa2040]
jne 0x14001139c
mov qword [0x141aa2038], 0
xor eax, eax
xchg byte [0x141aa2044], al
cmp al, 2
jne 0x14001139c
lea rcx, [0x141aa2044]
call sub.api_ms_win_core_synch_l1_2_0.dll_WakeByAddressSingle
nop
add rsp, 0x48
pop rsi
pop rbp
ret
lea rcx, [0x141a9af48]
call fcn.140004640
call fcn.140003de0
ud2