joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a8170
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov r15, rdx
movsxd rdx, dword [rdx + 8]
test rdx, rdx
je 0x1400a8335
mov r14, rcx
mov rax, qword [r15]
lea rbx, [rdx - 1]
mov ecx, edx
and ecx, 7
mov edi, 7
cmp rbx, rdi
jae 0x1400a81aa
xor esi, esi
xor ebx, ebx
jmp 0x1400a81e5
mov rdi, rdx
and rdi, 0xfffffffffffffff8
xor esi, esi
xor ebx, ebx
or rbx, qword [rax + rsi*8]
or rbx, qword [rax + rsi*8 + 8]
or rbx, qword [rax + rsi*8 + 0x10]
or rbx, qword [rax + rsi*8 + 0x18]
or rbx, qword [rax + rsi*8 + 0x20]
or rbx, qword [rax + rsi*8 + 0x28]
or rbx, qword [rax + rsi*8 + 0x30]
or rbx, qword [rax + rsi*8 + 0x38]
add rsi, 8
cmp rdi, rsi
jne 0x1400a81b5
test rcx, rcx
je 0x1400a81fc
lea rdi, [rax + rsi*8]
xor esi, esi
or rbx, qword [rdi + rsi*8]
inc rsi
cmp rcx, rsi
jne 0x1400a81f0
test rbx, rbx
je 0x1400a8335
test edx, edx
jle 0x1400a8361
test byte [rax], 1
je 0x1400a8361
cmp dword [r15 + 0x10], 0
jne 0x1400a8381
lea rbx, [r14 + 0x18]
cmp rbx, r15
je 0x1400a83a1
mov rcx, rbx
call fcn.14009d600
test eax, eax
je 0x1400a83aa
movsxd r8, dword [r15 + 8]
test r8, r8
je 0x1400a835a
shl r8, 3
mov rcx, qword [rbx]
mov rdx, qword [r15]
call fcn.1400f23d0
mov eax, dword [r15 + 8]
mov dword [r14 + 0x20], eax
mov ecx, dword [r15 + 0x10]
mov dword [r14 + 0x28], ecx
cdqe
mov ecx, eax
sar ecx, 0x1f
and ecx, eax
lea edx, [rax + 1]
test rax, rax
jle 0x1400a83d7
mov rdi, qword [rbx]
dec edx
cmp qword [rdi + rax*8 - 8], 0
lea rax, [rax - 1]
je 0x1400a8276
mov dword [r14 + 0x20], edx
test edx, edx
je 0x1400a83ca
mov rax, qword [rbx]
mov r10, qword [rax]
mov eax, 1
mov r11d, 0x40
xor ecx, ecx
movabs r8, 0x8000000000000000
movabs r9, 0x4000000000000000
mov ebx, eax
and ebx, 1
neg rbx
mov rsi, r10
and rsi, rbx
mov rdi, rsi
xor rdi, rax
shr rdi, 1
and rsi, rax
add rsi, rdi
mov edi, esi
and edi, 1
neg rdi
mov rax, r10
and rax, rdi
mov rdx, rax
xor rdx, rsi
shr rdx, 1
and rax, rsi
add rax, rdx
and rdi, r8
shr rcx, 2
shr rbx, 1
and rbx, r9
or rcx, rbx
or rcx, rdi
add r11, 0xfffffffffffffffe
jne 0x1400a82c3
mov qword [r14 + 0x30], rcx
mov qword [r14 + 0x38], 0
mov esi, 1
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov dword [rsp + 0x20], 0xa5
lea r9, str..._.._third_party_boringssl_src_crypto_fipsmodule_bn_montgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x69
call fcn.14009b3a0
jmp 0x1400a8327
xor eax, eax
jmp 0x1400a825e
mov dword [rsp + 0x20], 0xa9
lea r9, str..._.._third_party_boringssl_src_crypto_fipsmodule_bn_montgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x68
jmp 0x1400a8353
mov dword [rsp + 0x20], 0xad
lea r9, str..._.._third_party_boringssl_src_crypto_fipsmodule_bn_montgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x6d
jmp 0x1400a8353
mov eax, dword [r14 + 0x20]
jmp 0x1400a826a
mov dword [rsp + 0x20], 0xb3
lea r9, str..._.._third_party_boringssl_src_crypto_fipsmodule_bn_montgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x44
jmp 0x1400a8353
mov dword [r14 + 0x28], 0
jmp 0x1400a829c
mov edx, ecx
jmp 0x1400a8290
Function at 0x1400ac5b0
Capabilities:
Hash data using sha512

Disassembly:
push rsi
push rdi
sub rsp, 0x108
mov rsi, r8
mov r8, rdx
mov rdx, rcx
mov rax, qword [0x140162028]
xor rax, rsp
mov qword [rsp + 0x100], rax
movaps xmm0, xmmword [0x140137ec0]
lea rdi, [rsp + 0x20]
movaps xmmword [rdi], xmm0
movaps xmm0, xmmword [0x140137ed0]
movaps xmmword [rdi + 0x10], xmm0
movaps xmm0, xmmword [0x140137ee0]
movaps xmmword [rdi + 0x20], xmm0
movaps xmm0, xmmword [0x140137ef0]
movaps xmmword [rdi + 0x30], xmm0
movabs rax, 0x4000000000
mov qword [rdi + 0xd0], rax
xorps xmm0, xmm0
movaps xmmword [rdi + 0x40], xmm0
mov rcx, rdi
call fcn.1400bdb00
mov rcx, rsi
mov rdx, rdi
call fcn.1400bdc10
mov edx, 0xd8
mov rcx, rdi
call fcn.1400c6850
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.1400f0560
mov rax, rsi
add rsp, 0x108
pop rdi
pop rsi
ret
Function at 0x1400b5f60
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rbx, r8
mov rsi, rdx
mov r15, rcx
mov r10d, dword [rsp + 0xd0]
mov rax, qword [0x140162028]
xor rax, rsp
mov qword [rsp + 0x70], rax
movsxd r8, dword [rcx + 0x18]
lea ecx, [r10 + 4]
mov edi, ecx
shr edi, 6
xor edx, edx
mov ebp, 0
cmp rdi, r8
jae 0x1400b5fb2
mov rbp, qword [r9 + rdi*8]
shr rbp, cl
shl ebp, 5
and ebp, 0x20
lea ecx, [r10 + 3]
mov eax, ecx
shr eax, 6
cmp rax, r8
jae 0x1400b5fcd
mov rdx, qword [r9 + rax*8]
shr rdx, cl
shl edx, 4
and edx, 0x10
or edx, ebp
lea ecx, [r10 + 2]
mov eax, ecx
shr eax, 6
xor ebp, ebp
mov edi, 0
cmp rax, r8
jae 0x1400b5ff1
mov rdi, qword [r9 + rax*8]
shr rdi, cl
shl edi, 3
and edi, 8
or edx, edi
lea ecx, [r10 + 1]
mov eax, ecx
shr eax, 6
cmp rax, r8
jae 0x1400b600e
mov rbp, qword [r9 + rax*8]
shr rbp, cl
shl ebp, 2
and ebp, 4
or edx, ebp
mov eax, r10d
shr eax, 6
cmp rax, r8
jae 0x1400b616d
mov rbp, qword [r9 + rax*8]
mov ecx, r10d
shr rbp, cl
add ebp, ebp
and ebp, 2
or edx, ebp
test r10d, r10d
je 0x1400b6056
dec r10d
mov eax, r10d
shr eax, 6
cmp rax, r8
jae 0x1400b6174
mov rbp, qword [r9 + rax*8]
mov ecx, r10d
shr rbp, cl
and ebp, 1
or edx, ebp
mov edi, edx
shr dil, 5
mov r14d, edi
neg r14b
mov eax, edx
xor al, 0x3f
and al, r14b
dec dil
and dil, dl
or dil, al
mov eax, edi
shr al, 1
and dil, 1
add dil, al
xor ebp, ebp
mov r8d, 0xd8
mov rcx, rsi
xor edx, edx
call fcn.1400f27e0
movzx edi, dil
mov r8, rbp
xor r8, rdi
dec r8
sar r8, 0x3f
mov qword [rsp + 0x20], rsi
mov rcx, r15
mov rdx, rsi
mov r9, rbx
call fcn.1400afa30
inc rbp
add rbx, 0xd8
cmp rbp, 0x11
jne 0x1400b6093
lea r8, [rsi + 0x48]
lea rdx, [rsp + 0x28]
mov rcx, r15
call fcn.1400b4ad0
movsxd r8, dword [r15 + 0x40]
test r8, r8
je 0x1400b6152
and r14b, 1
movzx eax, r14b
mov rdx, rax
neg rdx
dec rax
cmp r8d, 1
jne 0x1400b60f8
xor ebp, ebp
jmp 0x1400b613a
mov rcx, r8
and rcx, 0xfffffffffffffffe
xor ebp, ebp
mov rdi, qword [rsp + rbp*8 + 0x28]
and rdi, rdx
mov rbx, qword [rsi + rbp*8 + 0x48]
and rbx, rax
or rbx, rdi
mov qword [rsi + rbp*8 + 0x48], rbx
mov rbx, qword [rsp + rbp*8 + 0x30]
and rbx, rdx
mov rdi, qword [rsi + rbp*8 + 0x50]
and rdi, rax
or rdi, rbx
mov qword [rsi + rbp*8 + 0x50], rdi
add rbp, 2
cmp rcx, rbp
jne 0x1400b6101
test r8b, 1
je 0x1400b6152
and rdx, qword [rsp + rbp*8 + 0x28]
and rax, qword [rsi + rbp*8 + 0x48]
or rax, rdx
mov qword [rsi + rbp*8 + 0x48], rax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400f0560
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
xor ebp, ebp
jmp 0x1400b602e
xor ebp, ebp
jmp 0x1400b6054
Function at 0x1400b70b0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x140162028]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r8, 0x30
ja 0x1400b7247
mov rsi, r8
mov rbx, rdx
mov r12, rcx
lea r15, [rcx + 0x108]
mov ecx, dword [rcx + 0x114]
call fcn.1400fb65c
lea ecx, [rax + 1]
call fcn.1400fb65c
mov dword [r12 + 0x114], eax
lea rdx, [rsp + 0x20]
mov rcx, r15
mov r8, r12
call qword [r12 + 0xf8]
mov ecx, dword [r12 + 0x114]
call fcn.1400fb65c
lea ecx, [rax + 1]
call fcn.1400fb65c
mov dword [r12 + 0x114], eax
lea rdx, [rsp + 0x30]
mov rcx, r15
mov r8, r12
call qword [r12 + 0xf8]
mov ecx, dword [r12 + 0x114]
call fcn.1400fb65c
lea ecx, [rax + 1]
call fcn.1400fb65c
mov dword [r12 + 0x114], eax
lea r14, [rsp + 0x40]
mov rcx, r15
mov rdx, r14
mov r8, r12
call qword [r12 + 0xf8]
test rsi, rsi
je 0x1400b71e1
lea rcx, [rsi - 1]
mov edi, esi
and edi, 3
mov edx, 3
cmp rcx, rdx
jae 0x1400b7193
xor ecx, ecx
jmp 0x1400b71c1
and rsi, 0xfffffffffffffffc
xor ecx, ecx
mov al, byte [rbx + rcx]
xor byte [rsp + rcx + 0x20], al
mov al, byte [rbx + rcx + 1]
xor byte [rsp + rcx + 0x21], al
mov al, byte [rbx + rcx + 2]
xor byte [rsp + rcx + 0x22], al
mov al, byte [rbx + rcx + 3]
xor byte [rsp + rcx + 0x23], al
add rcx, 4
cmp rsi, rcx
jne 0x1400b7199
test rdi, rdi
je 0x1400b71e1
lea rdx, [rsp + rcx]
add rdx, 0x20
add rbx, rcx
xor ecx, ecx
mov al, byte [rbx + rcx]
xor byte [rdx + rcx], al
inc rcx
cmp rdi, rcx
jne 0x1400b71d3
mov eax, dword [0x140169e14]
bt eax, 0x19
jae 0x1400b724b
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, r12
call fcn.140005420
lea rax, [0x140003f20]
lea rcx, [0x1400031c0]
mov qword [r12 + 0xf8], rcx
mov qword [r12 + 0x100], rax
movups xmm0, xmmword [r14]
movups xmmword [r15], xmm0
mov esi, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400f0560
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x1400b722a
bt eax, 9
jb 0x1400b726e
lea rdx, [rsp + 0x20]
mov rcx, r12
call fcn.14009ce20
lea rax, [0x14009d090]
lea rcx, [0x14009cd50]
jmp 0x1400b720d
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, r12
call fcn.140006610
lea rax, [0x140006ae0]
lea rcx, [0x1400067e0]
jmp 0x1400b720d
Function at 0x1400bd5d0
Capabilities:
Enumerate pe sections

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
test r8, r8
je 0x1400bd6e6
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
lea eax, [r8*8]
mov ecx, dword [rcx + 0x18]
add eax, dword [rdi + 0x14]
jb 0x1400bd660
mov rdx, rsi
shr rdx, 0x1d
add edx, ecx
mov dword [rdi + 0x18], edx
mov dword [rdi + 0x14], eax
mov eax, dword [rdi + 0x5c]
test rax, rax
jne 0x1400bd667
mov r8, rsi
shr r8, 6
jne 0x1400bd646
test rsi, rsi
je 0x1400bd6e6
mov dword [rdi + 0x5c], esi
add rdi, 0x1c
mov rcx, rdi
mov rdx, rbx
mov r8, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.1400f23d0
mov rcx, rdi
mov rdx, rbx
call fcn.140010ec0
mov rax, rsi
and rax, 0xffffffffffffffc0
add rbx, rax
and esi, 0x3f
jmp 0x1400bd61d
inc ecx
mov dword [rdi + 0x18], ecx
jmp 0x1400bd5fd
lea rcx, [rax + rsi]
or rcx, rsi
cmp rcx, 0x40
jb 0x1400bd6d0
lea r14, [rdi + 0x1c]
mov r15d, 0x40
sub r15, rax
je 0x1400bd696
lea rcx, [rdi + rax]
add rcx, 0x1c
mov rdx, rbx
mov r8, r15
call fcn.1400f23d0
mov r8d, 1
mov rcx, rdi
mov rdx, r14
call fcn.140010ec0
add rbx, r15
sub rsi, r15
xorps xmm0, xmm0
movups xmmword [r14 + 0x30], xmm0
movups xmmword [r14 + 0x20], xmm0
movups xmmword [r14 + 0x10], xmm0
movups xmmword [r14], xmm0
mov dword [r14 + 0x40], 0
jmp 0x1400bd614
lea rcx, [rdi + rax]
add rcx, 0x1c
mov rdx, rbx
mov r8, rsi
call fcn.1400f23d0
add dword [rdi + 0x5c], esi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x1400c6910
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rbx
test r8, r8
je 0x1400c69ae
lea r10, [r8 - 1]
mov r9d, r8d
and r9d, 3
mov eax, 3
cmp r10, rax
jae 0x1400c6937
xor r10d, r10d
xor eax, eax
jmp 0x1400c6986
and r8, 0xfffffffffffffffc
xor r10d, r10d
xor eax, eax
mov r11b, byte [rdx + r10]
mov bl, byte [rdx + r10 + 1]
xor r11b, byte [rcx + r10]
movzx r11d, r11b
or r11d, eax
xor bl, byte [rcx + r10 + 1]
movzx eax, bl
mov bl, byte [rdx + r10 + 2]
xor bl, byte [rcx + r10 + 2]
movzx esi, bl
or esi, eax
or esi, r11d
mov al, byte [rdx + r10 + 3]
xor al, byte [rcx + r10 + 3]
movzx eax, al
or eax, esi
add r10, 4
cmp r8, r10
jne 0x1400c6940
test r9, r9
je 0x1400c69ab
add rdx, r10
add rcx, r10
xor r8d, r8d
mov r10b, byte [rdx + r8]
xor r10b, byte [rcx + r8]
movzx r10d, r10b
or eax, r10d
inc r8
cmp r9, r8
jne 0x1400c6994
pop rbx
pop rsi
ret
xor eax, eax
jmp 0x1400c69ab
Function at 0x1400cbeb0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.14006e990
test al, al
je 0x1400cbec9
xor eax, eax
add rsp, 0x20
pop rsi
ret
add rsi, 0x18
mov rcx, rsi
add rsp, 0x20
pop rsi
jmp fcn.14006eaa0
Function at 0x1400d4720
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rcx
call fcn.1400fe56c
mov r15d, dword [rax]
call fcn.1400fe56c
mov dword [rax], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [0x14016a2c8]
cmp rbx, 1
jbe 0x1400d4819
mov rbp, qword [rsi + 8]
mov ecx, dword [0x140163d10]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400d480a
movsxd rcx, dword [rbx]
shl rcx, 4
mov qword [rax + rcx], rbp
mov ecx, dword [rbx + 4]
movsxd rdx, dword [rbx]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rcx, qword [rsi]
test rcx, rcx
jne 0x1400d47f0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.1400fe56c
mov dword [rax], r15d
cmp byte [rsi + 0x38], 0
jne 0x1400d47ff
mov rax, qword [rsi + 0x18]
test rax, rax
jne 0x1400d486e
mov rdi, qword [rsi + 0x28]
mov qword [rsi + 0x28], 0
test rdi, rdi
jne 0x1400d48c4
mov rax, qword [rsi + 0x18]
test rax, rax
jne 0x1400d48e4
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
cmp qword [rsi + 8], 0
jne 0x1400d479e
mov rax, qword [rcx]
call qword [rax + 0x18]
jmp 0x1400d479e
lea rcx, [rsi + 0x40]
call fcn.1400d3ef0
jmp 0x1400d47b4
test rbp, rbp
je 0x1400d4796
call fcn.14006e9c0
jmp 0x1400d477d
lea rcx, [0x14016a2c8]
call fcn.140063590
test al, al
je 0x1400d4862
mov qword [0x14016a2d0], 0
lea r14, [0x14016a2c8]
lea rbx, [0x14016a2d0]
mov rcx, rbx
xor edx, edx
call fcn.14006eb30
mov rcx, r14
mov rdx, rbx
xor r8d, r8d
mov r9, r14
call fcn.140063630
jmp 0x1400d4763
mov rbx, qword [0x14016a2c8]
jmp 0x1400d4763
mov ecx, dword [rsi + 0x20]
cmp dword [rax + 0x18], ecx
jbe 0x1400d47c1
mov rax, qword [rax + 0x10]
shl rcx, 7
cmp dword [rax + rcx + 0x68], 0
je 0x1400d47c1
mov rdi, qword [0x14016a208]
lea rbx, [rdi + 0xc0]
mov rcx, rbx
call fcn.14007ae30
mov rcx, qword [rsi + 0x18]
add rdi, 0x78
mov edx, dword [rsi + 0x20]
mov r8, rdi
call fcn.1400cb400
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x1400d47c1
lea rax, [0x140131060]
mov qword [rdi], rax
lea rcx, [rdi + 8]
call fcn.1400cc0b0
mov rcx, rdi
call fcn.1400ef7cc
jmp 0x1400d47d6
mov rcx, qword [rax + 8]
lock dec dword [rcx + 0x38]
mov rax, qword [rax + 8]
lock inc dword [rax + 0x3c]
jmp 0x1400d47e3
Function at 0x1400d5580
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [0x14016ad40]
mov ecx, dword [0x1401653f4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400d55e6
mov ecx, dword [0x140163d10]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400d55e2
movsxd rcx, dword [0x14016ad38]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x14016ad3c]
jne 0x1400d55e2
mov rax, qword [rax + rcx]
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret
xor eax, eax
jmp 0x1400d55d6
lea rcx, [0x14016ad40]
call fcn.1400ef8f0
cmp dword [0x14016ad40], 0xffffffff
jne 0x1400d55a9
lea rcx, [0x14016ad38]
call fcn.1400e9cd0
lea rcx, [0x14016ad40]
call fcn.1400ef988
jmp 0x1400d55a9

Function at 0x1400d5620
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14016ad40]
mov ecx, dword [0x1401653f4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400d567f
mov ecx, dword [0x140163d10]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400d567b
movsxd rcx, dword [0x14016ad38]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x14016ad3c]
jne 0x1400d567b
cmp qword [rax + rcx], 0
setne al
add rsp, 0x28
ret
xor eax, eax
jmp 0x1400d5676
lea rcx, [0x14016ad40]
call fcn.1400ef8f0
cmp dword [0x14016ad40], 0xffffffff
jne 0x1400d5645
lea rcx, [0x14016ad38]
call fcn.1400e9cd0
lea rcx, [0x14016ad40]
call fcn.1400ef988
jmp 0x1400d5645
Function at 0x1400daac0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x1400dabff
cmp qword [rsi], 0
jne 0x1400dabff
cmp dword [rsi + 0x14], 0
jne 0x1400dabff
cmp qword [rsi + 8], 0
jne 0x1400dabff
xor eax, eax
mov rbx, qword [rdi]
cmp rax, rbx
je 0x1400dab6b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x1400dab3e
call fcn.140063690
mov r8, qword [rsp + 0x48]
mov rcx, qword [rsi]
mov rdx, rsi
mov r9, rax
call fcn.14007bc30
mov rcx, qword [rsi]
call fcn.14007bba0
mov qword [rsi], 0
lea rax, [rbx + 1]
cmp rax, 2
jb 0x1400dab63
mov qword [rsi], rbx
call fcn.140063690
mov r8, qword [rsp + 0x48]
mov rcx, rbx
mov rdx, rsi
mov r9, rax
call fcn.14007bbe0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rdi + 8]
cmp qword [rsi + 8], rbx
je 0x1400dabe8
lea rbp, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rax, qword [rbp]
inc rax
cmp rax, 2
jb 0x1400dabb9
call fcn.140063690
mov r8, qword [rsp + 0x48]
mov rcx, qword [rbp]
mov rdx, rbp
mov r9, rax
call fcn.14007bc30
mov rcx, qword [rbp]
call fcn.14007bba0
mov qword [rbp], 0
lea rax, [rbx + 1]
cmp rax, 2
jb 0x1400dabdf
mov qword [rbp], rbx
call fcn.140063690
mov r8, qword [rsp + 0x48]
mov rcx, rbx
mov rdx, rbp
mov r9, rax
call fcn.14007bbe0
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x10], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0x14], eax
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov rcx, rsi
call fcn.1400dac90
mov rax, qword [rsi]
jmp 0x1400daafb
Function at 0x1400dfdf0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x140162028]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x1400dfe90]
lea r8, [rsp + 0x20]
mov qword [r8], rax
lea rcx, [0x14016ac88]
lea rdx, [0x1400dfcc0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1400dfe82
cmp dword [0x14016ac90], 0
jne 0x1400dfe7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x14016ac94]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x1400dfe7e
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400f0560
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x1400dfe66
call fcn.1401021d8
int3

Function at 0x1400dfec0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov rdi, r8
mov r14, rdx
mov ebx, ecx
mov rax, qword [0x140162028]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x1400dfe90]
lea r8, [rsp + 0x20]
mov qword [r8], rax
lea rcx, [0x14016ac88]
lea rdx, [0x1400dfcc0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1400dffce
cmp dword [0x14016ac90], 0
jne 0x1400dffc5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x14016ac94]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
jne 0x1400dff73
mov ecx, 0x18
call fcn.1400c67e0
test rax, rax
je 0x1400dffc5
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov ecx, dword [0x14016ac94]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400dffbd
lea rbp, [0x14016ac98]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x14016aca0]
mov qword [rax + rbx*8], rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [rsi + rbx*8], r14
mov esi, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400f0560
mov eax, esi
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov rcx, rsi
call fcn.1400c6810
mov rcx, r14
call rdi
xor esi, esi
jmp 0x1400dffa3
call fcn.1401021d8
int3

Function at 0x1400e2c10
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x1400e2c4c
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 0x1400e2c56
add rdi, rbx
sub rsi, rbx
jne 0x1400e2c2a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1401021d8
int3

Function at 0x1400e9cd0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx], 0
xor edx, edx
jmp fcn.14006eb30
Function at 0x1400ec917
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, r8d
mov r8d, dword [rcx]
mov r9d, dword [rcx + 8]
mov r10d, r8d
xor r10d, eax
mov r11d, 0xff
and r10d, r11d
shr r8d, 8
xor r8d, dword [rdx + r10*4]
mov dword [rcx], r8d
and r8d, r11d
add r8d, dword [rcx + 4]
imul r8d, r8d, 0x8088405
inc r8d
mov dword [rcx + 4], r8d
shr r8d, 0x18
and r11d, r9d
xor r11d, r8d
shr r9d, 8
xor r9d, dword [rdx + r11*4]
mov dword [rcx + 8], r9d
ret
Function at 0x1400fb6f8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400fb828
Function at 0x18d09c0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x18d09cd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x18d09dd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x18d09c5
lea eax, [rcx + 1]
jmp 0x18d09eb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x18d09fe
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x18d09e4
sub eax, 3
jb 0x18d0a1e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x18d0a6d
sar eax, 1
movsxd rbp, eax
jb 0x18d0a54
jmp 0x18d0a2c
add ebx, ebx
jne 0x18d0a2a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x18d0a54
inc ecx
add ebx, ebx
jne 0x18d0a3a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x18d0a54
call r11
adc ecx, ecx
add ebx, ebx
jne 0x18d0a4d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x18d0a3c
add ecx, 2
jmp 0x18d0a59
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.018d0982
jmp 0x18d09cd
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x14ce000]
mov eax, dword [rdi]
or eax, eax
je 0x18d0ac9
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x14d0000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x18d0a79
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x18d0ac3
mov qword [rbx], rax
add rbx, 8
jmp 0x18d0a99
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.018d0b4c], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.018d0b4c
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x18d0b3c
sub rsp, 0xffffffffffffff80
jmp 0x4014e0