joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c34e0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rdi, rdx
cmp qword [rdx], 0
jne 0x1400c3621
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp r8, rdx
je 0x1400c35f6
sub r8, rdx
add rdx, qword [rbx + 8]
mov rax, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp r8, rcx
cmovae r8, rcx
mov dword [rbp - 0x38], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x38]
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x1400c355f
mov eax, dword [rbp - 0x38]
mov ecx, 2
test rax, rax
je 0x1400c35a0
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
jmp 0x1400c35a4
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x38], rax
movabs rcx, 0xffffffff00000000
and rcx, rax
movabs rdx, 0x6d00000000
cmp rcx, rdx
je 0x1400c35a8
movabs rdx, 0x3e500000000
cmp rcx, rdx
jne 0x1400c35d2
mov rax, rbp
jmp 0x1400c35b4
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x1400c35d8
mov qword [rbp], 1
lea rax, [rbp - 8]
mov qword [rax], 0
lea rcx, [rbp - 0x38]
call fcn.140080b50
mov rcx, qword [rbp]
mov rax, qword [rbp - 8]
cmp rcx, 2
jne 0x1400c35e3
mov qword [rsi + 8], rax
mov al, 1
mov byte [rsi], al
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
test rcx, rcx
jne 0x1400c3548
mov ecx, 1
jmp 0x1400c3552
test r8, r8
mov ecx, 0x10
mov eax, 1
cmove rax, rcx
mov rcx, rbx
mov rdx, r8
mov r8, rax
call fcn.14008fb30
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x1400c3511
mov qword [rbp - 0x38], 0
lea rdx, [rbp - 0x38]
mov rcx, rdi
call fcn.140089320
int3
Function at 0x1400c86f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, rcx
movabs r14, 0x8000000000000000
lea rcx, [rbp - 0x28]
call fcn.1400ca6a0
mov rcx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x20]
cmp rcx, r14
jne 0x1400c872e
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], r14
jmp 0x1400c8754
mov rdx, qword [rbp - 0x18]
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rdx
lea rcx, [rbp - 0x10]
lea rdx, [rbp - 0x40]
call fcn.1400bbf70
mov rdi, qword [rbp - 0x10]
cmp rdi, r14
jne 0x1400c876d
lea rcx, [rbp - 8]
call fcn.140080b50
mov qword [rsi], r14
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov rbx, qword [rbp - 8]
mov r15, qword [rbp]
mov rcx, rbx
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x1400c878f
mov qword [rsi], rdi
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
jmp 0x1400c8760
mov qword [rsi], r14
test rdi, rdi
je 0x1400c8760
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
jmp fcn.140011dc0

