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

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rsi, rcx
mov rcx, qword [0x140189354]
mov rdi, r8
mov r15d, edx
mov r14d, 0x1000
xor edx, edx
mov r8d, r14d
mov r12, r9
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x140034ab9
movzx r8d, byte [rsp + 0x30]
mov qword [rsp + 0x60], rbx
mov rbx, rax
cmp rdi, 0xffffffffffffffff
je 0x140034989
test rdi, rdi
je 0x140034a17
dec rdi
mov rdx, rbx
mov rcx, rsi
call fcn.140034ba0
mov dword [rsp + 0x34], eax
test eax, eax
jne 0x1400349a1
xor r8b, r8b
jmp 0x1400349a5
movzx r8d, byte [rbx]
cdqe
mov byte [rsp + 0x30], r8b
add rbx, rax
lea eax, [r14 - 5]
mov rdx, rbx
movsxd rcx, eax
sub rdx, rbp
cmp rdx, rcx
jle 0x1400349f1
mov rcx, qword [0x140189354]
add r14d, 0x1000
mov r8, rbp
mov edx, 8
movsxd r9, r14d
sub ebx, ebp
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movzx r8d, byte [rsp + 0x30]
movsxd rbx, ebx
mov rbp, rax
add rbx, rax
test r8b, r8b
je 0x140034a17
test r15d, r15d
jne 0x140034977
cmp r8b, 0xd
je 0x140034a20
cmp r8b, 0xa
jne 0x140034977
dec rbx
jmp 0x140034aa4
test r15d, r15d
jne 0x140034aa4
cmp r8b, 0xa
jne 0x140034a2b
dec rbx
jmp 0x140034aa4
cmp r8b, 0xd
jne 0x140034aa4
dec rbx
cmp qword [rsi + 8], 0
lea rdx, [rsp + 0x30]
je 0x140034a54
mov r8d, 1
mov rcx, rsi
call fcn.140034400
mov dword [rsp + 0x34], eax
jmp 0x140034a71
mov rcx, qword [rsi]
lea r9, [rsp + 0x34]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [rsp + 0x30], 0xa
je 0x140034aa4
cmp qword [rsi + 8], 0
je 0x140034a84
inc dword [rsi + 0x14]
jmp 0x140034aa4
mov rcx, qword [rsi]
lea r8, [rsp + 0x3c]
mov r9d, 1
or edx, 0xffffffff
mov qword [rsp + 0x38], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rax, rbx
sub rax, rbp
mov qword [r12], rax
mov byte [rbx], 0
mov rbx, qword [rsp + 0x60]
mov rax, rbp
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x140034ba0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x30
cmp qword [rcx + 8], 0
mov rbx, rdx
mov rsi, rcx
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x50], 0
je 0x140034bd5
mov r8d, 1
call fcn.140034400
mov dword [rsp + 0x50], eax
jmp 0x140034bf6
mov rcx, qword [rcx]
lea r9, [rsp + 0x50]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x50]
cmp eax, 1
je 0x140034c08
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
movzx ecx, byte [rsp + 0x40]
test cl, cl
js 0x140034c27
mov byte [rbx], cl
mov byte [rbx + 1], 0
mov eax, 1
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
movzx eax, cl
mov qword [rsp + 0x48], rdi
and al, 0xe0
cmp al, 0xc0
jne 0x140034c3c
mov edi, 2
jmp 0x140034c5a
movzx eax, cl
and al, 0xf0
cmp al, 0xe0
jne 0x140034c4c
mov edi, 3
jmp 0x140034c5a
movzx eax, cl
and al, 0xf8
cmp al, 0xf0
jne 0x140034cc5
mov edi, 4
mov byte [rbx], cl
cmp qword [rsi + 8], 0
lea rdx, [rbx + 1]
je 0x140034c7a
lea eax, [rdi - 1]
mov rcx, rsi
movsxd r8, eax
call fcn.140034400
mov rcx, rax
jmp 0x140034c99
mov rcx, qword [rsi]
lea r8d, [rdi - 1]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x50]
lea eax, [rdi - 1]
cmp ecx, eax
je 0x140034cb2
xor eax, eax
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
movsxd rax, edi
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
mov rdi, qword [rsp + 0x48]
mov word [rbx], IsNetDrive
mov rbx, qword [rsp + 0x58]
mov eax, 1
add rsp, 0x30
pop rsi
ret

