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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rsi, rdx
mov ebx, ecx
mov rax, qword [0x140105028]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x14003dd30]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x14011d718]
lea rdx, [0x14003dbd0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14003de70
cmp dword [0x14011d720], 0
jne 0x14003de60
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x14011d724]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x14003de0c
mov ecx, 1
mov edx, 0x28
call fcn.140047450
test rax, rax
je 0x14003de60
mov r14, rax
mov ecx, dword [0x14011d724]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14003de58
lea r15, [0x14011d728]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x14011d730]
mov qword [rax + rbx*8], rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [r14 + rbx*8], rsi
mov esi, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140076580
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, r14
call fcn.1400473b0
mov rcx, rsi
mov rax, rdi
call qword [0x140127008]
xor esi, esi
jmp 0x14003de3c
call fcn.1400895e0
int3

Function at 0x14003e530
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1401146c0]
cmp ecx, 0xffffffff
je 0x14003e60a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x14003e60a
mov eax, dword [0x14011ef90]
mov ecx, dword [0x140114770]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003e614
mov rbx, qword [0x14011ef88]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14003e65a
mov rax, qword [0x14011d770]
inc rax
xor ecx, ecx
lea rdx, [0x14011d780]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x14003e667
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x14011ef80]
inc ecx
mov dword [0x14011ef80], ecx
mov dword [rax + 0x14], ecx
mov qword [0x14011d770], r8
mov qword [rsi], r8
mov eax, dword [rax + 0x10]
mov dword [rsi + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi], 0x100
jae 0x14003e67c
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14003e680
jmp 0x14003e55a
lea rcx, [0x14011ef90]
call fcn.140075300
cmp dword [0x14011ef90], 0xffffffff
jne 0x14003e57f
mov ecx, 8
call fcn.1400751a4
mov rbx, rax
mov rcx, rax
call fcn.1400588b0
mov qword [0x14011ef88], rbx
lea rcx, [0x14011ef90]
call fcn.140075398
jmp 0x14003e57f
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x14003e597
inc rcx
cmp rcx, 0x100
jne 0x14003e5aa
jmp 0x14003e5f0
int3
Function at 0x14003e680
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.140076520
sub rsp, rax
mov rax, qword [0x140105028]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x1401146c0]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x14003e734
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14003e797
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.1400786c0
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.14007521c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.140078010
mov ecx, dword [rsp + 0x2c]
mov rdx, rdi
or rdx, 3
call sub.KERNEL32.dll_TlsSetValue
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.140076580
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.140040e70
test al, al
je 0x14003e79a
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x14003e772
mov eax, 0xffffffff
lock cmpxchg dword [0x1401146c0], ecx
je 0x14003e6b8
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x1401146c0]
mov dword [rsp + 0x2c], ecx
jmp 0x14003e6b8
lea rcx, [rsp + 0x2c]
call fcn.140040e70
test al, al
je 0x14003e79d
cmp dword [rsp + 0x2c], 0xffffffff
je 0x14003e79d
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x14003e74b
int3
int3
int3

Function at 0x14003e7b0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1401146c0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14003e7ee
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 0x14003e7e7
call fcn.14003e680
jmp 0x14003e7ce

Function at 0x140040e70
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 0x140040e85
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x140055aa0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x50
movapd xmmword [rsp + 0x40], xmm6
mov rsi, rcx
mov rax, qword [0x140105028]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.1400561d0
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x14011cea8]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x140055afe
jnp 0x140055b64
ucomisd xmm0, xmm6
jne 0x140055b06
jnp 0x140055b60
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x1400ebb50]
subpd xmm1, xmmword [0x1400ebb60]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x1400efd28]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140076580
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x140055b38
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov edi, eax
call rbx
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x14011ceb8]
mov ecx, dword [0x140114770]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140055c79
mov eax, dword [0x14011cec8]
mov ecx, dword [0x140114770]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140055cb3
rdtsc
mov rbx, rax
mov r14, rdx
xor r12d, r12d
lea r15, [rsp + 0x30]
mov qword [r15], r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r13, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [r15], r12
lea rdi, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub r13, qword [0x14011cec0]
cvtsi2sd xmm1, r13
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x1400efd20]
ucomisd xmm2, xmm1
ja 0x140055afe
shl r14, 0x20
or rbx, r14
sub rbx, qword [0x14011ceb0]
movq xmm0, rbx
punpckldq xmm0, xmmword [0x1400ebb50]
subpd xmm0, xmmword [0x1400ebb60]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x14011cea8], xmm0
jmp 0x140055afe
lea rcx, [0x14011ceb8]
call fcn.140075300
cmp dword [0x14011ceb8], 0xffffffff
jne 0x140055bad
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x14011ceb0], rdx
lea rcx, [0x14011ceb8]
call fcn.140075398
jmp 0x140055bad
lea rcx, [0x14011cec8]
call fcn.140075300
cmp dword [0x14011cec8], 0xffffffff
jne 0x140055bd2
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x14011cec0], rax
lea rcx, [0x14011cec8]
call fcn.140075398
jmp 0x140055bd2
Function at 0x140055dc0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140105028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14011cee0]
mov ecx, dword [0x140114770]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140055e20
mov rsi, qword [0x14011ced8]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140076580
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14011cee0]
call fcn.140075300
cmp dword [0x14011cee0], 0xffffffff
jne 0x140055dfc
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1400786c0
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
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.1400751a4
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14011cf28]
mov ecx, dword [0x140114770]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140055ee0
lea r8, [0x14011cef8]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.14002dd90
mov qword [0x14011ced8], rsi
lea rcx, [0x14011cee0]
call fcn.140075398
jmp 0x140055dfc
lea rcx, [0x14011cf28]
call fcn.140075300
cmp dword [0x14011cf28], 0xffffffff
jne 0x140055eb1
xorps xmm0, xmm0
movups xmmword [0x14011cf18], xmm0
movups xmmword [0x14011cf08], xmm0
movups xmmword [0x14011cef8], xmm0
lea rcx, [0x14011cef8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14011cf28]
call fcn.140075398
jmp 0x140055eb1
Function at 0x140057420
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
cmp rdx, 1
jne 0x14005748b
mov rbx, qword [rsi + 8]
mov edi, 2
cmp rbx, 2
jae 0x1400574b9
lea rbx, [rsi + 8]
lea rcx, [rdi*8]
call fcn.1400751a4
mov rcx, qword [rsi]
mov qword [rsi], rax
test rcx, rcx
jne 0x140057484
mov qword [rbx], rdi
xor eax, eax
mov rcx, qword [rsi]
mov qword [rcx + rax*8], 0
inc rax
cmp rdi, rax
jne 0x140057460
mov r8, qword [rsi + 0x10]
test r8, r8
jne 0x1400574e5
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400751e0
jmp 0x14005745b
mov rdi, rdx
lea rax, [rdx - 1]
test rdx, rax
je 0x1400574a2
mov rcx, rdi
call fcn.14004df70
mov rdi, rax
mov rbx, qword [rsi + 8]
cmp rdi, rbx
jbe 0x1400574b9
mov rax, rdi
shr rax, 0x3d
je 0x14005743f
call fcn.1400a7600
cmp rdi, rbx
jae 0x14005747c
mov rax, qword [rsi + 0x18]
test rax, rax
jns 0x1400575e7
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x1400575ec
lea r10, [rsi + 0x10]
mov rcx, qword [r8 + 8]
mov rax, rdi
shr rax, 1
movabs rdx, 0x5555555555555555
and rdx, rax
mov rax, rdi
sub rax, rdx
movabs rdx, 0x3333333333333333
mov r9, rax
and r9, rdx
shr rax, 2
and rax, rdx
add rax, r9
mov rdx, rax
shr rdx, 4
add rdx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rdx
movabs r9, 0x101010101010101
imul r9, rax
shr r9, 0x38
cmp r9, 1
jbe 0x140057561
cmp rcx, rdi
jb 0x140057568
mov rax, rcx
xor edx, edx
div rdi
mov rcx, rdx
jmp 0x140057568
lea rax, [rdi - 1]
and rcx, rax
mov rax, qword [rsi]
mov qword [rax + rcx*8], r10
mov r10, qword [r8]
test r10, r10
je 0x14005747c
lea r11, [rdi - 1]
jmp 0x1400575ce
mov qword [rdx + rax*8], r8
jmp 0x1400575bc
and rax, r11
cmp rax, rcx
je 0x1400575b9
mov rdx, qword [rsi]
cmp qword [rdx + rax*8], 0
je 0x140057581
mov rdx, qword [r10]
mov qword [r8], rdx
mov rdx, qword [rsi]
mov rdx, qword [rdx + rax*8]
mov rdx, qword [rdx]
mov qword [r10], rdx
mov rdx, qword [rsi]
mov rax, qword [rdx + rax*8]
mov qword [rax], r10
mov r10, r8
mov rax, rcx
mov r8, r10
mov r10, qword [r10]
mov rcx, rax
test r10, r10
je 0x14005747c
mov rax, qword [r10 + 8]
cmp r9d, 1
jbe 0x140057587
cmp rax, rdi
jb 0x14005758a
xor edx, edx
div rdi
mov rax, rdx
jmp 0x14005758a
cvtsi2ss xmm0, rax
divss xmm0, dword [rsi + 0x20]
call fcn.1400a4fc4
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x1400ecb70]
cvttss2si rax, xmm0
sar rdx, 0x3f
and rax, rdx
or rax, rcx
cmp rbx, 3
jb 0x14005769f
mov rcx, rbx
shr rcx, 1
movabs rdx, 0x5555555555555555
and rdx, rcx
mov rcx, rbx
sub rcx, rdx
movabs rdx, 0x3333333333333333
mov r8, rcx
shr r8, 2
and rcx, rdx
and r8, rdx
add r8, rcx
mov rcx, r8
shr rcx, 4
add rcx, r8
movabs rdx, 0xf0f0f0f0f0f0f0f
and rdx, rcx
movabs rcx, 0x101010101010101
imul rcx, rdx
shr rcx, 0x38
cmp ecx, 1
ja 0x14005769f
lea rcx, [rax - 1]
bsr rcx, rcx
xor ecx, 0x3f
neg cl
mov edx, 1
shl rdx, cl
cmp rax, 2
cmovb rdx, rax
jmp 0x1400576aa
mov rcx, rax
call fcn.14004df70
mov rdx, rax
cmp rdi, rdx
cmova rdx, rdi
cmp rdx, rbx
jae 0x14005747c
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1400c9bd0
Function at 0x140063e30
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x140105028]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r9, 0x30
ja 0x140063f09
mov rsi, rcx
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmm2, xmmword [rdx + 0x20]
movaps xmmword [rsp + 0x40], xmm2
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
test r9, r9
jne 0x140063f0d
xor eax, eax
lea rcx, [0x1400f2570]
nop
movzx edx, byte [rax + rcx]
xor byte [rsp + rax + 0x20], dl
inc rax
cmp rax, 0x30
jne 0x140063e80
lea rdi, [rsi + 0xf8]
mov ecx, 1
call fcn.140063470
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x140063f25
call fcn.140003260
lea rax, [0x140001d60]
test rdi, rdi
je 0x140063ed0
lea rcx, section..text
mov qword [rdi], rcx
mov qword [rsi + 0x100], rax
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi + 0x108], xmm0
mov qword [rsi + 0x118], 1
mov esi, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140076580
mov eax, esi
add rsp, 0x58
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x140063ef3
xor eax, eax
mov cl, byte [r8 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r9, rax
je 0x140063e75
jmp 0x140063f0f
bt eax, 9
jae 0x140063f45
call fcn.140004350
lea rax, [0x140004820]
test rdi, rdi
je 0x140063ed0
lea rcx, [0x140004520]
jmp 0x140063ecd
call fcn.1400d35d0
lea rax, [0x1400d3dd0]
test rdi, rdi
je 0x140063ed0
lea rcx, [0x1400d34b0]
jmp 0x140063ecd

Function at 0x140066870
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 r8d, r8d
test edx, edx
sete r8b
xor ecx, ecx
mov edx, r8d
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x14006690a
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400668f4
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400668d1
mov qword [rsi], rdi
call fcn.1400577c0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 0
inc rax
cmp rax, 1
jbe 0x14006690e
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400577c0
mov rcx, qword [rsi]
call fcn.1400577d0
mov qword [rsi], 0
jmp 0x1400668bf
mov byte [rsi + 8], 0
int3
Function at 0x14006a6f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x140105028]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x14003dd30]
mov qword [rsp + 0x20], rax
lea rcx, [0x14011d718]
lea rdx, [0x14003dbd0]
lea r8, [rsp + 0x20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14006a784
cmp dword [0x14011d720], 0
jne 0x14006a780
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x14011d724]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x14006a780
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140076580
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x14006a768
call fcn.1400895e0
int3

Function at 0x14006ab40
Capabilities:
Get thread local storage value

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

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

Disassembly:
mov eax, ecx
test r8, r8
je 0x1400717cb
xor ecx, ecx
lea r9, [0x1400f5a80]
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 0x1400717b0
ret
Function at 0x14007590c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140075956
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140075956
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140075956
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140075956
cmp dword [rcx + 0x84], 0xe
jbe 0x140075956
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140075958
xor al, al
add rsp, 0x28
ret

Function at 0x140075da0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140075e18
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140075e18
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x140075e18
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140075e0c
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140075e2a
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140075dfa
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x140075e1a

Function at 0x140084a68
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140084a9f
call fcn.140087a74
mov dword [rax], 0x16
call fcn.1400961c4
xor eax, eax
jmp 0x140084b2d
mov rdx, r9
mov rcx, r8
call fcn.140084b50
mov rbx, rax
test rax, rax
je 0x140084b2a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140084bc0]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140084b17
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140087ab4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140084afe
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140084b0d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400473b0
jmp 0x140084b2a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140084b27
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140090280
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400902a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400902a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x14009a708
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140093e24
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14009a7a9
cmp ebx, dword [rsp + 0x30]
je 0x14009a7a2
test esi, esi
je 0x14009a7a2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14009a77d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14009a78a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14009a767
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14009a78e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14009a7ab
mov eax, 1
jmp 0x14009a7ab
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14009b6cc
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 0x14009b6fc
xor eax, eax
jmp 0x14009b7bf
mov rbp, rbx
cmp word [rax], si
je 0x14009b721
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14009b708
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14009b704
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.14009b5ec
movsxd r14, eax
test eax, eax
jne 0x14009b75f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14009b6f5
mov rcx, r14
call fcn.14001d940
mov rdi, rax
test rax, rax
jne 0x14009b778
xor ecx, ecx
call fcn.1400473b0
jmp 0x14009b754
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.14009b5ec
test eax, eax
jne 0x14009b7a9
mov rcx, rdi
call fcn.1400473b0
jmp 0x14009b7b3
xor ecx, ecx
call fcn.1400473b0
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 0x14009b7dc
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 0x14009b863
mov rsi, rbx
cmp word [rax], bp
je 0x14009b822
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14009b80c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14009b808
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001d940
mov rdi, rax
test rax, rax
je 0x14009b850
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140078010
mov rbp, rdi
xor ecx, ecx
call fcn.1400473b0
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 0x14009e5bc
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140105028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14009e606
call fcn.140087a94
mov dword [rax], 0xf
call fcn.140087a74
mov dword [rax], 0xd
call fcn.1400961c4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140076580
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14009e611
lea eax, [rbx + 1]
jmp 0x14009e5f3
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x14009e5f1
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14009e5f3