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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc0
mov r15, qword [rsp + 0x120]
mov rax, qword [0x1401ec028]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov rax, qword [rcx]
inc rax
cmp rax, 1
ja 0x1400fc70a
mov edi, r9d
mov r14d, edx
mov rsi, rcx
xor ecx, ecx
mov rdx, r8
call qword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov rbx, rax
cmp qword [rsi], rax
je 0x1400fc5de
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400fc6e7
mov rax, rbx
inc rax
cmp rax, 2
jb 0x1400fc5d3
mov qword [rsi], rbx
call fcn.140119620
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsi]
lea rax, [rbx + 1]
cmp rax, 1
jbe 0x1400fc711
xor r12d, r12d
lea rcx, [rsp + 0x28]
mov r8d, 0x90
xor edx, edx
call fcn.14013dca0
test r14d, r14d
jne 0x1400fc6b6
mov eax, 0xff
mov edx, 0x408
mov dword [rsp + 0x50], 1
mov r12d, edx
mov r8d, eax
mov ecx, r12d
mov dword [rsp + 0x20], r8d
mov r12d, r8d
test r15, r15
je 0x1400fc640
or ecx, 0x100
mov qword [rsp + 0x98], r15
or ecx, 0x2000
mov dword [rsp + 0x38], ecx
lea r8, [rsp + 0x28]
mov rcx, rbx
mov edx, 9
mov r9d, 0x90
call qword [sym.imp.KERNEL32.dll_SetInformationJobObject]
test eax, eax
je 0x1400fc700
not edi
and r12d, edi
lea r8, [rsp + 0x20]
mov dword [r8], r12d
mov rcx, qword [rsi]
mov edx, 4
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_SetInformationJobObject]
xor ebp, ebp
test eax, eax
je 0x1400fc700
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.14013bb80
mov eax, ebp
add rsp, 0xc0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
dec r14d
cmp r14d, 3
ja case.default.0x1400fc6e4
mov ebp, 0xa0
mov r8d, 0xc8
mov eax, 0xd8
mov edx, 8
lea rcx, [0x1400fc73c]
movsxd r9, dword [rcx + r14*4]
add r9, rcx
xor ecx, ecx
jmp r9
call fcn.140119620
mov rcx, qword [rsi]
call fcn.140124bd0
mov qword [rsi], 0
jmp 0x1400fc5bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp case.0x1400fc6e4.4
mov ebp, 0x4df
jmp case.0x1400fc6e4.4
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.14013bb80
nop
add rsp, 0xc0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x1400fd7e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov rsi, rcx
mov rax, qword [0x1401ec028]
xor rax, rsp
mov qword [rsp + 0xa0], rax
test dl, dl
je 0x1400fda69
lea rax, [0x1401a81d0]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
lea rdi, [0x1401d48f0]
lea r8, str.NtMapViewOfSection
mov rcx, rsi
mov rdx, rdi
mov r9d, 1
call fcn.1400fcbb0
lea rax, [0x1401a8240]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 1
lea r8, str.NtUnmapViewOfSection
mov rcx, rsi
mov rdx, rdi
mov r9d, 1
call fcn.1400fcbb0
mov rax, qword [rsi]
test rax, rax
je 0x1400fda78
mov rdi, qword [rax]
mov dword [rsp + 0x20], 1
mov r8d, 0x10000
mov rcx, rdi
xor edx, edx
mov r9d, 0x2000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r14, qword [rsi + 0x18]
shl r14, 6
lea rbx, [r14 + 0x60]
cmp rbx, 0x10001
jae 0x1400fda7b
mov r15, rax
lea r12, [rsp + 0x40]
mov dword [r12], 0xaaaaaaaa
mov ebp, 0x10000
sub ebp, ebx
mov rcx, r12
call fcn.140107f50
movzx r13d, word [rsp + 0x40]
mov dword [rsp + 0x40], r13d
cmp ebp, r13d
jb 0x1400fd8cd
mov ecx, 0x800
mov r8d, 0x1000
mov edx, 0x800
mov rax, r8
shr rdx, 1
mov r8, rcx
cmp rcx, rbx
mov rcx, rdx
jae 0x1400fd8f5
neg eax
and r13d, eax
mov eax, r13d
and eax, 0xf000
add r15, rax
add r14, 0x105f
and r14, 0xfffffffffffff000
mov dword [rsp + 0x20], 0x40
mov rcx, rdi
mov rdx, r15
mov r8, r14
mov r9d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test rax, rax
je 0x1400fda7e
mov r14, rax
and r13d, 0xfff
add r14, r13
movaps xmm0, xmmword [0x1401c9ef0]
lea r15, [rsp + 0x40]
movups xmmword [r15 + 0x10], xmm0
movups xmmword [r15 + 0x50], xmm0
movups xmmword [r15 + 0x40], xmm0
movups xmmword [r15 + 0x30], xmm0
movups xmmword [r15 + 0x20], xmm0
mov qword [r15], rbx
mov dword [r15 + 0x18], 0
mov qword [r15 + 8], 0x20
lea rcx, [0x140207350]
mov r8d, 0xd8
xor edx, edx
call fcn.14013dca0
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9, r15
call fcn.1400fdcf0
test eax, eax
jne 0x1400fda41
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x38]
mov qword [rcx], rax
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x40]
mov r9d, 0x20
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebp, 0x2a
test eax, eax
je 0x1400fda43
cmp qword [rsp + 0x38], 0x20
jne 0x1400fda43
lea rax, [rsp + 0x34]
mov dword [rax], 0xaaaaaaaa
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov rdx, r14
mov r8, rbx
mov r9d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400fda81
lea rdx, str.g_originals
lea r8, [0x140207350]
mov r9d, 0xd8
call fcn.1400ea810
mov ebp, eax
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14013bb80
mov eax, ebp
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp qword [rsi + 0x18], 0
jne 0x1400fd86f
xor ebp, ebp
jmp 0x1400fda43
int3
int3
int3
int3
Function at 0x1400fef50
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov r14, r9
mov rdi, r8
mov r15, rdx
mov rsi, rcx
xor ebx, ebx
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r12, rax
cmp qword [r15], rax
je 0x1400fefbb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [r15]
inc rax
cmp rax, 2
jae 0x1400ff089
mov rax, r12
inc rax
cmp rax, 2
jb 0x1400fefb0
mov qword [r15], r12
call fcn.140119620
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r12, qword [r15]
mov r15, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 0x100002
mov rcx, rax
mov rdx, r12
mov r8, r15
mov r9, r14
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400ff078
mov rbx, qword [rsp + 0xa0]
xor r15d, r15d
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r14, rax
cmp qword [rdi], rax
je 0x1400ff045
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x1400ff0a2
mov rax, r14
inc rax
cmp rax, 2
jb 0x1400ff03a
mov qword [rdi], r14
call fcn.140119620
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi]
mov rsi, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 0x100002
mov rcx, rax
mov rdx, r14
mov r8, rsi
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
setne bl
mov eax, ebx
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.140119620
mov rcx, qword [r15]
call fcn.140124bd0
mov qword [r15], 0
jmp 0x1400fef9c
call fcn.140119620
mov rcx, qword [rdi]
call fcn.140124bd0
mov qword [rdi], 0
jmp 0x1400ff026

Function at 0x1401048f0
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 0x140104905
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x1401071f0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2d8
mov rsi, rcx
mov rax, qword [0x1401ec028]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x270]
mov qword [rdi + 0x50], rax
movaps xmm0, xmmword [0x1401c9ef0]
movaps xmmword [rdi + 0x40], xmm0
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, [0x1401d77c7]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x60]
mov rcx, rbx
mov r9d, 0x3c3
call fcn.140119600
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140124c00
lea rbx, [rsp + 0x60]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.14013dca0
mov word [rbx], 0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
add edi, 0xfffffefb
cmp edi, 0xfffffefc
jb 0x1401072f7
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.14015bcc0
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.14011a600
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.1400c2320
mov rcx, rsi
mov rdx, r14
call fcn.1400c2280
mov rcx, r14
call fcn.14011a780
mov rcx, rbx
call fcn.14011a780
cmp edi, 0xfffffefc
setae bl
lea rcx, [rsp + 0x270]
call fcn.140124c60
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.14013bb80
mov eax, ebx
add rsp, 0x2d8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140107330
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x1401ec028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x1401c9ef0]
movaps xmmword [rsi + 0x40], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, [0x1401d77dc]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x3d3
call fcn.140119600
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140124c00
cmp byte [rdi + 0x17], 0
jns 0x1401073b4
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rsi
call fcn.140124c60
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14013bb80
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x140107430
Capabilities:
Reference processor manufacturer constants

Disassembly:
push rsi
push rdi
mov r8, rcx
xor edi, edi
xor ecx, ecx
xor eax, eax
xchg rbx, r9
cpuid
xchg rbx, r9
test eax, eax
jle 0x140107552
mov r10d, eax
xor ecx, ecx
mov eax, 1
xchg rbx, r9
cpuid
xchg rbx, r9
mov r9d, ecx
mov r11d, edx
mov esi, eax
cmp r10d, 7
jb 0x140107588
mov eax, 7
xor ecx, ecx
xchg rbx, rdi
cpuid
xchg rbx, rdi
mov r10d, ecx
and edi, 0x20
shr r10b, 3
and r10b, 1
mov dword [r8], esi
mov eax, esi
and eax, 0xf
mov dword [r8 + 8], eax
shr esi, 0xc
and esi, 3
mov dword [r8 + 4], esi
mov eax, r11d
shr eax, 0x17
and al, 1
mov byte [r8 + 0xc], al
mov eax, r11d
shr eax, 0x19
and al, 1
mov byte [r8 + 0xd], al
shr r11d, 0x1a
and r11b, 1
mov byte [r8 + 0xe], r11b
mov eax, r9d
and al, 1
mov byte [r8 + 0xf], al
mov eax, r9d
shr eax, 9
and al, 1
mov byte [r8 + 0x10], al
mov eax, r9d
shr eax, 0x13
and al, 1
mov byte [r8 + 0x11], al
mov eax, r9d
shr eax, 0x14
and al, 1
mov byte [r8 + 0x12], al
mov eax, r9d
shr eax, 0x17
and al, 1
mov byte [r8 + 0x13], al
mov eax, r9d
shr eax, 0x1f
mov byte [r8 + 0x1a], al
mov eax, r9d
not eax
test eax, 0x1c000000
jne 0x140107590
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
mov byte [r8 + 0x14], al
mov ecx, r9d
shr ecx, 0x19
and cl, 1
mov byte [r8 + 0x17], cl
shr r9d, 0xc
and r9b, 1
mov byte [r8 + 0x15], r9b
test al, al
setne al
test edi, edi
setne cl
and cl, al
mov byte [r8 + 0x16], cl
mov byte [r8 + 0x18], r10b
xor ecx, ecx
mov eax, 0x80000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp eax, 0x80000006
jle 0x140107594
mov eax, 0x80000007
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
shr edx, 8
and dl, 1
mov byte [r8 + 0x19], dl
test dl, dl
je 0x14010759a
pop rdi
pop rsi
ret
xor r10d, r10d
jmp 0x14010748c
xor eax, eax
jmp 0x140107521
mov dl, byte [r8 + 0x19]
jmp 0x140107581
cmp byte [r8 + 0x1a], 0
je 0x140107585
mov eax, 0x40000000
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
cmp r9d, 0x7263694d
jne 0x140107585
cmp ecx, 0x666f736f
jne 0x140107585
cmp edx, 0x76482074
jne 0x140107585
mov byte [r8 + 0x19], 1
jmp 0x140107585

Function at 0x140107f50
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x28
mov edx, 4
call sub.ADVAPI32.dll_SystemFunction036
test al, al
setne al
add rsp, 0x28
ret
Function at 0x140109810
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x1401ec028]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r8, 0x30
ja 0x14010995d
mov r14, r8
mov r15, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x1401c9ef0]
lea rdi, [rsp + 0x40]
movaps xmmword [rdi], xmm0
movaps xmmword [rdi - 0x10], xmm0
movaps xmmword [rdi - 0x20], xmm0
lea r12, [rsp + 0x30]
lea rbx, [rcx + 0x108]
mov eax, dword [rcx + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rcx + 0x114], eax
mov rax, qword [rcx + 0xf8]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov r8, rsi
call qword [0x140219008]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, r12
mov r8, rsi
call qword [0x140219008]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [0x140219008]
test r14, r14
je 0x1401098f3
xor eax, eax
mov cl, byte [r15 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r14, rax
jne 0x1401098e3
lea r14, [rsi + 0xf8]
mov eax, dword [0x140207604]
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x140109961
call fcn.140003260
lea rax, [0x140001d60]
test r14, r14
je 0x14010992e
lea rcx, section..text
mov qword [r14], rcx
mov qword [rsi + 0x100], rax
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
mov esi, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14013bb80
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x140109940
bt eax, 9
jae 0x140109981
call fcn.140004450
lea rax, [0x140004920]
test r14, r14
je 0x14010992e
lea rcx, [0x140004620]
jmp 0x14010992b
call fcn.1401a9590
lea rax, [0x1401a9d90]
test r14, r14
je 0x14010992e
lea rcx, [0x1401a9450]
jmp 0x14010992b

Function at 0x14010b730
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x140207620]
cmp rdi, 1
jbe 0x14010b759
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140128e80
lea rcx, [0x140207620]
call fcn.140102260
test al, al
je 0x14010b79e
xorps xmm0, xmm0
movups xmmword [0x140207628], xmm0
lea rbx, [0x140207620]
lea rdi, [0x140207628]
mov rcx, rdi
xor edx, edx
call fcn.1400ef190
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.140102320
jmp 0x14010b747
mov rdi, qword [0x140207620]
jmp 0x14010b747
Function at 0x14010c5d0
Capabilities:
Encode data using base64

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rcx]
mov rbx, qword [rsi + 8]
sub rbx, rcx
sar rbx, 3
lea rdx, [rbx + 1]
mov rax, rdx
shr rax, 0x3d
jne 0x14010c713
movabs rax, 0x1fffffffffffffff
mov r8, qword [rsi + 0x10]
sub r8, rcx
mov r14, r8
sar r14, 2
cmp r14, rdx
cmovbe r14, rdx
movabs rcx, 0x7ffffffffffffff8
cmp r8, rcx
cmovae r14, rax
test r14, r14
je 0x14010c70c
cmp r14, rax
ja 0x14010c718
lea rcx, [r14*8]
call fcn.14013a754
shl rbx, 3
add rbx, rax
je 0x14010c71d
mov rcx, qword [rdi]
mov qword [rbx], rcx
test rcx, rcx
je 0x14010c669
lock inc dword [rcx + 8]
lea rax, [rax + r14*8]
lea rcx, [rbx + 8]
mov rdi, qword [rsi]
mov rdx, qword [rsi + 8]
cmp rdx, rdi
je 0x14010c6f5
mov r8, qword [rdx - 8]
mov qword [rbx - 8], r8
mov qword [rdx - 8], 0
lea r8, [rdx - 8]
add rbx, 0xfffffffffffffff8
mov rdx, r8
cmp r8, rdi
jne 0x14010c67d
mov rdi, qword [rsi]
mov r14, qword [rsi + 8]
mov qword [rsi], rbx
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
cmp r14, rdi
je 0x14010c6df
add r14, 0xfffffffffffffff8
test r14, r14
je 0x14010c749
mov rcx, qword [r14]
test rcx, rcx
je 0x14010c6d3
lock dec dword [rcx + 8]
je 0x14010c775
lea rax, [r14 - 8]
cmp r14, rdi
mov r14, rax
jne 0x14010c6b8
test rdi, rdi
je 0x14010c702
mov rcx, rdi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.14013a790
mov qword [rsi], rbx
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
jmp 0x14010c6df
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
xor eax, eax
jmp 0x14010c64d
call fcn.140153cb0
call fcn.14016f5e0
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.140170320
lea rax, str.null_pointer_given_to_destroy_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__loc___nullptr
mov r8d, 0x3f
call fcn.140170320
mov edx, 1
call fcn.14010f920
jmp 0x14010c6d3

Function at 0x14010ca30
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x14010ca6c
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14010ca76
add rdi, rbx
sub rsi, rbx
jne 0x14010ca4a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
Function at 0x14010ec00
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 [0x1401ec028]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x14010ebd0]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x140207640]
lea rdx, [0x14010ea50]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14010ed09
cmp dword [0x140207648], 0
jne 0x14010ed16
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x14020764c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x14010ecbd
mov ecx, 0x28
call fcn.140137640
test rax, rax
je 0x14010ed16
mov r14, rax
xorps xmm0, xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x20], 0
mov ecx, dword [0x14020764c]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14010ed0e
lea r15, [0x140207650]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x140207660]
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.14013bb80
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140153cb0
mov rcx, r14
call fcn.140137680
mov rcx, rsi
mov rax, rdi
call qword [0x140219008]
xor esi, esi
jmp 0x14010eced

Function at 0x14010ef30
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x14010ef6c
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14010ef76
add rdi, rbx
sub rsi, rbx
jne 0x14010ef4a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140153cb0
int3
Function at 0x140117890
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x1401ec028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1401ff660]
mov ecx, dword [0x1401fc744]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401178f0
lea rsi, [0x1401ff658]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14013bb80
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1401ff660]
call fcn.14013a8b0
cmp dword [0x1401ff660], 0xffffffff
jne 0x1401178cc
lea rsi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14013dca0
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x2c]
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.14013a754
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1401ff6a8]
mov ecx, dword [0x1401fc744]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401179b0
lea r8, [0x1401ff678]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.1400adf30
mov qword [0x1401ff658], rsi
lea rcx, [0x1401ff660]
call fcn.14013a948
jmp 0x1401178cc
lea rcx, [0x1401ff6a8]
call fcn.14013a8b0
cmp dword [0x1401ff6a8], 0xffffffff
jne 0x140117981
xorps xmm0, xmm0
movups xmmword [0x1401ff698], xmm0
movups xmmword [0x1401ff688], xmm0
movups xmmword [0x1401ff678], xmm0
lea rcx, [0x1401ff678]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401ff6a8]
call fcn.14013a948
jmp 0x140117981
Function at 0x140117a00
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x1401ec028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1401ff660]
mov ecx, dword [0x1401fc744]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140117a60
mov rsi, qword [0x1401ff658]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14013bb80
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1401ff660]
call fcn.14013a8b0
cmp dword [0x1401ff660], 0xffffffff
jne 0x140117a3c
lea rsi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14013dca0
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x2c]
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.14013a754
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1401ff6a8]
mov ecx, dword [0x1401fc744]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140117b20
lea r8, [0x1401ff678]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.1400adf30
mov qword [0x1401ff658], rsi
lea rcx, [0x1401ff660]
call fcn.14013a948
jmp 0x140117a3c
lea rcx, [0x1401ff6a8]
call fcn.14013a8b0
cmp dword [0x1401ff6a8], 0xffffffff
jne 0x140117af1
xorps xmm0, xmm0
movups xmmword [0x1401ff698], xmm0
movups xmmword [0x1401ff688], xmm0
movups xmmword [0x1401ff678], xmm0
lea rcx, [0x1401ff678]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401ff6a8]
call fcn.14013a948
jmp 0x140117af1

Function at 0x14011dc30
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x14011dc78
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x14011dc81
lea rax, [rsi + 1]
cmp rax, 2
jb 0x14011dc68
mov qword [rdi], rsi
call fcn.140119620
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140119620
mov rcx, qword [rdi]
call fcn.140124bd0
mov qword [rdi], 0
jmp 0x14011dc56