joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007c00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x280
call fcn.1400100f0
sub rsp, rax
mov rax, qword [0x14001b018]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
mov rdx, rbx
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
xor ebp, ebp
mov qword [rsp + 0x48], rbp
lea r8, [rsp + 0x48]
lea rdx, [0x140013704]
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
mov rsi, rax
test rax, rax
je 0x140007dfb
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
bt eax, 0xa
jae 0x140007d97
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 7]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x50], rax
cmp rax, 0xffffffffffffffff
je 0x140007dd4
mov ecx, 0x4000
call fcn.14000ef7c
mov rdi, rax
mov qword [rsp + 0x58], rax
xor edx, edx
mov r8d, 0x4000
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x40], ebp
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x4000
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x900a8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140007dc7
mov eax, dword [rdi]
cmp eax, 0xa0000003
je 0x140007d4d
cmp eax, 0xa000000c
jne 0x140007dc7
movzx ecx, word [rdi + 8]
shr rcx, 1
add rcx, 0xa
jmp 0x140007d58
movzx ecx, word [rdi + 8]
shr rcx, 1
add rcx, 8
cmp word [rdi + 0xa], 5
lea rcx, [rdi + rcx*2]
jb 0x140007dc2
test rcx, rcx
je 0x140007dc2
mov r8d, 4
lea rdx, str.___
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
jne 0x140007dc7
mov rcx, rdi
call fcn.14000ef74
nop
test rbx, rbx
je 0x140007d97
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea r8, [rsp + 0x48]
lea rdx, [0x140013704]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
mov rbx, rax
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test rbx, rbx
jmp 0x140007c7c
xor sil, sil
jmp 0x140007dca
mov sil, 1
mov rcx, rdi
call fcn.14000ef74
jmp 0x140007de1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
setne sil
lea rcx, [rbx - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140007df5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
movzx eax, sil
jmp 0x140007dfd
xor al, al
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14000e7a0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400099b0
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov eax, 0x70
call fcn.1400100f0
sub rsp, rax
mov rax, qword [0x14001b018]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov esi, edx
xor ecx, ecx
xor edx, edx
lea r8d, [rdx + 5]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov r14, rax
test rax, rax
jne 0x140009a1b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x140009a11
xor edi, edi
cmp eax, 0x429
setne dil
lea eax, [rdi + 0xfe]
jmp 0x140009b5b
mov eax, 0xfd
jmp 0x140009b5b
mov qword [rsp + 0x80], rbx
lea rdx, str.LibreOfficeMaintenance
mov r8d, 4
mov qword [rsp + 0x88], rbp
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbp, rax
test rax, rax
jne 0x140009aa3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, r14
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
sub ebx, 5
je 0x140009a99
sub ebx, 1
je 0x140009a8f
sub ebx, 0x75
je 0x140009a85
cmp ebx, 0x3a9
je 0x140009a7b
mov eax, 0xef
jmp 0x140009b4b
mov eax, 0xee
jmp 0x140009b4b
mov eax, 0xed
jmp 0x140009b4b
mov eax, 0xec
jmp 0x140009b4b
mov eax, 0xeb
jmp 0x140009b4b
imul esi, esi, 0x3e8
xor edi, edi
mov ebx, 0xcf
mov dword [rsp + 0x3c], ebx
test esi, esi
je 0x140009b37
nop dword [rax + rax]
lea rax, [rsp + 0x30]
mov r9d, 0x24
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x140009b18
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7c
jbe 0x140009b7b
sub eax, 0x41c
je 0x140009b21
sub eax, 9
je 0x140009b21
sub eax, 1
je 0x140009b21
cmp eax, 0x35
jne 0x140009b91
mov ebx, 0xde
mov dword [rsp + 0x3c], ebx
jmp 0x140009b37
mov ebx, dword [rsp + 0x3c]
cmp ebx, 1
je 0x140009b37
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
add edi, 0x32
cmp edi, esi
jb 0x140009ac0
mov ebx, dword [rsp + 0x3c]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14000e7a0
lea r11, [rsp + 0x70]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
je 0x140009bce
sub eax, 5
je 0x140009bc0
sub eax, 1
je 0x140009bb2
sub eax, 0x51
je 0x140009ba7
cmp eax, 0x23
je 0x140009b9c
mov ebx, 0xdf
mov dword [rsp + 0x3c], ebx
jmp 0x140009b37
mov ebx, 0xdb
mov dword [rsp + 0x3c], ebx
jmp 0x140009b37
mov ebx, 0xdc
mov dword [rsp + 0x3c], ebx
jmp 0x140009b37
mov ebx, 0xd9
mov dword [rsp + 0x3c], ebx
jmp 0x140009b37
mov ebx, 0xda
mov dword [rsp + 0x3c], ebx
jmp 0x140009b37
mov ebx, 0xdd
mov dword [rsp + 0x3c], ebx
jmp 0x140009b37

Function at 0x14000a4a0
Capabilities:
Terminate process

Disassembly:
mov eax, 0x28
call fcn.1400100f0
sub rsp, rax
mov dword [0], ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 3
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x1400015f0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x48
vmovups xmmword [rsp], xmm6
vmovups xmmword [rsp + 0x10], xmm7
vmovups xmmword [rsp + 0x20], xmm8
vmovups xmmword [rsp + 0x30], xmm9
mov rdx, qword [rcx + 0x9c0]
cmp rdx, 0x137
ja 0x140001695
mov r9, qword [rcx + rdx*8]
lea rax, [rdx + 1]
mov rdx, r9
mov qword [rcx + 0x9c0], rax
vmovups xmm6, xmmword [rsp]
movabs rax, 0x5555555555555555
shr rdx, 0x1d
vmovups xmm7, xmmword [rsp + 0x10]
movabs rcx, 0x71d67fffeda60000
vmovups xmm8, xmmword [rsp + 0x20]
and rdx, rax
vmovups xmm9, xmmword [rsp + 0x30]
xor rdx, r9
mov rax, rdx
shl rax, 0x11
and rax, rcx
movabs rcx, 0xfff7eee000000000
xor rax, rdx
mov rdx, rax
shl rdx, 0x25
and rdx, rcx
xor rdx, rax
mov rax, rdx
shr rax, 0x2b
xor rax, rdx
add rsp, 0x48
ret
vpbroadcastq ymm5, qword [0x1400d71c0]
mov rax, rcx
movabs r10, 0xb5026f5aa96619e9
vpbroadcastq ymm4, qword [0x1400d71c8]
vmovq xmm2, r10
lea rdx, [rcx + 0x4e0]
vpxor xmm6, xmm6, xmm6
vpbroadcastq ymm3, qword [0x1400d71d0]
vpbroadcastq ymm2, xmm2
nop word [rax + rax]
vpand ymm1, ymm4, ymmword [rax + 8]
vpand ymm0, ymm5, ymmword [rax]
add rax, 0x20
vpor ymm0, ymm0, ymm1
vpsrlq ymm1, ymm0, 1
vpand ymm0, ymm0, ymm3
vpxor ymm1, ymm1, ymmword [rax + 0x4c0]
vpsubq ymm0, ymm6, ymm0
vpand ymm0, ymm0, ymm2
vpxor ymm0, ymm1, ymm0
vmovdqu ymmword [rax - 0x20], ymm0
cmp rax, rdx
jne 0x1400016d8
mov r11d, 0x7fffffff
mov r10d, 1
vpxor xmm6, xmm6, xmm6
movabs r8, 0xb5026f5aa96619e9
vmovq xmm1, r11
mov r11, 0xffffffff80000000
vmovq xmm2, r10
vmovq xmm0, r11
vmovq xmm5, r8
vpbroadcastq ymm9, xmm1
vpbroadcastq ymm8, xmm0
vpbroadcastq ymm7, xmm2
vpbroadcastq ymm5, xmm5
lea rdx, [rcx + 0x9a0]
vpand ymm4, ymm8, ymmword [rax]
vpand ymm3, ymm9, ymmword [rax + 8]
add rax, 0x20
vpor ymm3, ymm3, ymm4
vpsrlq ymm4, ymm3, 1
vpand ymm3, ymm3, ymm7
vpxor ymm4, ymm4, ymmword [rax - 0x500]
vpsubq ymm3, ymm6, ymm3
vpand ymm3, ymm3, ymm5
vpxor ymm3, ymm4, ymm3
vmovdqu ymmword [rax - 0x20], ymm3
cmp rdx, rax
jne 0x140001760
mov rax, qword [rcx + 0x9b8]
vpunpcklqdq xmm1, xmm1, xmm1
vpunpcklqdq xmm0, xmm0, xmm0
vpunpcklqdq xmm2, xmm2, xmm2
mov rdx, qword [rcx + 0x9b0]
vpand xmm1, xmm1, xmmword [rcx + 0x9a8]
vmovq xmm7, r8
mov r9, rax
and rax, 0xffffffff80000000
vpand xmm0, xmm0, xmmword [rcx + 0x9a0]
and r9d, 0x7fffffff
and rdx, 0xffffffff80000000
or rdx, r9
vpor xmm0, xmm0, xmm1
mov r9, rdx
vpsrlq xmm1, xmm0, 1
vpand xmm0, xmm0, xmm2
and edx, 1
neg rdx
shr r9, 1
xor r9, qword [rcx + 0x4d0]
vpxor xmm2, xmm2, xmm2
and rdx, r8
vpxor xmm1, xmm1, xmmword [rcx + 0x4c0]
vpsubq xmm0, xmm2, xmm0
xor rdx, r9
mov r9, qword [rcx]
vpunpcklqdq xmm2, xmm7, xmm7
mov qword [rcx + 0x9b0], rdx
vpand xmm0, xmm0, xmm2
mov rdx, r9
vpxor xmm0, xmm1, xmm0
and edx, 0x7fffffff
vmovdqu xmmword [rcx + 0x9a0], xmm0
or rax, rdx
mov rdx, rax
and eax, 1
neg rax
shr rdx, 1
xor rdx, qword [rcx + 0x4d8]
and rax, r8
xor rax, rdx
mov qword [rcx + 0x9b8], rax
mov eax, 1
vzeroupper
jmp 0x140001623
Function at 0x140001870
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
push rbx
xor edi, edi
lea r9, [0x140346060]
mov r11, rcx
xor ecx, ecx
lea rsi, [rdi + rdi*2]
mov rbx, qword [r11 + rdi*8 + 0x30]
xor r10d, r10d
add rsi, rsi
mov rax, rbx
and rax, qword [r11 + r10*8]
je 0x1400018bd
lea r8, [rsi + r10]
shl r8, 6
nop dword [rax]
xor edx, edx
tzcnt rdx, rax
add rdx, r8
xor rcx, qword [r9 + rdx*8]
blsr rax, rax
jne 0x1400018a8
add r10, 1
cmp r10, 6
jne 0x140001890
test rdi, rdi
jne 0x1400018d3
mov edi, 1
jmp 0x140001881
movsx rdx, byte [r11 + 0x82]
movsx r8, byte [r11 + 0x80]
lea rax, [0x140347880]
mov rax, qword [rax + rdx*8]
lea rdx, [0x140347860]
xor rax, qword [rdx + r8*8]
movsx rdx, byte [r11 + 0x81]
xor rax, rcx
test dl, dl
jle 0x140001913
lea rcx, [0x140347900]
xor rax, qword [rcx + rdx*8]
pop rbx
pop rsi
pop rdi
ret

Function at 0x140017ce0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rbx, rcx
lea rax, [rbp + 0x28]
mov ecx, 2
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
mov qword [rbp - 8], rax
call fcn.140022680
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rbp - 8]
mov ecx, 2
call fcn.140022680
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140017d50
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
movsxd rsi, dword [0x140347b74]
mov rbx, rcx
test esi, esi
jle 0x140017e80
mov rax, qword [0x140347b78]
xor r9d, r9d
add rax, 0x18
nop dword [rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140017d9b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140017e23
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140017d80
mov rcx, rbx
call fcn.140018800
mov rdi, rax
test rax, rax
je 0x140017ea2
mov rax, qword [0x140347b78]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140018940
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140347b78]
lea rdx, [rbp - 0x30]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140017e87
mov eax, dword [rbp - 0xc]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140017e1c
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140017e30
add dword [0x140347b74], 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 2
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140347b78]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140017e1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140017ce0
nop word [rax + rax]
xor esi, esi
jmp 0x140017da8
mov rax, qword [0x140347b78]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140017ce0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140017ce0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140018430
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
lea r13, [0x140347be0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140347bc0]
test rbx, rbx
je 0x140018495
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [rbx]
call r12
mov rsi, rax
call rdi
test rsi, rsi
je 0x14001848c
test eax, eax
jne 0x14001848c
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140018470
mov rcx, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140018800
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400dd600]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140018820
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140018828
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140018820
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14001887d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140018874
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140018820
add rax, 0x28
cmp rax, r9
jne 0x140018860
xor eax, eax
ret

