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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x14012baf0]
cmp rdi, 1
jbe 0x140052109
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14007c130
lea rcx, [0x14012baf0]
call fcn.140050b40
test al, al
je 0x14005214f
mov qword [0x14012baf8], 0
lea rbx, [0x14012baf0]
lea rdi, [0x14012baf8]
mov rcx, rdi
xor edx, edx
call fcn.140050fc0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.140050be0
jmp 0x1400520f7
mov rdi, qword [0x14012baf0]
jmp 0x1400520f7

Function at 0x140056360
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x140119028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
cmovae r8, rdi
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400563c0
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x1400563c9
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14008ab00
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x1400563a9
int3
mov rcx, qword [rcx + 8]
jmp 0x140056360

Function at 0x1400563d0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140119028]
xor rax, rsp
mov ebx, 0xffffffff
cmp r8, rbx
cmovb rbx, r8
mov qword [rsp + 0x30], rax
lea r14, [rsp + 0x2c]
mov r15, qword [sym.imp.KERNEL32.dll_ReadFile]
mov r12, qword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
mov r8d, ebx
mov r9, r14
call r15
test eax, eax
je 0x140056473
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x140056462
cmp eax, 0xffffffff
je 0x140056487
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14008ab00
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, rdi
call r12
cmp eax, 3
je 0x140056411
mov eax, dword [rsp + 0x2c]
jmp 0x140056442
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x140056444
int3

Function at 0x140056940
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rdi, rcx
mov rax, qword [0x140119028]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.140056860
test rax, rax
jne 0x14005697f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
je 0x14005699b
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14008ab00
mov eax, esi
add rsp, 0x178
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140074720
test al, al
jne 0x1400569ad
xor esi, esi
jmp 0x14005697f
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_file_io_win.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0xfb
mov r9d, 2
call fcn.1400dd030
lea rcx, [rsp + 0x40]
lea rdx, [0x140108f80]
mov r8d, 0xc
call fcn.1400bcbd0
mov rcx, rsi
call fcn.1400dd0b0
jmp 0x1400569a9
Function at 0x140056e80
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x140119028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
cmovae r8, rdi
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400563c0
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x1400563c9
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14008ab00
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x1400563a9
int3
mov rcx, qword [rcx + 8]
jmp 0x140056360

Function at 0x140057a40
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140057a55
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret

Function at 0x140058850
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x14012bd10]
cmp rdi, 1
jbe 0x140058879
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14007c130
lea rcx, [0x14012bd10]
call fcn.140050b40
test al, al
je 0x1400588bf
mov qword [0x14012bd18], 0
lea rbx, [0x14012bd10]
lea rdi, [0x14012bd18]
mov rcx, rdi
xor edx, edx
call fcn.140050fc0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.140050be0
jmp 0x140058867
mov rdi, qword [0x14012bd10]
jmp 0x140058867
Function at 0x14006e4f0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x14006e537
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14006e551
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14006e52f
mov qword [rsi], rdi
call fcn.140075ec0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x14006e567
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140075ec0
mov rcx, qword [rsi]
call fcn.140076550
mov qword [rsi], 0
jmp 0x14006e51d
int3

