joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400cd3f0
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0x40], rax
test rcx, rcx
je 0x1400cd63d
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x14019f440], rax
jne 0x1400cd640
mov rsi, rcx
mov edi, dword [rcx + 0xc]
add rdi, 0x2f8
mov byte [rsp + 0x3f], 0xaa
bsr rax, rdi
xor rax, 0xffffffffffffffc0
lea rcx, [0x140180a70]
mov cl, byte [rax + rcx + 0x41]
mov rdx, rdi
shr rdx, cl
and edx, 3
lea rcx, [0x140180ac0]
mov rcx, qword [rcx + rax*8 + 0x208]
and rcx, rdi
lea rax, [rdx + rax*4]
add rax, 0x104
cmp rcx, 1
sbb rax, 0xffffffffffffffff
lea rcx, [0x140180660]
movzx eax, word [rcx + rax*2 + 0x200]
lea r12, [rax + rax*4]
lea r15, [rsi + r12*8]
add r15, 0x58
lea r14, [rsi + 0x50]
mov ebx, 1
xor r13d, r13d
mov rbp, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov rcx, r14
call rbp
test al, al
jne 0x1400cd4e3
mov eax, ebx
test ebx, ebx
jle 0x1400cd4c8
pause
add eax, 0xffffffff
jne 0x1400cd4be
add r13d, ebx
add ebx, ebx
cmp ebx, 0x10
mov eax, 0x10
cmovge ebx, eax
cmp r13d, 0x40
jl 0x1400cd4af
mov rcx, r14
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [r15]
mov rbx, qword [rax]
test rbx, rbx
je 0x1400cd5ca
mov byte [rsp + 0x3f], 0
mov rdi, qword [rbx]
mov rbp, rdi
bswap rbp
test rdi, rdi
je 0x1400cd53a
mov ecx, dword [rsi + r12*8 + 0x70]
test ebp, 0x1fc000
je 0x1400cd631
mov rdx, rbp
xor rdx, rbx
cmp rdx, 0x1fffff
ja 0x1400cd631
not rdi
cmp qword [rbx + 8], rdi
jne 0x1400cd631
prefetcht0 byte [rbp]
mov qword [rax], rbp
add word [rax + 0x18], 1
mov rax, qword [rax + 0x10]
mov eax, dword [rax + 0x18]
add rax, qword [rsi + 0xaa8]
mov qword [rsi + 0xaa8], rax
mov rcx, qword [rsi + 0xab0]
cmp rcx, rax
cmovae rax, rcx
mov qword [rsi + 0xab0], rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, rbx
mov rdx, rsi
call fcn.1400cd660
mov ecx, dword [0x1401ae948]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1401a559c]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x140], rbx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140135280
mov rax, rbx
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, [rsp + 0x3f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov rcx, r15
mov rdx, rsi
mov r8d, 2
mov r9, rdi
call fcn.14001bba0
test rax, rax
je 0x1400cd636
mov rbx, rax
mov rcx, rax
and rcx, 0xffffffffffe00000
mov rdx, rax
shr rdx, 9
and edx, 0xfe0
lea rax, [rdx + rcx]
movzx ecx, byte [rdx + rcx + 0x101e]
and ecx, 0x3f
shl rcx, 5
sub rax, rcx
add rax, 0x1000
jmp 0x1400cd542
call fcn.14001c900
xor ebx, ebx
jmp 0x1400cd56c
int3
int3
Function at 0x1400ce4c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x3c], 4
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x34], 0
mov rcx, qword [rcx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x1400ce53b
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x1400ce53b
cmp dword [rsp + 0x38], 4
jne 0x1400ce53b
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140135280
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x1400ce560
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140135220
sub rsp, rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea rsi, [rsp + 0x840]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.140138090
mov dword [rsp + 0x3c], 1
mov dword [rsp + 0x38], 0x800
mov rcx, qword [rbx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x3c]
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x1400ce64b
mov eax, dword [rsp + 0x3c]
cmp eax, 2
je 0x1400ce5fb
mov edi, 0x3f4
cmp eax, 1
jne 0x1400ce64b
lea rdx, [rsp + 0x840]
jmp 0x1400ce641
lea rsi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.140138090
lea rcx, [rsp + 0x840]
mov rdx, rsi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
mov edi, 0xea
cmp eax, 0xfffffc00
jb 0x1400ce64b
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.140044c94
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140135280
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400d3770
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x1400d37b2
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
nop word [rax + rax]
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1400d37bc
add rdi, rbx
sub rsi, rbx
jne 0x1400d3790
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3

Function at 0x1400d5090
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
cmp edx, 0x80
je 0x1400d50a8
cmp edx, 0x100
je 0x1400d50a8
cmp edx, 0xc0
jne 0x1400d50c6
mov eax, dword [0x1401b0314]
test eax, 0x2000000
jne 0x1400d50c1
test eax, 0x200
jne 0x1400d50cc
jmp fcn.1400d50e0
jmp fcn.140003260
mov eax, 0xfffffffe
ret
jmp fcn.140004450
Function at 0x1400d9020
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0x30], rax
test r8, r8
je 0x1400d91b3
mov r14, r9
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov r15, qword [rsp + 0xa8]
mov r13, qword [rsp + 0xa0]
cmp rcx, 0x20
setae al
add rcx, 0xffffffffffffffe0
cmp rcx, rdx
setae cl
movaps xmm0, xmmword [0x140173f60]
movaps xmmword [rsp + 0x20], xmm0
test al, cl
jne 0x1400d90f6
cmp rbx, rdi
jb 0x1400d90f6
cmp rsi, 0x10
jb 0x1400d914f
lea r12, [rsp + 0x20]
nop dword [rax]
mov rcx, rbx
mov rdx, r12
mov r8, r14
mov rax, r15
call qword [0x1401bf010]
mov rax, qword [rbx]
mov rcx, qword [r13]
xor rcx, qword [rsp + 0x20]
mov qword [rdi], rcx
mov qword [r13], rax
mov rax, qword [rbx + 8]
mov rcx, qword [r13 + 8]
xor rcx, qword [rsp + 0x28]
mov qword [rdi + 8], rcx
mov qword [r13 + 8], rax
add rsi, 0xfffffffffffffff0
add rbx, 0x10
add rdi, 0x10
cmp rsi, 0xf
ja 0x1400d90a0
test rsi, rsi
jne 0x1400d914f
jmp 0x1400d91b3
cmp rsi, 0x10
jb 0x1400d913f
mov rbp, r13
nop
mov r12, rbx
mov rcx, rbx
mov rdx, rdi
mov r8, r14
mov rax, r15
call qword [0x1401bf010]
mov rax, qword [rbp]
xor qword [rdi], rax
mov rax, qword [rbp + 8]
xor qword [rdi + 8], rax
add rsi, 0xfffffffffffffff0
add rbx, 0x10
add rdi, 0x10
mov rbp, r12
cmp rsi, 0xf
ja 0x1400d9100
lea rax, [rbx - 0x10]
jmp 0x1400d9142
mov rax, r13
movups xmm0, xmmword [rax]
movups xmmword [r13], xmm0
test rsi, rsi
je 0x1400d91b3
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov r8, r14
mov rax, r15
call qword [0x1401bf010]
xor eax, eax
nop word cs:[rax + rax]
nop
movzx ecx, byte [rbx + rax]
movzx edx, byte [r13 + rax]
xor dl, byte [rsp + rax + 0x20]
mov byte [rdi + rax], dl
mov byte [r13 + rax], cl
add rax, 1
cmp rsi, rax
jne 0x1400d9170
cmp rsi, 0xf
ja 0x1400d91b3
nop word cs:[rax + rax]
nop
movzx eax, byte [rbx + rsi]
mov byte [r13 + rsi], al
add rsi, 1
cmp rsi, 0x10
jne 0x1400d91a0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140135280
nop
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400dc076
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov r14d, edx
mov r15, rcx
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rbp, [rsp + 0x2c]
mov dword [rbp], 0
mov edi, 5
xor esi, esi
mov rbx, qword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov qword [rsp + 0x20], rbp
mov ecx, 2
xor edx, edx
xor r8d, r8d
mov r9, rsi
call rbx
cmp eax, 0x6f
jne 0x1400dc0f7
test rsi, rsi
je 0x1400dc0d7
mov rcx, rsi
call fcn.140134a14
mov ecx, dword [rsp + 0x2c]
add rcx, 0x380
call fcn.140134a0c
test rax, rax
je 0x1400dc127
mov rsi, rax
dec edi
jne 0x1400dc0b1
xor ebp, ebp
jmp 0x1400dc132
test eax, eax
jne 0x1400dc12b
test rsi, rsi
je 0x1400dc12b
mov rcx, r15
mov rdx, rsi
call fcn.1400dc3e4
test eax, eax
je 0x1400dc0f3
mov ebp, 1
mov rcx, r15
mov edx, r14d
mov r8d, 1
call fcn.1400dc3a6
jmp 0x1400dc132
xor ebp, ebp
jmp 0x1400dc13a
xor ebp, ebp
test rsi, rsi
je 0x1400dc13a
mov rcx, rsi
call fcn.140134a14
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140135280
mov eax, ebp
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400ddd50
Capabilities:
Get file version info

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x140173f60]
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
lea rdx, str.CreateFileVersionInfoWin
lea r8, str..._.._base_file_version_info_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r9d, 0x4c
call fcn.1400651f0
lea rcx, [rsp + 0x50]
mov rdx, rsi
xor r8d, r8d
call fcn.1400bbe30
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rbx + 0x17], 0
jns 0x1400dddf1
mov rbx, qword [rbx]
lea rdx, [rsp + 0x24]
mov rcx, rbx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x1400ddf28
mov ebp, eax
mov esi, eax
mov rcx, rsi
call fcn.140134998
mov rdi, rax
mov rcx, rax
xor edx, edx
mov r8, rsi
call fcn.140138090
mov edx, dword [rsp + 0x24]
mov rcx, rbx
mov r8d, ebp
mov r9, rdi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1400ddf12
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x4c], 0xaaaaaaaa
lea rdx, str.VarFileInfoTranslation
lea r8, [rsp + 0x28]
lea r9, [rsp + 0x4c]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400ddf12
mov rbp, qword [rsp + 0x28]
test rbp, rbp
je 0x1400ddf12
add rsi, rdi
mov ecx, 0x38
call fcn.140134998
mov rbx, rax
movzx r15d, word [rbp]
movzx ebp, word [rbp + 2]
lea rax, fcn.1400de540
mov qword [rbx], rax
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
movabs rax, 0xfffffffe00000000
and rax, rdi
cmp rax, qword [0x14019e088]
jne 0x1400ddec9
mov rcx, rdi
call fcn.140089360
mov qword [rbx + 0x20], rdi
mov word [rbx + 0x28], r15w
mov word [rbx + 0x2a], bp
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x4c], 0xaaaaaaaa
lea rdx, [0x140186542]
lea r8, [rsp + 0x28]
lea r9, [rsp + 0x4c]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400ddf5c
mov rax, qword [rsp + 0x28]
mov qword [rbx + 0x30], rax
mov qword [r14], rbx
jmp 0x1400ddf2f
mov qword [r14], 0
test rdi, rdi
je 0x1400ddf2f
mov rcx, rdi
call fcn.1401349d4
jmp 0x1400ddf2f
mov qword [r14], 0
lea rcx, [rsp + 0x50]
call fcn.1400bc150
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140135280
mov rax, r14
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
int3
Function at 0x1400dec30
Capabilities:
Get memory capacity

