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

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

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

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x140a77b10]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14003bf39
mov rcx, rax
call qword [rax + 0xb8]
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x14003bf11
mov edx, 1
mov rcx, rbx
call rax
mov rcx, qword [0x140a754a0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x140a77b10]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x140a77b20], 0
add rsp, 0x20
pop rbx
ret

Function at 0x14003bf40
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140a77b10]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movsxd rax, dword [rax + 0x10c]
add rsp, 0x28
ret

Function at 0x14003bf5c
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140a77b10]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movsxd rax, dword [rax + 0x108]
add rsp, 0x28
ret

Function at 0x14003bf78
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 [0x140a77b10]
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 0x14003bfc5
add r15d, edi
neg edi
test ebx, ebx
jns 0x14003bfcd
add ebp, ebx
neg ebx
mov r14d, dword [rsp + 0x80]
lea eax, [r14 + r14]
cmp eax, edi
jle 0x14003bfe7
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 0x14003c001
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov r12d, eax
mov edx, dword [rsp + 0x90]
cmp edx, dword [rsi + 0x120]
je 0x14003c01f
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 0x14003c068
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov ecx, dword [0x140a77b10]
mov ebp, r9d
mov ebx, r8d
mov edi, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r11, rax
mov rax, qword [rax + 0x58]
mov rdx, rsi
mov r9d, dword [r11 + 0x104]
mov r8d, dword [r11 + 0x100]
mov rcx, r11
add r9d, ebx
add r8d, edi
test rax, rax
je 0x14003c0c1
mov dword [rsp + 0x20], ebp
call rax
jmp 0x14003c0c5
call qword [r11 + 0x48]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14003c0dc
Capabilities:
Get thread local storage value

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

Function at 0x14003c174
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rcx, qword [0x140a754a0]
mov edx, 8
mov r8d, 0x250
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140a77b10]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [0x140a77b20], rdi
and dword [rdi + 0x11c], 0
or eax, 0xffffffff
mov edx, ebx
mov rcx, rdi
mov dword [rdi + 0x118], 0xffffff
mov dword [rdi + 0xe8], 2
mov dword [rdi + 0xec], 0x3f
mov dword [rdi + 0x120], eax
mov dword [rdi + 0x124], eax
call fcn.14003f6dc
mov rbx, qword [rsp + 0x30]
lea rax, [0x14003d010]
mov qword [rdi + 0xb0], rax
lea rax, [0x14003d074]
mov qword [rdi + 0xb8], rax
lea rax, [fcn.14003cad0]
mov qword [rdi + 0x20], rax
lea rax, [0x14003c980]
mov qword [rdi + 0x60], rax
lea rax, [0x14003d118]
mov qword [rdi + 0xc8], rax
lea rax, [0x14003d0c0]
mov qword [rdi + 0xc0], rax
lea rax, [0x14003c60c]
mov qword [rdi + 0x68], rax
lea rax, [0x14003c5b0]
mov qword [rdi + 0x48], rax
lea rax, [0x14003c5dc]
mov qword [rdi + 0x50], rax
lea rax, [0x14003c460]
mov qword [rdi + 0x58], rax
lea rax, [0x14003ce24]
mov qword [rdi + 0x88], rax
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x140043d04
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
mov r10d, dword [rsp + 0x68]
movsxd rsi, dword [rcx + 0x160]
mov ebx, r8d
mov r12, rdx
mov r11, rcx
test r10d, r10d
je 0x140043dcb
mov eax, dword [rsp + 0x50]
mov ecx, ebx
mov ebp, ebx
shl eax, 2
imul ecx, dword [rsp + 0x58]
movsxd r13, eax
mov eax, esi
imul eax, r9d
mov r9d, dword [rsp + 0x48]
neg ebp
movsxd rdi, eax
mov qword [rsp + 0x28], rdi
mov eax, dword [r11 + 0x158]
movsxd r8, ecx
add r8, r13
add r8, r12
imul eax, r9d
movsxd rdx, eax
add rdx, qword [r11 + 0x150]
add rdx, rdi
cmp dword [rsp + 0x60], 0
jle 0x140043db0
mov edi, dword [rsp + 0x60]
mov al, byte [r8 + 2]
xor byte [rdx + 2], al
mov al, byte [r8 + 1]
xor byte [rdx + 1], al
mov al, byte [r8]
lea r8, [r8 + 4]
xor byte [rdx], al
add rdx, rsi
dec rdi
jne 0x140043d8c
mov rdi, qword [rsp + 0x28]
dec r10d
inc r9d
cmp dword [r11 + 0x174], 0
jne 0x140043dc4
add ecx, ebp
jmp 0x140043dc6
add ecx, ebx
test r10d, r10d
jne 0x140043d60
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140044b6c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
mov r11d, dword [rsp + 0x68]
movsxd rsi, dword [rcx + 0x160]
mov edi, r8d
mov r12, rdx
mov rbx, rcx
test r11d, r11d
je 0x140044c35
mov eax, dword [rsp + 0x50]
mov ecx, r8d
mov ebp, r8d
lea r10d, [rax + rax*2]
mov eax, esi
imul ecx, dword [rsp + 0x58]
movsxd r13, r10d
imul eax, r9d
mov r9d, dword [rsp + 0x48]
movsxd r10, eax
mov qword [rsp + 0x28], r10
neg ebp
mov eax, dword [rbx + 0x158]
movsxd r8, ecx
add r8, r13
add r8, r12
imul eax, r9d
movsxd rdx, eax
add rdx, qword [rbx + 0x150]
add rdx, r10
cmp dword [rsp + 0x60], 0
jle 0x140044c1b
mov r10d, dword [rsp + 0x60]
mov al, byte [r8 + 2]
xor byte [rdx + 2], al
mov al, byte [r8 + 1]
xor byte [rdx + 1], al
mov al, byte [r8]
lea r8, [r8 + 3]
xor byte [rdx], al
add rdx, rsi
dec r10
jne 0x140044bf7
mov r10, qword [rsp + 0x28]
dec r11d
inc r9d
cmp dword [rbx + 0x174], 0
jne 0x140044c2e
add ecx, ebp
jmp 0x140044c30
add ecx, edi
test r11d, r11d
jne 0x140044bcb
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14004d520
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 0x14004d684
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, [0x1400aebe8]
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 0x14004d650
cmp word [r14 + 2], di
je 0x14004d650
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [r14 + rax*2], di
jne 0x14004d590
movsxd r15, eax
nop dword [rax]
mov r8, r15
mov rdx, r14
mov rcx, rbx
call sub.msvcrt.dll_wcsncmp
test eax, eax
je 0x14004d5bd
cmp word [rbx], bp
je 0x14004d5bd
add rbx, 2
jmp 0x14004d5a0
inc edi
cmp edi, r12d
je 0x14004d5d2
cmp word [rbx], bp
je 0x14004d5db
lea rbx, [rbx + r15*2]
mov rsi, rbx
jmp 0x14004d5a0
mov rbp, rbx
sub rbp, rsi
sar rbp, 1
xor r15d, r15d
mov rcx, rbx
call fcn.140050950
mov r14, qword [rsp + 0x20]
mov edi, eax
test eax, eax
je 0x14004d60a
mov ecx, r13d
call fcn.1400509c0
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.140050730
test edi, edi
mov rdi, qword [rsp + 0x60]
mov rbx, rax
jne 0x14004d62e
movsxd r8, ebp
mov rdx, rsi
mov rcx, rax
call fcn.1400291ce
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 0x14004d65d
test ax, ax
jne 0x14004d670
inc edi
cmp edi, edx
je 0x14004d676
test ax, ax
je 0x14004d5de
lea rsi, [rbx + 2]
add rbx, 2
jmp 0x14004d650
mov rbp, rbx
sub rbp, rsi
sar rbp, 1
jmp 0x14004d5de
mov ecx, r9d
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
jmp fcn.140050910

Function at 0x14004dd00
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, 0x40
mov ecx, esi
call fcn.140050730
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.14009b9ec
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2], 0
jne 0x14004dd30
sub esi, edx
mov ecx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140050870
Function at 0x14004f3f4
Capabilities:
Get thread local storage value
Set 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 [0x140a77290]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x14004f475
mov r8, qword [0x140a77288]
mov rcx, qword [0x140a754a0]
lea edx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140a77290]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x140a77280]
jmp 0x14004f461
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x14004f45e
mov rcx, qword [rbx + 0x10]
add rcx, rdi
call rdx
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14004f44c
lea rcx, [0x14004f358]
mov rdx, rdi
call fcn.14009bb8c
mov rbx, qword [rsp + 0x30]
lea rax, [rdi + rsi]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14004f48c
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rbp, r8
mov rdi, rdx
and ecx, 7
je 0x14004f4b6
mov eax, 8
sub eax, ecx
add ebx, eax
mov rcx, qword [0x140a77288]
test rcx, rcx
jne 0x14004f4f9
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, qword [0x140a754a0]
movsxd r8, ebx
mov edx, 8
mov dword [0x140a77290], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140a77290]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x140a77288]
mov rsi, rcx
movsxd rax, ebx
add rcx, rax
mov qword [0x140a77288], rcx
mov ecx, dword [0x140a77290]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, qword [0x140a77288]
mov rcx, qword [0x140a754a0]
mov r8, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [0x140a77290]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test rdi, rdi
jne 0x14004f54d
test rbp, rbp
je 0x14004f574
lea rcx, [0x140a77280]
mov edx, 0x28
call fcn.140050114
mov qword [rax], rsi
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rbp
test rdi, rdi
je 0x14004f574
lea rcx, [rbx + rsi]
call rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140050160
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r8d, r8d
mov edx, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x140a77d80], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140a72564], eax
call fcn.140050db0
add rsp, 0x28
ret

Function at 0x1400502c0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov ecx, dword [0x140a72564]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x140050310
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov ecx, dword [0x140a72564]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x28], rax
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x10]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
jne 0x140050376
movsxd rax, dword [rsp + 0x20]
add rax, 0xa
mov r8, rax
xor edx, edx
mov rcx, qword [0x140a77d80]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rax
jmp 0x1400503a1
movsxd rax, dword [rsp + 0x20]
add rax, 0xa
mov r9, rax
mov rax, qword [rsp + 0x40]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x140a77d80]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rax
movsxd rax, dword [rsp + 0x20]
xor edx, edx
mov ecx, 2
div rcx
movsxd rcx, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x28]
add rcx, qword [rdx]
mov r8d, eax
mov rdx, rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call fcn.140050a20
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x10], rax
add rsp, 0x38
ret

Function at 0x140050460
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x140a72564]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
add rsp, 0x38
ret

Function at 0x140050490
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x140a72564]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
add rsp, 0x38
ret

Function at 0x1400504c0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x140a72564]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x10]
add rax, 2
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
add rsp, 0x38
ret

Function at 0x1400504f0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x140a72564]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rsp, 0x38
ret
Function at 0x1400505f0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp dword [0x140a72564], 0xffffffff
jne 0x14005061f
call fcn.140050160
mov ecx, dword [0x140a72564]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
lea rcx, [0x1400505a0]
call fcn.14009bb8c
jmp 0x140050650
mov ecx, dword [0x140a72564]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x140050650
call fcn.140050db0
mov ecx, dword [0x140a72564]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
lea rcx, [0x1400505a0]
call fcn.14009bb8c
add rsp, 0x28
ret

Function at 0x1400506d0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x140a72564]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx + 0x10]
add rsp, 0x38
ret

Function at 0x140050730
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov ecx, dword [0x140a72564]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x28], rax
cmp dword [rsp + 0x58], 0xffffffff
jne 0x140050760
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x58], eax
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x10]
lea rax, [rcx + rax*2]
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 8]
sub rcx, 4
cmp rax, rcx
jl 0x1400507d2
mov eax, dword [rsp + 0x20]
add eax, 0x4000
cdqe
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
add rax, 0xa
mov r9, rax
mov rax, qword [rsp + 0x28]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x140a77d80]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
jmp 0x140050830
mov rax, qword [rsp + 0x28]
cmp qword [rax + 8], 0x100000
jle 0x140050830
cmp dword [rsp + 0x20], 0x100000
jge 0x1400507f3
mov dword [rsp + 0x20], 0x100000
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
add rax, 0xa
mov r9, rax
mov rax, qword [rsp + 0x28]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x140a77d80]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
movsxd rax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
add rax, qword [rcx]
mov qword [rsp + 0x30], rax
movsxd rax, dword [rsp + 0x58]
movsxd rcx, dword [rsp + 0x50]
lea rax, [rax + rcx*2]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x140050870
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x140a72564]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov eax, dword [rsp + 0x40]
shl eax, 1
cdqe
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0x10]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
add rsp, 0x38
ret
Function at 0x140050910
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x140a72564]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx]
xor edx, edx
mov word [rcx + rax], dx
add rsp, 0x38
ret

Function at 0x140050950
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov ecx, dword [0x140a72564]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
cmp qword [rsp + 0x40], rax
jb 0x1400509ab
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx + 0x10]
cmp qword [rsp + 0x40], rax
ja 0x1400509ab
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
inc rax
jmp 0x1400509ad
xor eax, eax
add rsp, 0x38
ret

Function at 0x1400509c0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x140a72564]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx]
add rsp, 0x38
ret

Function at 0x1400509f0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x140a72564]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx]
lea rax, [rcx + rax - 1]
add rsp, 0x38
ret

Function at 0x140050db0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x38
mov r8d, 0x18
xor edx, edx
mov rcx, qword [0x140a77d80]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x20], rax
mov r8d, 0x10
xor edx, edx
mov rcx, qword [0x140a77d80]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rsp + 0x20]
mov qword [rcx], rax
mov rax, qword [rsp + 0x20]
mov qword [rax + 8], 0x10
mov rax, qword [rsp + 0x20]
mov qword [rax + 0x10], 0
mov rdx, qword [rsp + 0x20]
mov ecx, dword [0x140a72564]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x38
ret
Function at 0x14006ee10
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x20
mov rdi, qword [rcx + 0x70]
mov r15, rdx
mov rsi, rcx
mov eax, dword [rdi + 0x18]
cmp eax, 0xc
jle 0x14006ee4c
mov dword [rcx + 0x60], 0x70
xor eax, eax
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r14
cmp dword [rdi + 0x2c], eax
jge 0x14006ef34
nop
movzx ecx, byte [rdi + 0x50]
test cl, cl
jne 0x14006ef07
mov r9, qword [rsi + 0x70]
mov rax, qword [r9 + 0x40]
test rax, rax
je 0x14006ee8c
lea rdx, [rdi + 0x50]
mov r8d, 1
mov rcx, rsi
call rax
cdqe
jmp 0x14006eea2
mov r9, qword [r9 + 0x38]
mov edx, 1
lea rcx, [rdi + 0x50]
mov r8d, edx
call qword [sym.imp.msvcrt.dll_fread]
cmp rax, 1
jne 0x14006efaa
movzx eax, byte [rdi + 0x50]
test al, al
je 0x14006ef9f
mov r9, qword [rsi + 0x70]
lea r14, [rdi + 0x51]
mov r10, qword [r9 + 0x40]
test r10, r10
je 0x14006eeda
movzx r8d, al
mov rdx, r14
mov rcx, rsi
call r10
cdqe
jmp 0x14006eef0
mov r9, qword [r9 + 0x38]
movzx r8d, al
mov edx, 1
mov rcx, r14
call qword [sym.imp.msvcrt.dll_fread]
movzx ecx, byte [rdi + 0x50]
cmp rax, rcx
jne 0x14006efaa
movzx edx, byte [r14]
mov byte [r14], 2
jmp 0x14006ef15
movzx eax, byte [rdi + 0x51]
movzx edx, byte [rax + rdi + 0x50]
inc al
mov byte [rdi + 0x51], al
dec cl
movzx eax, dl
mov byte [rdi + 0x50], cl
mov ecx, dword [rdi + 0x2c]
shl eax, cl
or dword [rdi + 0x30], eax
lea eax, [rcx + 8]
mov dword [rdi + 0x2c], eax
cmp eax, dword [rdi + 0x18]
jl 0x14006ee60
movsxd rax, dword [rdi + 0x18]
lea rcx, [0x1400b2550]
movzx ecx, word [rcx + rax*2]
and ecx, dword [rdi + 0x30]
mov dword [r15], ecx
mov edx, dword [rdi + 0x18]
sub dword [rdi + 0x2c], edx
mov ecx, edx
shr dword [rdi + 0x30], cl
mov ecx, dword [rdi + 0x14]
cmp ecx, 0x1001
jge 0x14006ef7f
mov r8d, dword [rdi + 0x1c]
inc ecx
mov dword [rdi + 0x14], ecx
cmp ecx, r8d
jle 0x14006ef7f
cmp edx, 0xc
jge 0x14006ef7f
lea ecx, [r8 + r8]
mov dword [rdi + 0x1c], ecx
lea ecx, [rdx + 1]
mov dword [rdi + 0x18], ecx
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
mov dword [rsi + 0x60], 0x70
xor eax, eax
jmp 0x14006ef84
mov dword [rsi + 0x60], 0x66
xor eax, eax
jmp 0x14006ef84