joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d7540
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rax, r8
mov rdi, rcx
mov dword [rsp + 0x60], 0
mov word [rsp + 0x64], 0
mov dword [rsp + 0x40], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], 7
mov byte [rsp + 0x60], 1
lea r8, [rsp + 0x40]
mov rcx, rdx
mov rdx, rax
call fcn.1400f0d20
mov rsi, rdx
test rax, rax
je 0x1400d75b2
mov rcx, rax
mov rdx, rsi
call fcn.1400f1040
mov qword [rdi], 0
jmp 0x1400d7712
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.1400f0f30
cmp dword [rsp + 0x40], 2
jne 0x1400d7630
mov rax, qword [rsp + 0x48]
mov ecx, eax
and ecx, 3
lea rdx, [rcx - 2]
cmp rdx, 2
jb 0x1400d7611
test rcx, rcx
je 0x1400d7611
lea rbx, [rax - 1]
mov r14, qword [rax - 1]
mov r15, qword [rax + 7]
mov rcx, r14
call qword [r15]
cmp qword [r15 + 8], 0
je 0x1400d7604
mov rdx, qword [r15 + 0x10]
mov rcx, r14
call fcn.14002ff40
mov edx, 8
mov rcx, rbx
call fcn.14002ff40
mov qword [rdi], 0
mov rcx, rsi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.1401278d4
mov r12, qword [rsp + 0x78]
test rsi, rsi
je 0x1400d7682
mov qword [rsp + 0x40], 0
call sub.kernel32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, rax
mov rdx, rsi
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x1400d76fe
mov rbx, qword [rsp + 0x40]
jmp 0x1400d7684
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.kernel32.dll_CreateFileMappingA
test rax, rax
je 0x1400d76ed
mov r14, rax
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.kernel32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call fcn.1401278d4
test r15, r15
je 0x1400d76ed
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r12
mov qword [rdi], 1
jmp 0x1400d770a
mov qword [rdi], 0
mov rcx, rbx
call fcn.1401278d4
jmp 0x1400d770a
call sub.kernel32.dll_GetLastError
mov qword [rdi], 0
mov rcx, rsi
call fcn.1401278d4
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400f4cd0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x14027c248]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x1400f4d3a
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x1400f4d49
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1400f4d80
cmp eax, 0x103
je 0x1400f4d8a
test eax, eax
js 0x1400f4d66
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400f4d80
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x14027c2a8]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.1400d1310
mov rcx, rax
call fcn.1400d1410
mov ecx, 7
int 0x29
ud2
Function at 0x1400f5250
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4f0
mov rbx, rdx
mov rsi, rcx
mov eax, dword [rdx + 0x10]
movzx ebp, word [rdx + 0x40]
movzx r15d, word [rdx + 0x42]
movzx r12d, word [rdx + 0x44]
mov dword [rdx + 0x10], 0
cmp eax, 1
jne 0x1400f52ac
mov r14, qword [rbx]
cmp bp, 0x2e
jne 0x1400f53a1
test r15w, r15w
je 0x1400f52ac
cmp r15w, 0x2e
jne 0x1400f53a1
test r12w, r12w
jne 0x1400f53a1
lea r14, [rsp + 0x80]
mov r8d, 0x250
mov rcx, r14
xor edx, edx
call sub.msvcrt.dll_memset
mov rdi, qword [rbx + 8]
mov rcx, rdi
mov rdx, r14
call sub.kernel32.dll_FindNextFileW
test eax, eax
je 0x1400f5387
mov r14, qword [rbx]
lea rbx, [rsp + 0x80]
jmp 0x1400f5303
mov rcx, rdi
mov rdx, rbx
call sub.kernel32.dll_FindNextFileW
test eax, eax
je 0x1400f5387
cmp word [rsp + 0xac], 0x2e
jne 0x1400f532c
movzx eax, word [rsp + 0xae]
test ax, ax
je 0x1400f52f0
cmp ax, 0x2e
jne 0x1400f532c
cmp word [rsp + 0xb0], 0
je 0x1400f52f0
lock inc qword [r14]
jle 0x1400f5489
mov rdi, qword [rsp + 0x80]
movups xmm0, xmmword [rsp + 0x88]
movaps xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x30], xmm0
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x40], eax
movzx ebp, word [rsp + 0xac]
movzx r15d, word [rsp + 0xae]
movzx r12d, word [rsp + 0xb0]
lea rdx, [rsp + 0xb2]
jmp 0x1400f53cc
call sub.kernel32.dll_GetLastError
cmp eax, 0x12
jne 0x1400f5418
mov qword [rsi], 0
jmp 0x1400f5477
lock inc qword [r14]
jle 0x1400f5489
lea rdx, [rbx + 0x46]
mov rdi, qword [rbx + 0x14]
mov eax, dword [rbx + 0x3c]
mov dword [rsp + 0x40], eax
movups xmm0, xmmword [rbx + 0x2c]
movaps xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rbx + 0x1c]
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x2d2]
mov r8d, 0x21e
call sub.msvcrt.dll_memcpy
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x70], eax
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0x2d2]
mov r8d, 0x21e
call sub.msvcrt.dll_memcpy
jmp 0x1400f542a
call sub.kernel32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
xor r14d, r14d
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], rdi
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x60]
movups xmmword [rsi + 0x18], xmm0
movups xmmword [rsi + 0x28], xmm1
mov eax, dword [rsp + 0x70]
mov dword [rsi + 0x38], eax
mov word [rsi + 0x3c], bp
mov word [rsi + 0x3e], r15w
mov word [rsi + 0x40], r12w
lea rcx, [rsi + 0x42]
lea rdx, [rsp + 0x80]
mov r8d, 0x21e
call sub.msvcrt.dll_memcpy
mov qword [rsi], 1
add rsp, 0x4f0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
ud2
Function at 0x1400f9010
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x14022f158]
test ecx, ecx
je 0x1400f90f0
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400f9044
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1400f9044
add rdi, 0x10
jmp 0x1400f90e6
mov ecx, dword [0x14022f158]
test ecx, ecx
je 0x1400f9103
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400f90e4
mov rsi, rax
test rax, rax
jne 0x1400f90b3
movzx eax, byte [0x1402fa220]
mov ecx, 0x18
mov edx, 8
call fcn.14002feb0
test rax, rax
je 0x1400f9126
mov rsi, rax
lea rax, [0x14022f140]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14022f158]
test ecx, ecx
je 0x1400f9116
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x1400f90e6
test rcx, rcx
je 0x1400f90e6
lock dec qword [rcx]
jne 0x1400f90e6
call fcn.1400f9140
jmp 0x1400f90e6
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x14022f140]
call fcn.1400d2120
mov ecx, eax
jmp 0x1400f9026
lea rcx, [0x14022f140]
call fcn.1400d2120
mov ecx, eax
jmp 0x1400f9054
lea rcx, [0x14022f140]
call fcn.1400d2120
mov ecx, eax
jmp 0x1400f90ab
mov ecx, 8
mov edx, 0x18
call fcn.1400320f0
ud2
Function at 0x1400fac80
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, r8
mov rbx, rdx
mov r14, rcx
movzx eax, byte [0x1402fa220]
mov ecx, 0x10
mov edx, 8
call fcn.14002feb0
test rax, rax
je 0x1400fad37
mov rsi, rax
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400fad90]
xor edi, edi
xor ecx, ecx
mov rdx, r14
mov r9, rax
call sub.kernel32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x1400fad2a
mov rdi, qword [rsi]
mov rbx, qword [rsi + 8]
mov rcx, rdi
call qword [rbx]
cmp qword [rbx + 8], 0
je 0x1400fad09
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
call fcn.14002ff40
mov edx, 8
mov rcx, rsi
call fcn.14002ff40
call sub.kernel32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 8
mov edx, 0x10
call fcn.1400320f0
ud2

Function at 0x1400fae70
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x80
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
mov edx, 0x10
call sub.advapi32.dll_SystemFunction036
test al, al
je 0x1400faea6
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rsp, 0x80
pop rsi
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rax, [fcn.1400f2320]
mov qword [rsp + 0x48], rax
lea rax, str.fallback_RNG_broken:
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rsp + 0x50]
call fcn.1400355c0
ud2
Function at 0x140100c80
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.1400d4800
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x140100d1e
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
call fcn.1400f10e0
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x140100d1e
mov rcx, rdi
call sub.kernel32.dll_DeleteFileW
test eax, eax
je 0x140100cfa
test rsi, rsi
je 0x140100cf6
mov edx, 2
mov rcx, rdi
call fcn.14002ff40
xor esi, esi
jmp 0x140100d1e
call sub.kernel32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x140100d1b
mov edx, 2
mov rcx, rdi
call fcn.14002ff40
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x140100ee0
Capabilities:
Copy file

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x60
mov r14, r9
mov rbx, rcx
lea rcx, [rsp + 0x30]
call fcn.1400d4800
mov rax, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
test rax, rax
je 0x140100fea
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x30]
call fcn.1400f10e0
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
test rdi, rdi
je 0x140100fea
mov r8, qword [rsp + 0xb0]
lea rcx, [rsp + 0x30]
mov rdx, r14
call fcn.1400d4800
mov rax, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
test rax, rax
je 0x140100ff7
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x30]
call fcn.1400f10e0
mov r14, qword [rsp + 0x48]
mov r15, qword [rsp + 0x50]
test r14, r14
je 0x140100ff7
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [0x140101070]
lea r9, [rsp + 0x30]
mov rcx, rdi
mov rdx, r14
call sub.kernel32.dll_CopyFileExW
test eax, eax
je 0x140101004
mov rax, qword [rsp + 0x30]
mov qword [rbx + 8], rax
mov qword [rbx], 0
test r15, r15
jne 0x140101021
jmp 0x14010102e
mov qword [rbx + 8], rsi
mov qword [rbx], 1
jmp 0x140101040
mov qword [rbx + 8], r15
mov qword [rbx], 1
jmp 0x14010102e
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbx + 8], rax
mov qword [rbx], 1
test r15, r15
je 0x14010102e
mov edx, 2
mov rcx, r14
call fcn.14002ff40
test rsi, rsi
je 0x140101040
mov edx, 2
mov rcx, rdi
call fcn.14002ff40
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1401010e0
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x30
mov ecx, dword [0x14022f178]
test ecx, ecx
je 0x1401011d9
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x140101110
cmp qword [rax + 8], 0
je 0x140101110
add rax, 0x10
jmp 0x1401011d3
mov ecx, dword [0x14022f178]
test ecx, ecx
je 0x1401011ec
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1401011b3
mov rsi, rax
test rax, rax
jne 0x140101183
movzx eax, byte [0x1402fa220]
mov ecx, 0x20
mov edx, 8
call fcn.14002feb0
test rax, rax
je 0x140101212
mov rsi, rax
lea rax, [0x14022f160]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14022f178]
test ecx, ecx
je 0x1401011ff
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x1401011b7
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x1401011bf
xor eax, eax
jmp 0x1401011d3
call fcn.1400fae70
mov rcx, rax
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
add rsp, 0x30
pop rsi
ret
lea rcx, [0x14022f160]
call fcn.1400d2120
mov ecx, eax
jmp 0x1401010f5
lea rcx, [0x14022f160]
call fcn.1400d2120
mov ecx, eax
jmp 0x140101120
lea rcx, [0x14022f160]
call fcn.1400d2120
mov ecx, eax
jmp 0x14010117b
mov ecx, 8
mov edx, 0x20
call fcn.1400320f0
ud2
Function at 0x140103c10
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x2c]
mov rcx, rax
call sub.shell32.dll_CommandLineToArgvW
test rax, rax
je 0x140103ca9
mov rdi, rax
movsxd r12, dword [rsp + 0x2c]
lea rbx, [rsp + 0x30]
mov qword [rbx], 8
xorps xmm0, xmm0
movups xmmword [rbx + 8], xmm0
shl r12, 3
xor r13d, r13d
lea r14, [rsp + 0x48]
cmp r12, r13
je 0x140103c8e
mov r15, qword [rdi + r13]
mov rcx, r15
call sub.msvcrt.dll_wcslen
mov rcx, r14
mov rdx, r15
mov r8, rax
call fcn.140102019
mov rcx, rbx
mov rdx, r14
call fcn.140103ef6
add r13, 8
jmp 0x140103c5e
mov rcx, rdi
call sub.kernel32.dll_LocalFree
mov rax, qword [rsp + 0x40]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
jmp 0x140103cb7
mov qword [rsi], 8
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140108d72
Capabilities:
Get memory capacity

Disassembly:
push rsi
push rdi
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov rsi, rcx
xorps xmm6, xmm6
lea rdi, [rsp + 0x90]
movaps xmmword [rdi], xmm6
movaps xmmword [rdi + 0x30], xmm6
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
mov dword [rdi], 0x40
mov rcx, rdi
call sub.kernel32.dll_GlobalMemoryStatusEx
mov rax, qword [rdi + 8]
mov qword [rsi + 0xa0], rax
mov rax, qword [rdi + 0x10]
mov qword [rsi + 0xa8], rax
lea rcx, [rsp + 0x20]
movaps xmmword [rcx + 0x50], xmm6
movaps xmmword [rcx + 0x40], xmm6
movaps xmmword [rcx + 0x30], xmm6
movaps xmmword [rcx + 0x20], xmm6
movaps xmmword [rcx + 0x10], xmm6
movaps xmmword [rcx], xmm6
and qword [rcx + 0x60], 0
mov edx, 0x68
call sub.psapi.dll_GetPerformanceInfo
cmp eax, 1
jne 0x140108e45
mov r8, qword [rsp + 0x30]
mov r9, qword [rsp + 0x40]
xor r10d, r10d
sub r8, r9
cmovb r8, r10
mov rcx, qword [rsp + 0x70]
mov rax, rcx
mul r8
mov r8, rax
mov r11, 0xffffffffffffffff
cmovo r8, r11
mov rdi, qword [rsp + 0x28]
sub rdi, r9
cmovb rdi, r10
mov rax, rcx
mul rdi
cmovo rax, r11
mov qword [rsi + 0xb0], r8
mov qword [rsi + 0xb8], rax
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rdi
pop rsi
ret
Function at 0x140109d06
Capabilities:
Get disk size

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
imul rbx, rdx, 0x90
xor r14d, r14d
lea rdi, [rsp + 0x28]
mov r15, rcx
cmp rbx, r14
je 0x140109d6b
cmp qword [r15 + 0x78], 0
je 0x140109d5b
and qword [rsp + 0x28], 0
mov rcx, qword [rsi + r14 + 0x48]
xor edx, edx
xor r8d, r8d
mov r9, rdi
call sub.kernel32.dll_GetDiskFreeSpaceExW
test eax, eax
je 0x140109d5b
mov rax, qword [rsp + 0x28]
mov qword [rsi + r14 + 0x80], rax
add r15, 0x90
add r14, 0x90
jmp 0x140109d26
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14010ab8b
Capabilities:
Reference wmi statements

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
and qword [rsp + 0x38], 0
mov rsi, rdx
mov rdi, rcx
cmp qword [rdx + 0x10], 0
je 0x14010ac52
lea rcx, [0x14027da1a]
call sub.oleaut32.dll_SysAllocString
mov rbx, rax
lea rcx, str.SELECT__FROM_MSAcpi_ThermalZoneTemperature
call sub.oleaut32.dll_SysAllocString
mov r14, rax
mov rcx, qword [rsi + 0x18]
mov rax, qword [rcx]
mov rax, qword [rax + 0xa0]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x28], rdx
and qword [rsp + 0x20], 0
mov rdx, rbx
mov r8, r14
mov r9d, 0x30
call rax
mov ebp, eax
mov rcx, rbx
call sub.oleaut32.dll_SysFreeString
mov rcx, r14
call sub.oleaut32.dll_SysFreeString
test ebp, ebp
js 0x14010ac52
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rsi + 0x20]
mov rdx, qword [rsi + 0x28]
call fcn.1401076b2
mov qword [rsi + 0x20], 1
mov qword [rsi + 0x28], rbx
mov rax, qword [rsi + 0x30]
mov qword [rdi + 0x30], rax
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
mov rax, qword [rsi + 0x20]
mov qword [rdi + 0x20], rax
mov rax, qword [rsi + 0x28]
mov qword [rdi + 0x28], rax
jmp 0x14010ac61
mov qword [rdi], 2
mov rcx, rsi
call fcn.1401075f1
nop
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x14010b43e
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
lea rdx, [0x14027df97]
lea rcx, [rsp + 0x50]
mov r8d, 0x2c
call fcn.14010b61d
lea rdx, [0x14027dfc3]
lea rcx, [rsp + 0x38]
mov r8d, 0x12
call fcn.14010b61d
lea rax, [rsp + 0x68]
and qword [rax], 0
mov rsi, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
mov rdx, rsi
xor r8d, r8d
mov r9d, 0x20019
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x14010b4be
and qword [rdi], 0
mov rbx, qword [rsp + 0x38]
jmp 0x14010b59d
mov dword [rsp + 0x30], 0x800
and dword [rsp + 0x34], 0
mov ecx, 0x800
call fcn.140077634
lea r15, [rsp + 0x70]
mov qword [r15], rax
mov qword [r15 + 8], rdx
and qword [r15 + 0x10], 0
mov rbx, qword [rsp + 0x38]
lea r13, [rsp + 0x30]
lea r12, [rsp + 0x34]
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x70]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
mov rdx, rbx
xor r8d, r8d
mov r9, r12
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
jne 0x14010b52c
mov edx, dword [rsp + 0x30]
mov rcx, r15
call fcn.14007515a
jmp 0x14010b4f5
test eax, eax
jne 0x14010b571
mov r8d, dword [rsp + 0x30]
shr r8, 1
lea rcx, [rsp + 0x88]
mov rdx, r14
call fcn.140102019
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x98]
inc rcx
cmp rcx, 1
je 0x14010b577
lea rdx, [rcx - 1]
cmp byte [rax + rcx - 2], 0
mov rcx, rdx
je 0x14010b55b
jmp 0x14010b579
and qword [rdi], 0
jmp 0x14010b590
xor edx, edx
mov qword [rsp + 0x98], rdx
mov qword [rdi + 0x10], rdx
movups xmm0, xmmword [rsp + 0x88]
movups xmmword [rdi], xmm0
mov rdx, qword [rsp + 0x78]
mov rcx, r14
call fcn.1400cb90d
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.140126bc3
mov rdx, qword [rsp + 0x58]
mov rcx, rsi
call fcn.140126bc3
nop
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14010baff
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [rcx + 0x18]
test eax, eax
je fcn.1400d2120
dec eax
ret
Function at 0x14010d1ad
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xd0
mov r14, rcx
lea rcx, [0x14022f1c0]
call fcn.14010baff
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x14010d1ea
mov rbx, rax
cmp qword [rax + 8], 0
je 0x14010d1ea
add rbx, 0x10
jmp 0x14010d2dd
lea rsi, [0x14022f1c0]
mov rcx, rsi
call fcn.14010baff
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x14010d27e
mov rbx, rax
test rax, rax
jne 0x14010d251
and qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rsi
mov ecx, 0x60
mov edx, 8
call fcn.14010d30d
mov rbx, rax
lea rsi, [rsp + 0x20]
mov ecx, 0xc
mov rdi, rax
rep movsq qword [rdi], qword [rsi]
lea rcx, [0x14022f1c0]
call fcn.14010baff
mov ecx, eax
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
lea r15, [rbx + 8]
test r14, r14
je 0x14010d28c
lea rax, [rsp + 0x20]
mov ecx, 0xb
mov rdi, rax
mov rsi, r14
rep movsq qword [rdi], qword [rsi]
and qword [r14], 0
cmp qword [rax], 0
je 0x14010d282
lea rsi, [rsp + 0x28]
jmp 0x14010d293
xor ebx, ebx
jmp 0x14010d2dd
lea rcx, [rsp + 0x20]
call fcn.14010bb42
lea rsi, [0x14027f2e0]
lea rdi, [rsp + 0x80]
mov ecx, 0xa
rep movsq qword [rdi], qword [rsi]
lea rax, [rsp + 0x20]
mov ecx, 0xb
mov rdi, rax
mov rsi, r15
rep movsq qword [rdi], qword [rsi]
mov qword [rbx + 8], 1
add rbx, 0x10
lea rsi, [rsp + 0x80]
mov ecx, 0xa
mov rdi, rbx
rep movsq qword [rdi], qword [rsi]
mov rcx, rax
call fcn.14010bb42
mov rax, rbx
add rsp, 0xd0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140113cf1
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x140113cf8
test al, 1
je 0x140113d17
test al, 2
jne 0x140113d2c
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x140280ad8]
mov edx, 0x23
jmp 0x140113d3f
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x140280a98]
mov edx, 0x25
call fcn.140036270
ud2

Function at 0x14011471b
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.140112e4e
mov rcx, qword [rax]
movzx eax, bl
lea r9, [rsp + 0x2c]
mov dword [r9], eax
mov dword [rsp + 0x20], 4
mov edx, 6
mov r8d, 1
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x140114756
xor eax, eax
jmp 0x140114763
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret