joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14011b330
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.14011d8f0
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.1401af8bc
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2], 0
jne 0x14011b363
sub esi, edx
mov ecx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14011d9a0

Function at 0x14011b890
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rbp
push r12
sub rsp, 0x30
mov ebp, r9d
mov rbx, rcx
test r8, r8
je 0x14011b989
movzx r12d, word [r8]
test r12w, r12w
je 0x14011b989
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], r13
xor r13d, r13d
test edx, edx
mov qword [rsp + 0x28], r14
mov eax, r13d
mov qword [rsp + 0x20], r15
cmovns eax, edx
test rcx, rcx
je 0x14011b909
cmp word [rcx], r13w
je 0x14011b909
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rcx + rdi*2], r13w
jne 0x14011b8f0
cmp edi, eax
mov esi, r13d
cmovg edi, eax
sub eax, edi
cmovns esi, eax
jmp 0x14011b90e
mov edi, r13d
mov esi, eax
call fcn.14011db00
lea ecx, [rdi + rsi]
mov edx, ebp
mov r15d, eax
call fcn.14011d8f0
mov r14, rax
test r15d, r15d
je 0x14011b933
mov ecx, r15d
call fcn.14011db40
mov rbx, rax
movsxd r15, edi
test edi, edi
je 0x14011b94d
movsxd rcx, esi
lea r8, [r15 + r15]
mov rdx, rbx
lea rcx, [r14 + rcx*2]
call fcn.140097620
test esi, esi
je 0x14011b962
mov rdi, r14
mov edx, esi
mov rax, r12
mov ecx, esi
rep stosw word [rdi], ax
lea r14, [r14 + rdx*2]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov word [r14 + r15*2], r13w
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rbp
pop rbx
ret
mov ecx, ebp
add rsp, 0x30
pop r12
pop rbp
pop rbx
jmp fcn.14011dad0

Function at 0x14011b9f0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
cmp edx, 0xd
jne 0x14011ba40
mov edi, 0x40
mov edx, r8d
mov ecx, edi
call fcn.14011d8f0
mov rdx, rbx
mov rcx, rax
call fcn.1401af8e8
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], 0
jne 0x14011ba23
sub edi, ecx
mov ecx, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14011d9a0
cmp edx, 1
je 0x14011ba5e
cmp edx, 0x18
je 0x14011ba5e
cmp edx, 3
je 0x14011ba59
cmp edx, 0x19
je 0x14011ba59
cmp edx, 0xb
jne 0x14011ba61
movzx ebx, bx
jmp 0x14011ba61
movzx ebx, bl
mov edi, 0x20
mov edx, r8d
mov ecx, edi
call fcn.14011d8f0
mov r8d, ebx
lea rdx, [0x14023e958]
mov rcx, rax
call fcn.1400fd37c
sub edi, eax
mov ecx, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14011d9a0
Function at 0x14011c668
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 [0x1409d6fe8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x14011c6e9
mov r8, qword [0x1409d6fe0]
lea edx, [rax + 8]
mov rcx, qword [0x14095a988]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1409d6fe8]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x1409d6fd8]
jmp 0x14011c6d5
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x14011c6d2
mov rcx, qword [rbx + 0x10]
add rcx, rdi
call rdx
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14011c6c0
mov rdx, rdi
lea rcx, [0x14011c5cc]
call fcn.1401afab0
mov rbx, qword [rsp + 0x30]
lea rax, [rdi + rsi]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14011c700
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 edi, ecx
mov rbp, r8
mov rsi, rdx
and ecx, 7
je 0x14011c72a
mov eax, 8
sub eax, ecx
add edi, eax
mov rbx, qword [0x1409d6fe0]
test rbx, rbx
jne 0x14011c770
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, qword [0x14095a988]
lea edx, [rbx + 8]
movsxd rdi, edi
mov r8, rdi
mov dword [0x1409d6fe8], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1409d6fe8]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x1409d6fe0]
jmp 0x14011c773
movsxd rdi, edi
mov ecx, dword [0x1409d6fe8]
lea rax, [rdi + rbx]
mov qword [0x1409d6fe0], rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, qword [0x1409d6fe0]
mov edx, 8
mov rcx, qword [0x14095a988]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [0x1409d6fe8]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test rsi, rsi
jne 0x14011c7c2
test rbp, rbp
je 0x14011c7e9
mov edx, 0x28
lea rcx, [0x1409d6fd8]
call fcn.14011d2f8
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rbp
test rsi, rsi
je 0x14011c7e9
lea rcx, [rdi + rbx]
call rsi
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140956680]
cmp ecx, 0xffffffff
jne 0x14011d3a6
call fcn.14011d8c0
jmp 0x14011d3b6
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14011d3d5
call fcn.14011dd20
mov ecx, dword [0x140956680]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
lea rcx, [0x14011d3e0]
add rsp, 0x28
jmp fcn.1401afab0
add rsp, 0x28
ret
Function at 0x14011d420
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x140956680]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
dec qword [rax + 0x338]
mov rcx, qword [rax + 0x338]
mov rbx, qword [rax + rcx*8 + 0x18]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14011d470
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140956680]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
dec qword [rax + 0x338]
mov rcx, qword [rax + 0x338]
mov rax, qword [rax + rcx*8 + 0x18]
mov qword [rdx + 0x10], rax
add rsp, 0x28
ret

Function at 0x14011d4a0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140956680]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
dec qword [rax + 0x338]
mov rcx, qword [rax + 0x338]
mov rdx, qword [rax + rcx*8 + 0x18]
mov qword [rax + 0x10], rdx
mov rax, qword [rax]
add rax, rdx
add rsp, 0x28
ret

Function at 0x14011d4e0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140956680]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
dec qword [rax + 0x338]
mov rcx, qword [rax + 0x338]
mov rax, qword [rax + rcx*8 + 0x18]
add rax, qword [rdx]
add rsp, 0x28
ret

Function at 0x14011d510
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140956680]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, qword [rax + 0x338]
mov rcx, qword [rax + 0x10]
mov qword [rax + rdx*8 + 0x18], rcx
inc qword [rax + 0x338]
add rsp, 0x28
ret

Function at 0x14011d5e0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov r14, rcx
movsxd rbx, edx
mov ecx, dword [0x140956680]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [0x1409d8500]
xor edx, edx
mov rsi, rax
mov rax, qword [r14]
mov r8d, dword [rsi + 0x10]
sub r8d, ebx
movsxd rdi, r8d
lea r9, [rdi + 0xa]
test rax, rax
jne 0x14011d634
mov r8, r9
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x14011d63d
mov r8, rax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [r14], rax
mov rcx, rax
mov rdx, qword [rsi]
shr rdi, 1
add rdx, rbx
mov r8d, edi
call fcn.14011db70
mov rdi, qword [rsp + 0x40]
mov qword [rsi + 0x10], rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret

Function at 0x14011d720
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140956680]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add qword [rax + 0x10], 2
add rsp, 0x28
ret
Function at 0x14011d7a0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x140956680]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov qword [rax + 0x10], rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]

Function at 0x14011d8c0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
sub rsp, 0x28
xor r8d, r8d
mov edx, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x1409d8500], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140956680], eax
add rsp, 0x28
jmp fcn.14011dd20

Function at 0x14011d8f0
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, 0x20
movsxd rbp, ecx
mov esi, edx
mov ecx, dword [0x140956680]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
cmp esi, 0xffffffff
jne 0x14011d920
mov esi, dword [rax + 0x10]
mov eax, dword [rax + 0x10]
mov r8, qword [rbx + 8]
lea edx, [rax + rbp*2]
movsxd rax, edx
lea rcx, [r8 - 4]
cmp rax, rcx
jl 0x14011d941
lea eax, [rdx + 0x4000]
movsxd r9, eax
jmp 0x14011d953
mov eax, 0x100000
cmp r8, rax
jle 0x14011d970
cmp edx, eax
cmovl edx, eax
mov r9d, edx
mov r8, qword [rbx]
xor edx, edx
mov qword [rbx + 8], r9
add r9, 0xa
mov rcx, qword [0x1409d8500]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rbx], rax
mov rax, qword [rbx]
movsxd rdx, esi
mov rsi, qword [rsp + 0x40]
add rax, rdx
lea rcx, [rdx + rbp*2]
mov rbp, qword [rsp + 0x38]
mov qword [rbx + 0x10], rcx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14011d9a0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov ecx, dword [0x140956680]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [rbx + rbx]
movsxd rdx, ecx
sub qword [rax + 0x10], rdx
add rsp, 0x20
pop rbx
ret

Function at 0x14011dad0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, ecx
mov ecx, dword [0x140956680]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edx, edx
mov qword [rax + 0x10], rbx
mov rax, qword [rax]
mov word [rbx + rax], dx
add rsp, 0x20
pop rbx
ret

Function at 0x14011db00
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x140956680]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rax]
cmp rbx, rcx
jb 0x14011db34
mov rdx, qword [rax + 0x10]
add rdx, rcx
cmp rbx, rdx
ja 0x14011db34
sub ebx, ecx
lea eax, [rbx + 1]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x14011db40
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, ecx
mov ecx, dword [0x140956680]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
dec rbx
mov rax, qword [rax]
add rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x14011dbb0
Capabilities:
Get thread local storage value

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

Function at 0x14011dd20
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x1409d8500]
xor edx, edx
mov r8d, 0x340
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [0x1409d8500]
xor edx, edx
mov rbx, rax
lea r8d, [rdx + 0x10]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx + 8], SafeArrayGetLBound
mov rdx, rbx
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x338], rax
mov ecx, dword [0x140956680]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x1401285f0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x388], 0
mov rdi, rcx
jne 0x14012871f
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
xor esi, esi
mov ebx, esi
nop dword [rax]
nop dword [rax + rax]
mov edx, 4
mov dword [rsp + 0x40], esi
lea rcx, [rsp + 0x40]
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1401286a0
mov edx, dword [rsp + 0x40]
mov rcx, rsi
nop
cmp rbx, 4
jae 0x140128661
mov eax, edx
shr eax, cl
add rcx, 8
mov byte [rsp + rbx + 0x48], al
inc rbx
cmp rcx, 0x20
jb 0x140128640
cmp rbx, 4
jb 0x140128620
lea rcx, str.EXPAT_ENTROPY_DEBUG
call fcn.1401e8674
mov ebx, dword [rsp + 0x48]
test rax, rax
je 0x14012870f
cmp byte [rax], 0x31
jne 0x14012870f
cmp byte [rax + 1], sil
jne 0x14012870f
mov ecx, 2
call fcn.14008ad8c
lea r8, str.rand_s
jmp 0x1401286ee
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ebx, dword [rsp + 0x48]
xor ebx, dword [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor eax, ebx
lea rcx, str.EXPAT_ENTROPY_DEBUG
imul ebx, eax, 0x7fffffff
call fcn.1401e8674
test rax, rax
je 0x14012870f
cmp byte [rax], 0x31
jne 0x14012870f
cmp byte [rax + 1], sil
jne 0x14012870f
mov ecx, 2
call fcn.14008ad8c
lea r8, str.fallback_4_
mov dword [rsp + 0x28], 4
lea rdx, str.Entropy:__s_____0x_0lx___lu_bytes__n
mov r9d, 8
mov dword [rsp + 0x20], ebx
mov rcx, rax
call fcn.140123360
mov rsi, qword [rsp + 0x58]
mov dword [rdi + 0x388], ebx
mov rbx, qword [rsp + 0x50]
cmp byte [rdi + 0x1c8], 0
je 0x14012873c
lea rdx, str.xmlhttp:__www.w3.org_XML_1998_namespace
mov rcx, rdi
add rsp, 0x30
pop rdi
jmp fcn.140127af0
mov al, 1
add rsp, 0x30
pop rdi
ret
Function at 0x140188cb0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r14
push r15
sub rsp, 0x30
mov rbx, r9
mov r15, r8
mov ebp, edx
mov r14, rcx
test rcx, rcx
je 0x140188eca
test rbx, rbx
je 0x140188eca
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x78]
test rdi, rdi
je 0x140188d04
mov rax, qword [rdi + 8]
test rax, rax
je 0x140188d16
mov rdx, qword [rdi]
mov ecx, gethostbyname
call rax
jmp 0x140188d0e
mov ecx, gethostbyname
call fcn.1401b0a84
mov rsi, rax
test rax, rax
jne 0x140188d34
mov eax, 0xfffffffc
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rbp
ret
mov rax, qword [rsp + 0x70]
mov qword [rsi + 8], rax
lea rax, [rsi + 0x10]
mov qword [rsi], rbx
xor ebx, ebx
test rax, rax
je 0x140188dad
test rdi, rdi
je 0x140188d89
cmp qword [rdi], rbx
jne 0x140188d67
cmp qword [rdi + 0x18], rbx
jne 0x140188d6d
cmp qword [rdi + 8], rbx
jne 0x140188d67
cmp qword [rdi + 0x10], rbx
je 0x140188d89
cmp qword [rdi + 0x18], rbx
je 0x140188dad
cmp qword [rdi + 8], rbx
jne 0x140188d79
cmp qword [rdi + 0x10], rbx
je 0x140188dad
movups xmm0, xmmword [rdi]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rax + 0x10], xmm1
jmp 0x140188dad
mov qword [rax], rbx
lea rcx, [0x14013c4a0]
mov qword [rax + 8], rcx
lea rcx, [0x14013c4b0]
mov qword [rax + 0x10], rcx
lea rcx, [0x14013c420]
mov qword [rax + 0x18], rcx
lea rax, [rsp + 0x50]
mov r9, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140188ff0]
mov rdx, r15
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [r14], rax
mov r8, rax
test rax, rax
jne 0x140188e1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401833e0
mov ebx, eax
test eax, eax
je 0x140188ec3
test rdi, rdi
je 0x140188e10
mov r8, qword [rdi + 0x18]
test r8, r8
je 0x140188e18
mov rdx, qword [rdi]
mov rcx, rsi
call r8
mov eax, ebx
jmp 0x140188d1b
mov rcx, rsi
call fcn.1401b0a8c
mov eax, ebx
jmp 0x140188d1b
lea eax, [rbp + 5]
cmp eax, 6
ja case.0x140188e3e.2
lea rdx, [0x140000000]
cdqe
mov ecx, dword [rdx + rax*4 + 0x188ee0]
add rcx, rdx
jmp rcx
mov ebx, 0xfffffff1
mov rcx, r8
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
jmp 0x140188d1b
mov ebx, 0xfffffffe
mov rcx, r8
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
jmp 0x140188d1b
mov ebx, 0xffffffff
mov rcx, r8
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
jmp 0x140188d1b
mov ebx, 1
mov rcx, r8
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
jmp 0x140188d1b
mov ebx, 2
mov rcx, r8
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
jmp 0x140188d1b
mov ebx, SafeArrayGetLBound
mov edx, ebx
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
jmp 0x140188d1b
mov rbx, qword [rsp + 0x68]
mov eax, 0xfffffffe
add rsp, 0x30
pop r15
pop r14
pop rbp
ret
Function at 0x1401afab0
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
push r14
push r15
sub rsp, 0x40
cmp dword [0x1409d7088], 0
lea rbx, [0x1409d7098]
mov r14, rdx
mov r15, rcx
jne 0x1401afafd
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x1409d708c], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x1409d7088], 1
mov ecx, dword [0x1409d708c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x1401afbd2
mov rcx, qword [0x14095a988]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x1401afbfd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1409d7090]
test rax, rax
je 0x1401afb4d
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x1409d7090], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
lea r9, [rbp + 0x20]
and dword [rsp + 0x28], 0
mov rcx, rax
mov r8, rdi
mov dword [rsp + 0x20], 0x100000
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
lea r8, [0x1401afc18]
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x1409d708c]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x14095a988]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x1401afbfd
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x1401e78e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1401b0630
sub rsp, rax
mov rax, qword [0x140955a48]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140091848
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1401e792f
mov rax, rbp
jmp 0x1401e7a37
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x95c460]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140095214
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x95c460]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1401e7a33
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401e7a33
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140095214
test rax, rax
js 0x1401e7a33
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1401e7a33
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1401e7a25
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1401e7a25
cmp byte [rcx], 0xd
jne 0x1401e7a0b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1401e7a1a
cmp byte [rcx + 1], 0xa
jne 0x1401e7a1a
inc rcx
jmp 0x1401e7a1a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x956340]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1401e79ed
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1401e7a37
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1401b01d0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1401f15d8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1401f15ee
mov al, 1
jmp 0x1401f164e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1401f15ff
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1401f164c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140081da8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401f164c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1401f164c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1401f164c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1401f164e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1401f9970
Capabilities:
Clear file content

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 rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14009521c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14009521c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1401f9ac0
cmp rax, 0xffffffffffffffff
je 0x1401f9ac0
xor edi, edi
test rbp, rbp
jle 0x1401f9a6b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14007d778
mov rbx, rax
test rax, rax
jne 0x1401f99f8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1401f9a61
mov edx, 0x8000
mov ecx, r14d
call fcn.140078514
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140092704
cmp eax, 0xffffffff
je 0x1401f9a41
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1401f9a08
mov edx, r15d
mov ecx, r14d
call fcn.140078514
jmp 0x1401f9a61
cmp byte [rsi + 0x38], dil
je 0x1401f9a58
cmp dword [rsi + 0x34], 5
jne 0x1401f9a58
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayGetLBound
cmp byte [rsi + 0x30], dil
je 0x1401f9a61
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14007cf40
jmp 0x1401f9ad4
jns 0x1401f9ad4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14009521c
cmp rax, 0xffffffffffffffff
jne 0x1401f9a8c
cmp byte [rsi + 0x30], dil
je 0x1401f9ad4
mov edi, dword [rsi + 0x2c]
jmp 0x1401f9ad4
mov ecx, r14d
call fcn.140081da8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1401f9ad4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayGetElemsize
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayGetLBound
jmp 0x1401f9ad4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1401f9acd
mov eax, dword [rsi + 0x2c]
jmp 0x1401f9ad2
mov eax, SafeArrayPutElement
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14009521c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret