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

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rax, qword [0x140166028]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp byte [rcx + 0x6c], 0
je 0x140081343
mov rbx, rdx
lea rdx, [rsp + 0x40]
mov qword [rdx], 0
call fcn.140080cf0
test eax, eax
jne 0x14008134a
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x38]
mov qword [rcx], rax
mov rdi, qword [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 2
xor esi, esi
mov rcx, rdi
mov edx, 0xf01ff
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x140081353
mov r14, qword [rsp + 0x38]
cmp qword [rbx], r14
je 0x1400812fc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rbx]
inc rax
cmp rax, 2
jae 0x14008132d
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400812f4
mov qword [rbx], r14
call fcn.1400a33d0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140081313
call fcn.1400a33d0
mov rcx, rdi
call fcn.1400ae980
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400c59b0
mov eax, esi
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.1400a33d0
mov rcx, qword [rbx]
call fcn.1400ae980
mov qword [rbx], 0
jmp 0x1400812e2
mov esi, 0x3f0
jmp 0x140081313
mov esi, eax
mov rdi, qword [rsp + 0x40]
jmp 0x1400812fc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1400812fc

Function at 0x140082620
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rcx + 8]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x140082657
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x140082657
movzx edx, word [rax + rcx + 0x14]
cmp edx, 0xf0
jne 0x140082657
movzx eax, word [rax + rcx + 0x18]
cmp eax, 0x20b
sete al
ret
xor eax, eax
jmp 0x140082656
Function at 0x140084010
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rsi, r9
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140166028]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea r15, [rsp + 0x34]
mov dword [r15], 0xaaaaaaaa
mov qword [rsp + 0x20], r15
mov r8, r9
mov r9d, 8
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1400840d7
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r12, [rsp + 0x28]
mov qword [r12], rax
mov qword [rsp + 0x20], r12
mov rcx, rbx
mov rdx, rdi
mov r8, r14
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebp, eax
mov r14, qword [r12]
mov r9d, dword [rsp + 0x34]
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1400840d7
test ebp, ebp
setne al
cmp r14, rsi
sete sil
and sil, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400c59b0
mov eax, esi
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x1400840b9
Function at 0x140087160
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 [0x140166028]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov rax, qword [rcx]
inc rax
cmp rax, 1
ja 0x14008731a
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 0x1400871ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400872f7
mov rax, rbx
inc rax
cmp rax, 2
jb 0x1400871e3
mov qword [rsi], rbx
call fcn.1400a33d0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsi]
lea rax, [rbx + 1]
cmp rax, 1
jbe 0x140087321
xor r12d, r12d
lea rcx, [rsp + 0x28]
mov r8d, 0x90
xor edx, edx
call fcn.1400c7ad0
test r14d, r14d
jne 0x1400872c6
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 0x140087250
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 0x140087310
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 0x140087310
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1400c59b0
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.0x1400872f4
mov ebp, 0xa0
mov r8d, 0xc8
mov eax, 0xd8
mov edx, 8
lea rcx, [0x14008734c]
movsxd r9, dword [rcx + r14*4]
add r9, rcx
xor ecx, ecx
jmp r9
call fcn.1400a33d0
mov rcx, qword [rsi]
call fcn.1400ae980
mov qword [rsi], 0
jmp 0x1400871cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp case.0x1400872f4.4
mov ebp, 0x4df
jmp case.0x1400872f4.4
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1400c59b0
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 0x1400883f0
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 [0x140166028]
xor rax, rsp
mov qword [rsp + 0xa0], rax
test dl, dl
je 0x140088679
lea rax, [0x14012e8d0]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
lea rdi, [0x140152230]
lea r8, str.NtMapViewOfSection
mov rcx, rsi
mov rdx, rdi
mov r9d, 1
call fcn.1400877c0
lea rax, [0x14012e940]
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.1400877c0
mov rax, qword [rsi]
test rax, rax
je 0x140088688
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 0x14008868b
mov r15, rax
lea r12, [rsp + 0x40]
mov dword [r12], 0xaaaaaaaa
mov ebp, 0x10000
sub ebp, ebx
mov rcx, r12
call fcn.140092b60
movzx r13d, word [rsp + 0x40]
mov dword [rsp + 0x40], r13d
cmp ebp, r13d
jb 0x1400884dd
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 0x140088505
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 0x14008868e
mov r14, rax
and r13d, 0xfff
add r14, r13
movaps xmm0, xmmword [0x14014b720]
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, [0x140180490]
mov r8d, 0xd8
xor edx, edx
call fcn.1400c7ad0
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9, r15
call fcn.140088900
test eax, eax
jne 0x140088651
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 0x140088653
cmp qword [rsp + 0x38], 0x20
jne 0x140088653
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 0x140088691
lea rdx, str.g_originals
lea r8, [0x140180490]
mov r9d, 0xd8
call fcn.140074410
mov ebp, eax
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400c59b0
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 0x14008847f
xor ebp, ebp
jmp 0x140088653
int3
int3
int3
int3
Function at 0x140089b60
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 0x140089bcb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [r15]
inc rax
cmp rax, 2
jae 0x140089c99
mov rax, r12
inc rax
cmp rax, 2
jb 0x140089bc0
mov qword [r15], r12
call fcn.1400a33d0
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 0x140089c88
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 0x140089c55
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x140089cb2
mov rax, r14
inc rax
cmp rax, 2
jb 0x140089c4a
mov qword [rdi], r14
call fcn.1400a33d0
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.1400a33d0
mov rcx, qword [r15]
call fcn.1400ae980
mov qword [r15], 0
jmp 0x140089bac
call fcn.1400a33d0
mov rcx, qword [rdi]
call fcn.1400ae980
mov qword [rdi], 0
jmp 0x140089c36

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

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2d8
mov rsi, rcx
mov rax, qword [0x140166028]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x270]
mov qword [rdi + 0x50], rax
movaps xmm0, xmmword [0x14014b720]
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, [0x140155107]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x60]
mov rcx, rbx
mov r9d, 0x3c3
call fcn.1400a33b0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1400ae9b0
lea rbx, [rsp + 0x60]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1400c7ad0
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 0x140091f07
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.1400e2e70
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.1400a43b0
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.140044220
mov rcx, rsi
mov rdx, r14
call fcn.140044180
mov rcx, r14
call fcn.1400a4530
mov rcx, rbx
call fcn.1400a4530
cmp edi, 0xfffffefc
setae bl
lea rcx, [rsp + 0x270]
call fcn.1400aea10
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.1400c59b0
mov eax, ebx
add rsp, 0x2d8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140091f40
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x140166028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x14014b720]
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, [0x14015511c]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x3d3
call fcn.1400a33b0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1400ae9b0
cmp byte [rdi + 0x17], 0
jns 0x140091fc4
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rsi
call fcn.1400aea10
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400c59b0
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x140092040
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 0x140092162
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 0x140092198
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 0x1400921a0
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 0x1400921a4
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 0x1400921aa
pop rdi
pop rsi
ret
xor r10d, r10d
jmp 0x14009209c
xor eax, eax
jmp 0x140092131
mov dl, byte [r8 + 0x19]
jmp 0x140092191
cmp byte [r8 + 0x1a], 0
je 0x140092195
mov eax, 0x40000000
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
cmp r9d, 0x7263694d
jne 0x140092195
cmp ecx, 0x666f736f
jne 0x140092195
cmp edx, 0x76482074
jne 0x140092195
mov byte [r8 + 0x19], 1
jmp 0x140092195

Function at 0x140092b60
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 0x140094420
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x140166028]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r8, 0x30
ja 0x14009456d
mov r14, r8
mov r15, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x14014b720]
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 [0x14018e008]
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 [0x14018e008]
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 [0x14018e008]
test r14, r14
je 0x140094503
xor eax, eax
mov cl, byte [r15 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r14, rax
jne 0x1400944f3
lea r14, [rsi + 0xf8]
mov eax, dword [0x140180744]
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x140094571
call fcn.140003260
lea rax, [0x140001d60]
test r14, r14
je 0x14009453e
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.1400c59b0
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x140094550
bt eax, 9
jae 0x140094591
call fcn.140004450
lea rax, [0x140004920]
test r14, r14
je 0x14009453e
lea rcx, [0x140004620]
jmp 0x14009453b
call fcn.14012fc90
lea rax, [0x140130490]
test r14, r14
je 0x14009453e
lea rcx, [0x14012fb50]
jmp 0x14009453b

Function at 0x140096340
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x140180760]
cmp rdi, 1
jbe 0x140096369
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1400b2c30
lea rcx, [0x140180760]
call fcn.14008ce70
test al, al
je 0x1400963ae
xorps xmm0, xmm0
movups xmmword [0x140180768], xmm0
lea rbx, [0x140180760]
lea rdi, [0x140180768]
mov rcx, rdi
xor edx, edx
call fcn.140078d90
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.14008cf30
jmp 0x140096357
mov rdi, qword [0x140180760]
jmp 0x140096357
Function at 0x1400971e0
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 0x140097323
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 0x14009731c
cmp r14, rax
ja 0x140097328
lea rcx, [r14*8]
call fcn.1400c4664
shl rbx, 3
add rbx, rax
je 0x14009732d
mov rcx, qword [rdi]
mov qword [rbx], rcx
test rcx, rcx
je 0x140097279
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 0x140097305
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 0x14009728d
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 0x1400972ef
add r14, 0xfffffffffffffff8
test r14, r14
je 0x140097359
mov rcx, qword [r14]
test rcx, rcx
je 0x1400972e3
lock dec dword [rcx + 8]
je 0x140097385
lea rax, [r14 - 8]
cmp r14, rdi
mov r14, rax
jne 0x1400972c8
test rdi, rdi
je 0x140097312
mov rcx, rdi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1400c46a0
mov qword [rsi], rbx
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
jmp 0x1400972ef
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
xor eax, eax
jmp 0x14009725d
call fcn.1400dc550
call fcn.1400f6640
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.1400f6b10
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.1400f6b10
mov edx, 1
call fcn.14009a530
jmp 0x1400972e3

Function at 0x140097640
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x14009767c
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 0x140097686
add rdi, rbx
sub rsi, rbx
jne 0x14009765a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
Function at 0x140099810
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 [0x140166028]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x1400997e0]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x140180780]
lea rdx, [0x140099660]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140099919
cmp dword [0x140180788], 0
jne 0x140099926
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x14018078c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x1400998cd
mov ecx, 0x28
call fcn.1400c1550
test rax, rax
je 0x140099926
mov r14, rax
xorps xmm0, xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x20], 0
mov ecx, dword [0x14018078c]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14009991e
lea r15, [0x140180790]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x1401807a0]
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.1400c59b0
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400dc550
mov rcx, r14
call fcn.1400c1590
mov rcx, rsi
mov rax, rdi
call qword [0x14018e008]
xor esi, esi
jmp 0x1400998fd

Function at 0x140099b40
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x140099b7c
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 0x140099b86
add rdi, rbx
sub rsi, rbx
jne 0x140099b5a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400dc550
int3
Function at 0x1400a1660
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140166028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140178780]
mov ecx, dword [0x140175c44]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400a16c0
lea rsi, [0x140178778]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400c59b0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140178780]
call fcn.1400c47c0
cmp dword [0x140178780], 0xffffffff
jne 0x1400a169c
lea rsi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1400c7ad0
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.1400c4664
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1401787c8]
mov ecx, dword [0x140175c44]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400a1780
lea r8, [0x140178798]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.140030170
mov qword [0x140178778], rsi
lea rcx, [0x140178780]
call fcn.1400c4858
jmp 0x1400a169c
lea rcx, [0x1401787c8]
call fcn.1400c47c0
cmp dword [0x1401787c8], 0xffffffff
jne 0x1400a1751
xorps xmm0, xmm0
movups xmmword [0x1401787b8], xmm0
movups xmmword [0x1401787a8], xmm0
movups xmmword [0x140178798], xmm0
lea rcx, [0x140178798]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401787c8]
call fcn.1400c4858
jmp 0x1400a1751