Function at 0x1400ca020
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rbx, r8
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x1401a9e18]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.140011db0
test rax, rax
je 0x1400ca0f1
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400ca160]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.kernel32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x1400ca0e3
mov rbx, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, qword [r14]
test rax, rax
je 0x1400ca0a7
mov rcx, rbx
call rax
mov rdx, qword [r14 + 8]
test rdx, rdx
je 0x1400ca0bc
mov r8, qword [r14 + 0x10]
mov rcx, rbx
call fcn.140011dc0
mov edx, 0x10
mov r8d, 8
mov rcx, rsi
call fcn.140011dc0
call sub.kernel32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov ecx, 8
mov edx, 0x10
call fcn.1400f3400
ud2
Function at 0x1400cec50
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 0x1400cece5
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 0x1400ced24
cmp dword [rbp], 0
je 0x1400ced08
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400ced47
mov edi, eax
mov rax, qword [0x1401d0038]
mov rax, qword [0x1401cb1e0]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1401cb1e0], rsi
jne 0x1400cecc0
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 0x1400ced19
call sub.kernel32.dll_TlsAlloc
mov dword [rbp + 4], eax
cmp eax, 0xffffffff
je 0x1400ced89
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x1400ced0d
mov edi, dword [rbp + 4]
jmp 0x1400ced19
mov edi, dword [rsi + 0x18]
jmp 0x1400ced17
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 rdx, [0x14018b5c0]
lea r9, str.library_std_src_sys_thread_localkeywindows.rs
lea rcx, [rbp - 4]
lea r8, [rbp - 0x38]
call fcn.140089250
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
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, str.library_std_src_sys_thread_localkeywindows.rs
lea rcx, [rbp - 0x38]
call fcn.1401001a0
lea rax, str.out_of_TLS_indexes
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.1400892d0
int3
Function at 0x1400cf010
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x208
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 + 0x186], ax
mov eax, dword [0x1401cb1c0]
cmp eax, 4
jne 0x1400cf13e
lea rax, [rbp + 0x186]
mov qword [rbp + 0x170], rax
cmp rdi, 0x17f
ja 0x1400cf164
lea rbx, [rbp - 0x60]
mov rcx, rbx
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov byte [rbp + rdi - 0x60], 0
inc rdi
lea rcx, [rbp + 0x158]
mov rdx, rbx
mov r8, rdi
call fcn.1400fd800
cmp qword [rbp + 0x158], 0
je 0x1400cf0af
lea rax, [0x140189f88]
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1400cf12f
mov rcx, qword [rbp + 0x160]
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 + 0x178], 0
lea r8, [rbp + 0x120]
lea r9, [rbp + 0x178]
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x1400cf110
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x1400cf128
mov rax, qword [rbp + 0x178]
movzx ecx, word [rbp + 0x186]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov rax, rsi
add rsp, 0x208
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rbx, rdx
call fcn.1400b64c0
mov rdx, rbx
lea rax, [rbp + 0x186]
mov qword [rbp + 0x170], rax
cmp rdi, 0x17f
jbe 0x1400cf065
lea r9, [rbp + 0x170]
mov rcx, rsi
mov r8, rdi
call fcn.1400b7290
jmp 0x1400cf12f
Function at 0x1400cf5c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rax, rdx
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
movaps xmmword [rbp - 0x60], xmm0
mov dword [rbp + 0x34], pe_nt_image_headers64
lea rdx, [rbp - 0x60]
lea r8, [rbp + 0x34]
mov rcx, rax
call sub.ws2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x1400cf649
mov eax, dword [rbp + 0x34]
movzx ecx, word [rbp - 0x60]
cmp ecx, 0x17
je 0x1400cf658
cmp ecx, 2
jne 0x1400cf696
cmp eax, 0xf
jbe 0x1400cf6b0
movzx eax, word [rbp - 0x5e]
rol ax, 8
mov ecx, dword [rbp - 0x5c]
mov word [rsi], 0
mov word [rsi + 6], ax
mov dword [rsi + 2], ecx
jmp 0x1400cf6a6
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
jmp 0x1400cf69d
cmp eax, 0x1b
jbe 0x1400cf6c8
movzx eax, word [rbp - 0x5e]
rol ax, 8
mov ecx, dword [rbp - 0x5c]
mov edx, dword [rbp - 0x48]
movups xmm0, xmmword [rbp - 0x58]
movups xmmword [rbp + 0x24], xmm0
mov word [rsi], 1
movups xmm0, xmmword [rbp + 0x22]
movups xmmword [rsi + 2], xmm0
movzx r8d, word [rbp + 0x32]
mov word [rsi + 0x12], r8w
mov dword [rsi + 0x14], ecx
mov dword [rsi + 0x18], edx
mov word [rsi + 0x1c], ax
jmp 0x1400cf6a6
lea rax, str.invalid_argument
mov qword [rsi + 8], rax
mov word [rsi], 2
add rsp, 0xb8
pop rsi
pop rbp
ret
lea rcx, str.assertion_failed:_len___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
lea r8, [0x14018c2b0]
mov edx, 0x39
call fcn.140100220
lea rcx, str.assertion_failed:_len___mem::size_of::_c::sockaddr_in6___
lea r8, [0x14018c308]
mov edx, 0x3a
call fcn.140100220
int3
Function at 0x1400cfb80
Capabilities:
Read file via mapping

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xf0
lea rbp, [rsp + 0x80]
mov rax, r8
mov rsi, rcx
mov dword [rbp + 0x18], 0
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
mov dword [rbp + 0x30], 7
mov qword [rbp + 0x34], 0
mov word [rbp + 0x3c], 0
mov byte [rbp + 0x38], 1
lea r8, [rbp + 0x18]
mov rcx, rdx
mov rdx, rax
call fcn.1400bc3b0
mov rdi, rdx
test rax, rax
je 0x1400cfc07
mov qword [rbp - 0x40], rax
lea rcx, [rbp - 0x38]
mov qword [rbp - 0x38], rdi
call fcn.140080b50
mov qword [rsi], 0
add rsp, 0xf0
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0x18]
mov rdx, rdi
call fcn.1400bc650
cmp dword [rbp + 0x18], 2
jne 0x1400cfc2b
mov rax, qword [rbp + 0x20]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 2
jmp 0x1400cfc62
movups xmm0, xmmword [rbp + 0x18]
movups xmm1, xmmword [rbp + 0x28]
movups xmm2, xmmword [rbp + 0x38]
movups xmm3, xmmword [rbp + 0x48]
movaps xmmword [rbp - 0x40], xmm0
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0x10], rax
movups xmm0, xmmword [rbp + 0x58]
movaps xmmword [rbp], xmm0
movaps xmmword [rbp - 0x10], xmm3
movaps xmmword [rbp - 0x20], xmm2
movaps xmmword [rbp - 0x30], xmm1
cmp qword [rbp - 0x40], 2
jne 0x1400cfc8b
lea rcx, [rbp - 0x38]
call fcn.140080b50
mov qword [rsi], 0
mov rcx, rdi
add rsp, 0xf0
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
jmp sub.kernel32.dll_CloseHandle
mov r12, qword [rbp - 8]
test rdi, rdi
je 0x1400cfcd9
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, rdi
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x1400cfd55
mov rbx, qword [rbp - 0x40]
jmp 0x1400cfcdb
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 0x1400cfd44
mov r14, rax
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 0x1400cfd44
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x1400cfd7e
mov qword [rsi], 0
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
jmp 0x1400cfd7e
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x18], 1
lea rcx, [rbp + 0x20]
mov qword [rbp + 0x20], rax
call fcn.140080b50
mov qword [rsi], 0
mov rcx, rdi
call sub.kernel32.dll_CloseHandle
jmp 0x1400cfbf5
Function at 0x1400d4b90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rdi, rcx
mov esi, dword [0x140118290]
test esi, esi
je 0x1400d4c52
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x1400d4c47
je 0x1400d4be4
xor ebx, ebx
test rdi, rdi
je 0x1400d4be8
mov r14, qword [rdi]
mov qword [rdi], 0
test r14, r14
cmovne ebx, dword [rdi + 0x10]
cmovne r14, qword [rdi + 8]
jmp 0x1400d4beb
xor eax, eax
jmp 0x1400d4c47
xor r14d, r14d
mov rax, qword [0x1401a9e18]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call fcn.140011db0
test rax, rax
je 0x1400d4c73
mov qword [rax], r14
mov byte [rax + 8], bl
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 0x1400d4c44
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call fcn.140011dc0
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, [0x140118278]
call fcn.1400cec50
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400d4bc3
jmp 0x1400d4c47
mov ecx, 8
mov edx, 0x18
call fcn.1400f3400
int3

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

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rdi, rcx
mov esi, dword [0x1401182b0]
test esi, esi
je 0x1400d4cc6
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400d4ce1
add rax, 4
jmp 0x1400d4d5d
lea rcx, [0x140118298]
call fcn.1400cec50
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x1400d4cbd
je 0x1400d4d5b
xor r14d, r14d
test rdi, rdi
je 0x1400d4cfc
cmp byte [rdi], 0
mov byte [rdi], 0
movzx eax, byte [rdi + 1]
cmove eax, r14d
mov r14d, eax
mov rax, qword [0x1401a9e18]
movzx eax, byte [rax]
mov ecx, 8
mov edx, 4
call fcn.140011db0
test rax, rax
je 0x1400d4d6a
mov rbx, rax
mov dword [rax], esi
add rax, 4
mov r15, rax
mov byte [rbx + 4], r14b
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x1400d4d56
mov edx, 8
mov r8d, 4
mov rcx, rdi
call fcn.140011dc0
mov rax, r15
jmp 0x1400d4d5d
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov ecx, 4
mov edx, 8
call fcn.1400f3400
int3
Function at 0x1400d4d80
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 [0x1401182f0]
test esi, esi
je 0x1400d4e52
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x1400d4e49
je 0x1400d4dcd
test rdi, rdi
je 0x1400d4dd1
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x1400d4dd3
mov rbx, qword [rdi + 8]
jmp 0x1400d4dd3
xor eax, eax
jmp 0x1400d4e49
xor ebx, ebx
mov qword [rbp - 8], rbx
mov dword [rbp], esi
mov rax, qword [0x1401a9e18]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.140011db0
test rax, rax
je 0x1400d4e73
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 0x1400d4e46
mov rax, qword [rdi]
test rax, rax
je 0x1400d4e33
lock dec qword [rax]
jne 0x1400d4e33
mov rcx, rdi
call fcn.14008f870
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.140011dc0
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1401182d8]
call fcn.1400cec50
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400d4db1
jmp 0x1400d4e49
mov ecx, 8
mov edx, 0x10
call fcn.1400f3400
ud2

