joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140050900
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 0x140050915
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x140051af0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x14012f728]
cmp rdi, 1
jbe 0x140051b19
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140070110
lea rcx, [0x14012f728]
call fcn.140049140
test al, al
je 0x140051b5e
xorps xmm0, xmm0
movups xmmword [0x14012f730], xmm0
lea rbx, [0x14012f728]
lea rdi, [0x14012f730]
mov rcx, rdi
xor edx, edx
call fcn.1400495b0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.1400491e0
jmp 0x140051b07
mov rdi, qword [0x14012f728]
jmp 0x140051b07

Function at 0x140057820
Capabilities:
Reference processor manufacturer constants

Disassembly:
push rsi
push rdi
push rbx
mov r8, rcx
xor ebx, ebx
xor eax, eax
xor ecx, ecx
xchg rbx, rsi
cpuid
xchg rbx, rsi
test eax, eax
jle 0x140057932
mov esi, eax
mov eax, 1
xor ecx, ecx
xchg rbx, rdi
cpuid
xchg rbx, rdi
mov r9d, ecx
mov r10d, edx
mov r11d, eax
cmp esi, 7
jb 0x14005786d
mov eax, 7
xor ecx, ecx
xchg rbx, rbx
cpuid
xchg rbx, rbx
and ebx, 0x20
mov dword [r8], r11d
mov eax, r11d
and eax, 0xf
mov dword [r8 + 8], eax
shr r11d, 0xc
and r11d, 3
mov dword [r8 + 4], r11d
mov eax, r10d
shr eax, 0x17
and al, 1
mov byte [r8 + 0xc], al
mov eax, r10d
shr eax, 0x19
and al, 1
mov byte [r8 + 0xd], al
shr r10d, 0x1a
and r10b, 1
mov byte [r8 + 0xe], r10b
mov eax, r9d
and al, 1
mov byte [r8 + 0xf], al
mov eax, r9d
shr eax, 9
and al, 1
mov byte [r8 + 0x10], al
mov eax, r9d
shr eax, 0x13
and al, 1
mov byte [r8 + 0x11], al
mov eax, r9d
shr eax, 0x14
and al, 1
mov byte [r8 + 0x12], al
mov eax, r9d
shr eax, 0x17
and al, 1
mov byte [r8 + 0x13], al
mov eax, r9d
shr eax, 0x1f
mov byte [r8 + 0x19], al
mov eax, r9d
not eax
test eax, 0x1c000000
jne 0x140057969
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
mov byte [r8 + 0x14], al
mov ecx, r9d
shr ecx, 0x19
and cl, 1
mov byte [r8 + 0x17], cl
shr r9d, 0xc
and r9b, 1
mov byte [r8 + 0x15], r9b
test al, al
setne al
test ebx, ebx
setne cl
and cl, al
mov byte [r8 + 0x16], cl
mov eax, 0x80000000
xor ecx, ecx
xchg rbx, rbx
cpuid
xchg rbx, rbx
cmp eax, 0x80000006
jle 0x14005796d
mov eax, 0x80000007
xor ecx, ecx
xchg rbx, rbx
cpuid
xchg rbx, rbx
shr edx, 8
and dl, 1
mov byte [r8 + 0x18], dl
test dl, dl
je 0x140057973
pop rbx
pop rdi
pop rsi
ret
xor eax, eax
jmp 0x140057905
mov dl, byte [r8 + 0x18]
jmp 0x140057961
cmp byte [r8 + 0x19], 0
je 0x140057965
mov eax, 0x40000000
xor ecx, ecx
xchg rbx, rbx
cpuid
xchg rbx, rbx
cmp ebx, 0x7263694d
jne 0x140057965
cmp ecx, 0x666f736f
jne 0x140057965
cmp edx, 0x76482074
jne 0x140057965
mov byte [r8 + 0x18], 1
jmp 0x140057965

Function at 0x140057ce0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x140057d1c
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 0x140057d26
add rdi, rbx
sub rsi, rbx
jne 0x140057cfa
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
Function at 0x1400616c0
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 0x140061707
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140061721
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400616ff
mov qword [rsi], rdi
call fcn.1400694a0
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 0x140061737
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400694a0
mov rcx, qword [rsi]
call fcn.140069ad0
mov qword [rsi], 0
jmp 0x1400616ed
int3

Function at 0x140061790
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 0x140061827
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140061811
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400617ee
mov qword [rsi], rdi
call fcn.1400694a0
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 0x14006182b
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400694a0
mov rcx, qword [rsi]
call fcn.140069ad0
mov qword [rsi], 0
jmp 0x1400617dc
mov byte [rsi + 8], 1
int3
Function at 0x140069110
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 [0x140117028]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.140069ef0
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x14012a120]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x14006916d
jnp 0x1400691d2
ucomisd xmm0, xmm6
jne 0x140069179
jnp 0x1400692e8
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x1401003d0]
subpd xmm1, xmmword [0x1401003e0]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x140101520]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140081fb0
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 [0x14012a130]
mov ecx, dword [0x140126b24]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400692ef
mov eax, dword [0x14012a140]
mov ecx, dword [0x140126b24]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140069329
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 [0x14012a138]
cvtsi2sd xmm1, rbp
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x140101518]
ucomisd xmm2, xmm1
ja 0x14006916d
shl r15, 0x20
or r14, r15
sub r14, qword [0x14012a128]
movq xmm0, r14
punpckldq xmm0, xmmword [0x1401003d0]
subpd xmm0, xmmword [0x1401003e0]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x14012a120], xmm0
jmp 0x14006916d
xor eax, eax
jmp 0x1400691ab
lea rcx, [0x14012a130]
call fcn.140080dc0
cmp dword [0x14012a130], 0xffffffff
jne 0x14006921c
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x14012a128], rdx
lea rcx, [0x14012a130]
call fcn.140080e58
jmp 0x14006921c
lea rcx, [0x14012a140]
call fcn.140080dc0
cmp dword [0x14012a140], 0xffffffff
jne 0x140069241
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x14012a138], rax
lea rcx, [0x14012a140]
call fcn.140080e58
jmp 0x140069241
Function at 0x14006ebd0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140117028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14012ce00]
mov ecx, dword [0x140126b24]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14006ec30
mov rsi, qword [0x14012cdf8]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140081fb0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14012ce00]
call fcn.140080dc0
cmp dword [0x14012ce00], 0xffffffff
jne 0x14006ec0c
lea rsi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1400840e0
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.140080c6c
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14012ce48]
mov ecx, dword [0x140126b24]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14006ecf0
lea r8, [0x14012ce18]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.1400467e0
mov qword [0x14012cdf8], rsi
lea rcx, [0x14012ce00]
call fcn.140080e58
jmp 0x14006ec0c
lea rcx, [0x14012ce48]
call fcn.140080dc0
cmp dword [0x14012ce48], 0xffffffff
jne 0x14006ecc1
xorps xmm0, xmm0
movups xmmword [0x14012ce38], xmm0
movups xmmword [0x14012ce28], xmm0
movups xmmword [0x14012ce18], xmm0
lea rcx, [0x14012ce18]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14012ce48]
call fcn.140080e58
jmp 0x14006ecc1
Function at 0x14006ed40
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140117028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14012ce00]
mov ecx, dword [0x140126b24]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14006eda1
mov rax, qword [0x14012cdf8]
mov esi, dword [rax]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140081fb0
mov eax, esi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14012ce00]
call fcn.140080dc0
cmp dword [0x14012ce00], 0xffffffff
jne 0x14006ed7c
lea rsi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1400840e0
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.140080c6c
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14012ce48]
mov ecx, dword [0x140126b24]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14006ee61
lea r8, [0x14012ce18]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.1400467e0
mov qword [0x14012cdf8], rsi
lea rcx, [0x14012ce00]
call fcn.140080e58
jmp 0x14006ed7c
lea rcx, [0x14012ce48]
call fcn.140080dc0
cmp dword [0x14012ce48], 0xffffffff
jne 0x14006ee32
xorps xmm0, xmm0
movups xmmword [0x14012ce38], xmm0
movups xmmword [0x14012ce28], xmm0
movups xmmword [0x14012ce18], xmm0
lea rcx, [0x14012ce18]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14012ce48]
call fcn.140080e58
jmp 0x14006ee32

Function at 0x1400700d0
Capabilities:
Get thread local storage value

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

Function at 0x140070110
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1401269c0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14007014e
mov rcx, qword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 8]
mov rdx, qword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x140070147
call fcn.1400493a0
jmp 0x14007012e

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

Disassembly:
mov eax, ecx
test r8, r8
je 0x14007064b
xor ecx, ecx
lea r9, [0x1401061e0]
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 0x140070630
ret
Function at 0x140071960
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x14007199c
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 0x1400719a6
add rdi, rbx
sub rsi, rbx
jne 0x14007197a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3

Function at 0x140072650
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
movzx eax, byte [rcx + 0x4f]
test al, al
js 0x14007272b
test rax, rax
jne 0x14007271c
cmp dword [rsi + 0x50], 0
jne 0x14007271c
mov byte [rsi + 0x54], 0
mov rax, qword [rsi + 0x10]
mov qword [rsi + 8], rax
cmp rax, qword [rsi + 0x18]
je 0x14007276b
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.14005bdb0
cmp rax, 0xffffffffffffffff
jne 0x140072759
cmp dword [rsi + 0x58], 1
je 0x140072734
mov rax, qword [rsi + 0x10]
mov bl, 1
cmp rax, qword [rsi + 0x18]
je 0x140072771
nop dword [rax]
movzx edx, byte [rax]
mov rcx, rdi
xor r8d, r8d
call fcn.14005bdb0
cmp rax, 0xffffffffffffffff
jne 0x140072771
cmp dword [rsi + 0x58], 1
mov rax, qword [rsi + 0x10]
je 0x140072701
inc rax
mov qword [rsi + 0x10], rax
cmp rax, qword [rsi + 0x18]
jne 0x1400726d0
jmp 0x140072771
movzx ecx, byte [rax]
cmp rcx, 0x20
ja 0x1400726f2
movabs rdx, 0x100003600
bt rdx, rcx
jae 0x1400726f2
jmp 0x140072771
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1400dd410
mov rax, qword [rsi + 0x40]
jmp 0x140072666
mov rax, qword [rsi + 8]
movzx eax, byte [rax]
cmp rax, 0x20
ja 0x1400726b9
movabs rcx, 0x100003600
bt rcx, rax
jae 0x1400726b9
mov rax, qword [rsi + 0x10]
mov qword [rsi + 8], rax
cmp rax, qword [rsi + 0x18]
jne 0x140072693
mov byte [rsi + 0x54], 1
xor ebx, ebx
mov eax, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x140076e90
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x14012f6f0]
cmp rsi, 1
jbe 0x140076eb3
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140070110
lea rcx, [0x14012f6f0]
call fcn.140049140
test al, al
je 0x140076ef8
xorps xmm0, xmm0
movups xmmword [0x14012f6f8], xmm0
lea rdi, [0x14012f6f0]
lea rsi, [0x14012f6f8]
mov rcx, rsi
xor edx, edx
call fcn.1400495b0
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.1400491e0
jmp 0x140076ea3
mov rsi, qword [0x14012f6f0]
jmp 0x140076ea3

Function at 0x14007cd80
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1401306d8]
mov ecx, dword [0x140126b24]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007cdb5
lea rcx, [0x1401306c8]
add rsp, 0x28
jmp fcn.1400700d0
lea rcx, [0x1401306d8]
call fcn.140080dc0
cmp dword [0x1401306d8], 0xffffffff
jne 0x14007cda5
xorps xmm0, xmm0
movups xmmword [0x1401306c8], xmm0
lea rcx, [0x1401306c8]
xor edx, edx
call fcn.1400495b0
lea rcx, [0x1401306d8]
call fcn.140080e58
jmp 0x14007cda5
Function at 0x140080500
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140130800]
mov ecx, dword [0x140126b24]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140080566
lea rcx, [0x1401307f0]
xor edx, edx
call fcn.140070110
mov eax, dword [0x140130818]
mov ecx, dword [0x140126b24]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400805a1
lea rcx, [0x140130808]
xor edx, edx
add rsp, 0x28
jmp fcn.140070110
lea rcx, [0x140130800]
call fcn.140080dc0
cmp dword [0x140130800], 0xffffffff
jne 0x140080525
xorps xmm0, xmm0
movups xmmword [0x1401307f0], xmm0
lea rcx, [0x1401307f0]
xor edx, edx
call fcn.1400495b0
lea rcx, [0x140130800]
call fcn.140080e58
jmp 0x140080525
lea rcx, [0x140130818]
call fcn.140080dc0
cmp dword [0x140130818], 0xffffffff
jne 0x140080554
xorps xmm0, xmm0
movups xmmword [0x140130808], xmm0
lea rcx, [0x140130808]
xor edx, edx
call fcn.1400495b0
lea rcx, [0x140130818]
call fcn.140080e58
jmp 0x140080554

Function at 0x1400806f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x140130820]
cmp rsi, 1
jbe 0x140080713
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140070110
lea rcx, [0x140130820]
call fcn.140049140
test al, al
je 0x140080758
xorps xmm0, xmm0
movups xmmword [0x140130828], xmm0
lea rdi, [0x140130820]
lea rsi, [0x140130828]
mov rcx, rsi
xor edx, edx
call fcn.1400495b0
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.1400491e0
jmp 0x140080703
mov rsi, qword [0x140130820]
jmp 0x140080703

Function at 0x140094334
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140094488

Function at 0x1400974d0
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 [0x140117028]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x1400f1968]
mov rbp, rcx
call fcn.1400a9254
xor edi, edi
test rax, rax
je 0x1400975b6
mov ebx, edi
call fcn.140097168
mov r14d, dword [rax]
call fcn.140097168
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.14009ba88
mov rsi, rax
test rax, rax
je 0x140097547
call fcn.140097168
mov dword [rax], r14d
jmp 0x140097571
call fcn.140097168
cmp dword [rax], 0x22
jne 0x1400975ae
call fcn.140097168
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.14009ba88
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1400975ae
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140097575
cmp rax, 3
je 0x140097590
mov rcx, rsi
call fcn.14009742c
test al, al
je 0x1400975a1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1400975a1
mov dil, 1
mov rcx, rbx
call fcn.140061d30
mov al, dil
jmp 0x1400975b8
mov rcx, rbx
call fcn.140061d30
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140081fb0
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 0x1400aba1c
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 0x1400aba4c
xor eax, eax
jmp 0x1400abb0f
mov rbp, rbx
cmp word [rax], si
je 0x1400aba71
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400aba58
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400aba54
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.1400ab96c
movsxd r14, eax
test eax, eax
jne 0x1400abaaf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400aba45
mov rcx, r14
call fcn.14002f3a0
mov rdi, rax
test rax, rax
jne 0x1400abac8
xor ecx, ecx
call fcn.140061d30
jmp 0x1400abaa4
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.1400ab96c
test eax, eax
jne 0x1400abaf9
mov rcx, rdi
call fcn.140061d30
jmp 0x1400abb03
xor ecx, ecx
call fcn.140061d30
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 0x1400abb2c
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 0x1400abbb3
mov rsi, rbx
cmp word [rax], bp
je 0x1400abb72
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400abb5c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400abb58
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14002f3a0
mov rdi, rax
test rax, rax
je 0x1400abba0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140083a30
mov rbp, rdi
xor ecx, ecx
call fcn.140061d30
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
Function at 0x1400b272c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14008e9bc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400b27b6
cmp byte [rbp - 0x21], r15b
je 0x1400b27b1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400b27ec
call fcn.1400a4df4
test eax, eax
jne 0x1400b27d8
cmp byte [rbp - 0x21], r15b
je 0x1400b27d0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400b27ec
cmp byte [rbp - 0x21], r15b
je 0x1400b27e9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140093f98
test eax, eax
jne 0x1400b288c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14008e9bc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400b282b
cmp byte [rbp - 0x21], r15b
je 0x1400b2860
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400b2860
call fcn.1400a4df4
test eax, eax
jne 0x1400b284c
cmp byte [rbp - 0x21], r15b
je 0x1400b2845
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400b2860
cmp byte [rbp - 0x21], r15b
je 0x1400b285d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140093f98
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400b288c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400b288f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400b289d
mov rcx, rdi
call fcn.140061d30
cmp byte [rbp + 0x3f], r15b
je 0x1400b28ac
mov rcx, qword [rbp + 0x27]
call fcn.140061d30
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1400cc7c0
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov ecx, 0x10
call fcn.140080c6c
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x1400cc830]
xor ecx, ecx
xor edx, edx
mov r9, rax
call fcn.140094114
mov qword [rbx], rax
test rax, rax
je 0x1400cc817
xor eax, eax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]