joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402ec9a0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 0xffffffffffffffff
mov rbx, rcx
je 0x1402eca0a
cmp qword [rcx + 0x248], 0xffffffffffffffff
je 0x1402ec9c7
mov rax, qword [rcx + 0x248]
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rcx + 0x18]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1402ec9fe
test byte [rbx + 0x230], 2
mov rax, qword [rsp + 0x30]
jne 0x1402eca11
test byte [rbx + 0x238], 6
jne 0x1402eca11
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 0x1402ecbb0
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 [0x140601e40]
xor rax, rsp
mov qword [rsp + 0x130], rax
xor r12d, r12d
movsxd rdi, ecx
mov esi, r9d
movzx r14d, r8b
mov word [rdx], r12w
mov rbx, rdx
lea r15, [0x140000000]
cmp edi, 0x13
ja case.0x1402ecbff.0
mov ecx, dword [r15 + rdi*4 + 0x2ecd8c]
add rcx, r15
jmp rcx
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
setne al
test al, al
je 0x1402ecd63
mov rdx, rsi
mov rcx, rbx
call fcn.1402ea660
jmp 0x1402ecd48
mov edx, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x1402ecc09
xor r8d, r8d
lea rcx, [rsp + 0x30]
mov edx, 0x100
call fcn.1402f74d0
cmp rax, rsi
jae 0x1402ecd63
mov r8, rsi
lea rdx, [rsp + 0x30]
mov r9, 0xffffffffffffffff
mov rcx, rbx
call fcn.1402fa610
jmp 0x1402ecd48
mov edi, 0xa
jmp 0x1402ecc79
test edi, edi
js 0x1402ecd63
movsxd rax, edi
cmp rax, 0x12
jae 0x1402ecd63
cmp edi, 3
movzx eax, r14b
mov ebp, r12d
sete bpl
neg al
movsxd rax, edi
sbb esi, esi
and esi, 0x8000
mov edx, dword [r15 + rax*8 + 0x521450]
test edx, edx
je 0x1402eccc6
or edx, esi
mov qword [rsp + 0x20], rbx
mov r9d, ebp
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x1402eccf2
movsxd rax, edi
mov edx, dword [r15 + rax*8 + 0x521454]
test edx, edx
je 0x1402ecd63
or edx, esi
mov qword [rsp + 0x20], rbx
mov r9d, ebp
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1402ecd63
mov rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp word [rbx + rcx*2], r12w
jne 0x1402ecd00
test rcx, rcx
je 0x1402ecd48
movzx eax, word [rbx + rcx*2 - 2]
add eax, 0xffffffd1
cmp eax, 0x2d
ja 0x1402ecd31
movabs rdx, 0x200000000801
bt rdx, rax
mov eax, 1
jb 0x1402ecd34
mov eax, r12d
test al, al
jne 0x1402ecd48
cmp rcx, 0x103
jae 0x1402ecd63
mov dword [rbx + rcx*2], 0x5c
test r14b, r14b
je 0x1402ecd59
mov rcx, rbx
call fcn.1402eb560
test al, al
je 0x1402ecd63
mov rcx, rbx
call fcn.1402facc0
jmp 0x1402ecd68
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140284180
add rsp, 0x140
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1402ece10
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x140601e40]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp word [0x14062f5a0], 0
mov rbx, rcx
mov edi, edx
je 0x1402ece56
mov r8d, edi
lea rdx, [0x14062f5a0]
mov r9, 0xffffffffffffffff
call fcn.1402fa210
jmp 0x1402ece9e
lea rdx, [rsp + 0x20]
mov ecx, 0x100
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1402ece99
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.1402fa210
jmp 0x1402ece9e
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140284180
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
ret
Function at 0x1402ee8d0
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x18], 0xffffffffffffffff
mov rbx, rcx
je 0x1402ee912
mov rcx, qword [rcx + 0x18]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1402ee906
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 0x1402ef160
Capabilities:
Delete directory

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x140601e40]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
test dl, dl
je 0x1402ef1ae
mov rdx, rcx
mov r8d, 0x104
lea rcx, [rsp + 0x20]
call fcn.1402fabd0
lea rcx, [rsp + 0x20]
call fcn.1402facc0
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1402ef420
jmp 0x1402ef1fb
call fcn.1402facc0
movzx ecx, word [rbx + rax*2 - 2]
add ecx, 0xffffffd1
cmp ecx, 0x2d
ja 0x1402ef1d7
movabs rdx, 0x200000000801
bt rdx, rcx
jae 0x1402ef1d7
mov ecx, 1
jmp 0x1402ef1d9
xor ecx, ecx
test cl, cl
je 0x1402ef1ed
mov r8, rax
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.1402fabd0
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.140284180
add rsp, 0x240
pop rbx
ret
Function at 0x1402ef220
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rbx, rcx
mov rax, qword [0x14062f7b0]
test rax, rax
jne 0x1402ef25a
call fcn.14002daa0
mov qword [0x14062f7b0], rax
mov rdi, rax
xor esi, esi
mov word [rsp + 0x20], si
mov byte [rsp + 0x37], reloc.WS2_32.dll_inet_addr
test rax, rax
jne 0x1402ef27a
call fcn.14002daa0
mov qword [0x14062f7b0], rax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x40], esi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x40], esi
mov word [rsp + 0x20], si
mov byte [rsp + 0x37], reloc.WS2_32.dll_inet_addr
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
movabs rax, 0x80000000000000ff
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rsi
mov word [rsp + 0x50], si
mov r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call fcn.1402fa610
mov edi, eax
mov r9d, eax
movsx rdx, byte [rsp + 0x37]
movzx ecx, dl
shr cl, 7
mov r8, qword [rsp + 0x28]
test cl, 1
je 0x1402ef2f7
mov rcx, r8
jmp 0x1402ef2ff
mov ecx, reloc.WS2_32.dll_inet_addr
sub rcx, rdx
cmp r9, rcx
jae 0x1402ef345
movzx eax, dl
shr al, 7
mov rcx, qword [rsp + 0x20]
test al, 1
je 0x1402ef319
lea r8, [rcx + r8*2]
jmp 0x1402ef327
mov rax, rdx
add rax, rax
lea r8, [rsp + 0x36]
sub r8, rax
shr dl, 7
lea rax, [rsp + 0x20]
test dl, dl
cmovne rax, rcx
lea rdx, [rax + rdi*2]
lea rcx, [rsp + 0x20]
call fcn.1402ddfa0
jmp 0x1402ef35a
jbe 0x1402ef35f
xor r8d, r8d
sub r9, rcx
mov rdx, r9
lea rcx, [rsp + 0x20]
call fcn.1402dd8a0
movzx edx, byte [rsp + 0x37]
shr dl, 7
lea rcx, [rsp + 0x20]
test dl, dl
cmovne rcx, qword [rsp + 0x20]
lea r8d, [rdi + 1]
mov r9, 0xffffffffffffffff
mov rdx, rbx
call fcn.1402fa610
movzx eax, byte [rsp + 0x37]
shr al, 7
test al, 1
je 0x1402ef3d2
mov rcx, qword [rsp + 0x20]
test rcx, rcx
jne 0x1402ef3d7
xor bl, bl
movzx ecx, byte [rsp + 0x37]
movzx eax, cl
shr al, 7
test al, 1
je 0x1402ef404
mov r8, qword [rsp + 0x30]
movabs rax, 0x7fffffffffffffff
and r8, rax
inc r8
shr cl, 7
test cl, 1
je 0x1402ef3ea
mov rdx, qword [rsp + 0x20]
test rdx, rdx
jne 0x1402ef3ef
jmp 0x1402ef404
lea rcx, [rsp + 0x20]
cmp word [rcx], 0
je 0x1402ef398
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
jmp 0x1402ef39a
lea rdx, [rsp + 0x20]
cmp rdx, qword [rsp + 0x48]
je 0x1402ef404
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
add r8, r8
call qword [rax + 0x18]
movzx eax, bl
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1402ef420
Capabilities:
Delete file

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, 0x90
mov r14, rdx
mov rsi, rcx
cmp word [rcx], 0
je 0x1402ef62f
mov rax, qword [0x14062f7b0]
test rax, rax
jne 0x1402ef469
call fcn.14002daa0
mov qword [0x14062f7b0], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rax
xor r12d, r12d
mov dword [rsp + 0x78], r12d
mov qword [rsp + 0x80], r12
lea rax, [rsp + 0x60]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x68], 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 + 0x60]
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.1402ee440
test rax, rax
je 0x1402ef607
test r14, r14
je 0x1402ef51c
movzx ecx, word [rsi + r14*2 - 2]
lea eax, [rcx - 0x2f]
cmp eax, 0x2d
ja 0x1402ef4fc
movabs rdx, 0x200000000801
bt rdx, rax
lea eax, [r12 + 1]
jb 0x1402ef4ff
mov eax, r12d
test al, al
jne 0x1402ef51c
cmp ecx, 0x3a
je 0x1402ef51c
cmp r14, 0x103
jae 0x1402ef51c
mov word [rsi + r14*2], 0x5c
lea r15, [r14 + 1]
mov rbx, qword [rsp + 0x60]
lea rax, [rsp + 0x60]
cmp rbx, rax
je 0x1402ef607
nop
movzx eax, byte [rbx + 0x2f]
shr al, 7
test al, 1
je 0x1402ef541
mov rdi, qword [rbx + 0x20]
jmp 0x1402ef54e
movsx rax, byte [rbx + 0x2f]
mov edi, reloc.WS2_32.dll_inet_addr
sub rdi, rax
lea rax, [rdi + r14]
cmp rax, 0x103
ja 0x1402ef5f3
lea rdx, [rbx + 0x18]
movzx eax, byte [rdx + 0x17]
shr al, 7
test al, 1
je 0x1402ef573
mov rcx, qword [rdx + 8]
jmp 0x1402ef580
movsx rax, byte [rdx + 0x17]
mov ecx, reloc.WS2_32.dll_inet_addr
sub rcx, rax
mov r8, rdi
cmp rcx, rdi
cmovb r8, rcx
movzx eax, byte [rdx + 0x17]
shr al, 7
test al, 1
je 0x1402ef59a
mov rax, qword [rdx]
jmp 0x1402ef59d
mov rax, rdx
lea r8, [rax + r8*2]
movzx eax, byte [rdx + 0x17]
shr al, 7
test al, 1
je 0x1402ef5af
mov rdx, qword [rdx]
sub r8, rdx
sar r8, 1
add r8, r8
lea rcx, [rsi + r15*2]
call sub.VCRUNTIME140.dll_memmove
lea rax, [rdi + r15]
mov word [rsi + rax*2], r12w
cmp dword [rbx + 0x10], 1
jne 0x1402ef5e0
lea rdx, [rdi + r15]
mov rcx, rsi
call fcn.1402ef420
test al, al
jmp 0x1402ef5f1
cmp word [rsi], 0
je 0x1402ef5f3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1402ef5f6
xor bpl, bpl
mov rbx, qword [rbx]
lea rax, [rsp + 0x60]
cmp rbx, rax
jne 0x1402ef530
mov word [rsi + r14*2], r12w
xor edx, edx
mov rcx, rsi
call fcn.1402ef160
movzx ebx, bpl
test al, al
cmove ebx, r12d
lea rcx, [rsp + 0x60]
call fcn.14025e1d0
movzx eax, bl
jmp 0x1402ef631
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 0x1402f0470
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 0x1402f04ff
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 0x1402f04e4
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1402f04e4
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 0x1402f1060
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x18], 0xffffffffffffffff
mov rbx, rcx
je 0x1402f10a0
mov rcx, qword [rcx + 0x18]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1402f1094
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 0x1402f72e0
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
mov rax, qword [0x140604dd8]
xorps xmm1, xmm1
movaps xmmword [rsp + 0x60], xmm6
xorps xmm2, xmm2
movss xmm6, dword [0x140521e40]
mov rbx, 0xffffffffffffffff
movaps xmmword [rsp + 0x50], xmm7
movaps xmm0, xmm6
movss xmm7, dword [0x1404689ac]
mov esi, 8
cvtsi2ss xmm1, rax
mov rdi, rbx
mov ebp, esi
cvtsi2ss xmm2, rax
divss xmm0, xmm1
xorps xmm1, xmm1
movaps xmmword [rsp + 0x40], xmm8
movss xmm8, dword [0x14047a260]
movss dword [0x14062f8c8], xmm0
movaps xmm0, xmm7
divss xmm0, xmm2
movaps xmmword [rsp + 0x30], xmm9
movaps xmmword [rsp + 0x20], xmm10
xorps xmm2, xmm2
movss xmm9, dword [0x140521e70]
movss xmm10, dword [0x140521e74]
movss dword [0x14062f8c4], xmm0
movaps xmm0, xmm8
cvtsi2ss xmm1, rax
cvtsi2ss xmm2, rax
divss xmm0, xmm1
xorps xmm1, xmm1
movss dword [0x14062f8c0], xmm0
movaps xmm0, xmm9
divss xmm0, xmm2
cvtsi2ss xmm1, rax
movss dword [0x14062f8bc], xmm0
movaps xmm0, xmm10
divss xmm0, xmm1
movss dword [0x14062f8b8], xmm0
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 0x1402f73c1
mov rax, qword [0x140604de0]
xorps xmm0, xmm0
xorps xmm1, xmm1
mov qword [0x14062f8e8], rdi
cvtsi2ss xmm0, rax
cvtsi2ss xmm1, rax
divss xmm6, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
divss xmm7, xmm1
xorps xmm1, xmm1
movss dword [0x14062f8dc], xmm6
divss xmm8, xmm0
xorps xmm0, xmm0
movss dword [0x14062f8d8], xmm7
cvtsi2ss xmm0, rax
cvtsi2ss xmm1, rax
divss xmm10, xmm0
divss xmm9, xmm1
movss dword [0x14062f8cc], xmm10
movss dword [0x14062f8d4], xmm8
movss dword [0x14062f8d0], xmm9
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 0x1402f7472
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 [0x14062f8e0], rbx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x1402f7730
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
jne 0x1402f7768
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x1402f776f
mov rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp rbx, rdi
jbe 0x1402f776f
dec ebx
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1402fd190
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r9
mov rbx, r8
mov rbp, rdx
mov r14, rcx
je 0x1402fd1c2
mov rcx, qword [rcx]
call fcn.1402fdd60
call fcn.1402fcda0
xor r15d, r15d
mov rsi, rax
mov ecx, r15d
mov qword [rax], r15
mov qword [rax + 8], r15
mov qword [rax + 0x18], r15
mov qword [rax + 0x38], r15
xor eax, eax
mov dword [rsi + 0x48], eax
xchg dword [rsi + 0x48], ecx
mov qword [r14], rsi
lock inc dword [rsi + 0x48]
lock inc dword [rsi + 0x48]
lock inc dword [rsi + 0x48]
mov rax, qword [rsp + 0x70]
mov qword [rsi], r15
mov qword [rsi + 0x28], rbx
lea rbx, [r15 - 1]
mov qword [rsi + 0x38], rax
mov qword [rsi + 0x20], rbp
test rdi, rdi
je 0x1402fd219
mov rax, qword [rdi + 0x20]
jmp 0x1402fd21c
mov rax, rbx
mov qword [rsi + 0x10], rax
test rdi, rdi
je 0x1402fd22a
mov edx, dword [rdi + 8]
jmp 0x1402fd22d
mov edx, r15d
lea rax, [rsi + 8]
mov r9, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1402fdfb0]
xor ecx, ecx
mov dword [rsp + 0x20], 4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rbp, rax
test rax, rax
je 0x1402fd36b
mov qword [rsi], rax
test rdi, rdi
je 0x1402fd27a
mov rdx, qword [rdi + 0x18]
cmp qword [r14], r15
je 0x1402fd27a
test rdx, rdx
je 0x1402fd27a
mov rcx, qword [r14]
call fcn.1402fe420
mov qword [rsi + 0x30], rbp
test rdi, rdi
je 0x1402fd34b
cmp dword [rdi + 0x10], r15d
je 0x1402fd298
mov edx, dword [rdi + 0x10]
mov rcx, r14
call fcn.1402fe210
movzx edx, byte [rdi + 0x28]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
cmp dword [rdi + 0x14], r15d
jl 0x1402fd2c2
mov ebx, dword [rdi + 0x14]
mov eax, dword [0x14062fdbc]
nop
cmp ebx, eax
jne 0x1402fd32a
lock inc dword [0x14062fdbc]
jmp 0x1402fd32a
cmp dword [rdi + 0x14], 0xfffffffe
je 0x1402fd32a
mov eax, dword [0x14062fdc0]
nop
test eax, eax
js 0x1402fd2dc
mov ebx, dword [0x14062fdc0]
nop
jmp 0x1402fd32a
mov eax, dword [0x14062fdc0]
nop
cmp eax, ebx
jne 0x1402fd2f0
mov ebx, dword [0x14062fdc0]
nop
jmp 0x1402fd32a
mov rcx, qword [0x14062fdc8]
nop
nop dword [rax + rax]
mov ebx, 1
lock xadd dword [0x14062fdbc], ebx
inc ebx
cmp ebx, 0x40
jne 0x1402fd322
mov eax, ebx
lock cmpxchg dword [0x14062fdbc], r15d
mov ebx, r15d
mov eax, ebx
bt rcx, rax
jae 0x1402fd300
test rdi, rdi
je 0x1402fd34b
cmp dword [rdi + 0x14], 0xfffffffe
jne 0x1402fd34b
mov rax, qword [r14]
cmp qword [rax], r15
je 0x1402fd355
mov rdx, qword [rdi + 0x20]
mov rcx, rax
call fcn.1402fe360
jmp 0x1402fd355
mov edx, ebx
mov rcx, r14
call fcn.1402fe2c0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call fcn.1402fdd60
mov rax, rbp
jmp 0x1402fd388
mov rcx, rsi
call fcn.1402fdd60
mov rcx, rsi
call fcn.1402fdd60
mov rcx, rsi
call fcn.1402fdd60
xor eax, eax
mov qword [r14], r15
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x1402fd510
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
mov eax, dword [0x14062fe0c]
test eax, eax
jne 0x1402fd545
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
mov dword [0x14062fe0c], eax
add rsp, 0x58
ret

Function at 0x1402fd620
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov ecx, dword [0x140604e10]
cmp ecx, 0xffffffff
je 0x1402fd63a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x1402fd6a7
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 0x1402fd6a2
mov rcx, qword [rsp + 0x50]
mov dl, 1
call fcn.1402fe060
mov rax, qword [rsp + 0x50]
add rsp, 0x48
ret
Function at 0x1402fe060
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
sub rsp, 0x28
cmp dword [0x140604e10], 0xffffffff
movzx esi, dl
mov rbp, rcx
jne 0x1402fe08b
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140604e10], eax
cmp eax, 0xffffffff
je 0x1402fe1be
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x20], r14
call fcn.1402fd970
lea rcx, [0x14062fd90]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
lea r14, [0x14062f990]
mov edi, ebx
mov rcx, qword [rdi + r14]
test rcx, rcx
je 0x1402fe0eb
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], ebx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x1402fe0dd
cmp dword [rsp + 0x50], 0x103
je 0x1402fe0eb
mov rcx, qword [rdi + r14]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + r14], rbx
add rdi, 8
cmp rdi, 0x400
jb 0x1402fe0b7
lea rcx, [0x14062fd90]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test sil, sil
je 0x1402fe1a0
test rbp, rbp
je 0x1402fe149
call fcn.1402fd970
lea rcx, [0x14062fd90]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [r14 + rbx*8], 0
je 0x1402fe143
inc rbx
cmp rbx, 0x80
jb 0x1402fe125
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1402fe193
mov qword [r14 + rbx*8], rbp
jmp 0x1402fe193
mov ecx, dword [0x140604e10]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
je 0x1402fe1a0
call fcn.1402fd970
lea rcx, [0x14062fd90]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdi, rbx
cmp qword [r14 + rdi*8], rsi
je 0x1402fe186
inc rdi
cmp rdi, 0x80
jb 0x1402fe172
jmp 0x1402fe193
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r14 + rdi*8], rbx
lea rcx, [0x14062fd90]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x140604e10]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov r14, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
pop rsi
pop rbp
ret

Function at 0x1402fe360
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov r9, qword [rcx]
lea rax, [0x140604e18]
mov rdi, rdx
mov rsi, rcx
xor r8d, r8d
cmp qword [rax], r9
je 0x1402fe39f
add r8, 0x90
add rax, 0x90
cmp r8, 0x4800
jb 0x1402fe382
jmp 0x1402fe3a3
mov qword [rax + 0x10], rdi
mov ecx, dword [0x14062fe0c]
test ecx, ecx
jne 0x1402fe3d4
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rsp + 0x40]
mov dword [0x14062fe0c], ecx
mov ebx, 1
shl rbx, cl
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
mov rcx, qword [rsi]
test eax, eax
cmovne rbx, qword [rsp + 0x68]
and rbx, rdi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret