joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003fe70
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 [0x14010d038]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x14003fe40]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x140125d60]
lea rdx, [0x14003fce0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14003ff80
cmp dword [0x140125d68], 0
jne 0x14003ff70
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x140125d6c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x14003ff1c
mov ecx, 1
mov edx, 0x28
call fcn.140049d20
test rax, rax
je 0x14003ff70
mov r14, rax
mov ecx, dword [0x140125d6c]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14003ff68
lea r15, [0x140125d70]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x140125d80]
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.140079460
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, r14
call fcn.140049c80
mov rcx, rsi
mov rax, rdi
call qword [0x140131008]
xor esi, esi
jmp 0x14003ff4c
call fcn.14008cc90
int3

Function at 0x1400403e0
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 [0x14011c700]
cmp ecx, 0xffffffff
je 0x1400404ba
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x1400404ba
mov eax, dword [0x1401275d0]
mov ecx, dword [0x14011c7a0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400404c4
mov rbx, qword [0x1401275c8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14004050a
mov rax, qword [0x140125db8]
inc rax
xor ecx, ecx
lea rdx, [0x140125dc0]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x140040517
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x1401275c0]
inc ecx
mov dword [0x1401275c0], ecx
mov dword [rax + 0x14], ecx
mov qword [0x140125db8], 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 0x14004052c
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140040530
jmp 0x14004040a
lea rcx, [0x1401275d0]
call fcn.140077ff0
cmp dword [0x1401275d0], 0xffffffff
jne 0x14004042f
mov ecx, 8
call fcn.140077e94
mov rbx, rax
mov rcx, rax
call fcn.1400556b0
mov qword [0x1401275c8], rbx
lea rcx, [0x1401275d0]
call fcn.140078088
jmp 0x14004042f
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x140040447
inc rcx
cmp rcx, 0x100
jne 0x14004045a
jmp 0x1400404a0
int3
Function at 0x140040530
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.140079400
sub rsp, rax
mov rax, qword [0x14010d038]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x14011c700]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x1400405e4
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140040647
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.14007b5a0
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.140077f0c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.14007aef0
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.140079460
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.1400436c0
test al, al
je 0x14004064a
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x140040622
mov eax, 0xffffffff
lock cmpxchg dword [0x14011c700], ecx
je 0x140040568
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x14011c700]
mov dword [rsp + 0x2c], ecx
jmp 0x140040568
lea rcx, [rsp + 0x2c]
call fcn.1400436c0
test al, al
je 0x14004064d
cmp dword [rsp + 0x2c], 0xffffffff
je 0x14004064d
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x1400405fb
int3
int3
int3

Function at 0x140040660
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x14011c700]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14004069e
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 0x140040697
call fcn.140040530
jmp 0x14004067e

Function at 0x1400436c0
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 0x1400436d5
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x1400549b0
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
cmp rdx, 1
jne 0x140054a1b
mov rbx, qword [rsi + 8]
mov edi, 2
cmp rbx, 2
jae 0x140054a49
lea rbx, [rsi + 8]
lea rcx, [rdi*8]
call fcn.140077e94
mov rcx, qword [rsi]
mov qword [rsi], rax
test rcx, rcx
jne 0x140054a14
mov qword [rbx], rdi
xor eax, eax
mov rcx, qword [rsi]
mov qword [rcx + rax*8], 0
inc rax
cmp rdi, rax
jne 0x1400549f0
mov r8, qword [rsi + 0x10]
test r8, r8
jne 0x140054a75
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140077ed0
jmp 0x1400549eb
mov rdi, rdx
lea rax, [rdx - 1]
test rdx, rax
je 0x140054a32
mov rcx, rdi
call fcn.140050d80
mov rdi, rax
mov rbx, qword [rsi + 8]
cmp rdi, rbx
jbe 0x140054a49
mov rax, rdi
shr rax, 0x3d
je 0x1400549cf
call fcn.1400ab400
cmp rdi, rbx
jae 0x140054a0c
mov rax, qword [rsi + 0x18]
test rax, rax
jns 0x140054b77
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x140054b7c
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 0x140054af1
cmp rcx, rdi
jb 0x140054af8
mov rax, rcx
xor edx, edx
div rdi
mov rcx, rdx
jmp 0x140054af8
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 0x140054a0c
lea r11, [rdi - 1]
jmp 0x140054b5e
mov qword [rdx + rax*8], r8
jmp 0x140054b4c
and rax, r11
cmp rax, rcx
je 0x140054b49
mov rdx, qword [rsi]
cmp qword [rdx + rax*8], 0
je 0x140054b11
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 0x140054a0c
mov rax, qword [r10 + 8]
cmp r9d, 1
jbe 0x140054b17
cmp rax, rdi
jb 0x140054b1a
xor edx, edx
div rdi
mov rax, rdx
jmp 0x140054b1a
cvtsi2ss xmm0, rax
divss xmm0, dword [rsi + 0x20]
call fcn.1400a9fe4
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x1400f1c60]
cvttss2si rax, xmm0
sar rdx, 0x3f
and rax, rdx
or rax, rcx
cmp rbx, 3
jb 0x140054c2f
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 0x140054c2f
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 0x140054c3a
mov rcx, rax
call fcn.140050d80
mov rdx, rax
cmp rdi, rdx
cmova rdx, rdi
cmp rdx, rbx
jae 0x140054a0c
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1400cfb90
Function at 0x140055360
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 [0x14010d038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.140055690
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x1401251e0]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x1400553be
jnp 0x140055424
ucomisd xmm0, xmm6
jne 0x1400553c6
jnp 0x140055420
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x1400f0df0]
subpd xmm1, xmmword [0x1400f0e00]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x1400f6340]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140079460
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 0x1400553f8
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 [0x1401251f0]
mov ecx, dword [0x14011c7a0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140055539
mov eax, dword [0x140125200]
mov ecx, dword [0x14011c7a0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140055573
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 [0x1401251f8]
cvtsi2sd xmm1, r13
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x1400f6338]
ucomisd xmm2, xmm1
ja 0x1400553be
shl r14, 0x20
or rbx, r14
sub rbx, qword [0x1401251e8]
movq xmm0, rbx
punpckldq xmm0, xmmword [0x1400f0df0]
subpd xmm0, xmmword [0x1400f0e00]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x1401251e0], xmm0
jmp 0x1400553be
lea rcx, [0x1401251f0]
call fcn.140077ff0
cmp dword [0x1401251f0], 0xffffffff
jne 0x14005546d
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x1401251e8], rdx
lea rcx, [0x1401251f0]
call fcn.140078088
jmp 0x14005546d
lea rcx, [0x140125200]
call fcn.140077ff0
cmp dword [0x140125200], 0xffffffff
jne 0x140055492
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x1401251f8], rax
lea rcx, [0x140125200]
call fcn.140078088
jmp 0x140055492
Function at 0x1400607f0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14010d038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1401253e8]
mov ecx, dword [0x14011c7a0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140060850
mov rsi, qword [0x1401253e0]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140079460
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1401253e8]
call fcn.140077ff0
cmp dword [0x1401253e8], 0xffffffff
jne 0x14006082c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14007b5a0
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.140077e94
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140125430]
mov ecx, dword [0x14011c7a0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140060910
lea r8, [0x140125400]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.1400373d0
mov qword [0x1401253e0], rsi
lea rcx, [0x1401253e8]
call fcn.140078088
jmp 0x14006082c
lea rcx, [0x140125430]
call fcn.140077ff0
cmp dword [0x140125430], 0xffffffff
jne 0x1400608e1
xorps xmm0, xmm0
movups xmmword [0x140125420], xmm0
movups xmmword [0x140125410], xmm0
movups xmmword [0x140125400], xmm0
lea rcx, [0x140125400]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140125430]
call fcn.140078088
jmp 0x1400608e1
Function at 0x140061e70
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x14010d038]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r9, 0x30
ja 0x140061f49
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 0x140061f4d
xor eax, eax
lea rcx, [0x1400f9f10]
nop
movzx edx, byte [rax + rcx]
xor byte [rsp + rax + 0x20], dl
inc rax
cmp rax, 0x30
jne 0x140061ec0
lea rdi, [rsi + 0xf8]
mov ecx, 1
call fcn.1400614b0
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x140061f65
call fcn.140003260
lea rax, [0x140001d60]
test rdi, rdi
je 0x140061f10
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.140079460
mov eax, esi
add rsp, 0x58
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x140061f33
xor eax, eax
mov cl, byte [r8 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r9, rax
je 0x140061eb5
jmp 0x140061f4f
bt eax, 9
jae 0x140061f85
call fcn.140004350
lea rax, [0x140004820]
test rdi, rdi
je 0x140061f10
lea rcx, [0x140004520]
jmp 0x140061f0d
call fcn.1400d7590
lea rax, [0x1400d7d90]
test rdi, rdi
je 0x140061f10
lea rcx, [0x1400d7470]
jmp 0x140061f0d
Function at 0x140069180
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 0x14006921a
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140069204
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400691e1
mov qword [rsi], rdi
call fcn.14005b320
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 0x14006921e
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14005b320
mov rcx, qword [rsi]
call fcn.140055110
mov qword [rsi], 0
jmp 0x1400691cf
mov byte [rsi + 8], 0
int3

Function at 0x14006cec0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x14010d038]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x14003fe40]
mov qword [rsp + 0x20], rax
lea rcx, [0x140125d60]
lea rdx, [0x14003fce0]
lea r8, [rsp + 0x20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14006cf54
cmp dword [0x140125d68], 0
jne 0x14006cf50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x140125d6c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x14006cf50
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140079460
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x14006cf38
call fcn.14008cc90
int3

Function at 0x14006d1f0
Capabilities:
Get thread local storage value

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

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

Disassembly:
mov eax, ecx
test r8, r8
je 0x14006e58b
xor ecx, ecx
lea r9, [0x1400fcfc0]
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 0x14006e570
ret
Function at 0x1400787e4
Capabilities:
Parse pe header

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

Function at 0x140078c6c
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 0x140078ce4
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140078ce4
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 0x140078ce4
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140078cd8
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140078cf6
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140078cc6
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 0x140078ce6

Function at 0x140087948
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 0x14008797f
call fcn.14008ac14
mov dword [rax], 0x16
call fcn.14009b224
xor eax, eax
jmp 0x140087a0d
mov rdx, r9
mov rcx, r8
call fcn.140087a30
mov rbx, rax
test rax, rax
je 0x140087a0a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140087aa0]
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 0x1400879f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14008ac54
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400879de
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400879ed
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140049c80
jmp 0x140087a0a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140087a07
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 0x140087fa0
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.14009cb74
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14009cb74
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400880f0
cmp rax, 0xffffffffffffffff
je 0x1400880f0
xor edi, edi
test rbp, rbp
jle 0x14008809b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140049d20
mov rbx, rax
test rax, rax
jne 0x140088028
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140088091
mov edx, 0x8000
mov ecx, r14d
call fcn.14008cd68
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.140090104
cmp eax, 0xffffffff
je 0x140088071
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140088038
mov edx, r15d
mov ecx, r14d
call fcn.14008cd68
jmp 0x140088091
cmp byte [rsi + 0x38], dil
je 0x140088088
cmp dword [rsi + 0x34], 5
jne 0x140088088
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140088091
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140049c80
jmp 0x140088104
jns 0x140088104
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14009cb74
cmp rax, 0xffffffffffffffff
jne 0x1400880bc
cmp byte [rsi + 0x30], dil
je 0x140088104
mov edi, dword [rsi + 0x2c]
jmp 0x140088104
mov ecx, r14d
call fcn.14008b06c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140088104
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140088104
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400880fd
mov eax, dword [rsi + 0x2c]
jmp 0x140088102
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14009cb74
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
Function at 0x14008c94c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14011d620]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14008c9a3
cmp word [rdx], r13w
jne 0x14008c9a3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14008c9a8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14008cacd
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14008caee
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14008c9e1
mov rdx, r9
mov word [rbx], cx
jmp 0x14008ca08
cmp r9, r8
jae 0x14008ca18
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14008c9c2
jmp 0x14008cacd
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14008cac2
cmp dword [rsp + 0x80], esi
je 0x14008cac2
lea r8, [0x14011d620]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14008ca9a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14008ca6a
mov word [rbx], r13w
jmp 0x14008caca
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14008ca77
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14008caca
cmp word [rsp + 0x70], r13w
jne 0x14008caa7
cmp rbx, r14
je 0x14008ca64
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14009cb74
cmp word [rsp + 0x70], r13w
je 0x14008cacd
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14011d620]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14008cac7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14008cacd