Function at 0x1400378bc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov r9d, edx
mov r10, rcx
test rcx, rcx
jne 0x1400378d6
mov eax, r8d
jmp 0x140037944
not r8d
lea rdi, [0x1400966c0]
cmp r9d, 8
jb 0x14003791a
mov r11, r9
shr r11, 3
mov ebx, 8
movzx ecx, byte [r10]
mov eax, r8d
inc r10
xor rcx, rax
shr eax, 8
movzx edx, cl
mov r8d, dword [rdi + rdx*4]
xor r8d, eax
dec rbx
jne 0x1400378f2
add r9d, 0xfffffff8
dec r11
jne 0x1400378ed
test r9d, r9d
je 0x14003793e
movzx ecx, byte [r10]
mov eax, r8d
inc r10
xor rcx, rax
shr eax, 8
movzx edx, cl
mov r8d, dword [rdi + rdx*4]
xor r8d, eax
dec r9d
jne 0x14003791f
not r8d
movsxd rax, r8d
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret

Function at 0x140038188
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14018bfa0], eax
add rsp, 0x28
ret
Function at 0x1400381ec
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
test rcx, rcx
je 0x140038261
call qword [rcx + 0xb0]
mov edx, dword [rbx + 0xf4]
mov dword [rbx + 0x108], edx
mov edx, dword [rbx + 0xf8]
mov rdi, rax
mov dword [rbx + 0x10c], edx
test rax, rax
jne 0x140038261
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x140038239
xor edx, edx
mov rcx, rbx
call rax
mov rcx, qword [0x140189354]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x14018bfa0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x14018bfc0], 0
mov rax, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140038270
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x14018bfa0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [rax + 0x20]

Function at 0x140038294
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x14018bfa0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [rax + 0xc8]

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

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x14018bfa0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140038351
mov rcx, rax
call qword [rax + 0xb8]
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x140038329
mov edx, 1
mov rcx, rbx
call rax
mov rcx, qword [0x140189354]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x14018bfa0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x14018bfc0], 0
add rsp, 0x20
pop rbx
ret