Function at 0x14006e5c0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor ebx, ebx
test edx, edx
sete bl
xor ecx, ecx
mov edx, ebx
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x14006e657
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14006e641
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14006e61e
mov qword [rsi], rdi
call fcn.140075ec0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 1
inc rax
cmp rax, 1
jbe 0x14006e65b
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140075ec0
mov rcx, qword [rsi]
call fcn.140076550
mov qword [rsi], 0
jmp 0x14006e60c
mov byte [rsi + 8], 1
int3
Function at 0x140075b30
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
movapd xmmword [rsp + 0x40], xmm6
mov rsi, rcx
mov rax, qword [0x140119028]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.140076990
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x140127598]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x140075b8d
jnp 0x140075bf2
ucomisd xmm0, xmm6
jne 0x140075b99
jnp 0x140075d08
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x1400ffec0]
subpd xmm1, xmmword [0x1400ffed0]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x140103dd8]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14008ab00
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov r12d, eax
call rbx
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x1401275a8]
mov ecx, dword [0x140122788]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140075d0f
mov eax, dword [0x1401275b8]
mov ecx, dword [0x140122788]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140075d49
rdtsc
mov r14, rax
mov r15, rdx
xor edi, edi
lea rbx, [rsp + 0x30]
mov qword [rbx], rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rbp, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [rbx], rdi
lea rdi, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub rbp, qword [0x1401275b0]
cvtsi2sd xmm1, rbp
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x140103dd0]
ucomisd xmm2, xmm1
ja 0x140075b8d
shl r15, 0x20
or r14, r15
sub r14, qword [0x1401275a0]
movq xmm0, r14
punpckldq xmm0, xmmword [0x1400ffec0]
subpd xmm0, xmmword [0x1400ffed0]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x140127598], xmm0
jmp 0x140075b8d
xor eax, eax
jmp 0x140075bcb
lea rcx, [0x1401275a8]
call fcn.140089910
cmp dword [0x1401275a8], 0xffffffff
jne 0x140075c3c
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x1401275a0], rdx
lea rcx, [0x1401275a8]
call fcn.1400899a8
jmp 0x140075c3c
lea rcx, [0x1401275b8]
call fcn.140089910
cmp dword [0x1401275b8], 0xffffffff
jne 0x140075c61
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x1401275b0], rax
lea rcx, [0x1401275b8]
call fcn.1400899a8
jmp 0x140075c61
Function at 0x14007b720
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140119028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14012a268]
mov ecx, dword [0x140122788]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007b780
mov rsi, qword [0x14012a260]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14008ab00
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14012a268]
call fcn.140089910
cmp dword [0x14012a268], 0xffffffff
jne 0x14007b75c
lea rsi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14008cc30
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x2c]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.1400897bc
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14012a2b0]
mov ecx, dword [0x140122788]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007b840
lea r8, [0x14012a280]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.14004ff60
mov qword [0x14012a260], rsi
lea rcx, [0x14012a268]
call fcn.1400899a8
jmp 0x14007b75c
lea rcx, [0x14012a2b0]
call fcn.140089910
cmp dword [0x14012a2b0], 0xffffffff
jne 0x14007b811
xorps xmm0, xmm0
movups xmmword [0x14012a2a0], xmm0
movups xmmword [0x14012a290], xmm0
movups xmmword [0x14012a280], xmm0
lea rcx, [0x14012a280]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14012a2b0]
call fcn.1400899a8
jmp 0x14007b811
Function at 0x14007b890
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140119028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14012a268]
mov ecx, dword [0x140122788]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007b8f1
mov rax, qword [0x14012a260]
mov esi, dword [rax]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14008ab00
mov eax, esi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14012a268]
call fcn.140089910
cmp dword [0x14012a268], 0xffffffff
jne 0x14007b8cc
lea rsi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14008cc30
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x2c]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.1400897bc
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14012a2b0]
mov ecx, dword [0x140122788]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007b9b1
lea r8, [0x14012a280]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.14004ff60
mov qword [0x14012a260], rsi
lea rcx, [0x14012a268]
call fcn.1400899a8
jmp 0x14007b8cc
lea rcx, [0x14012a2b0]
call fcn.140089910
cmp dword [0x14012a2b0], 0xffffffff
jne 0x14007b982
xorps xmm0, xmm0
movups xmmword [0x14012a2a0], xmm0
movups xmmword [0x14012a290], xmm0
movups xmmword [0x14012a280], xmm0
lea rcx, [0x14012a280]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14012a2b0]
call fcn.1400899a8
jmp 0x14007b982

Function at 0x14007c0f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1401226d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14007c124
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x14007c124
mov rax, qword [rax + rcx]
add rsp, 0x20
pop rsi
ret
xor eax, eax
jmp 0x14007c11e

Function at 0x14007c130
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1401226d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14007c16e
movsxd rcx, dword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 4]
movsxd rdx, dword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x14007c167
call fcn.140050db0
jmp 0x14007c14e

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

Disassembly:
mov eax, ecx
test r8, r8
je 0x14007c6ab
xor ecx, ecx
lea r9, [0x1401083e0]
movzx r10d, al
movzx r11d, byte [rdx + rcx]
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
inc rcx
cmp r8, rcx
jne 0x14007c690
ret
Function at 0x14007d960
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x14007d99c
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14007d9a6
add rdi, rbx
sub rsi, rbx
jne 0x14007d97a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3

Function at 0x14007e690
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
movzx eax, byte [rcx + 0x4f]
test al, al
js 0x14007e773
test rax, rax
jne 0x14007e762
cmp dword [rsi + 0x50], 0
jne 0x14007e762
mov byte [rsi + 0x54], 0
mov rax, qword [rsi + 0x10]
mov qword [rsi + 8], rax
cmp rax, qword [rsi + 0x18]
je 0x14007e7b3
lea rdi, [rsi + 0x20]
lea rcx, [rax + 1]
mov qword [rsi + 0x10], rcx
movzx edx, byte [rax]
mov rcx, rdi
xor r8d, r8d
call fcn.140068660
cmp rax, 0xffffffffffffffff
jne 0x14007e7a1
cmp dword [rsi + 0x58], 1
je 0x14007e77c
mov rax, qword [rsi + 0x10]
mov bl, 1
cmp rax, qword [rsi + 0x18]
je 0x14007e7b9
movabs r14, 0x100003600
nop dword [rax]
movzx edx, byte [rax]
mov rcx, rdi
xor r8d, r8d
call fcn.140068660
cmp rax, 0xffffffffffffffff
jne 0x14007e7b9
cmp dword [rsi + 0x58], 1
mov rax, qword [rsi + 0x10]
je 0x14007e751
inc rax
mov qword [rsi + 0x10], rax
cmp rax, qword [rsi + 0x18]
jne 0x14007e720
jmp 0x14007e7b9
movzx ecx, byte [rax]
cmp rcx, 0x20
ja 0x14007e742
bt r14, rcx
jae 0x14007e742
jmp 0x14007e7b9
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1400e8c10
mov rax, qword [rsi + 0x40]
jmp 0x14007e6a8
mov rax, qword [rsi + 8]
movzx eax, byte [rax]
cmp rax, 0x20
ja 0x14007e6ff
movabs rcx, 0x100003600
bt rcx, rax
jae 0x14007e6ff
mov rax, qword [rsi + 0x10]
mov qword [rsi + 8], rax
cmp rax, qword [rsi + 0x18]
jne 0x14007e6d5
mov byte [rsi + 0x54], 1
xor ebx, ebx
mov eax, ebx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14007fc50
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x14012bce8]
cmp rsi, 1
jbe 0x14007fc73
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14007c130
lea rcx, [0x14012bce8]
call fcn.140050b40
test al, al
je 0x14007fcb9
mov qword [0x14012bcf0], 0
lea rdi, [0x14012bce8]
lea rsi, [0x14012bcf0]
mov rcx, rsi
xor edx, edx
call fcn.140050fc0
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.140050be0
jmp 0x14007fc63
mov rsi, qword [0x14012bce8]
jmp 0x14007fc63

