joyce8/EMBER2024-capa huggingface dataset:
Function at 0x691610
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
mov r12, rcx
mov r13, rdx
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x2e
mov edx, 1
lea rcx, str._TEST_ENG_OPENSSL_RC4__test_init_key___called_n
mov r9, rax
call sym.fwrite
mov rcx, r12
call sym.EVP_CIPHER_CTX_key_length
mov rcx, r12
mov ebx, eax
call sym.EVP_CIPHER_CTX_get_cipher_data
movsxd r8, ebx
mov rdx, r13
mov rcx, rax
call sym.memcpy
mov rcx, r12
call sym.EVP_CIPHER_CTX_get_cipher_data
mov rcx, r12
mov rbx, rax
call sym.EVP_CIPHER_CTX_key_length
mov rcx, r12
mov r13d, eax
call sym.EVP_CIPHER_CTX_get_cipher_data
mov r8, rbx
mov edx, r13d
lea rcx, [rax + 0x10]
call sym.RC4_set_key
mov eax, 1
add rsp, 0x20
pop rbx
pop r12
pop r13
ret

Function at 0x695c40
Capabilities:
Encode data using base64

Disassembly:
push rbx
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
test rcx, rcx
je 0x695c5c
test byte [rcx + 0x5c], 2
lea rax, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._
cmovne r10, rax
xor r11d, r11d
test r9d, r9d
jg 0x695cc1
jmp 0x695d03
movzx eax, byte [r8 + 1]
add r8, 3
shl eax, 8
or eax, ecx
movzx ecx, byte [r8 - 1]
mov ebx, eax
shr ebx, 0x12
or ecx, eax
shr eax, 0xc
movzx ebx, byte [r10 + rbx]
and eax, 0x3f
mov byte [rdx - 4], bl
movzx eax, byte [r10 + rax]
mov byte [rdx - 3], al
mov eax, ecx
and ecx, 0x3f
shr eax, 6
and eax, 0x3f
movzx eax, byte [r10 + rax]
mov byte [rdx - 2], al
movzx eax, byte [r10 + rcx]
mov byte [rdx - 1], al
sub r9d, 3
je 0x695d03
movzx eax, byte [r8]
mov rbx, rdx
add r11d, 4
add rdx, 4
shl eax, 0x10
mov ecx, eax
cmp r9d, 2
jg 0x695c70
je 0x695d10
shr eax, 0x12
movzx eax, byte [r10 + rax]
mov byte [rbx], al
mov eax, ecx
shr eax, 0xc
and eax, 0x30
movzx eax, byte [r10 + rax]
mov byte [rbx + 1], al
mov eax, 0x3d
mov byte [rbx + 2], al
mov byte [rbx + 3], 0x3d
mov eax, r11d
mov byte [rdx], 0
pop rbx
ret
movzx r8d, byte [r8 + 1]
shl r8d, 8
or r8d, eax
shr eax, 0x12
movzx eax, byte [r10 + rax]
mov byte [rbx], al
mov eax, r8d
shr r8d, 6
shr eax, 0xc
and r8d, 0x3c
and eax, 0x3f
movzx eax, byte [r10 + rax]
mov byte [rbx + 1], al
movzx eax, byte [r10 + r8]
jmp 0x695cfc

Function at 0x696230
Capabilities:
Encode data using base64

Disassembly:
mov r9d, r8d
mov r8, rdx
mov rdx, rcx
xor ecx, ecx
jmp sym.evp_encodeblock_int
Function at 0x69a300
Capabilities:
Hash data using murmur3

Disassembly:
mov r8d, 1
jmp sym.md4_block_data_order

Function at 0x69a470
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xc8
mov qword [rsp + 0x120], r8
mov r13, rcx
mov r14, rdx
test r8, r8
je 0x69a58b
lea rax, [rsp + 0x30]
movzx edx, byte [rcx + 0xc]
lea rbp, [rcx + 0xc]
xor r12d, r12d
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x38]
movzx r8d, byte [rcx + 0x14]
lea rdi, [rcx + 0x14]
mov qword [rsp + 0x28], rax
lea rsi, [rsp + 0x40]
nop word [rax + rax]
and edx, 0xffffff9f
and r8d, 0xffffff9f
mov ebx, dword [r14 + r12]
mov r15d, dword [r14 + r12 + 4]
or r8d, 0x20
or edx, 0x40
mov rcx, rbp
add r12, 8
mov byte [r13 + 0x14], r8b
mov byte [r13 + 0xc], dl
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x3c], r15d
mov dword [rsp + 0x34], r15d
call sym.DES_set_odd_parity
mov rdx, rsi
mov rcx, rbp
call sym.DES_set_key_unchecked
mov rcx, qword [rsp + 0x20]
mov r8d, 1
mov rdx, rsi
call sym.DES_encrypt1
mov rcx, rdi
call sym.DES_set_odd_parity
mov rdx, rsi
mov rcx, rdi
call sym.DES_set_key_unchecked
mov rcx, qword [rsp + 0x28]
mov r8d, 1
mov rdx, rsi
call sym.DES_encrypt1
mov ecx, dword [rsp + 0x38]
mov r8d, dword [rsp + 0x3c]
xor ecx, ebx
xor r8d, r15d
xor ebx, dword [rsp + 0x30]
xor r15d, dword [rsp + 0x34]
mov dword [r13 + 0x10], r8d
mov edx, ebx
mov r8d, ecx
mov dword [r13 + 0xc], ebx
mov dword [r13 + 0x14], ecx
mov dword [r13 + 0x18], r15d
cmp qword [rsp + 0x120], r12
ja 0x69a4d0
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x6a2b00
Capabilities:
Encrypt data using chaskey
Hash data using murmur3