Function at 0x140038390
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov ecx, dword [0x14018bfa0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, ebx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [rax + IsNetDrive]

Function at 0x1400383b4
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x30
mov r15d, ecx
mov ecx, dword [0x14018bfa0]
mov edi, r9d
mov esi, r8d
mov r14d, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [rsp + 0x60]
mov rbx, rax
cmp edx, dword [rax + 0x120]
je 0x140038403
mov rcx, rax
mov dword [rax + 0x120], edx
call qword [rax + pe_nt_image_headers64]
mov r8d, dword [rbx + 0x104]
mov edx, dword [rbx + 0x100]
mov r9d, esi
mov rcx, rbx
add r8d, r14d
add edx, r15d
mov dword [rsp + 0x60], edi
mov rax, qword [rbx + 8]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
add rsp, 0x30
pop r15
jmp rax
Function at 0x140038444
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
mov ecx, dword [0x14018bfa0]
movaps xmmword [rax - 0x18], xmm6
mov ebp, edx
movaps xmm6, xmm0
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov eax, dword [rax + 0xe8]
cmp eax, 0xc
ja 0x140038561
mov ecx, 0x110c
bt ecx, eax
jae 0x140038561
xorps xmm0, xmm0
comiss xmm0, xmm6
ja 0x1400384a2
movss xmm0, dword [0x140096ad0]
comiss xmm6, xmm0
jbe 0x1400384a5
movaps xmm6, xmm0
mov rbx, qword [rsi + 0x138]
xor edi, edi
test rbx, rbx
je 0x140038505
movss xmm0, dword [rbx + 8]
ucomiss xmm0, xmm6
jp 0x1400384bf
je 0x1400384cc
comiss xmm0, xmm6
ja 0x1400384d1
mov rdi, rbx
mov rbx, qword [rbx]
jmp 0x1400384ae
mov rcx, rbx
jmp 0x140038500
mov rcx, qword [0x140189354]
xor edx, edx
lea r8d, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rax
test rax, rax
je 0x140038505
mov qword [rax], rbx
test rdi, rdi
je 0x1400384f9
mov qword [rdi], rax
jmp 0x140038500
mov qword [rsi + 0x138], rax
test rcx, rcx
jne 0x140038535
mov rcx, qword [0x140189354]
xor edx, edx
lea r8d, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rax
test rax, rax
je 0x140038561
and qword [rax], 0
test rdi, rdi
je 0x14003852e
mov qword [rdi], rax
jmp 0x140038535
mov qword [rsi + 0x138], rax
movzx eax, bpl
movss dword [rcx + 8], xmm6
mov dword [rcx + 0xc], eax
mov eax, ebp
sar eax, 8
movzx eax, al
mov dword [rcx + 0x10], eax
mov eax, ebp
sar eax, 0x10
sar ebp, 0x18
movzx eax, al
mov dword [rcx + 0x14], eax
movzx eax, bpl
mov dword [rcx + 0x18], eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret

Function at 0x14003857c
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov ecx, dword [0x14018bfa0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [rax + 0x11c], ebx
add rsp, 0x20
pop rbx
ret

Function at 0x14003859c
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov ecx, dword [0x14018bfa0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [rax + 0x118], ebx
add rsp, 0x20
pop rbx
ret
Function at 0x140038780
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov esi, ecx
mov ecx, dword [0x14018bfa0]
mov ebp, r9d
mov ebx, r8d
mov r14d, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r11d, dword [rax + 0x100]
mov r10d, dword [rax + 0x104]
mov rdi, rax
mov eax, dword [rax + 0xe8]
add esi, r11d
add r14d, r10d
add ebx, r11d
add ebp, r10d
cmp eax, 0xc
ja 0x140038996
mov ecx, 0x110c
bt ecx, eax
jae 0x140038996
mov r15d, ebx
mov r12d, ebp
mov dword [rdi + 0x1a8], esi
sub r15d, esi
sub r12d, r14d
mov dword [rdi + 0x1ac], r14d
mov ecx, r12d
mov eax, r15d
mov dword [rdi + 0x1b0], ebx
mov dword [rdi + 0x1b4], ebp
imul ecx, r12d
imul eax, r15d
add ecx, eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
call sub.msvcrt.dll_sqrtf
movss dword [rdi + 0x1b8], xmm0
cmp r14d, ebp
jne 0x140038855
lea rax, [0x1400386e0]
lea rcx, [0x1400386ac]
cmp esi, ebx
cmovle rax, rcx
jmp 0x14003898f
cmp esi, ebx
jne 0x14003886c
lea rax, [0x14003874c]
lea rcx, [0x140038714]
cmp r14d, ebp
jmp 0x14003884c
mov ecx, r12d
call sub.msvcrt.dll_abs
mov ecx, r15d
mov ebx, eax
call sub.msvcrt.dll_abs
mov edx, 1
cmp eax, ebx
jl 0x140038890
and dword [rdi + 0x1c0], 0
jmp 0x1400388de
mov eax, dword [rdi + 0x1ac]
mov dword [rdi + 0x1c0], edx
xor dword [rdi + 0x1a8], eax
mov eax, dword [rdi + 0x1a8]
xor dword [rdi + 0x1ac], eax
mov eax, dword [rdi + 0x1ac]
xor dword [rdi + 0x1a8], eax
mov eax, dword [rdi + 0x1b4]
xor dword [rdi + 0x1b0], eax
mov eax, dword [rdi + 0x1b0]
xor dword [rdi + 0x1b4], eax
mov eax, dword [rdi + 0x1b4]
xor dword [rdi + 0x1b0], eax
mov ecx, dword [rdi + 0x1a8]
mov eax, dword [rdi + 0x1b0]
cmp ecx, eax
jge 0x1400388f7
and dword [rdi + 0x1bc], 0
jmp 0x14003893b
xor eax, ecx
mov dword [rdi + 0x1bc], edx
xor dword [rdi + 0x1b0], eax
mov dword [rdi + 0x1a8], eax
mov eax, dword [rdi + 0x1b0]
xor dword [rdi + 0x1a8], eax
mov eax, dword [rdi + 0x1b4]
xor dword [rdi + 0x1ac], eax
mov eax, dword [rdi + 0x1ac]
xor dword [rdi + 0x1b4], eax
mov eax, dword [rdi + 0x1b4]
xor dword [rdi + 0x1ac], eax
mov eax, dword [rdi + 0x1b4]
sub eax, dword [rdi + 0x1ac]
movd xmm1, eax
mov eax, dword [rdi + 0x1b0]
sub eax, dword [rdi + 0x1a8]
movd xmm0, eax
lea rax, [0x1400385bc]
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
movss dword [rdi + 0x1c4], xmm1
movsd xmm1, qword [0x140096ad8]
divsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movss dword [rdi + 0x1c8], xmm0
mov qword [rdi + 0x128], rax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400389b8
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r15d, ecx
mov ecx, dword [0x14018bfa0]
mov ebx, r9d
mov edi, r8d
mov ebp, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add r15d, dword [rax + 0x100]
add ebp, dword [rax + 0x104]
mov rsi, rax
test edi, edi
jns 0x140038a05
add r15d, edi
neg edi
test ebx, ebx
jns 0x140038a0d
add ebp, ebx
neg ebx
mov r14d, dword [rsp + 0x80]
lea eax, [r14 + r14]
cmp eax, edi
jle 0x140038a27
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov r14d, eax
mov r12d, dword [rsp + 0x88]
lea ecx, [r12 + r12]
cmp ecx, ebx
jle 0x140038a41
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov r12d, eax
mov edx, dword [rsi + 0x118]
cmp edx, dword [rsi + 0x120]
je 0x140038a5e
mov rcx, rsi
mov dword [rsi + 0x120], edx
call qword [rsi + pe_nt_image_headers64]
mov dword [rsp + 0x30], r12d
mov r9d, edi
mov r8d, ebp
mov edx, r15d
mov rcx, rsi
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], ebx
call qword [rsi + reloc.WS2_32.dll_recv]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret

Function at 0x140038a9c
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x30
mov r15d, ecx
mov ecx, dword [0x14018bfa0]
mov edi, r9d
mov esi, r8d
mov r14d, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [rax + 0x118]
mov rbx, rax
cmp edx, dword [rax + 0x120]
je 0x140038aed
mov rcx, rax
mov dword [rax + 0x120], edx
call qword [rax + pe_nt_image_headers64]
mov r8d, dword [rbx + 0x104]
mov edx, dword [rbx + 0x100]
mov r9d, esi
mov rcx, rbx
add r8d, r14d
add edx, r15d
mov dword [rsp + 0x20], edi
call qword [rbx + htons]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret

Function at 0x140038b28
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x14018bfa0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [rax + 0xe8]
cmp ecx, 0xc
ja 0x140038b5e
mov edx, 0x110c
bt edx, ecx
jae 0x140038b5e
test rbx, rbx
je 0x140038b5e
mov qword [rax + 0x130], rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140038b64
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x14018bfa0]
mov ebx, r8d
mov edi, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rsi
mov r9d, dword [rax + 0x104]
mov r8d, dword [rax + 0x100]
mov rcx, rax
add r9d, ebx
add r8d, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [rax + 0x48]
Function at 0x140038bb4
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r15d, ecx
mov ecx, dword [0x14018bfa0]
mov ebx, r9d
mov edi, r8d
mov ebp, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add r15d, dword [rax + 0x100]
add ebp, dword [rax + 0x104]
mov rsi, rax
test edi, edi
jns 0x140038c01
add r15d, edi
neg edi
test ebx, ebx
jns 0x140038c09
add ebp, ebx
neg ebx
mov r14d, dword [rsp + 0x80]
lea eax, [r14 + r14]
cmp eax, edi
jle 0x140038c23
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov r14d, eax
mov r12d, dword [rsp + 0x88]
lea ecx, [r12 + r12]
cmp ecx, ebx
jle 0x140038c3d
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov r12d, eax
mov edx, dword [rsp + 0x90]
cmp edx, dword [rsi + 0x120]
je 0x140038c5b
mov rcx, rsi
mov dword [rsi + 0x120], edx
call qword [rsi + pe_nt_image_headers64]
mov dword [rsp + 0x90], r12d
mov r9d, edi
mov r8d, ebp
mov edx, r15d
mov rcx, rsi
mov dword [rsp + 0x88], r14d
mov dword [rsp + 0x80], ebx
mov rax, qword [rsi + 0x10]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
jmp rax

Function at 0x14003a410
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x140189354]
mov edx, 8
mov r8d, 0x1c0
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x14018bfa0]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [0x14018bfc0], rbx
and dword [rbx + 0x11c], 0
or eax, 0xffffffff
mov dword [rbx + 0x118], 0xffffff
mov dword [rbx + 0xe8], 1
mov dword [rbx + 0x120], eax
mov dword [rbx + 0x124], eax
lea rax, [0x140039018]
mov qword [rbx], rax
lea rax, [0x140039048]
mov dword [rbx + 0xec], 7
mov qword [rbx + 8], rax
lea rax, [0x14003a158]
mov qword [rbx + 0x10], rax
lea rax, [0x1400390f0]
mov qword [rbx + 0x18], rax
lea rax, [0x1400397c4]
mov qword [rbx + 0x20], rax
lea rax, [0x140039754]
mov qword [rbx + 0x28], rax
lea rax, [0x14003979c]
mov qword [rbx + 0x30], rax
lea rax, [0x1400397b0]
mov qword [rbx + 0x38], rax
lea rax, [fcn.140039838]
mov qword [rbx + 0x40], rax
lea rax, [0x14003934c]
mov qword [rbx + 0x48], rax
lea rax, [fcn.140039364]
mov qword [rbx + 0x50], rax
lea rax, [0x1400391e8]
mov qword [rbx + 0x58], rax
lea rax, [0x1400396bc]
mov qword [rbx + 0x60], rax
lea rax, [0x1400395d0]
mov qword [rbx + 0x68], rax
lea rax, [0x1400398d4]
mov qword [rbx + 0x70], rax
lea rax, [0x140039a0c]
mov qword [rbx + 0x78], rax
lea rax, [0x140039af8]
mov qword [rbx + 0x80], rax
lea rax, [0x140039bb0]
mov qword [rbx + 0x88], rax
lea rax, [0x140039d08]
mov qword [rbx + 0x90], rax
lea rax, [0x140039d88]
mov qword [rbx + 0x98], rax
lea rax, [0x140039e7c]
mov qword [rbx + 0xa0], rax
lea rax, [0x14003a068]
mov qword [rbx + 0xa8], rax
lea rax, [0x14003a1e0]
mov qword [rbx + 0xb0], rax
lea rax, [0x14003a2c8]
mov qword [rbx + 0xb8], rax
lea rax, [0x14003a364]
mov qword [rbx + 0xc0], rax
lea rax, [0x14003a3b8]
mov qword [rbx + 0xc8], rax
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x140041060
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov esi, IsNetDrive
mov ecx, esi
call fcn.140044ba0
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.14007c670
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2], 0
jne 0x140041090
sub esi, edx
mov ecx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140044ce0

Function at 0x140041250
Capabilities:
Get thread local storage value

Disassembly:
mov r10, rcx
test rcx, rcx
je 0x140041281
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140041260
mov ecx, 1
mov r9d, r8d
sub ecx, edx
add eax, ecx
mov rcx, r10
mov r8d, eax
jmp fcn.140041290
mov ecx, r8d
jmp fcn.140044fd0

Function at 0x1400417d0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r12
push r13
push r15
sub rsp, 0x28
xor r15d, r15d
mov r13d, r9d
mov r12d, edx
mov ebp, r15d
cmp edx, 1
jl 0x140041934
mov qword [rsp + 0x50], rbx
test rcx, rcx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x20], r14
lea r14, [0x140096014]
mov rbx, r14
mov edi, r15d
cmovne rbx, rcx
test r8, r8
cmovne r14, r8
mov rsi, rbx
movzx ecx, word [r14]
test cx, cx
je 0x140041900
cmp word [r14 + 2], di
je 0x140041900
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [r14 + rax*2], di
jne 0x140041840
movsxd r15, eax
nop dword [rax]
mov r8, r15
mov rdx, r14
mov rcx, rbx
call sub.msvcrt.dll_wcsncmp
test eax, eax
je 0x14004186d
cmp word [rbx], bp
je 0x14004186d
add rbx, 2
jmp 0x140041850
inc edi
cmp edi, r12d
je 0x140041882
cmp word [rbx], bp
je 0x14004188b
lea rbx, [rbx + r15*2]
mov rsi, rbx
jmp 0x140041850
mov rbp, rbx
sub rbp, rsi
sar rbp, 1
xor r15d, r15d
mov rcx, rbx
call fcn.140044f30
mov r14, qword [rsp + 0x20]
mov edi, eax
test eax, eax
je 0x1400418ba
mov ecx, r13d
call fcn.140045010
movsxd r8, ebp
mov rdx, rsi
mov rcx, rax
add r8, r8
call sub.msvcrt.dll_memmove
mov edx, r13d
mov ecx, ebp
call fcn.140044ba0
test edi, edi
mov rdi, qword [rsp + 0x60]
mov rbx, rax
jne 0x1400418de
movsxd r8, ebp
mov rdx, rsi
mov rcx, rax
call sub.msvcrt.dll_wcsncpy
mov rsi, qword [rsp + 0x58]
movsxd rcx, ebp
mov word [rbx + rcx*2], r15w
mov rbx, qword [rsp + 0x50]
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
ret
movzx eax, word [rbx]
cmp ax, cx
je 0x14004190d
test ax, ax
jne 0x140041920
inc edi
cmp edi, edx
je 0x140041926
test ax, ax
je 0x14004188e
lea rsi, [rbx + 2]
add rbx, 2
jmp 0x140041900
mov rbp, rbx
sub rbp, rsi
sar rbp, 1
jmp 0x14004188e
mov ecx, r9d
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
jmp fcn.140044fd0