Function at 0x1400852a0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14012bd38]
mov ecx, dword [0x140122788]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400852d5
lea rcx, [0x14012bd30]
add rsp, 0x28
jmp fcn.14007c0f0
lea rcx, [0x14012bd38]
call fcn.140089910
cmp dword [0x14012bd38], 0xffffffff
jne 0x1400852c5
mov qword [0x14012bd30], 0
lea rcx, [0x14012bd30]
xor edx, edx
call fcn.140050fc0
lea rcx, [0x14012bd38]
call fcn.1400899a8
jmp 0x1400852c5
Function at 0x140087630
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14012bdc8]
mov ecx, dword [0x140122788]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140087696
lea rcx, [0x14012bdc0]
xor edx, edx
call fcn.14007c130
mov eax, dword [0x14012bdd8]
mov ecx, dword [0x140122788]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400876d2
lea rcx, [0x14012bdd0]
xor edx, edx
add rsp, 0x28
jmp fcn.14007c130
lea rcx, [0x14012bdc8]
call fcn.140089910
cmp dword [0x14012bdc8], 0xffffffff
jne 0x140087655
mov qword [0x14012bdc0], 0
lea rcx, [0x14012bdc0]
xor edx, edx
call fcn.140050fc0
lea rcx, [0x14012bdc8]
call fcn.1400899a8
jmp 0x140087655
lea rcx, [0x14012bdd8]
call fcn.140089910
cmp dword [0x14012bdd8], 0xffffffff
jne 0x140087684
mov qword [0x14012bdd0], 0
lea rcx, [0x14012bdd0]
xor edx, edx
call fcn.140050fc0
lea rcx, [0x14012bdd8]
call fcn.1400899a8
jmp 0x140087684

Function at 0x1400891c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x14012be28]
cmp rsi, 1
jbe 0x1400891e3
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14007c130
lea rcx, [0x14012be28]
call fcn.140050b40
test al, al
je 0x140089229
mov qword [0x14012be30], 0
lea rdi, [0x14012be28]
lea rsi, [0x14012be30]
mov rcx, rsi
xor edx, edx
call fcn.140050fc0
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.140050be0
jmp 0x1400891d3
mov rsi, qword [0x14012be28]
jmp 0x1400891d3

Function at 0x140089240
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [0x14012be40]
mov ecx, dword [0x140122788]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14008927d
lea rcx, [0x14012be38]
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.14007c130
lea rcx, [0x14012be40]
call fcn.140089910
cmp dword [0x14012be40], 0xffffffff
jne 0x140089269
mov qword [0x14012be38], 0
lea rcx, [0x14012be38]
xor edx, edx
call fcn.140050fc0
lea rcx, [0x14012be40]
call fcn.1400899a8
jmp 0x140089269

Function at 0x14009ce84
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14009cfd8
Function at 0x1400a0020
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x140119028]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x1400f3968]
mov rbp, rcx
call fcn.1400b1da4
xor edi, edi
test rax, rax
je 0x1400a0106
mov ebx, edi
call fcn.14009fcb8
mov r14d, dword [rax]
call fcn.14009fcb8
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.1400a45d8
mov rsi, rax
test rax, rax
je 0x1400a0097
call fcn.14009fcb8
mov dword [rax], r14d
jmp 0x1400a00c1
call fcn.14009fcb8
cmp dword [rax], 0x22
jne 0x1400a00fe
call fcn.14009fcb8
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1400a45d8
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1400a00fe
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1400a00c5
cmp rax, 3
je 0x1400a00e0
mov rcx, rsi
call fcn.14009ff7c
test al, al
je 0x1400a00f1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1400a00f1
mov dil, 1
mov rcx, rbx
call fcn.14006eb80
mov al, dil
jmp 0x1400a0108
mov rcx, rbx
call fcn.14006eb80
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14008ab00
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400b456c
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400b459c
xor eax, eax
jmp 0x1400b465f
mov rbp, rbx
cmp word [rax], si
je 0x1400b45c1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400b45a8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400b45a4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400b44bc
movsxd r14, eax
test eax, eax
jne 0x1400b45ff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400b4595
mov rcx, r14
call fcn.140038940
mov rdi, rax
test rax, rax
jne 0x1400b4618
xor ecx, ecx
call fcn.14006eb80
jmp 0x1400b45f4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400b44bc
test eax, eax
jne 0x1400b4649
mov rcx, rdi
call fcn.14006eb80
jmp 0x1400b4653
xor ecx, ecx
call fcn.14006eb80
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400b467c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400b4703
mov rsi, rbx
cmp word [rax], bp
je 0x1400b46c2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400b46ac
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400b46a8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140038940
mov rdi, rax
test rax, rax
je 0x1400b46f0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14008c580
mov rbp, rdi
xor ecx, ecx
call fcn.14006eb80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret