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

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1400d0038]
test ecx, ecx
je 0x140036302
dec ecx
add rsp, 0x28
jmp sub.KERNEL32.dll_TlsGetValue
lea rcx, [0x1400d0020]
call fcn.1400a6eb0
mov ecx, eax
jmp 0x1400362f9

Function at 0x140036312
Capabilities:
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x140036333
dec ecx
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.1400cd6d4
mov rcx, rax
call fcn.1400a6eb0
mov ecx, eax
jmp 0x140036326

Function at 0x1400409c4
Capabilities:
Hash data using fnv

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov r14, r9
mov rsi, r8
mov r11, rdx
movabs rdi, 0x100000001b3
mov r15, qword [r9]
mov r8, qword [r9 + 0x10]
lea rdx, [r8*8]
movabs rax, 0xcbf29ce484222325
mov r9, r15
test rdx, rdx
je 0x140040a37
movzx r10d, byte [r9 + 4]
xor rax, r10
imul rax, rdi
movzx r10d, byte [r9 + 5]
xor r10, rax
mov eax, dword [r9]
add r9, 8
imul r10, rdi
xor rax, r10
imul rax, rdi
add rdx, 0xfffffffffffffff8
jmp 0x140040a06
mov r9, qword [rsi + 0x10]
test r9, r9
je 0x140040b92
xor edx, edx
div r9
mov rdi, rdx
mov rax, qword [rsi]
mov r12, rdx
shl r12, 5
movzx edx, word [rax + r12 + 0x1c]
cmp dx, word [rsi + 0x20]
jne 0x140040aab
cmp qword [rax + r12 + 0x10], r8
jne 0x140040aab
mov rbx, qword [rax + r12]
xor r9d, r9d
cmp r8, r9
je case.0x14002e373.140
mov rdx, r9
mov r9b, byte [rbx + r9*8 + 4]
cmp r9b, byte [r15 + rdx*8 + 4]
jne 0x140040aa2
mov r9b, byte [rbx + rdx*8 + 5]
cmp r9b, byte [r15 + rdx*8 + 5]
jne 0x140040aa2
mov r10d, dword [rbx + rdx*8]
lea r9, [rdx + 1]
cmp r10d, dword [r15 + rdx*8]
je 0x140040a70
cmp rdx, r8
jae case.0x14002e373.140
mov qword [rsp + 0x28], r14
mov rbx, rcx
lea r13, [rsp + 0x30]
mov rcx, r13
mov rdx, r15
mov r14, r11
call fcn.140040bbd
lea rbp, [rsp + 0x48]
mov rcx, rbp
mov rdx, r14
mov r8, r13
call fcn.14003f7e8
mov eax, dword [rbp]
cmp eax, 0x2a
jne 0x140040b45
mov rdx, qword [rsi + 0x10]
cmp rdx, rdi
jbe 0x140040bac
mov edi, dword [rsp + 0x4c]
movzx ebp, word [rsi + 0x20]
mov rsi, qword [rsi]
mov rcx, qword [rsi + r12]
mov rdx, qword [rsi + r12 + 8]
call fcn.1400099b4
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx + 0x10]
mov qword [rsi + r12 + 0x10], rax
movups xmm0, xmmword [rcx]
movups xmmword [rsi + r12], xmm0
mov dword [rsi + r12 + 0x18], edi
mov word [rsi + r12 + 0x1c], bp
mov dword [rbx + 4], edi
mov dword [rbx], 0x2a
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rsi, [rsp + 0x50]
mov edx, dword [rsi - 4]
lea rdi, [rbx + 8]
mov ecx, 0xf
rep movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
lea rcx, str.attempt_to_calculate_the_remainder_with_a_divisor_of_zero
lea r8, str._home_kali_.cargo_registry_src_index.crates.io_6f17d22bba15001f_regex_automata_0.4.3_src_nfa_thompson_map.rs
mov edx, 0x39
call fcn.1400266a0
pop rdx
invalid
dec dword [rdi]
invalid
lea r8, str._home_kali_.cargo_registry_src_index.crates.io_6f17d22bba15001f_regex_automata_0.4.3_src_nfa_thompson_map.rs
Function at 0x140044125
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x1400d00e8]
test ecx, ecx
je 0x140044235
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140044160
cmp qword [rax + 8], 0
je 0x140044160
mov rcx, rax
add rcx, 0x10
mov rax, qword [rax + 0x10]
jmp 0x140044216
mov ecx, dword [0x1400d00e8]
test ecx, ecx
je 0x140044248
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
cmp rax, 1
je 0x14004422b
test rdi, rdi
jne 0x1400441cf
mov al, byte [0x14014b030]
mov ecx, 0x20
mov edx, 8
call fcn.14002f970
test rax, rax
je 0x14004426e
mov rdi, rax
lea rax, [0x1400d00d0]
mov qword [rdi], rax
and qword [rdi + 8], 0
mov ecx, dword [0x1400d00e8]
test ecx, ecx
je 0x14004425b
dec ecx
mov rdx, rdi
call fcn.1400cd6d4
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x1400441fd
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x140044202
call fcn.1400c88d0
mov qword [rdi + 8], 1
lea rcx, [rdi + 0x10]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rdx
mov rdx, qword [rcx + 8]
lea r8, [rax + 1]
mov qword [rcx], r8
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rdx
xor edi, edi
mov qword [rsi], rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x1400d00d0]
call fcn.1400a6eb0
mov ecx, eax
jmp 0x14004413e
lea rcx, [0x1400d00d0]
call fcn.1400a6eb0
mov ecx, eax
jmp 0x140044170
lea rcx, [0x1400d00d0]
call fcn.1400a6eb0
mov ecx, eax
jmp 0x1400441c7
mov ecx, 8
mov edx, 0x20
call fcn.140024df0
ud2
Function at 0x1400a27b0
Capabilities:
Encode data using xor

Disassembly:
sub rdx, rcx
cmp rdx, 0x20
jb fcn.140029c70
jmp fcn.140025e90

Function at 0x1400a3710
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x1400a376b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x1400a376b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x1400a3786
cmp eax, 0x42
jne 0x1400a376b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x1400a3836
cmp byte [r9 + r11], 0x5f
jne 0x1400a3836
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x1400a389e
mov rcx, rsi
xor edx, edx
call fcn.14009f220
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.14009f220
test al, al
jne 0x1400a3931
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400a37c2
lea rdx, [0x14013a4e3]
mov r8d, 1
call fcn.140026380
test al, al
jne 0x1400a3931
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x1400a377a
xor r14d, r14d
lea rbx, [0x14013a898]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x1400a37f4
cmp byte [rax + rcx], 0x45
je 0x1400a3953
sub r14, 1
jb 0x1400a3819
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400a3819
mov r8d, 2
mov rdx, rbx
call fcn.140026380
test al, al
jne 0x1400a3931
mov rcx, rsi
call fcn.1400a0a20
test al, al
jne 0x1400a3931
mov rax, qword [rsi]
test rax, rax
jne 0x1400a37e0
jmp 0x1400a377a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x1400a38f8
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x1400a3892
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x1400a387c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x1400a386b
add dl, 0xa9
jmp 0x1400a387a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x1400a38f8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x1400a38f8
movzx edx, bl
add rax, rdx
jae 0x1400a3840
jmp 0x1400a38f8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x1400a38f8
cmp rax, rcx
jae 0x1400a38f5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x1400a394b
cmp qword [rsi + 0x20], 0
je 0x1400a3944
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.1400a3710
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x1400a377c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400a3939
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x14013a858]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
add r8, 0x10
call fcn.140026380
test al, al
je 0x1400a3939
mov dil, 2
jmp 0x1400a377a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x1400a377a
mov dil, 1
xor r8d, r8d
jmp 0x1400a38fa
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x1400a377a
Function at 0x1400a6b00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov ecx, dword [0x1400d00a8]
test ecx, ecx
je 0x1400a6bf4
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400a6b34
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1400a6b34
add rdi, 0x10
jmp 0x1400a6bea
mov ecx, dword [0x1400d00a8]
test ecx, ecx
je 0x1400a6c07
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400a6be8
mov rsi, rax
test rax, rax
jne 0x1400a6bb7
mov qword [rsp + 0x28], 0
lea rax, str._q_n_
mov qword [rsp + 0x20], rax
movzx eax, byte [0x14014b030]
mov ecx, 0x18
mov edx, 8
call fcn.14002f970
test rax, rax
je 0x1400a6c2a
mov rsi, rax
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
mov ecx, dword [0x1400d00a8]
test ecx, ecx
je 0x1400a6c1a
dec ecx
mov rdx, rsi
call fcn.1400cd6d4
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x1400a6bea
test rcx, rcx
je 0x1400a6bea
lock dec qword [rcx]
jne 0x1400a6bea
call fcn.1400a6c80
jmp 0x1400a6bea
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, str._q_n_
call fcn.1400a6eb0
mov ecx, eax
jmp 0x1400a6b16
lea rcx, str._q_n_
call fcn.1400a6eb0
mov ecx, eax
jmp 0x1400a6b44
lea rcx, str._q_n_
call fcn.1400a6eb0
mov ecx, eax
jmp 0x1400a6baf
mov ecx, 8
mov edx, 0x18
call fcn.140024df0
ud2
Function at 0x1400a6eb0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x1400a6f35
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
push 0x44890002
and al, 0x28
cmp eax, 1
jne 0x1400a6f76
cmp dword [rsp + 0x2c], 0
je 0x1400a6f5a
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400a6f90
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x14014b118]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x14014b118], rsi
jne 0x1400a6f10
mov byte [0x14014b110], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x1400a6f6c
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x1400a6fdc
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x1400a6f5f
invalid
mov edi, dword [rsp + 0x28]
jmp 0x1400a6f6c
mov edi, dword [rsi + 0x18]
jmp 0x1400a6f6a
mov edi, eax
mov ecx, dword [rsp + 0x28]
call sub.KERNEL32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.1400a7040
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.called__Option::unwrap____on_a__None__value_rustc_79e9716c980570bfd1f666e3b16ac583f0168962library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.140025960
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
and al, 0x38
add dword [rax], eax
add byte [rax], al
lea rax, str.called__Option::unwrap____on_a__None__value_rustc_79e9716c980570bfd1f666e3b16ac583f0168962library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.1400a7090
ud2
Function at 0x1400a7590
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1400d00c8]
test ecx, ecx
je 0x1400a762f
add byte [rax], al
invalid
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400a75b9
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x1400a761e
mov ecx, dword [0x1400d00c8]
test ecx, ecx
je 0x1400a7642
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400a7624
mov rsi, rax
test rax, rax
jne 0x1400a7618
movzx eax, byte [0x14014b030]
mov ecx, 0x10
mov edx, 8
call fcn.14002f970
test rax, rax
je 0x1400a7665
mov rsi, rax
lea rax, [0x1400d00b0]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x1400d00c8]
test ecx, ecx
je 0x1400a7655
dec ecx
mov rdx, rsi
call fcn.1400cd6d4
mov word [rsi + 8], 1
add rsi, 9
jmp 0x1400a7626
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1400d00b0]
call fcn.1400a6eb0
mov ecx, eax
jmp 0x1400a75a5
lea rcx, [0x1400d00b0]
call fcn.1400a6eb0
mov ecx, eax
jmp 0x1400a75c5
lea rcx, [0x1400d00b0]
call fcn.1400a6eb0
mov ecx, eax
jmp 0x1400a7610
mov ecx, 8
mov edx, 0x10
call fcn.140024df0
ud2

Function at 0x1400a7d30
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x14013ce88]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x1400a7da1
mov rcx, rdi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1400a7dd7
test eax, eax
js 0x1400a7db2
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400a7dca
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
add cl, byte [rax - 0x77]
or byte [rax + 1], r15b
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x14013cee8]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.1400a62b0
mov rcx, rax
call fcn.1400a6390
mov ecx, 7
int 0x29
ud2
Function at 0x1400a8210
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
and byte [rbx + 0x27e6d0d], cl
add byte [rbp - 0x557bf037], al
add byte [rax], al
invalid
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400a8240
cmp qword [rax + 8], 0
je 0x1400a8240
add rax, 0x10
jmp 0x1400a82c7
xchg dword [rax], eax
add byte [rax], al
mov ecx, dword [0x1400d0088]
test ecx, ecx
je 0x1400a82e0
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400a82c5
mov rsi, rax
test rax, rax
jne 0x1400a82ab
movzx eax, byte [0x14014b030]
mov ecx, 0x20
mov edx, 8
call fcn.14002f970
test rax, rax
je 0x1400a8303
mov rsi, rax
lea rax, [0x1400d0070]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400d0088]
test ecx, ecx
je 0x1400a82f3
dec ecx
mov rdx, rsi
call fcn.1400cd6d4
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
jmp 0x1400a82c7
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1400d0070]
call fcn.1400a6eb0
dec dword [rcx - 0xba163f]
invalid
invalid
lea rcx, [0x1400d0070]
call fcn.1400a6eb0
invalid
jmp 0x1400a82ea
dec dword [rcx - 0xa2163f]
invalid
invalid
lea rcx, [0x1400d0070]
call fcn.1400a6eb0
mov ecx, eax
jmp 0x1400a82a3
mov ecx, 8
mov edx, 0x20
call fcn.140024df0
ud2

Function at 0x1400ab660
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rax, rdx
movzx r9d, byte [rdx + 0x38]
movzx r8d, byte [rdx + 0x3a]
xor edx, edx
cmp r9b, 1
ja 0x1400ab6cb
movzx r10d, byte [rax + 0x10]
movzx r11d, r10b
test r8b, r8b
jne 0x1400ab828
cmp r10b, 5
jb 0x1400ab828
mov r10, qword [rax]
mov rdx, qword [rax + 8]
xor esi, esi
test r9b, r9b
jne 0x1400ab6bb
cmp r11b, 6
je 0x1400ab6bb
mov esi, 2
cmp rdx, 2
jb 0x1400ab8ca
cmp rsi, rdx
jne 0x1400ab7e8
xor edx, edx
jmp 0x1400ab828
xor r10d, r10d
add rdx, r10
lea rdi, [r10 + rsi]
xor cl, byte [rax - 1]
invalid
cmp rdi, rdx
sete dl
movzx r10d, byte [r10 + rsi]
test dl, 1
add dword [rbp + 0x1b], esi
lea r8, [0x14013c1e0]
mov ecx, 2
call fcn.1400259a0
ud2
Function at 0x1400abb30
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rax, r8
mov rdi, rcx
mov dword [rsp + 0x60], 0
mov word [rsp + 0x64], 0
mov dword [rsp + 0x40], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], 7
mov byte [rsp + 0x60], 1
lea r8, [rsp + 0x40]
mov rcx, rdx
mov rdx, rax
call fcn.1400c4830
mov rsi, rdx
test rax, rax
je 0x1400abbdf
mov eax, esi
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1400abbd3
test rax, rax
je 0x1400abbd3
mov rax, rsi
dec rsi
mov rbx, qword [rax - 1]
mov r14, qword [rax + 7]
mov rcx, rbx
call qword [r14]
cmp qword [r14 + 8], 0
je 0x1400abbc6
mov rdx, qword [r14 + 0x10]
mov rcx, rbx
call fcn.14002fa00
mov edx, 8
mov rcx, rsi
call fcn.14002fa00
mov qword [rdi], 0
jmp 0x1400abd3f
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.1400c4a90
cmp dword [rsp + 0x40], 2
jne 0x1400abc5d
mov rax, qword [rsp + 0x48]
mov ecx, eax
and ecx, 3
lea rdx, [rcx - 2]
cmp rdx, 2
jb 0x1400abc3e
test rcx, rcx
je 0x1400abc3e
lea rbx, [rax - 1]
mov r14, qword [rax - 1]
mov r15, qword [rax + 7]
mov rcx, r14
call qword [r15]
cmp qword [r15 + 8], 0
je 0x1400abc31
mov rdx, qword [r15 + 0x10]
mov rcx, r14
call fcn.14002fa00
mov edx, 8
mov rcx, rbx
call fcn.14002fa00
mov qword [rdi], 0
mov rcx, rsi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp sub.KERNEL32.dll_CloseHandle
mov r12, qword [rsp + 0x78]
test rsi, rsi
je 0x1400abcaf
mov qword [rsp + 0x40], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, rax
mov rdx, rsi
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x1400abd2b
mov rbx, qword [rsp + 0x40]
jmp 0x1400abcb1
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileMappingA
test rax, rax
je 0x1400abd1a
mov r14, rax
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call sub.KERNEL32.dll_CloseHandle
test r15, r15
je 0x1400abd1a
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r12
mov qword [rdi], 1
jmp 0x1400abd37
mov qword [rdi], 0
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
jmp 0x1400abd37
call sub.KERNEL32.dll_GetLastError
mov qword [rdi], 0
mov rcx, rsi
call sub.KERNEL32.dll_CloseHandle
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400c6720
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x14013ce88]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x1400c678a
mov rcx, rdi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x1400c6799
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1400c67d0
cmp eax, 0x103
je 0x1400c67da
test eax, eax
js 0x1400c67b6
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400c67d0
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x14013cee8]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.1400a62b0
mov rcx, rax
call fcn.1400a6390
mov ecx, 7
int 0x29
ud2

Function at 0x1400c88d0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x80
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
mov edx, 0x10
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1400c8906
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rsp, 0x80
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rax, [0x1400c5e60]
mov qword [rsp + 0x48], rax
lea rax, str.fallback_RNG_broken:
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rsp + 0x50]
call fcn.140025960
ud2
Function at 0x1400ce250
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400ceff0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400ceff0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400ce2c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14014b224]
mov rbx, rcx
test esi, esi
jle 0x1400ce3f0
mov rax, qword [0x14014b228]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400ce30b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400ce395
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400ce2f0
mov rcx, rbx
call fcn.1400ced10
mov rdi, rax
test rax, rax
je 0x1400ce412
mov rax, qword [0x14014b228]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400cee50
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14014b228]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400ce3f7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400ce38e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400ce3a0
add dword [0x14014b224], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14014b228]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400ce38e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400ce250
nop dword [rax]
xor esi, esi
jmp 0x1400ce318
mov rax, qword [0x14014b228]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400ce250
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400ce250
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400ce980
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14014b280]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14014b260]
test rbx, rbx
je 0x1400ce9dc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400ce9d3
test rsi, rsi
je 0x1400ce9d3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400ce9b8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]