Function at 0x1400d4eb0
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 rdi, rcx
mov esi, dword [0x140118330]
test esi, esi
je 0x1400d4f61
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x1400d4f58
je 0x1400d4ef9
test rdi, rdi
je 0x1400d4efd
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x1400d4eff
mov rbx, qword [rdi + 8]
jmp 0x1400d4eff
xor eax, eax
jmp 0x1400d4f58
xor ebx, ebx
mov rax, qword [0x1401a9e18]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.140011db0
test rax, rax
je 0x1400d4f82
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 0x1400d4f55
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.140011dc0
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140118318]
call fcn.1400cec50
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400d4edd
jmp 0x1400d4f58
mov ecx, 8
mov edx, 0x10
call fcn.1400f3400
int3
Function at 0x1400d4fa0
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 [0x140118350]
test esi, esi
je 0x1400d5072
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x1400d5069
je 0x1400d4fed
test rdi, rdi
je 0x1400d4ff1
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x1400d4ff3
mov rbx, qword [rdi + 8]
jmp 0x1400d4ff3
xor eax, eax
jmp 0x1400d5069
xor ebx, ebx
mov qword [rbp - 8], rbx
mov dword [rbp], esi
mov rax, qword [0x1401a9e18]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.140011db0
test rax, rax
je 0x1400d5093
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 0x1400d5066
mov rax, qword [rdi]
test rax, rax
je 0x1400d5053
lock dec qword [rax]
jne 0x1400d5053
mov rcx, rdi
call fcn.14008f620
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.140011dc0
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140118338]
call fcn.1400cec50
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400d4fd1
jmp 0x1400d5069
mov ecx, 8
mov edx, 0x10
call fcn.1400f3400
ud2
Function at 0x140108f80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x14010900a
mov rax, rdx
mov rdx, qword [rbp + 0x50]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140109000
cmp r10, r11
jb 0x140109086
cmp r10, rdx
ja 0x140109098
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x140109002
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140108fe0
jmp 0x140109067
ja 0x14010900a
mov r11, r10
cmp rax, r8
jne 0x140108fa7
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x14010906b
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140109040
mov r8, r10
sub ecx, r9d
jns 0x14010905e
jmp 0x14010906d
cmp r10, rdx
je 0x14010907a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14010906d
xor al, 1
cmp r8, rdx
jne 0x140109020
jmp 0x14010906d
xor eax, eax
jmp 0x14010906d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, [0x14019ec08]
call fcn.1400fffa0
lea r8, [0x14019ec20]
mov rcx, r11
mov rdx, r10
call fcn.1401064c0
lea r8, [0x14019ec20]
mov rcx, r10
call fcn.140106450
int3

Function at 0x140116ad0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1401178a0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1401178a0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140116b40
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401cb274]
mov rbx, rcx
test esi, esi
jle 0x140116c70
mov rax, qword [0x1401cb278]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140116b8b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140116c15
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140116b70
mov rcx, rbx
call fcn.1401175c0
mov rdi, rax
test rax, rax
je 0x140116c92
mov rax, qword [0x1401cb278]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140117700
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401cb278]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140116c77
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140116c0e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140116c20
add dword [0x1401cb274], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1401cb278]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x140116c0e
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140116ad0
nop dword [rax]
xor esi, esi
jmp 0x140116b98
mov rax, qword [0x1401cb278]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140116ad0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140116ad0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140117230
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1401cb2e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401cb2c0]
test rbx, rbx
je 0x14011728c
mov rbp, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rdi, qword [sym.imp.kernel32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140117283
test eax, eax
jne 0x140117283
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140117268
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1401175c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1401a9d30]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1401175e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1401175e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1401175e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14011763d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140117634
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1401175e0
add rax, 0x28
cmp rax, r9
jne 0x140117620
xor eax, eax
ret

Function at 0x140117640
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1401a9d30]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14011765f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140117668
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14011765f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140117700
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1401a9d30]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14011771f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140117728
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret