joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003de90
Capabilities:
Get disk size

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x398]
sub rsp, 0x480
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1402922b8]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov rbx, rcx
lea rcx, [rsp + 0x40]
call fcn.140039080
nop
mov rdi, 0xffffffffffffffff
mov r9, rdi
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call fcn.14004cfc0
mov esi, eax
mov edx, eax
movsx rax, byte [rsp + 0x57]
movzx r9d, al
shr r9b, 7
mov r8, qword [rsp + 0x48]
and r9b, 1
je 0x14003df13
mov rcx, r8
jmp 0x14003df1b
mov ecx, 0xb
sub rcx, rax
cmp rdx, rcx
jae 0x14003df57
mov rcx, qword [rsp + 0x40]
test r9b, r9b
je 0x14003df30
lea r8, [rcx + r8*2]
jmp 0x14003df3b
add rax, rax
lea r8, [rsp + 0x56]
sub r8, rax
lea rax, [rsp + 0x40]
test r9b, r9b
cmovne rax, rcx
lea rdx, [rax + rsi*2]
lea rcx, [rsp + 0x40]
call fcn.140044300
jmp 0x14003df69
jbe 0x14003df69
xor r8d, r8d
sub rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.140043ed0
movzx eax, byte [rsp + 0x57]
shr al, 7
lea rcx, [rsp + 0x40]
test al, al
cmovne rcx, qword [rsp + 0x40]
lea r8d, [rsi + 1]
mov r9, rdi
mov rdx, rbx
call fcn.14004cfc0
movzx eax, byte [rsp + 0x57]
shr al, 7
lea r8, [rsp + 0x40]
test al, al
cmovne r8, qword [rsp + 0x40]
lea rdx, [rbp + 0x170]
movzx ecx, word [r8]
mov ebx, 1
xor r14d, r14d
test cx, cx
je 0x14003e001
lea rax, [rbp + 0x170]
sub r8, rax
movabs r9, 0x200000000801
nop
cmp cx, 0x3a
je 0x14003dff0
movzx eax, cx
add eax, 0xffffffd1
cmp eax, 0x2d
ja 0x14003dfe9
bt r9, rax
mov eax, ebx
jb 0x14003dfec
mov eax, r14d
test al, al
jne 0x14003e001
mov word [rdx], cx
add rdx, 2
movzx ecx, word [r8 + rdx]
test cx, cx
jne 0x14003dfd0
mov dword [rdx], 0x5c
lea rcx, [rbp + 0x170]
call fcn.14004d300
mov rsi, rax
mov eax, eax
cmp rax, rdi
jne 0x14003e029
lea rcx, [rbp + 0x170]
call fcn.14004d300
test rax, rax
je 0x14003e04b
movzx ecx, word [rbp + rax*2 + 0x16e]
cmp cx, 0x5c
je 0x14003e045
cmp cx, 0x2f
mov eax, r14d
jne 0x14003e047
mov eax, ebx
test al, al
jne 0x14003e04e
mov ebx, r14d
test bl, bl
jne 0x14003e069
lea rax, [rsi + 2]
cmp rax, 0x100
ja 0x14003e069
mov dword [rbp + rsi*2 + 0x170], 0x5c
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
cmovne rdi, qword [rsp + 0x20]
movzx eax, byte [rsp + 0x57]
shr al, 7
test al, 1
je 0x14003e0ce
mov r8, qword [rsp + 0x50]
movabs rax, 0x7fffffffffffffff
and r8, rax
inc r8
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x14003e0ce
cmp rdx, qword [rsp + 0x68]
je 0x14003e0ce
mov rcx, qword [rsp + 0x58]
mov r9, qword [rcx]
add r8, r8
call qword [r9 + 0x18]
mov rax, rdi
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.14012fd90
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14003ebc0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x18]
cmp rcx, 0xffffffffffffffff
je 0x14003ec1f
mov rax, qword [rbx + 0x248]
cmp rax, 0xffffffffffffffff
jne 0x14003ec26
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003ec13
test byte [rbx + 0x230], 2
mov rax, qword [rsp + 0x30]
jne 0x14003ec26
test byte [rbx + 0x238], 6
jne 0x14003ec26
mov qword [rbx + 0x248], rax
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x240], eax
mov rax, 0xffffffffffffffff
add rsp, 0x20
pop rbx
ret

Function at 0x14003edb0
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x140
mov rax, qword [0x1402922b8]
xor rax, rsp
mov qword [rsp + 0x130], rax
xor r12d, r12d
mov edi, r9d
mov word [rdx], r12w
mov rbx, rdx
mov edx, ecx
movzx ebp, r8b
sub edx, 1
je 0x14003ef55
sub edx, 1
je 0x14003ef48
sub edx, 3
je 0x14003ef14
sub edx, 0xd
je 0x14003ef55
cmp edx, 1
je 0x14003ee3b
test ecx, ecx
jns 0x14003ee40
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14012fd90
add rsp, 0x140
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0xa
movsxd rdx, ecx
cmp rdx, 0x12
jae 0x14003ee14
cmp ecx, 3
lea r14, [rdx*8]
mov esi, r12d
lea r15, [0x140192560]
mov edx, dword [r14 + r15]
sete sil
movzx eax, bpl
neg al
sbb edi, edi
and edi, 0x8000
test edx, edx
je 0x14003ee91
or edx, edi
mov qword [rsp + 0x20], rbx
mov r9d, esi
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x14003eebb
mov edx, dword [r14 + r15 + 4]
test edx, edx
je 0x14003ee14
or edx, edi
mov qword [rsp + 0x20], rbx
mov r9d, esi
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14003ee14
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], r12w
jne 0x14003eec2
test rcx, rcx
je 0x14003ef78
movzx eax, word [rbx + rcx*2 - 2]
add eax, 0xffffffd1
cmp eax, 0x2d
ja 0x14003eef7
movabs rdx, 0x200000000801
bt rdx, rax
mov eax, 1
jb 0x14003eefa
mov eax, r12d
test al, al
jne 0x14003ef78
cmp rcx, 0x103
jae 0x14003ee14
mov dword [rbx + rcx*2], 0x5c
jmp 0x14003ef78
xor r8d, r8d
lea rcx, [rsp + 0x30]
mov edx, 0x100
call fcn.14004a2a0
cmp rax, rdi
jae 0x14003ee14
mov r9, 0xffffffffffffffff
lea rdx, [rsp + 0x30]
mov r8, rdi
mov rcx, rbx
call fcn.14004cfc0
jmp 0x14003ef78
mov edx, edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x14003ef60
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
setne al
test al, al
je 0x14003ee14
mov rdx, rdi
mov rcx, rbx
call fcn.14003c600
test bpl, bpl
je 0x14003ef8d
mov rcx, rbx
call fcn.14003d340
test al, al
je 0x14003ee14
mov rcx, rbx
call fcn.14004d300
jmp 0x14003ee19
Function at 0x14003efe0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x1402922b8]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp word [0x14029c800], 0
mov rbx, rcx
mov edi, edx
je 0x14003f026
mov r8d, edi
lea rdx, [0x14029c800]
mov r9, 0xffffffffffffffff
call fcn.14004cc70
jmp 0x14003f06e
lea rdx, [rsp + 0x20]
mov ecx, 0x100
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14003f069
mov r8d, 0x100
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov r8, rdi
lea rdx, [rsp + 0x20]
mov r9, 0xffffffffffffffff
mov rcx, rbx
call fcn.14004cc70
jmp 0x14003f06e
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14012fd90
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
ret
Function at 0x140040320
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [rcx + 0x58]
mov rax, rcx
movabs r8, 0x1fffffffffffff8
and rax, r8
xchg qword [rdx + 8], rax
mov rax, rcx
mov qword [rsp + 0x30], rcx
shr rax, 0x36
and ecx, 7
and eax, 0x3f8
movabs r9, 0x1ffffffffffffff
or eax, ecx
inc eax
mov edx, eax
and edx, 7
mov ecx, eax
or rdx, rdi
shl rax, 0x36
xor rdx, rax
shl rcx, 0x36
and rdx, r9
xor rdx, rcx
mov qword [rsp + 0x38], rdx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
lock cmpxchg qword [rbx + 0x58], rcx
je 0x1400403fa
nop dword [rax]
pause
mov rcx, qword [rbx + 0x58]
mov rax, rcx
and rax, r8
xchg qword [rdi + 8], rax
mov rax, rcx
mov qword [rsp + 0x30], rcx
shr rax, 0x36
and ecx, 7
and eax, 0x3f8
or eax, ecx
inc eax
mov edx, eax
and edx, 7
mov ecx, eax
or rdx, rdi
shl rax, 0x36
xor rdx, rax
shl rcx, 0x36
and rdx, r9
xor rdx, rcx
mov qword [rsp + 0x38], rdx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
lock cmpxchg qword [rbx + 0x58], rcx
jne 0x1400403a0
mov ecx, 1
lock xadd dword [rbx + 0x30], ecx
test ecx, ecx
jne 0x140040416
lea rcx, [rbx + 0x18]
mov edx, 1
call fcn.140050300
mov ecx, 2
mov eax, 1
lock cmpxchg dword [rbx + 0x38], ecx
jne 0x140040433
mov rax, qword [rbx]
mov rdx, rdi
mov rcx, rbx
call qword [rax + 0x70]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140040a30
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 0x18]
cmp rcx, 0xffffffffffffffff
je 0x140040a71
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140040a65
mov eax, dword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x240], eax
mov rax, 0xffffffffffffffff
add rsp, 0x30
pop rbx
ret

Function at 0x140041a10
Capabilities:
Delete directory

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1402922b8]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
test dl, dl
je 0x140041a5e
mov rdx, rcx
mov r8d, 0x104
lea rcx, [rsp + 0x20]
call fcn.14004d210
lea rcx, [rsp + 0x20]
call fcn.14004d300
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140041c40
jmp 0x140041aab
call fcn.14004d300
movzx ecx, word [rbx + rax*2 - 2]
add ecx, 0xffffffd1
cmp ecx, 0x2d
ja 0x140041a87
movabs rdx, 0x200000000801
bt rdx, rcx
jae 0x140041a87
mov ecx, 1
jmp 0x140041a89
xor ecx, ecx
test cl, cl
je 0x140041a9d
mov r8, rax
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.14004d210
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14012fd90
add rsp, 0x240
pop rbx
ret
Function at 0x140041ad0
Capabilities:
Delete file

Disassembly:
push rdi
sub rsp, 0x260
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x270], rbx
mov rbx, rcx
lea rcx, [rsp + 0x30]
call fcn.140039080
nop
mov r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call fcn.14004cfc0
mov edi, eax
mov edx, eax
movsx rax, byte [rsp + 0x47]
movzx r9d, al
shr r9b, 7
mov r8, qword [rsp + 0x38]
and r9b, 1
je 0x140041b2e
mov rcx, r8
jmp 0x140041b36
mov ecx, 0xb
sub rcx, rax
cmp rdx, rcx
jae 0x140041b72
mov rcx, qword [rsp + 0x30]
test r9b, r9b
je 0x140041b4b
lea r8, [rcx + r8*2]
jmp 0x140041b56
add rax, rax
lea r8, [rsp + 0x46]
sub r8, rax
lea rax, [rsp + 0x30]
test r9b, r9b
cmovne rax, rcx
lea rdx, [rax + rdi*2]
lea rcx, [rsp + 0x30]
call fcn.140044300
jmp 0x140041b84
jbe 0x140041b84
xor r8d, r8d
sub rdx, rcx
lea rcx, [rsp + 0x30]
call fcn.140043ed0
movzx eax, byte [rsp + 0x47]
shr al, 7
lea rcx, [rsp + 0x30]
test al, al
cmovne rcx, qword [rsp + 0x30]
lea eax, [rdi + 1]
mov r8d, eax
mov r9, 0xffffffffffffffff
mov rdx, rbx
call fcn.14004cfc0
movzx eax, byte [rsp + 0x47]
shr al, 7
test al, 1
je 0x140041c1b
mov rcx, qword [rsp + 0x30]
test rcx, rcx
jne 0x140041c20
xor bl, bl
movzx eax, byte [rsp + 0x47]
shr al, 7
test al, 1
je 0x140041c07
mov r8, qword [rsp + 0x40]
movabs rax, 0x7fffffffffffffff
and r8, rax
inc r8
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x140041c07
cmp rdx, qword [rsp + 0x58]
je 0x140041c07
mov rcx, qword [rsp + 0x48]
mov r9, qword [rcx]
add r8, r8
call qword [r9 + 0x18]
movzx eax, bl
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
lea rcx, [rsp + 0x30]
cmp word [rcx], 0
je 0x140041bc4
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
jmp 0x140041bc6
Function at 0x140041c40
Capabilities:
Delete file

Disassembly:
mov rax, rsp
push r12
push r14
push r15
sub rsp, 0x90
mov qword [rax - 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r14, rdx
mov rsi, rcx
cmp word [rcx], 0
je 0x140041e69
mov rax, qword [0x14029ca10]
test rax, rax
jne 0x140041c90
call fcn.14001e5d0
mov qword [0x14029ca10], rax
xor ecx, ecx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rcx
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rax
xor r12d, r12d
mov dword [rsp + 0x80], r12d
mov qword [rsp + 0x88], r12
lea rax, [rsp + 0x68]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov r15, r14
mov bpl, 1
mov byte [rsp + 0x30], bpl
mov qword [rsp + 0x28], 0x100000
mov dword [rsp + 0x20], 3
xor r9d, r9d
lea r8, [rsp + 0x68]
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.140040590
test rax, rax
je 0x140041e41
test r14, r14
je 0x140041d58
movzx ecx, word [rsi + r14*2 - 2]
lea eax, [rcx - 0x2f]
cmp eax, 0x2d
ja 0x140041d34
movabs rdx, 0x200000000801
bt rdx, rax
lea eax, [r12 + 1]
jb 0x140041d37
mov eax, r12d
test al, al
jne 0x140041d58
cmp cx, 0x3a
je 0x140041d58
cmp r14, 0x103
jae 0x140041d58
mov eax, 0x5c
mov word [rsi + r14*2], ax
lea r15, [r14 + 1]
mov rbx, qword [rsp + 0x68]
lea rax, [rsp + 0x68]
cmp rbx, rax
je 0x140041e41
nop dword [rax + rax]
lea rdx, [rbx + 0x18]
movsx rcx, byte [rdx + 0x17]
movzx eax, cl
shr al, 7
test al, 1
je 0x140041d89
mov rdi, qword [rdx + 8]
jmp 0x140041d91
mov edi, 0xb
sub rdi, rcx
lea rax, [rdi + r14]
cmp rax, 0x103
ja 0x140041e2d
movsx rcx, byte [rdx + 0x17]
movzx eax, cl
shr al, 7
test al, 1
je 0x140041db6
mov rax, qword [rdx + 8]
jmp 0x140041dbe
mov eax, 0xb
sub rax, rcx
mov rcx, rdi
cmp rax, rdi
cmovb rcx, rax
movzx eax, byte [rdx + 0x17]
shr al, 7
test al, 1
je 0x140041dd8
mov rax, qword [rdx]
jmp 0x140041ddb
mov rax, rdx
lea r8, [rax + rcx*2]
movzx eax, byte [rdx + 0x17]
shr al, 7
test al, 1
je 0x140041ded
mov rdx, qword [rdx]
sub r8, rdx
sar r8, 1
add r8, r8
lea rcx, [rsi + r15*2]
call sub.VCRUNTIME140.dll_memmove
lea rdx, [rdi + r15]
mov word [rsi + rdx*2], r12w
cmp dword [rbx + 0x10], 1
jne 0x140041e1a
mov rcx, rsi
call fcn.140041c40
test al, al
jmp 0x140041e2b
cmp word [rsi], 0
je 0x140041e2d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140041e30
xor bpl, bpl
mov rbx, qword [rbx]
lea rax, [rsp + 0x68]
cmp rbx, rax
jne 0x140041d70
mov word [rsi + r14*2], r12w
xor edx, edx
mov rcx, rsi
call fcn.140041a10
movzx ebx, bpl
test al, al
cmove ebx, r12d
lea rcx, [rsp + 0x68]
call fcn.1400392e0
movzx eax, bl
jmp 0x140041e6b
xor al, al
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x140042ba0
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x18], 0xffffffffffffffff
mov rsi, rdx
mov rbx, rcx
je 0x140042c2f
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x48]
mov rcx, qword [rbx + 0x18]
lea r8, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov rdx, rsi
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140042c14
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x140042c14
mov rax, qword [rbx]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [rax + 0x50]
mov al, 1
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [rax + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x240], eax
mov rbx, qword [rsp + 0x38]
xor al, al
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140043790
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 0x18]
cmp rcx, 0xffffffffffffffff
je 0x1400437cf
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400437c3
mov al, 1
add rsp, 0x30
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x240], eax
xor al, al
add rsp, 0x30
pop rbx
ret

Function at 0x14004a0f0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
xorps xmm2, xmm2
cvtsi2ss xmm2, qword [0x140291ae0]
mov rbx, 0xffffffffffffffff
mov esi, 8
mov rdi, rbx
mov ebp, esi
movss xmm6, dword [0x1401930e8]
movaps xmmword [rsp + 0x50], xmm7
movaps xmm0, xmm6
movss xmm7, dword [0x140192acc]
divss xmm0, xmm2
movaps xmmword [rsp + 0x40], xmm8
movaps xmm1, xmm7
movss xmm8, dword [0x140193120]
movss dword [0x14029caf4], xmm0
movaps xmm0, xmm8
divss xmm0, xmm2
divss xmm1, xmm2
movaps xmmword [rsp + 0x30], xmm9
movss xmm9, dword [0x140193124]
movss dword [0x14029caec], xmm0
movss dword [0x14029caf0], xmm1
movaps xmm1, xmm9
movaps xmmword [rsp + 0x20], xmm10
movss xmm10, dword [0x140193128]
movaps xmm0, xmm10
divss xmm0, xmm2
divss xmm1, xmm2
movss dword [0x14029cae4], xmm0
movss dword [0x14029cae8], xmm1
nop
lea rcx, [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x90]
sub rax, qword [rsp + 0x98]
cmp rdi, rax
cmova rdi, rax
sub rbp, 1
jne 0x14004a1b0
xorps xmm0, xmm0
mov qword [0x14029cb18], rdi
cvtsi2ss xmm0, qword [0x140291ae8]
divss xmm6, xmm0
divss xmm7, xmm0
divss xmm8, xmm0
divss xmm9, xmm0
divss xmm10, xmm0
movss dword [0x14029cb08], xmm6
movss dword [0x14029cb04], xmm7
movss dword [0x14029cb00], xmm8
movss dword [0x14029cafc], xmm9
movss dword [0x14029caf8], xmm10
nop
rdtsc
shl rdx, 0x20
or rax, rdx
mov rcx, rax
rdtsc
shl rdx, 0x20
or rax, rdx
sub rax, rcx
cmp rbx, rax
cmova rbx, rax
sub rsi, 1
jne 0x14004a240
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x50]
movaps xmm8, xmmword [rsp + 0x40]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x20]
mov qword [0x14029cb10], rbx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004f840
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rsi, rcx
mov rbx, r9
mov rcx, qword [rcx]
mov r14, r8
mov r15, rdx
test rcx, rcx
je 0x14004f877
call fcn.1400503e0
call fcn.14004f480
xor r12d, r12d
mov ebp, 1
mov dword [rax + 8], r12d
mov ecx, r12d
mov rdi, rax
mov qword [rax], r12
lea r8, [rax + 8]
mov dword [rax + 0xc], r12d
mov qword [rax + 0x18], r12
mov qword [rax + 0x38], r12
xchg dword [rax + 0x48], ecx
mov qword [rsi], rax
mov eax, ebp
lock xadd dword [rdi + 0x48], eax
mov eax, ebp
lock xadd dword [rdi + 0x48], eax
mov eax, ebp
lock xadd dword [rdi + 0x48], eax
mov rax, qword [rsp + 0x70]
mov qword [rdi], r12
mov qword [rdi + 0x20], r15
mov qword [rdi + 0x28], r14
mov qword [rdi + 0x38], rax
test rbx, rbx
je 0x14004f8db
mov rax, qword [rbx + 0x20]
jmp 0x14004f8e2
mov rax, 0xffffffffffffffff
mov qword [rdi + 0x10], rax
test rbx, rbx
je 0x14004f8f0
mov edx, dword [rbx + 8]
jmp 0x14004f8f3
mov edx, r12d
mov qword [rsp + 0x28], r8
mov r9, rdi
lea r8, [0x140050620]
mov dword [rsp + 0x20], 4
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov r14, rax
test rax, rax
je 0x14004fa1b
mov qword [rdi], rax
test rbx, rbx
je 0x14004f93c
mov rcx, qword [rsi]
mov rdx, qword [rbx + 0x18]
test rcx, rcx
je 0x14004f93c
test rdx, rdx
je 0x14004f93c
call fcn.140050a80
mov qword [rdi + 0x30], r14
test rbx, rbx
je 0x14004f9da
mov edx, dword [rbx + 0x10]
test edx, edx
je 0x14004f958
mov rcx, rsi
call fcn.140050850
movzx edx, byte [rbx + 0x28]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
mov edx, dword [rbx + 0x14]
test edx, edx
js 0x14004f980
mov eax, dword [0x14029d014]
cmp edx, eax
jne 0x14004f9df
lock xadd dword [0x14029d014], ebp
jmp 0x14004f9df
cmp edx, 0xfffffffe
je 0x14004f9da
mov eax, dword [0x14029d018]
test eax, eax
js 0x14004f997
mov edx, dword [0x14029d018]
jmp 0x14004f9df
mov eax, dword [0x14029d018]
cmp eax, 0xffffffff
jne 0x14004f9aa
mov edx, dword [0x14029d018]
jmp 0x14004f9df
mov rcx, qword [0x14029d020]
mov edx, ebp
lock xadd dword [0x14029d014], edx
inc edx
cmp edx, 0x40
jne 0x14004f9d0
mov eax, edx
lock cmpxchg dword [0x14029d014], r12d
mov edx, r12d
mov eax, edx
bt rcx, rax
jae 0x14004f9b1
jmp 0x14004f9df
mov edx, 0xffffffff
test rbx, rbx
je 0x14004f9fd
cmp dword [rbx + 0x14], 0xfffffffe
jne 0x14004f9fd
mov rcx, qword [rsi]
cmp qword [rcx], r12
je 0x14004fa05
mov rdx, qword [rbx + 0x20]
call fcn.1400509b0
jmp 0x14004fa05
mov rcx, rsi
call fcn.140050900
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call fcn.1400503e0
mov rax, r14
jmp 0x14004fa38
mov rcx, rdi
call fcn.1400503e0
mov rcx, rdi
call fcn.1400503e0
mov rcx, rdi
call fcn.1400503e0
xor eax, eax
mov qword [rsi], r12
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x14004fb60
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
sub rsp, 0x58
mov eax, dword [0x1402a1a94]
test eax, eax
jne 0x14004fb9f
xor eax, eax
lea rcx, [r11 - 0x38]
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x18], rax
mov qword [r11 - 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
mov dword [0x1402a1a94], eax
add rsp, 0x58
ret

Function at 0x14004fc90
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov ecx, dword [0x140291ba0]
cmp ecx, 0xffffffff
je 0x14004fcaa
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14004fd17
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x40], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
lea r9, [rsp + 0x50]
mov rcx, rax
mov dword [rsp + 0x28], 1
mov r8, rbx
mov dword [rsp + 0x20], 0
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
test eax, eax
je 0x14004fd12
mov rcx, qword [rsp + 0x50]
mov dl, 1
call fcn.1400506d0
mov rax, qword [rsp + 0x50]
add rsp, 0x48
ret