Function at 0x140018880
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400dd600]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14001889f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400188a8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14001889f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140018940
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400dd600]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14001895f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140018968
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400195a0
Capabilities:
Allocate thread local storage
Create thread
Resume thread

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rax, qword [0x1400dc950]
mov rsi, r8
mov r8d, dword [rax]
mov rdi, rcx
mov rbp, rdx
test r8d, r8d
je 0x1400195d0
mov ecx, dword [0x1400d2030]
test ecx, ecx
je 0x140019650
mov ecx, 0x18
call sub.msvcrt.dll_malloc
xor ecx, ecx
lea r8, [0x140019560]
xor edx, edx
mov qword [rax], rbp
mov rbx, rax
mov r9, rax
mov qword [rax + 8], rsi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x10], rax
mov rcx, rax
test rax, rax
je 0x140019630
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rax, qword [rbx + 0x10]
mov qword [rdi], rax
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, rbx
call fcn.140022cd0
nop
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
lock add dword [0x1400d2034], 1
jne 0x140019690
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400196c0
mov rdx, qword [fcn.140022cd0]
mov ecx, eax
mov dword [0x1400d2038], eax
call fcn.140022fc0
test eax, eax
jne 0x1400196c8
mov dword [0x1400d2030], 1
jmp 0x1400195d0
mov edx, dword [0x1400d2030]
mov r12, qword [sym.imp.KERNEL32.dll_Sleep]
lea rbx, [0x1400d2030]
test edx, edx
jne 0x1400195d0
nop dword [rax]
xor ecx, ecx
call r12
mov eax, dword [rbx]
test eax, eax
je 0x1400196b0
jmp 0x1400195d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140019679
call sub.msvcrt.dll_abort
nop
nop
Function at 0x140086040
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x140086088
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14008605a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400aa160
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rdx
mov rax, qword [0x1400dc950]
mov eax, dword [rax]
test eax, eax
je 0x1400aa0fe
mov r8, qword [rdx]
lea rdx, [0x1400ce900]
call fcn.1400195a0
test eax, eax
jne 0x1400aa0f7
mov qword [rbx], 0
add rsp, 0x38
pop rbx
pop rsi
ret
mov ecx, eax
call fcn.1400d1db0
mov ecx, 0x20
call fcn.1400cdde0
mov rbx, rax
call fcn.1400a62a0
lea rdx, [rsp + 0x20]
lea r8, str.Enable_multithreading_to_use_std::thread
mov rcx, rbx
mov qword [rsp + 0x20], 1
mov qword [rsp + 0x28], rax
call fcn.1400872c0
lea r8, [fcn.140087b40]
lea rdx, [0x1400dfc00]
mov rcx, rbx
call fcn.1400ce660
mov rsi, rax
mov rcx, rbx
call fcn.1400ce0f0
mov rcx, rsi
call fcn.1400192c0
nop
nop
nop
nop
nop
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
xor edx, edx
test eax, eax
cmovs eax, edx
add rsp, 0x58
ret
Function at 0x1400ce150
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400d5040]
jmp 0x1400199b0
Function at 0x14088b68d
Capabilities:
Encode data using xor

Disassembly:
movabs eax, dword [0xa30e4401f1eb5eba]
and al, 0xc2
leave
xor dh, ah
lodsd eax, dword [rsi]
mov dil, 0x3a
movabs dword [0x4aadf432c945c224], eax
mov bh, 0x3a
invalid
mov ebx, 0x9f94a340
mov edx, 0x35ae152e
xor r10d, r10d
lodsb al, byte [rsi]
xchg esi, eax
mov edx, 0x4a4eb45d
scasd eax, dword [rdi]
out dx, al
jle 0x14088b659
js 0x14088b699
jb 0x14088b6d7
push qword [rsp + 0x50]
popfq
lea rsp, [rsp + 0x58]
call fcn.1409ab92b
push qword [rsp + 0x18]
popfq
lea rsp, [rsp + 0x20]
call fcn.1409ab92b
sti
add dl, byte [rdx]
add bh, bh
je 0x14088b6c3
sbb byte [rbp + 0x24648d48], bl
and al, ch
add byte [rdx], 0x12
add byte [rbx - 5], cl
ja 0x14088b66e
pop rdx
xchg edx, esi
jl 0x14088b718
xchg ecx, eax
nop
add byte [rbx + rbx*4 - 0x718a378b], al
wait
leave
invalid
jge 0x14088b743
or esp, dword [rdi + rsi*4 - 0xb]
jp 0x14088b661
wait
invalid
out 0x13, al
jb 0x14088b740
and ch, byte [rax + 0x3d]
or al, 0x64
mov ebp, 0x9b85c46c
imul r10d, dword [r10], 0xffffff81
wait
sahf
in al, dx
loopne 0x14088b768
sub esp, eax
xchg ebp, eax
jae 0x14088b759
adc eax, 0x64097cb0
jb 0x14088b6ed
popfq
neg byte [rbx + 0x689ac998]
adc esi, edi
in al, dx
sbb ah, byte [rcx + rdx*2 - 0x4b]
mov esi, 0x1a729b97
pop rbp
push rcx
movsb byte [rdi], byte [rsi]
cmp dword [rax], 0x1771dbf5
sbb al, 0xfb
cmc
pop rdi
xchg edi, eax
std
ret
invalid
mov bl, 0x5e
lahf
invalid
mov bl, 0x24
popfq
mov dword [rcx + 0x20], edi
jae 0x14088b7d9
stosb byte [rdi], al
mov esp, dword [rbx - 0x39]
fisttp dword [rcx + rsi*8 - 0x6d]
fstp st(3)
mov ebx, 0x3923a0bc
mov ss, word [rbp + 0x7c53d65d]
movabs al, byte [0x7c53d65d958e3923]
outsd dx, dword [rsi]
pop rbx
scasd eax, dword [rdi]
xchg esi, eax
fidivr word [rbx - 0x4c647063]
mov ebx, 0xb39b8f9d
and dword [rdi + rdx*4 + 0x38], edi
pop rbx
imul ebp, ecx, 0x647987b9
xor eax, 0x7c5e815d
invalid
movsd dword [rdi], dword [rsi]
or dword [rdi + 0x51], 0xffffffbd
mov bh, 0x83
add eax, eax
jl 0x14088b753
lea eax, [rbp - 0x1a57c4f]
invalid
xor dword [rbp + 0x7c491c72], 0x25
pop rbx
fisttp dword [rsi + 0x7c]
out dx, eax
adc byte [rsi + 0x5808d983], dh
mov ah, 0x83
fld qword [rdx - 0x69]
jl 0x14088b776
pop rcx
cmpsd dword [rsi], dword [rdi]
mov dl, 0x83
or al, 0x46
sbb dword [rcx + 0x7c], ecx
pop rsp
or eax, 0xfe7c5b9b
hlt
loope 0x14088b834
jl 0x14088b804
or dword [rdi], edx
scasb al, byte [rdi]
adc eax, 0xffffffc7
jb 0x14088b7a4
jne 0x14088b78f
mov bh, 0xb
stosb byte [rdi], al
leave
push rsi
hlt
sbb al, 0x16
wait
retf 0xef98
mov dh, 9
mov esp, 0x9b97b11d
or dword [rsp + rdi*4 + 0x1d], esp
mov cl, 0x97
wait
xor al, 0xfb
invalid
jge 0x14088b862
scasd eax, dword [rdi]
jo 0x14088b89e
jp 0x14088b87c
test byte [rsi], 0x64
cmc
push rcx
mov r11d, dword [r11 + 0x6d4eed62]
mov ah, 0x92
sbb al, 0x59
jo 0x14088b823
hlt
jno 0x14088b824
invalid
invalid
and al, 0x41
or ah, byte [rsp + rsi*4]
xchg ebx, eax
adc bl, byte [r14 - 0x4c]
fist dword [rsi + 0x6e]
or byte [rsp + rbp*8 - 0x28d473e2], ch
xchg dword [rdx + 0x150113cb], edx
imul edx, esp, 0xdf7a3959
jp 0x14088b87f
add rbx, qword [rbx]
xor bl, 0xd
ret
Function at 0x140003480
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x1400034a8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400034ce
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400034d0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140003529
test ecx, ecx
jle 0x140003509
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140003529
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140003529
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140003550
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140003572
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140003588
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400035a4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400035a6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400035e2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000367e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000361d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000365e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000367e
cmp rbx, rax
ja 0x140003630
test rbx, rbx
je 0x14000367e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret