joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c7d2c
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rdi, rdx
mov qword [rsp + 0x38], rcx
lea rdx, [rsp + 0x40]
mov qword [rdx], r8
add r8, 0xb
mov qword [rdx + 8], r8
mov word [rdx + 0x10], 0
mov dword [rdx + 0x18], 1
lea rcx, [rsp + 0x60]
call fcn.1400d1431
mov dword [rsp + 0x30], 0x800
mov dword [rsp + 0x34], 0
mov al, byte [0x1401d2160]
mov edx, 0x800
xor ecx, ecx
call fcn.140101e80
test rax, rax
je 0x1400c7eae
mov r14, rax
lea rbx, [rsp + 0x40]
mov qword [rbx], 0x800
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], 0
mov r15, qword [rsp + 0x68]
lea rbp, [rsp + 0x30]
lea r12, [rsp + 0x34]
mov rsi, qword [rsp + 0x40]
mov r13, qword [rsp + 0x50]
sub rsi, r13
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], r14
mov rcx, rdi
mov rdx, r15
xor r8d, r8d
mov r9, r12
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
jne 0x1400c7e0b
mov r8d, dword [rsp + 0x30]
cmp rsi, r8
jae 0x1400c7dcd
mov rcx, rbx
mov rdx, r13
call fcn.14010720a
mov r14, qword [rsp + 0x48]
jmp 0x1400c7dc0
test eax, eax
jne 0x1400c7e2d
mov eax, dword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x34]
cmp eax, 0xb
jbe 0x1400c7e68
movabs rax, 0xde00000002
jmp 0x1400c7e35
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x38]
mov qword [rcx + 8], rax
movabs rax, 0x8000000000000000
mov qword [rcx], rax
cmp qword [rsp + 0x40], 0
je 0x1400c7e81
mov r8, qword [rsp + 0x48]
mov rcx, qword [0x1401d2118]
xor edx, edx
call fcn.1401220e0
jmp 0x1400c7e81
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x38]
mov qword [rdx + 0x10], rcx
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rdx], xmm0
mov byte [rdx + 0x18], al
cmp qword [rsp + 0x60], 0
je 0x1400c7e9c
mov r8, qword [rsp + 0x68]
mov rcx, qword [0x1401d2118]
xor edx, edx
call fcn.1401220e0
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 1
mov edx, 0x800
call fcn.1400285b0
int3
Function at 0x1400ce3b0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x1400ce3d5
cmp rax, rcx
je 0x1400ce3db
cmp rdx, 4
jae 0x1400ce3e2
xor eax, eax
xor r8d, r8d
jmp 0x1400ce480
pop rbp
jmp fcn.140038c70
xor eax, eax
jmp 0x1400ce497
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140132a30]
movdqa xmm3, xmmword [0x140132a40]
pxor xmm1, xmm1
nop word cs:[rax + rax]
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 0x1400ce410
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x1400ce497
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x1400ce480
pop rbp
ret
Function at 0x1400cf360
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov r10, qword [rcx]
test r10, r10
je 0x1400cf3e4
mov r11, qword [rcx + 8]
mov r8, qword [rcx + 0x10]
cmp r8, r11
jae 0x1400cf3e4
movzx eax, byte [r10 + r8]
cmp eax, 0x49
mov rbx, rcx
je 0x1400cf3fd
cmp eax, 0x42
jne 0x1400cf3e4
lea rsi, [r8 + 1]
mov qword [rcx + 0x10], rsi
mov r9b, 1
cmp rsi, r11
jae 0x1400cf52d
cmp byte [r10 + rsi], 0x5f
jne 0x1400cf4bc
lea rax, [r8 + 2]
mov qword [rcx + 0x10], rax
xor eax, eax
cmp rax, r8
jae 0x1400cf52d
mov edx, dword [rcx + 0x18]
inc edx
cmp edx, 0x1f4
jbe 0x1400cf587
mov dil, 1
xor r9d, r9d
jmp 0x1400cf52f
xor edx, edx
call fcn.1400cae30
mov esi, eax
add sil, sil
mov eax, esi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
inc r8
mov qword [rcx + 0x10], r8
xor edx, edx
call fcn.1400cae30
test al, al
jne 0x1400cf56d
mov rdx, rbx
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1400cf43c
lea rdx, [0x1401912bb]
mov r8d, 1
call fcn.1400393d0
mov rdx, rbx
test al, al
jne 0x1400cf56d
mov rax, qword [rdx]
mov sil, 1
test rax, rax
je 0x1400cf3f0
xor r14d, r14d
lea rdi, [0x140191611]
nop word cs:[rax + rax]
mov rcx, qword [rdx + 0x10]
cmp rcx, qword [rdx + 8]
jae 0x1400cf474
cmp byte [rax + rcx], 0x45
je 0x1400cf5c0
sub r14, 1
jb 0x1400cf49c
mov rcx, qword [rdx + 0x20]
test rcx, rcx
je 0x1400cf49c
mov r8d, 2
mov rdx, rdi
call fcn.1400393d0
mov rdx, rbx
test al, al
jne 0x1400cf56d
mov rcx, rdx
call fcn.1400cc690
test al, al
jne 0x1400cf56d
mov rdx, rbx
mov rax, qword [rbx]
test rax, rax
jne 0x1400cf460
jmp 0x1400cf3f0
xor eax, eax
mov r14d, 0x3e
nop word cs:[rax + rax]
movzx edx, byte [r10 + rsi]
cmp dl, 0x5f
je 0x1400cf51d
lea edi, [rdx - 0x30]
cmp dil, 0xa
jb 0x1400cf4ff
lea edi, [rdx - 0x61]
cmp dil, 0x1a
jae 0x1400cf4f1
add dl, 0xa9
jmp 0x1400cf4fd
lea edi, [rdx - 0x41]
cmp dil, 0x1a
jae 0x1400cf52d
add dl, 0xe3
mov edi, edx
inc rsi
mov qword [rcx + 0x10], rsi
mul r14
jo 0x1400cf52d
movzx edx, dil
xor edi, edi
add rax, rdx
jb 0x1400cf52f
cmp rsi, r11
jb 0x1400cf4d0
jmp 0x1400cf52f
inc rsi
mov qword [rcx + 0x10], rsi
inc rax
jne 0x1400cf3bf
xor edi, edi
mov rax, qword [rcx + 0x20]
test rax, rax
je 0x1400cf575
mov ecx, r9d
xor cl, 1
movzx ecx, cl
lea r8, [rcx + rcx*8]
add r8, 0x10
lea rcx, str.invalid_syntaxrecursion_limit_reached_for_____::closureshim_as_mut_const___dyn___unsafe_extern___r
lea rdx, [0x1401915f0]
test r9b, r9b
cmovne rdx, rcx
mov rcx, rax
call fcn.1400393d0
mov rcx, rbx
test al, al
je 0x1400cf575
mov sil, 2
jmp 0x1400cf3f0
mov qword [rcx], 0
mov byte [rcx + 8], dil
xor esi, esi
jmp 0x1400cf3f0
cmp qword [rcx + 0x20], 0
je 0x1400cf580
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movaps xmmword [rbp - 0x10], xmm1
movaps xmmword [rbp - 0x20], xmm0
mov qword [rcx + 0x10], rax
mov dword [rcx + 0x18], edx
mov rsi, rcx
call fcn.1400cf360
movaps xmm0, xmmword [rbp - 0x20]
movaps xmm1, xmmword [rbp - 0x10]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x1400cf3f2
inc rcx
mov qword [rdx + 0x10], rcx
jmp 0x1400cf3f0
Function at 0x1400d19a6
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
movabs rax, 0x8000000000000000
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x60], 4
mov dword [rsp + 0xa8], 0x400010
cmp qword [rcx + 0x18], rax
je 0x1400d1a12
mov edx, dword [rcx + 0x28]
mov dword [rsp + 0x88], edx
mov rdx, qword [rcx + 0x20]
mov qword [rsp + 0x90], rdx
cmp qword [rcx + 0x30], rax
je 0x1400d1a4d
mov rax, qword [rcx + 0x40]
test rax, rax
je 0x1400d1a44
mov r8, qword [rcx + 0x38]
xor edx, edx
lea r9, [0x1401bfcd0]
xor r10d, r10d
movzx r11d, byte [r8 + r10]
or edx, dword [r9 + r11*4]
inc r10
cmp rax, r10
jne 0x1400d1a31
jmp 0x1400d1a46
xor edx, edx
mov dword [rsp + 0x98], edx
mov r14, qword [rcx + 0x10]
test r14, r14
je 0x1400d1a95
mov rbx, qword [rcx + 8]
lea rdi, [r14*8]
mov al, byte [0x1401d2160]
xor ecx, ecx
mov rdx, rdi
call fcn.140101e80
test rax, rax
je 0x1400d1b59
mov rsi, rax
xor eax, eax
mov rcx, qword [rbx + rax*8]
mov qword [rsi + rax*8], rcx
inc rax
cmp r14, rax
jne 0x1400d1a80
mov eax, r14d
jmp 0x1400d1a9c
xor eax, eax
mov esi, 8
lea rcx, [rsp + 0x60]
mov dword [rcx + 4], eax
mov qword [rcx + 8], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x40], 0
lea rdx, [0x14019198b]
xor ecx, ecx
mov r8d, 2
xor r9d, r9d
call sub.secur32.dll_AcquireCredentialsHandleA
test eax, eax
je 0x1400d1af4
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov ebx, 1
jmp 0x1400d1b2e
mov rbx, qword [rsp + 0x50]
mov r15, qword [rsp + 0x58]
mov al, byte [0x1401d2160]
mov edx, 0x20
xor ecx, ecx
call fcn.140101e80
test rax, rax
je 0x1400d1b66
mov rdi, rax
mov eax, 1
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], r15
xor ebx, ebx
test r14, r14
je 0x1400d1b44
mov rcx, qword [0x1401d2118]
xor edx, edx
mov r8, rsi
call fcn.1401220e0
mov rax, rbx
mov rdx, rdi
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, 8
mov rdx, rdi
call fcn.1400285b0
mov ecx, 8
mov edx, 0x20
call fcn.140028610
int3

Function at 0x1400d2301
Capabilities:
Get remote cert context via schannel

Disassembly:
sub rsp, 0x28
lea r8, [rsp + 0x20]
mov qword [r8], 0
mov edx, 0x53
call sub.secur32.dll_QueryContextAttributesW
mov edx, eax
xor eax, eax
test edx, edx
setne cl
jne 0x1400d232d
mov rdx, qword [rsp + 0x20]
jmp 0x1400d2335
shl rdx, 0x20
or rdx, 2
mov al, cl
add rsp, 0x28
ret
Function at 0x1400d3e20
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x140194358]
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 0x1400d3e8f
mov rcx, rsi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rbp]
cmp eax, 0x103
je 0x1400d3ebb
test eax, eax
js 0x1400d3e9b
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x1400d3eb1
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, [0x1401943b8]
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.1400d3740
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.1400d37c0
mov ecx, 7
int 0x29
ud2

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

Disassembly:
push rbp
push rsi
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov ecx, dword [0x1401253a8]
test ecx, ecx
je 0x1400d4525
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400d4466
cmp qword [rax + 8], 0
je 0x1400d4466
add rax, 0x10
jmp 0x1400d451e
mov ecx, dword [0x1401253a8]
test ecx, ecx
je 0x1400d4538
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400d451c
test rax, rax
jne 0x1400d44e2
mov qword [rbp - 8], 0
lea rax, str.pK_r_
mov qword [rbp - 0x10], rax
movzx eax, byte [0x1401d2160]
mov edx, 0x18
xor ecx, ecx
call fcn.140101e80
test rax, rax
je 0x1400d4564
mov rcx, qword [rbp]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rax], xmm0
mov ecx, dword [0x1401253a8]
test ecx, ecx
je 0x1400d454b
dec ecx
mov rdx, rax
mov rsi, rax
call sub.kernel32.dll_TlsSetValue
mov rax, rsi
mov rdx, rax
add rax, 0x10
mov rcx, qword [rdx + 0x10]
cmp qword [rdx + 8], 0
mov qword [rdx + 8], 1
mov qword [rdx + 0x10], 0
je 0x1400d451e
test rcx, rcx
je 0x1400d451e
lock dec qword [rcx]
jne 0x1400d451e
mov rsi, rax
call fcn.1400d4620
mov rax, rsi
jmp 0x1400d451e
xor eax, eax
add rsp, 0x38
pop rsi
pop rbp
ret
lea rcx, str.pK_r_
call fcn.1400d46e0
mov ecx, eax
jmp 0x1400d444b
lea rcx, str.pK_r_
call fcn.1400d46e0
mov ecx, eax
jmp 0x1400d4476
lea rcx, str.pK_r_
mov rsi, rax
call fcn.1400d46e0
mov ecx, eax
mov rax, rsi
jmp 0x1400d44d4
mov ecx, 8
mov edx, 0x18
call fcn.140028610
ud2
Function at 0x1400d46e0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov rsi, rcx
cmp qword [rcx], 0
je 0x1400d4770
mov rax, qword [0x1401d5038]
mov dword [rbp], 0
lea rdi, [rsi + 0x10]
mov r8, rbp
mov rcx, rdi
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
mov dword [rbp + 4], eax
cmp eax, 1
jne 0x1400d47af
cmp dword [rbp], 0
je 0x1400d4793
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400d47d2
mov ebx, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1401d2140]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1401d2140], rsi
jne 0x1400d4750
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
mov eax, ebx
jmp 0x1400d47a6
call sub.kernel32.dll_TlsAlloc
mov dword [rbp + 4], eax
cmp eax, 0xffffffff
je 0x1400d4817
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x1400d4798
mov eax, dword [rbp + 4]
jmp 0x1400d47a6
mov eax, dword [rsi + 0x18]
jmp 0x1400d47a4
mov ecx, dword [rbp + 4]
mov esi, eax
call sub.kernel32.dll_TlsFree
mov eax, esi
dec eax
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov qword [rbp - 0x30], 0
lea rdx, [0x1401945f0]
lea r9, str.library_std_src_syspalwindows_thread_local_key.rs
lea rcx, [rbp + 4]
lea r8, [rbp - 0x30]
call fcn.1400d4880
mov rcx, rdi
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 1
lea rax, [0x1401bef68]
mov qword [rbp - 0x20], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
lea rdx, str.library_std_src_syspalwindows_thread_local_key.rs
lea rcx, [rbp - 0x30]
call fcn.140038470
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 1
lea rax, [0x1401bef68]
mov qword [rbp - 0x20], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
lea rcx, [rbp + 4]
lea rdx, [rbp - 0x30]
call fcn.1400d48c0
int3

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

Disassembly:
push rbp
push rsi
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x140125308]
test ecx, ecx
je 0x1400d4fcd
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400d4f5c
cmp byte [rax + 8], 0
jne 0x1400d4fbe
mov ecx, dword [0x140125308]
test ecx, ecx
je 0x1400d4fe0
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400d4fc4
test rax, rax
jne 0x1400d4fb8
movzx eax, byte [0x1401d2160]
mov edx, 0x10
xor ecx, ecx
call fcn.140101e80
test rax, rax
je 0x1400d5009
lea rcx, [0x1401252f0]
mov qword [rax], rcx
mov byte [rax + 8], 0
mov ecx, dword [0x140125308]
test ecx, ecx
je 0x1400d4ff3
dec ecx
mov rdx, rax
mov rsi, rax
call sub.kernel32.dll_TlsSetValue
mov rax, rsi
mov word [rax + 8], 1
add rax, 9
jmp 0x1400d4fc6
xor eax, eax
add rsp, 0x28
pop rsi
pop rbp
ret
lea rcx, [0x1401252f0]
call fcn.1400d46e0
mov ecx, eax
jmp 0x1400d4f4b
lea rcx, [0x1401252f0]
call fcn.1400d46e0
mov ecx, eax
jmp 0x1400d4f68
lea rcx, [0x1401252f0]
mov rsi, rax
call fcn.1400d46e0
mov ecx, eax
mov rax, rsi
jmp 0x1400d4faa
mov ecx, 8
mov edx, 0x10
call fcn.140028610
int3
Function at 0x1400d5450
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x1401252e8]
test ecx, ecx
je 0x1400d5514
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400d5486
cmp qword [rax + 8], 0
je 0x1400d5486
add rax, 0x10
jmp 0x1400d550d
mov ecx, dword [0x1401252e8]
test ecx, ecx
je 0x1400d5527
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400d550b
test rax, rax
jne 0x1400d54ee
movzx eax, byte [0x1401d2160]
mov edx, 0x20
xor ecx, ecx
call fcn.140101e80
test rax, rax
je 0x1400d5550
lea rcx, [0x1401252d0]
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x1401252e8]
test ecx, ecx
je 0x1400d553a
dec ecx
mov rdx, rax
mov rsi, rax
call sub.kernel32.dll_TlsSetValue
mov rax, rsi
mov qword [rax + 8], 1
mov rcx, rax
add rax, 0x10
mov qword [rcx + 0x10], 0
mov byte [rcx + 0x18], 0
jmp 0x1400d550d
xor eax, eax
add rsp, 0x28
pop rsi
pop rbp
ret
lea rcx, [0x1401252d0]
call fcn.1400d46e0
mov ecx, eax
jmp 0x1400d546b
lea rcx, [0x1401252d0]
call fcn.1400d46e0
mov ecx, eax
jmp 0x1400d5496
lea rcx, [0x1401252d0]
mov rsi, rax
call fcn.1400d46e0
mov ecx, eax
mov rax, rsi
jmp 0x1400d54e0
mov ecx, 8
mov edx, 0x20
call fcn.140028610
int3
Function at 0x1400d9780
Capabilities:
Read file via mapping

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xe0
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x50], xmm6
mov rax, r8
mov rsi, 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.1400f1d60
mov rdi, rdx
test rax, rax
je 0x1400d97fe
mov qword [rbp + 0x10], rax
lea rcx, [rbp + 0x18]
mov qword [rbp + 0x18], rdi
call fcn.1400d37e0
mov qword [rsi], 0
jmp 0x1400d99a1
movaps xmmword [rbp + 0x30], xmm6
movaps xmmword [rbp + 0x20], xmm6
movaps xmmword [rbp + 0x10], xmm6
mov dword [rbp + 0x40], 0
lea rdx, [rbp + 0x10]
mov rcx, rdi
call sub.kernel32.dll_GetFileInformationByHandle
test eax, eax
je 0x1400d98a7
test dword [rbp + 0x10], 0x400
je 0x1400d9851
mov qword [rbp + 8], 0
lea r8, [rbp + 8]
mov rcx, rdi
mov edx, 9
mov r9d, 8
call sub.kernel32.dll_GetFileInformationByHandleEx
test eax, eax
je 0x1400d98a7
mov r12d, dword [rbp + 0x30]
mov r15d, dword [rbp + 0x34]
test rdi, rdi
je 0x1400d98ed
mov qword [rbp + 0x10], 0
call sub.kernel32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbp + 0x10]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x1400d9970
mov rbx, qword [rbp + 0x10]
jmp 0x1400d98ef
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
lea rcx, [rbp - 0x38]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 2
call fcn.1400d37e0
mov qword [rsi], 0
mov rcx, rdi
movaps xmm6, xmmword [rbp + 0x50]
add rsp, 0xe0
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 0x1400d995f
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 0x1400d995f
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x1400d9999
mov qword [rsi], 0
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
jmp 0x1400d9999
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x40], 1
lea rcx, [rbp - 0x38]
mov qword [rbp - 0x38], rax
call fcn.1400d37e0
mov qword [rsi], 0
mov rcx, rdi
call sub.kernel32.dll_CloseHandle
movaps xmm6, xmmword [rbp + 0x50]
add rsp, 0xe0
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
Function at 0x1400f3e90
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x140194358]
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_NtReadFile
cmp eax, 0x103
jne 0x1400f3ef8
mov rcx, rsi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rbp]
cmp eax, 0xc0000011
jne 0x1400f3f05
xor edx, edx
xor eax, eax
jmp case.0x1400f3d34.48
cmp eax, 0x103
je 0x1400f3f38
test eax, eax
js 0x1400f3f18
mov rdx, qword [rbp + 8]
xor eax, eax
jmp case.0x1400f3d34.48
invalid
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
add al, byte [rax]
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, [0x1401943b8]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov dword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
loopne 0x1400f3fae
lea ecx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.1400d3740
idiv ebp
dec dword [rax - 0x77]
clc
lea rcx, [rbp - 8]
call fcn.1400d37c0
mov ecx, 7
int 0x29
ud2
invalid

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

Disassembly:
push rbp
push rsi
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov ecx, dword [0x140125368]
test ecx, ecx
je 0x1400f5ef5
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400f5e36
cmp qword [rax + 8], 0
je 0x1400f5e36
add rax, 0x10
jmp 0x1400f5eee
mov ecx, dword [0x140125368]
test ecx, ecx
je 0x1400f5f08
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400f5eec
test rax, rax
jne 0x1400f5eb2
mov qword [rbp - 8], 0
lea rax, [0x140125350]
mov qword [rbp - 0x10], rax
movzx eax, byte [0x1401d2160]
mov edx, 0x18
xor ecx, ecx
call fcn.140101e80
test rax, rax
je 0x1400f5f34
mov rcx, qword [rbp]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rax], xmm0
mov ecx, dword [0x140125368]
test ecx, ecx
je 0x1400f5f1b
dec ecx
mov rdx, rax
mov rsi, rax
call sub.kernel32.dll_TlsSetValue
mov rax, rsi
mov rdx, rax
add rax, 0x10
mov rcx, qword [rdx + 0x10]
cmp qword [rdx + 8], 0
mov qword [rdx + 8], 1
mov qword [rdx + 0x10], 0
je 0x1400f5eee
test rcx, rcx
je 0x1400f5eee
lock dec qword [rcx]
jne 0x1400f5eee
mov rsi, rax
call fcn.1400f5f60
mov rax, rsi
jmp 0x1400f5eee
xor eax, eax
add rsp, 0x38
pop rsi
pop rbp
ret
lea rcx, [0x140125350]
call fcn.1400d46e0
mov ecx, eax
jmp 0x1400f5e1b
lea rcx, [0x140125350]
call fcn.1400d46e0
mov ecx, eax
jmp 0x1400f5e46
lea rcx, [0x140125350]
mov rsi, rax
call fcn.1400d46e0
mov ecx, eax
mov rax, rsi
jmp 0x1400f5ea4
mov ecx, 8
mov edx, 0x18
call fcn.140028610
ud2
Function at 0x1400f6260
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 rax, qword [0x1401d2120]
cmp rax, 3
jne 0x1400f6450
lea rax, [rbp + 0x166]
mov qword [rbp + 0x150], rax
cmp rdi, 0x17f
ja 0x1400f6460
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 0x1400f62f8
xor edx, edx
nop word [rax + rax]
cmp byte [rbp + rdx - 0x60], 0
je 0x1400f63b4
inc rdx
cmp rax, rdx
jne 0x1400f62e0
jmp 0x1400f641b
lea rcx, [rbp - 0x59]
and rcx, 0xfffffffffffffff8
sub rcx, rbx
je 0x1400f632e
xor edx, edx
nop word [rax + rax]
cmp byte [rbp + rdx - 0x60], 0
je 0x1400f63b4
inc rdx
cmp rcx, rdx
jne 0x1400f6310
lea rdx, [rdi - 0xf]
cmp rcx, rdx
jbe 0x1400f6332
jmp 0x1400f637e
lea rdx, [rdi - 0xf]
movdqa xmm0, xmmword [0x1401348b0]
movabs r8, 0x8080808080808080
nop word cs:[rax + rax]
movdqu xmm1, xmmword [rbp + rcx - 0x60]
movdqa xmm2, xmm1
paddq xmm2, xmm0
pandn xmm1, xmm2
pshufd xmm2, xmm1, 0xee
por xmm2, xmm1
movq r9, xmm2
test r9, r8
jne 0x1400f637e
add rcx, 0x10
cmp rcx, rdx
jbe 0x1400f6350
sub rax, rcx
je 0x1400f641b
lea r8, [rcx + rbp]
add r8, 0xffffffffffffffa0
xor edx, edx
nop word cs:[rax + rax]
cmp byte [r8 + rdx], 0
je 0x1400f63b1
inc rdx
cmp rax, rdx
jne 0x1400f63a0
jmp 0x1400f641b
add rdx, rcx
cmp rdx, rdi
jne 0x1400f641b
pxor xmm0, xmm0
movdqa xmmword [rbp + 0x120], xmm0
movdqa xmmword [rbp + 0x140], xmm0
movdqa 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 0x1400f642f
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x1400f6447
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1400f6472
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 0x1400f6472
mov rbx, rdx
call fcn.1400f68f0
mov rdx, rbx
jmp 0x1400f629c
lea r9, [rbp + 0x150]
mov rcx, rsi
mov r8, rdi
call fcn.1400f6950
nop
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop rbp
ret