Disassembly:
push rsi
push rbx
sub rsp, 0x68
mov rsi, rcx
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0x60], rax
movaps xmm0, xmmword [0x140173f60]
movaps xmmword [rsp + 0x20], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x20], 0x40
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x1400deca9
mov rcx, qword [rsp + 0x28]
shr rcx, 0xa
mov dword [rsi], ecx
mov rcx, qword [rsp + 0x30]
shr rcx, 0xa
mov dword [rsi + 4], ecx
mov rcx, qword [rsp + 0x38]
shr rcx, 0xa
mov dword [rsi + 8], ecx
mov rcx, qword [rsp + 0x40]
shr rcx, 0xa
mov dword [rsi + 0xc], ecx
test eax, eax
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140135280
mov eax, ebx
add rsp, 0x68
pop rbx
pop rsi
ret
Function at 0x1400e0660
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov edi, edx
mov rsi, rcx
lea rax, [0x140176e50]
mov qword [rcx], rax
add rcx, 8
call fcn.140088510
lea rcx, [rsi + 0x10]
call fcn.140088510
mov byte [rsi + 0x18], 0
lea rcx, [rsi + 0x40]
xorps xmm6, xmm6
movups xmmword [rsi + 0x1c], xmm6
movups xmmword [rsi + 0x2c], xmm6
mov dword [rsi + 0x3c], 0
call fcn.140088510
mov byte [rsi + 0x48], 0
movups xmmword [rsi + 0x50], xmm6
mov qword [rsi + 0x60], 0
lea rax, [rsi + 0x70]
movups xmmword [rsi + 0x70], xmm6
mov qword [rsi + 0x68], rax
movups xmmword [rsi + 0x80], xmm6
movups xmmword [rsi + 0x90], xmm6
movups xmmword [rsi + 0xa0], xmm6
movups xmmword [rsi + 0xb0], xmm6
movups xmmword [rsi + 0xc0], xmm6
movups xmmword [rsi + 0xd0], xmm6
mov qword [rsi + 0xe0], 0
mov dword [rsi + 0xe8], 0x3f800000
mov dword [rsi + 0xf0], 0
movups xmmword [rsi + 0xf8], xmm6
movups xmmword [rsi + 0x108], xmm6
mov dword [rsi + 0x118], 0x3f800000
movups xmmword [rsi + 0x120], xmm6
movups xmmword [rsi + 0x130], xmm6
mov dword [rsi + 0x140], 0x3f800000
movups xmmword [rsi + 0x148], xmm6
movups xmmword [rsi + 0x158], xmm6
mov dword [rsi + 0x168], 0x3f800000
movups xmmword [rsi + 0x170], xmm6
movups xmmword [rsi + 0x180], xmm6
mov dword [rsi + 0x190], 0x3f800000
mov qword [rsi + 0x1b0], 0
movups xmmword [rsi + 0x198], xmm6
mov dword [rsi + 0x1a8], 0
mov eax, dword [0x14018872c]
mov dword [rsi + 0x1b8], eax
lea rcx, [rsi + 0x1c0]
call fcn.14011a810
movups xmmword [rsi + 0x2f0], xmm6
mov qword [rsi + 0x300], 0
lea rcx, [rsi + 0x308]
xor edx, edx
call fcn.14009d290
lea rcx, [rsi + 0x310]
xor edx, edx
call fcn.14009d290
lea rcx, [rsi + 0x318]
xor edx, edx
call fcn.14009d290
movups xmmword [rsi + 0x320], xmm6
movups xmmword [rsi + 0x330], xmm6
mov dword [rsi + 0x340], 0x3f800000
movsxd rax, edi
movups xmmword [rsi + 0x348], xmm6
movups xmmword [rsi + 0x358], xmm6
movups xmmword [rsi + 0x368], xmm6
mov byte [rsi + 0x378], 0
mov qword [rsi + 0x380], rax
mov byte [rsi + 0x388], 0
movups xmmword [rsi + 0x390], xmm6
movups xmmword [rsi + 0x3a0], xmm6
call fcn.140019ae0
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsi + 0x1a8], eax
cdqe
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rax, rcx
mov qword [rsi + 0x1a0], rax
mov rcx, rsi
call fcn.1400e08c0
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
je 0x1400e088d
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [0x1401bf010]
call fcn.140118840
lea r8, str.TraceLog
mov rcx, rax
mov rdx, rsi
xor r9d, r9d
call fcn.1401189d0
mov qword [0x1401af4a8], rsi
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x1400e6020
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 0x1400e6035
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x1400e6800
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, qword [rcx + 8]
jmp 0x1400e6817
mov rsi, qword [rsi + 0x218]
test rsi, rsi
je 0x1400e6852
xor edi, edi
xchg qword [rsi], rdi
test rdi, rdi
je 0x1400e6810
nop word cs:[rax + rax]
bsf rcx, rdi
mov ebx, 1
shl rbx, cl
mov rcx, qword [rsi + rcx*8 + 0x10]
mov rax, qword [rcx + 8]
call qword [0x1401bf010]
xor rdi, rbx
jne 0x1400e6830
jmp 0x1400e6810
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400f31f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [0x1401af508]
mov ecx, dword [0x1401a559c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400f322d
lea rcx, [0x1401af500]
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.14009d240
lea rcx, [0x1401af508]
call fcn.140134af0
cmp dword [0x1401af508], 0xffffffff
jne 0x1400f3219
mov qword [0x1401af500], 0
lea rcx, [0x1401af500]
xor edx, edx
call fcn.14009d290
lea rcx, [0x1401af508]
call fcn.140134b88
jmp 0x1400f3219

Function at 0x1400f3270
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1401af508]
mov ecx, dword [0x1401a559c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400f32a5
lea rcx, [0x1401af500]
add rsp, 0x28
jmp fcn.14009d200
lea rcx, [0x1401af508]
call fcn.140134af0
cmp dword [0x1401af508], 0xffffffff
jne 0x1400f3295
mov qword [0x1401af500], 0
lea rcx, [0x1401af500]
xor edx, edx
call fcn.14009d290
lea rcx, [0x1401af508]
call fcn.140134b88
jmp 0x1400f3295

Function at 0x1400f4c80
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
call fcn.1400a4c80
mov byte [rsi + 8], 0
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
lea rax, [0x140177b90]
mov qword [rsi], rax
mov rcx, 0xffffffffffffffff
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp qword [rsi + 0x18], rax
je 0x1400f4d0c
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x18]
add rax, 1
cmp rax, 2
jb 0x1400f4cf1
call fcn.140065210
mov rcx, qword [rsi + 0x18]
call fcn.1400bc7d0
mov qword [rsi + 0x18], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400f4d04
mov qword [rsi + 0x18], rdi
call fcn.140065210
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400fcf70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
test r8, r8
je 0x1400fcf9c
xor ecx, ecx
lea r9, [0x140186f40]
movzx r10d, al
movzx r11d, byte [rdx + rcx]
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
add rcx, 1
cmp r8, rcx
jne 0x1400fcf80
ret
Function at 0x140101cd0
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x1a0
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0x198], rax
movaps xmm0, xmmword [0x140173f60]
lea rsi, [rsp + 0x160]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsi + 0x20], 0x100
jb 0x140101d63
mov ecx, 1
call fcn.14006c840
test al, al
je 0x140101d63
lea rdx, str..._.._third_party_crashpad_crashpad_snapshot_win_system_snapshot_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0xb2
mov r9d, 1
call fcn.14006c8f0
lea rcx, [rsp + 0x38]
lea rdx, str.dwNumberOfProcessors_exceeds_uint8_t_storage
mov r8d, 0x2c
call fcn.14001df3c
mov rcx, rsi
call fcn.14006cd80
mov eax, dword [rsp + 0x180]
cmp eax, 0x100
mov esi, 0xff
cmovb esi, eax
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.140135280
mov eax, esi
add rsp, 0x1a0
pop rsi
ret

Function at 0x140114380
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x1401b0288], 0
jne 0x1401143bd
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1401143b0
mov dword [rdi], eax
mov dword [0x1401b0290], eax
mov qword [0x1401b0288], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x140116206
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
cmp dword [rcx + 0x10108], 0
mov r9d, dword [rcx + 0xd4]
je 0x1401162c2
test r9d, r9d
je 0x1401162bf
xor eax, eax
mov r8d, 0xff
mov esi, dword [rdi + 0x10128]
mov ecx, dword [rdi + 0x10130]
mov edx, ecx
and edx, 0xfffd
lea r10d, [rdx + 2]
xor edx, 3
imul edx, r10d
shr edx, 8
movzx r10d, byte [rdi + rax + 0x100]
mov r11, qword [rdi + 0x10138]
mov ebx, esi
and ebx, r8d
xor ebx, r10d
shr esi, 8
xor esi, dword [r11 + rbx*4]
mov dword [rdi + 0x10128], esi
and esi, r8d
add esi, dword [rdi + 0x1012c]
imul ebx, esi, 0x8088405
inc ebx
mov dword [rdi + 0x1012c], ebx
shr ebx, 0x18
mov esi, ecx
and esi, r8d
xor esi, ebx
shr ecx, 8
xor ecx, dword [r11 + rsi*4]
mov dword [rdi + 0x10130], ecx
xor byte [rdi + rax + 0x100], dl
inc rax
cmp r9, rax
jne 0x140116235
jmp 0x1401162c2
xor r9d, r9d
lea r8, [rdi + 0x100]
mov rdx, qword [rdi + 0x58]
mov rax, qword [rdi + 0x10]
mov rcx, qword [rdi + 0x38]
call qword [0x1401bf010]
mov edx, dword [rdi + 0x84]
mov ebx, dword [rdi + 0xd4]
xor ecx, ecx
cmp eax, ebx
setne cl
add qword [rdi + 0x10118], rbx
add qword [rdi + 0x10120], rdx
neg ecx
xor eax, eax
mov dword [rdi + 0x84], eax
mov dword [rdi + 0xd4], eax
mov eax, ecx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x140116d6f
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [rcx]
mov r9d, dword [rcx + 8]
xor r8d, eax
mov r10d, 0xff
and r8d, r10d
shr eax, 8
xor eax, dword [rdx + r8*4]
mov dword [rcx], eax
and eax, r10d
add eax, dword [rcx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [rcx + 4], eax
shr eax, 0x18
and r10d, r9d
xor r10d, eax
shr r9d, 8
xor r9d, dword [rdx + r10*4]
mov dword [rcx + 8], r9d
ret