Disassembly:
mov r8d, 1
jmp sym.ripemd160_block_data_order
Function at 0x6a5d30
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov eax, dword [rcx + 0x28]
add qword [rcx], r8
mov rdi, qword [rcx + 8]
mov rsi, qword [rcx + 0x10]
mov rbp, qword [rcx + 0x18]
mov rbx, qword [rcx + 0x20]
mov r12, rcx
mov r13, rdx
mov r14, r8
test eax, eax
je 0x6a5dda
mov r15d, 8
lea rcx, [rcx + rax + 0x38]
sub r15d, eax
cmp r8, r15
jb 0x6a5eaa
mov r8, r15
sub r14, r15
add r13, r15
call sym.memcpy
mov rcx, qword [r12 + 0x38]
mov edx, dword [r12 + 0x30]
xor rbx, rcx
test edx, edx
jle 0x6a5dd7
xor eax, eax
nop dword [rax + rax]
add rdi, rsi
add rbp, rbx
rol rsi, 0xd
add eax, 1
rol rbx, 0x10
xor rsi, rdi
rol rdi, 0x20
xor rbx, rbp
add rbp, rsi
rol rsi, 0x11
add rdi, rbx
rol rbx, 0x15
xor rsi, rbp
xor rbx, rdi
rol rbp, 0x20
cmp eax, edx
jne 0x6a5da0
xor rdi, rcx
mov r9d, r14d
and r14, 0xfffffffffffffff8
lea r8, [r13 + r14]
and r9d, 7
cmp r13, r8
je 0x6a5e4b
mov ecx, dword [r12 + 0x30]
nop dword [rax]
mov rdx, qword [r13]
xor rbx, rdx
test ecx, ecx
jle 0x6a5e3f
xor eax, eax
nop dword [rax]
add rdi, rsi
add rbp, rbx
rol rsi, 0xd
add eax, 1
rol rbx, 0x10
xor rsi, rdi
rol rdi, 0x20
xor rbx, rbp
add rbp, rsi
rol rsi, 0x11
add rdi, rbx
rol rbx, 0x15
xor rsi, rbp
xor rbx, rdi
rol rbp, 0x20
cmp ecx, eax
jne 0x6a5e08
add r13, 8
xor rdi, rdx
cmp r8, r13
jne 0x6a5df8
test r9d, r9d
jne 0x6a5e8e
movq xmm0, rdi
movq xmm1, rsi
movq xmm2, rbx
mov dword [r12 + 0x28], r9d
punpcklqdq xmm0, xmm1
movups xmmword [r12 + 8], xmm0
movq xmm0, rbp
punpcklqdq xmm0, xmm2
movups xmmword [r12 + 0x18], xmm0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r10, [r12 + 0x38]
xor eax, eax
mov edx, eax
add eax, 1
movzx ecx, byte [r8 + rdx]
mov byte [r10 + rdx], cl
cmp eax, r9d
jb 0x6a5e95
jmp 0x6a5e50
call sym.memcpy
add dword [r12 + 0x28], r14d
jmp 0x6a5e7d
Function at 0x6a5ec0
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
push rbx
xor r11d, r11d
movsxd rax, dword [rcx + 0x2c]
mov rsi, rax
cmp rax, r8
jne 0x6a6073
mov r8, qword [rcx]
shl r8, 0x38
cmp dword [rcx + 0x28], 7
ja case.0x6a5ef4.0
mov eax, dword [rcx + 0x28]
lea r9, [0x0091c0a0]
movsxd rax, dword [r9 + rax*4]
add rax, r9
jmp rax
movzx eax, byte [rcx + 0x3e]
shl rax, 0x30
or r8, rax
movzx eax, byte [rcx + 0x3d]
shl rax, 0x28
or r8, rax
movzx eax, byte [rcx + 0x3c]
shl rax, 0x20
or r8, rax
movzx eax, byte [rcx + 0x3b]
shl rax, 0x18
or r8, rax
movzx eax, byte [rcx + 0x3a]
shl rax, 0x10
or r8, rax
movzx eax, byte [rcx + 0x39]
shl rax, 8
or r8, rax
movzx eax, byte [rcx + 0x38]
or r8, rax
mov r9, qword [rcx + 0x20]
mov edi, dword [rcx + 0x30]
mov r10, qword [rcx + 8]
mov rax, qword [rcx + 0x10]
mov r11, qword [rcx + 0x18]
xor r9, r8
test edi, edi
jle 0x6a5f9f
xor ebx, ebx
nop dword [rax]
add r10, rax
add r11, r9
rol rax, 0xd
add ebx, 1
rol r9, 0x10
xor rax, r10
rol r10, 0x20
xor r9, r11
add r11, rax
rol rax, 0x11
add r10, r9
rol r9, 0x15
xor rax, r11
xor r9, r10
rol r11, 0x20
cmp ebx, edi
jne 0x6a5f68
xor r10, r8
mov ebx, dword [rcx + 0x34]
mov r8, r11
xor r11b, 0xff
xor r8b, 0xee
cmp esi, 0x10
cmovne r8, r11
xor r11d, r11d
test ebx, ebx
jle 0x6a5ff9
nop
add r10, rax
add r8, r9
rol rax, 0xd
rol r9, 0x10
xor rax, r10
rol r10, 0x20
add r11d, 1
xor r9, r8
add r8, rax
rol rax, 0x11
add r10, r9
rol r9, 0x15
xor rax, r8
xor r9, r10
rol r8, 0x20
cmp r11d, ebx
jne 0x6a5fc0
mov r11, r10
xor r11, rax
xor r11, r8
xor r11, r9
mov qword [rdx], r11
cmp dword [rcx + 0x2c], 8
mov r11d, 1
je 0x6a6073
mov r11d, dword [rcx + 0x34]
xor al, 0xdd
test r11d, r11d
jle 0x6a6060
xor ecx, ecx
nop dword [rax]
add r10, rax
add r8, r9
rol rax, 0xd
add ecx, 1
rol r9, 0x10
xor rax, r10
rol r10, 0x20
xor r9, r8
add r8, rax
rol rax, 0x11
add r10, r9
rol r9, 0x15
xor rax, r8
xor r9, r10
rol r8, 0x20
cmp r11d, ecx
jne 0x6a6028
xor rax, r10
mov r11d, 1
xor r8, rax
xor r9, r8
mov qword [rdx + 8], r9
mov eax, r11d
pop rbx
pop rsi
pop rdi
ret
Function at 0x6af100
Capabilities:
Query environment variable
Write file on windows

Disassembly:
push r14
push r13
push r12
sub rsp, 0x20
mov r13, rcx
mov rcx, rdx
mov r12, rdx
call sym.UI_get_string_type
cmp eax, 2
je 0x6af140
cmp eax, 3
je 0x6af240
cmp eax, 1
je 0x6af1f0
mov eax, 1
add rsp, 0x20
pop r12
pop r13
pop r14
ret
mov rcx, r12
call sym.UI_get0_output_string
mov rcx, qword [0x009f96d0]
lea rdx, str.Verifying____s
mov r8, rax
call sym.fprintf
mov rcx, qword [0x009f96d0]
call sym.fflush
mov rcx, r12
call sym.UI_get_input_flags
mov r9d, 1
mov rdx, r12
mov rcx, r13
and eax, 1
mov r8d, eax
call sym.read_string_inner
test eax, eax
jle 0x6af134
mov rcx, r12
call sym.UI_get0_test_string
mov rcx, r12
mov r13, rax
call sym.UI_get0_result_string
mov rdx, r13
mov rcx, rax
call sym.strcmp
mov r8d, eax
mov eax, 1
test r8d, r8d
je 0x6af134
mov r9, qword [0x009f96d0]
mov r8d, 0xf
mov edx, 1
lea rcx, str.Verify_failure_n
call sym.fwrite
mov rcx, qword [0x009f96d0]
call sym.fflush
xor eax, eax
jmp 0x6af134
mov r14, qword [0x009f96d0]
mov rcx, r12
call sym.UI_get0_output_string
mov rcx, rax
mov rdx, r14
call sym.fputs
mov rcx, qword [0x009f96d0]
call sym.fflush
mov rcx, r12
call sym.UI_get_input_flags
mov r9d, 1
and eax, 1
mov rdx, r12
mov rcx, r13
mov r8d, eax
add rsp, 0x20
pop r12
pop r13
pop r14
jmp sym.read_string_inner
mov r14, qword [0x009f96d0]
mov rcx, r12
call sym.UI_get0_output_string
mov rcx, rax
mov rdx, r14
call sym.fputs
mov r14, qword [0x009f96d0]
mov rcx, r12
call sym.UI_get0_action_string
mov rcx, rax
mov rdx, r14
call sym.fputs
mov rcx, qword [0x009f96d0]
call sym.fflush
mov rcx, r12
call sym.UI_get_input_flags
xor r9d, r9d
jmp 0x6af224
Function at 0x6ba470
Capabilities:
Encode data using xor
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [0x009248c0]
lea rsi, [0x009248c0]
mov r11d, 0x48
mov qword [rcx], rax
mov rax, qword [0x00925900]
lea rdi, [rcx + 8]
mov rbp, rcx
and rdi, 0xfffffffffffffff8
mov r10, rbp
mov qword [rcx + 0x1040], rax
mov rax, rcx
sub rax, rdi
sub rsi, rax
add eax, 0x1048
shr eax, 3
cmp edx, 0x48
cmovle r11d, edx
mov ecx, eax
mov rax, r8
rep movsq qword [rdi], qword [rsi]
lea rdi, [rbp + 0x48]
movsxd r11, r11d
add r11, r8
nop dword [rax]
lea rcx, [rax + 1]
movzx eax, byte [rax]
cmp r11, rcx
cmovbe rcx, r8
shl eax, 8
movzx edx, byte [rcx]
lea r9, [rcx + 1]
or edx, eax
cmp r11, r9
cmovbe r9, r8
mov eax, edx
shl eax, 8
movzx edx, byte [r9]
lea rcx, [r9 + 1]
or edx, eax
cmp r11, rcx
cmovbe rcx, r8
shl edx, 8
lea rax, [rcx + 1]
movzx ecx, byte [rcx]
or edx, ecx
cmp r11, rax
cmovbe rax, r8
xor dword [r10], edx
add r10, 4
cmp rdi, r10
jne 0x6ba4d8
mov qword [rsp + 0x28], 0
mov rbx, rbp
lea rsi, [rsp + 0x28]
nop
mov rdx, rbp
mov rcx, rsi
add rbx, 8
call sym.BF_encrypt
mov eax, dword [rsp + 0x28]
mov dword [rbx - 8], eax
mov eax, dword [rsp + 0x2c]
mov dword [rbx - 4], eax
cmp rbx, rdi
jne 0x6ba540
lea rdi, [rbp + 0x1048]
nop dword [rax]
mov rdx, rbp
mov rcx, rsi
add rbx, 8
call sym.BF_encrypt
mov eax, dword [rsp + 0x28]
mov dword [rbx - 8], eax
mov eax, dword [rsp + 0x2c]
mov dword [rbx - 4], eax
cmp rdi, rbx
jne 0x6ba570
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x6ba640
Capabilities:
Hash data using sha512

Disassembly:
sub rsp, 0x28
call sym.EVP_MD_CTX_md_data
mov rcx, rax
add rsp, 0x28
jmp sym.BLAKE2b_Init

Function at 0x6ba6c0
Capabilities:
Hash data using sha256

Disassembly:
sub rsp, 0x28
call sym.EVP_MD_CTX_md_data
mov rcx, rax
add rsp, 0x28
jmp sym.BLAKE2s_Init
Function at 0x6baab0
Capabilities:
Encode data using xor

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [r8 + 8]
mov rbx, rdx
mov edx, dword [rdx + 8]
mov r12, rcx
mov rsi, r8
cmp edx, eax
jge 0x6baad7
mov edx, eax
mov rax, rbx
mov rbx, r8
mov rsi, rax
mov rcx, r12
call sym.bn_wexpand
test rax, rax
je 0x6bac40
mov eax, dword [rsi + 8]
test eax, eax
jle 0x6bac78
mov r10, qword [rbx]
mov r9, qword [r12]
lea edx, [rax - 1]
mov rcx, qword [rsi]
lea r8, [r10 + 0xf]
sub r8, r9
cmp r8, 0x1e
lea r8, [rcx + 0xf]
seta r11b
sub r8, r9
cmp r8, 0x1e
seta r8b
test r11b, r8b
je 0x6bac50
cmp edx, 2
jbe 0x6bac50
mov r8d, eax
xor edx, edx
shr r8d, 1
shl r8, 4
nop dword [rax]
movdqu xmm0, xmmword [r10 + rdx]
movdqu xmm1, xmmword [rcx + rdx]
pxor xmm0, xmm1
movups xmmword [r9 + rdx], xmm0
add rdx, 0x10
cmp rdx, r8
jne 0x6bab40
mov edx, eax
and edx, 0xfffffffe
test al, 1
je 0x6bab72
mov r8, qword [r10 + rdx*8]
xor r8, qword [rcx + rdx*8]
mov qword [r9 + rdx*8], r8
mov r11d, dword [rbx + 8]
cmp eax, r11d
jge 0x6bac07
mov r9, qword [rbx]
mov r8, qword [r12]
movsxd rdx, eax
lea r10, [rdx*8 + 0x10]
lea rcx, [rdx*8]
lea rsi, [r9 + r10]
lea rbx, [r8 + rcx]
add rcx, r9
cmp rbx, rsi
setae sil
add r10, r8
cmp rcx, r10
setae r10b
or sil, r10b
je 0x6bac28
lea r10d, [r11 - 1]
sub r10d, eax
cmp r10d, 3
jbe 0x6bac28
mov esi, r11d
xor edx, edx
sub esi, eax
mov r10d, esi
shr r10d, 1
shl r10, 4
nop dword [rax + rax]
movdqu xmm2, xmmword [rcx + rdx]
movups xmmword [rbx + rdx], xmm2
add rdx, 0x10
cmp rdx, r10
jne 0x6babe0
mov edx, esi
and edx, 0xfffffffe
add eax, edx
cmp esi, edx
je 0x6bac07
cdqe
mov rdx, qword [r9 + rax*8]
mov qword [r8 + rax*8], rdx
mov dword [r12 + 8], r11d
mov rcx, r12
call sym.bn_correct_top
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
mov rax, qword [r9 + rdx*8]
mov qword [r8 + rdx*8], rax
add rdx, 1
cmp r11d, edx
jg 0x6bac28
jmp 0x6bac07
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
mov r11d, edx
xor edx, edx
nop dword [rax]
mov r8, qword [r10 + rdx*8]
xor r8, qword [rcx + rdx*8]
mov qword [r9 + rdx*8], r8
mov r8, rdx
add rdx, 1
cmp r8, r11
jne 0x6bac58
jmp 0x6bab72
xor eax, eax
jmp 0x6bab72
Function at 0x6ccbe0
Capabilities:
Hash data using sha512

Disassembly:
push rdi
sub rsp, 0x40
xor eax, eax
movdqu xmm0, xmmword [0x00934020]
mov rdx, rcx
mov word [rsp + 0x10], ax
xor ecx, ecx
lea rdi, [rdx + 0x48]
mov eax, edx
mov word [rsp + 0x1e], cx
and rdi, 0xfffffffffffffff8
mov qword [rsp], 0x1010040
sub eax, edi
mov dword [rsp + 0x1a], 0
lea ecx, [rax + 0xe8]
xor eax, eax
mov qword [rsp + 8], 0
shr ecx, 3
mov qword [rsp + 0x12], 0
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rdx + 0x40], 0
mov qword [rdx + 0xe0], 0
rep stosq qword [rdi], rax
mov eax, 1
pxor xmm0, xmmword [rsp]
movups xmmword [rdx], xmm0
movdqu xmm0, xmmword [0x00934030]
pxor xmm0, xmmword [rsp + 0x10]
movups xmmword [rdx + 0x10], xmm0
movdqu xmm0, xmmword [0x00934040]
pxor xmm0, xmmword [rsp + 0x20]
movups xmmword [rdx + 0x20], xmm0
movdqu xmm0, xmmword [0x00934050]
pxor xmm0, xmmword [rsp + 0x30]
movups xmmword [rdx + 0x30], xmm0
add rsp, 0x40
pop rdi
ret
Function at 0x6ce170
Capabilities:
Hash data using sha256

Disassembly:
push rdi
sub rsp, 0x20
movdqu xmm0, xmmword [0x00934060]
lea rdi, [rcx + 0x28]
mov eax, ecx
mov rdx, rcx
mov qword [rsp], 0x1010020
mov qword [rsp + 8], 0
and rdi, 0xfffffffffffffff8
mov qword [rsp + 0x10], 0
sub eax, edi
mov qword [rsp + 0x18], 0
mov qword [rcx + 0x20], 0
mov qword [rcx + 0x70], 0
lea ecx, [rax + 0x78]
xor eax, eax
shr ecx, 3
rep stosq qword [rdi], rax
mov eax, 1
pxor xmm0, xmmword [rsp]
movups xmmword [rdx], xmm0
movdqu xmm0, xmmword [0x00934070]
pxor xmm0, xmmword [rsp + 0x10]
movups xmmword [rdx + 0x10], xmm0
add rsp, 0x20
pop rdi
ret

Function at 0x6ee910
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x6ee980
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x009fa714]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x6eeb28
mov rax, qword [0x009fa718]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x6ee9cc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x6eea57
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x6ee9b0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x6eeb62
mov rax, qword [0x009fa718]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x009fa718]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6eeb71
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x6eea50
sub eax, 4
and eax, 0xfffffffb
jne 0x6eeae0
add dword [0x009fa714], 1
cmp ebx, 8
jae 0x6eea88
test bl, 4
jne 0x6eeb30
test ebx, ebx
je 0x6eea79
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x6eeb50
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x6eea79
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x6eeaba
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x009fa718]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6eea50
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor edi, edi
jmp 0x6ee9d7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x6eea79
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x6eea79
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
mov rax, qword [0x009fa718]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
nop
nop dword [rax]
Function at 0x6ef350
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x009faa00]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x009fa9e0]
test rbx, rbx
je 0x6ef3a4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x6ef39b
test r12, r12
je 0x6ef39b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6ef380
lea rcx, [0x009faa00]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x6ef5d0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x6ef5e0
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x6ef5f0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6ef635
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x6ef62c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6ef637
add rax, 0x28
cmp rax, r9
jne 0x6ef618
xor eax, eax
ret

Function at 0x6ef6e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x0093a980]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x6ef759
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6ef759
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x6ef756
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x6ef74d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x6ef759
add r8, 0x28
cmp r8, r9
jne 0x6ef738
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x6ef840
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x0093a980]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x6ef8af
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6ef8af
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x6ef8ad
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x6ef8a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6ef8b8
add rax, 0x28
cmp rax, r9
jne 0x6ef890
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x6ef8d0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x0093a980]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x6ef948
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6ef948
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x6ef948
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6ef948
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x6ef93c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x6ef950
add rdx, 0x28
cmp rdx, r10
jne 0x6ef928
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x6ef960
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x6ef96e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x6ef945
test r8d, r8d
jg 0x6ef958
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret

Function at 0x6efa50
Capabilities:
Allocate thread local storage

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x6efa80
mov rdx, r12
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop r12
jmp dbg.__mingwthr_key_dtor
add rsp, 0x28
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x6efac0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12d, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, r12d
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r13d
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x28
pop r12
pop r13
ret

Function at 0x6efb00
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x6efb18
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x6f0550
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor ecx, ecx
xor r9d, r9d
mov r8d, 0xffff
mov dword [0x009faa60], 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x009faa68], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x6f05a0
lea rdx, [0x006f0460]
mov dword [0x009faa58], eax
call dbg.__mingwthr_key_dtor
test eax, eax
jne 0x6f05a8
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x6f0597
call sym.abort
nop
nop