joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18003e3e0
Capabilities:
Create thread
Terminate thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x18003e42c
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
mov qword [0x180051d80], rbx
mov qword [rsp + 0x28], rax
lea r8, [0x18003e980]
xor r9d, r9d
mov dword [rsp + 0x20], eax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x180051d38], rax
mov eax, 1
add rsp, 0x30
pop rbx
ret
test edx, edx
jne 0x18003e43d
mov rcx, qword [0x180051d38]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x140007bf0
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rax, [0x140065160]
mov rsi, rcx
mov rbp, rdx
mov qword [rcx], 0
mov edx, 0xfa0
mov qword [rcx + 8], rax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x38], 0
call fcn.140011780
movabs r12, 0x7fffffffffffffff
mov rax, qword [rsp + 0x20]
mov rbx, rax
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x58], rax
nop
test rbx, rbx
jle 0x140007d40
mov rax, qword [rsp + 0x58]
mov r9, rbp
mov r8d, 0xfa0
mov edx, 1
lea rcx, [rax + 8]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
cmp rax, 0xfa0
mov rbx, rax
je 0x140007d50
mov rcx, rbp
call fcn.140006650
test rbx, rbx
js 0x140007dd0
lea rcx, [rsp + 0x50]
mov rdx, rbx
call fcn.14000d330
mov rdx, qword [rsp + 0x50]
mov rcx, rsi
call fcn.14000ce50
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
test rbx, rbx
jle 0x140007d0d
mov rbp, rbx
add rbp, 1
jo 0x140007e1a
test rbp, rbp
js 0x140007df0
mov rdx, qword [rsi + 8]
mov r8, rbp
mov rax, qword [rsi]
lea rcx, [rdx + rax + 8]
lea rdx, [rdi + 8]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add rbx, qword [rsi]
jo 0x140007e3e
mov qword [rsi], rbx
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x140007d1c
test byte [rdi + 7], 0x40
je 0x140007dc0
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x140007e24
mov rax, rsi
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rdx, [rbx - 1]
xor ecx, ecx
call fcn.14000eea0
jmp 0x140007c69
mov rdx, qword [rsp + 0x50]
mov rcx, rsi
call fcn.14000ce50
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
test rbx, rbx
jle 0x140007d40
mov r13, rbx
add r13, 1
jo 0x140007e10
test r13, r13
js 0x140007db0
mov rdx, qword [rsi + 8]
mov r8, r13
mov rax, qword [rsi]
lea rcx, [rdx + rax + 8]
lea rdx, [rdi + 8]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add rbx, qword [rsi]
jo 0x140007e09
mov qword [rsi], rbx
mov rbx, qword [rsp + 0x50]
jmp 0x140007c60
mov r8, r12
xor edx, edx
mov rcx, r13
call fcn.14000c7d0
jmp 0x140007d7e
mov rcx, rdi
call fcn.14000b620
jmp 0x140007d1c
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbx
call fcn.14000c7d0
jmp 0x140007ca5
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbp
call fcn.14000c7d0
jmp 0x140007ce4
call fcn.14000bf40
jmp 0x140007d9b
call fcn.14000bf40
jmp 0x140007d79
call fcn.14000bf40
jmp 0x140007cdb
lea rsi, [rsp + 0x48]
mov qword [rsp + 0x48], rax
mov rcx, rsi
call fcn.140059e48
mov rcx, rsi
call fcn.140059e30
call fcn.14000bf40
jmp 0x140007d05
Function at 0x140007f40
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
test r8, r8
mov rbx, rcx
mov rdi, rdx
mov rsi, r8
js 0x1400080c0
lea r13, [rsp + 0x20]
mov rdx, r8
mov rcx, r13
call fcn.140011780
mov rax, qword [rsp + 0x20]
mov rdx, rax
mov qword [rbx], rax
mov rax, qword [rsp + 0x28]
test rdx, rdx
mov qword [rbx + 8], rax
jle 0x140008140
mov rax, qword [rbx + 8]
mov r9, rdi
mov r8, rsi
mov edx, 1
lea rcx, [rax + 8]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov rcx, rdi
cmp rsi, rax
mov rbp, rax
je 0x140008000
call fcn.140006650
mov rcx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fgetc
mov rdx, rdi
mov r12d, eax
mov ecx, eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ungetc
test r12d, r12d
jns 0x140008015
cmp rsi, rbp
jle 0x140007fe6
test rbp, rbp
js 0x140008150
mov rdx, rbp
mov rcx, rbx
call fcn.14000d330
mov rax, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fgetc
mov rdx, rdi
mov esi, eax
mov ecx, eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ungetc
test esi, esi
js 0x140007fe6
mov qword [rsp + 0x38], 0
mov rdx, rdi
mov rcx, r13
call fcn.140007bf0
mov rsi, qword [rsp + 0x20]
mov rcx, rbx
mov rdi, qword [rsp + 0x28]
mov rdx, rsi
mov rbp, rdi
call fcn.14000ce50
test rsi, rsi
jle 0x140008080
mov r12, rsi
add r12, 1
jo 0x140008189
test r12, r12
js 0x140008170
mov rdx, qword [rbx + 8]
mov r8, r12
mov rax, qword [rbx]
lea rcx, [rdx + rax + 8]
lea rdx, [rdi + 8]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add rsi, qword [rbx]
jo 0x140008193
mov qword [rbx], rsi
test rbp, rbp
je 0x14000808f
test byte [rbp + 7], 0x40
je 0x140008120
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x140007fe6
lea rsi, [rsp + 0x48]
mov qword [rsp + 0x48], rax
mov rcx, rsi
call fcn.140059e48
mov rcx, rsi
call fcn.140059e30
nop word [rax + rax]
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rsi
call fcn.14000c7d0
lea r13, [rsp + 0x20]
mov rdx, rsi
mov rcx, r13
call fcn.140011780
mov rax, qword [rsp + 0x20]
mov rdx, rax
mov qword [rbx], rax
mov rax, qword [rsp + 0x28]
test rdx, rdx
mov qword [rbx + 8], rax
jle 0x140008130
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rsi
call fcn.14000c7d0
jmp 0x140007f8b
mov rcx, rbp
call fcn.14000b620
jmp 0x14000808f
sub rdx, 1
xor ecx, ecx
call fcn.14000eea0
jmp 0x1400080fd
sub rdx, 1
xor ecx, ecx
call fcn.14000eea0
jmp 0x140007f8b
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbp
call fcn.14000c7d0
jmp 0x140007fdb
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, r12
call fcn.14000c7d0
jmp 0x14000805c
call fcn.14000bf40
jmp 0x140008053
call fcn.14000bf40
jmp 0x14000807d

Function at 0x140008920
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
test rdx, rdx
mov rsi, rcx
mov rbx, rdx
je 0x14000893f
mov rcx, rdx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
Function at 0x140011030
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
cmp qword [0x140074450], 0
mov rbx, rcx
mov rbp, rdx
je 0x1400110d4
lea rsi, [rsp + 0x20]
mov rdx, rcx
mov qword [rsp + 0x38], 0
mov rcx, rsi
call fcn.140010800
mov rdi, qword [rsp + 0x28]
mov rcx, rsi
call qword [0x140074450]
test rdi, rdi
je 0x140011082
test byte [rdi + 7], 0x40
je 0x140011108
cmp qword [rsp + 0x38], 0
je 0x140011095
lea rcx, [rsp + 0x38]
call fcn.140059e50
nop
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rbx
mov r8, rbp
mov edx, 1
mov rsi, rax
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rcx, rsi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
jmp sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
lea rcx, [0x140064380]
call sub.libgcc_s_seh_1.dll___emutls_get_address
mov rdx, rdi
mov rcx, rax
call fcn.14000a980
cmp qword [rsp + 0x38], 0
jne 0x14001108a
jmp 0x140011095

Function at 0x1400134b0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rsi, [0x140065487]
mov rbp, qword [rcx]
mov rdi, qword [rcx + 8]
mov ecx, 0x40
call fcn.14000d620
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x40]
mov rbx, rax
mov rax, qword [0x14006aa30]
mov qword [rsp + 0x48], 0
mov qword [rbx + 0x10], rsi
mov qword [rbx], rax
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
call fcn.140011e50
mov rax, qword [rsp + 0x40]
mov rdx, rsi
mov rcx, rbx
lea r9, str.fatal.nim
lea r8, str.sysFatal
mov qword [rbx + 0x18], rax
mov rax, qword [rsp + 0x48]
mov qword [rbx + 0x20], rax
mov qword [rsp + 0x20], 0x35
call fcn.14000df20
nop
nop word cs:[rax + rax]
nop dword [rax]
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
lea rax, [0x1400652c3]
lea r12, [0x1400652c0]
mov rbp, qword [rdx]
mov rsi, qword [rdx + 8]
mov rdx, r12
test rbp, rbp
mov dword [rsp + 0x2c], r8d
mov rdi, rcx
lea r8, [rsi + 8]
cmove r8, rax
call fcn.140008970
movsxd r15, eax
cmp r15, rbp
mov rbx, r15
jge 0x140013617
test r15d, r15d
js 0x140013650
mov r14d, 0x80000000
mov r13d, 0xffffffff
jmp 0x1400135d9
xor ecx, ecx
mov rdx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
test eax, eax
jne 0x140013610
cmp ebx, 0x7fffffff
je 0x140013604
add ebx, 1
movsxd r15, ebx
cmp r15, rbp
jge 0x140013617
cmp byte [rsi + r15 + 8], 0
je 0x1400135b8
lea r8, [rsi + r15 + 8]
mov rdx, r12
mov rcx, rdi
call fcn.140008970
test eax, eax
jle 0x140013628
movsxd rbx, eax
add rbx, r15
lea rax, [rbx + r14]
cmp r13, rax
jae 0x1400135d1
call fcn.14000bf40
nop dword [rax]
cmp byte [rsp + 0x2c], 0
jne 0x14001365c
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [rsp + 0x2c], 0
je 0x140013617
movdqa xmm1, xmmword [0x140065500]
lea rcx, [rsp + 0x30]
movaps xmmword [rsp + 0x30], xmm1
call fcn.1400134b0
nop word cs:[rax + rax]
lea rdx, [rbp - 1]
mov rcx, r15
call fcn.14000eea0
movdqa xmm0, xmmword [0x140065500]
lea rcx, [rsp + 0x30]
movaps xmmword [rsp + 0x30], xmm0
call fcn.1400134b0
nop
nop word cs:[rax + rax]
nop
Function at 0x140013550
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rsi, [0x140065487]
mov rbp, qword [rcx]
mov rdi, qword [rcx + 8]
mov ecx, 0x40
call fcn.14000d620
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x40]
mov rbx, rax
mov rax, qword [0x14006aa30]
mov qword [rsp + 0x48], 0
mov qword [rbx + 0x10], rsi
mov qword [rbx], rax
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
call fcn.140011e50
mov rax, qword [rsp + 0x40]
mov rdx, rsi
mov rcx, rbx
lea r9, str.fatal.nim
lea r8, str.sysFatal
mov qword [rbx + 0x18], rax
mov rax, qword [rsp + 0x48]
mov qword [rbx + 0x20], rax
mov qword [rsp + 0x20], 0x35
call fcn.14000df20
nop
nop word cs:[rax + rax]
nop dword [rax]
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
lea rax, [0x1400652c3]
lea r12, [0x1400652c0]
mov rbp, qword [rdx]
mov rsi, qword [rdx + 8]
mov rdx, r12
test rbp, rbp
mov dword [rsp + 0x2c], r8d
mov rdi, rcx
lea r8, [rsi + 8]
cmove r8, rax
call fcn.140008970
movsxd r15, eax
cmp r15, rbp
mov rbx, r15
jge 0x140013617
test r15d, r15d
js 0x140013650
mov r14d, 0x80000000
mov r13d, 0xffffffff
jmp 0x1400135d9
xor ecx, ecx
mov rdx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
test eax, eax
jne 0x140013610
cmp ebx, 0x7fffffff
je 0x140013604
add ebx, 1
movsxd r15, ebx
cmp r15, rbp
jge 0x140013617
cmp byte [rsi + r15 + 8], 0
je 0x1400135b8
lea r8, [rsi + r15 + 8]
mov rdx, r12
mov rcx, rdi
call fcn.140008970
test eax, eax
jle 0x140013628
movsxd rbx, eax
add rbx, r15
lea rax, [rbx + r14]
cmp r13, rax
jae 0x1400135d1
call fcn.14000bf40
nop dword [rax]
cmp byte [rsp + 0x2c], 0
jne 0x14001365c
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [rsp + 0x2c], 0
je 0x140013617
movdqa xmm1, xmmword [0x140065500]
lea rcx, [rsp + 0x30]
movaps xmmword [rsp + 0x30], xmm1
call fcn.1400134b0
nop word cs:[rax + rax]
lea rdx, [rbp - 1]
mov rcx, r15
call fcn.14000eea0
movdqa xmm0, xmmword [0x140065500]
lea rcx, [rsp + 0x30]
movaps xmmword [rsp + 0x30], xmm0
call fcn.1400134b0
nop
nop word cs:[rax + rax]
nop
Function at 0x140013680
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rsi, rdx
mov r14, rcx
mov qword [rsp + 0x38], rdx
lea rcx, [0x140074420]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rsi, rsi
jle 0x140013817
mov r10, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov qword [rsp + 0x28], r14
lea rbp, [0x1400652c0]
mov r13d, 0x80000000
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x30], r10
nop dword [rax + rax]
mov ecx, 1
mov rax, qword [rsp + 0x30]
call rax
mov rdx, rbp
mov rsi, rax
mov rax, qword [rsp + 0x28]
mov rcx, rsi
mov rdi, qword [rax]
mov rbx, qword [rax + 8]
lea rax, [0x1400652c3]
test rdi, rdi
lea r8, [rbx + 8]
cmove r8, rax
call fcn.140008970
movsxd r15, eax
cmp rdi, r15
mov r14, r15
jle 0x140013790
test r15d, r15d
js 0x14001380b
mov r12d, 0xffffffff
jmp 0x14001375b
xor ecx, ecx
mov rdx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
test eax, eax
jne 0x140013790
cmp r14d, 0x7fffffff
je 0x140013786
add r14d, 1
movsxd r15, r14d
cmp rdi, r15
jle 0x140013790
cmp byte [rbx + r15 + 8], 0
je 0x140013738
lea r8, [rbx + r15 + 8]
mov rdx, rbp
mov rcx, rsi
call fcn.140008970
test eax, eax
jle 0x140013790
movsxd r14, eax
add r14, r15
lea rax, [r14 + r13]
cmp r12, rax
jae 0x140013753
call fcn.14000bf40
nop dword [rax + rax]
add qword [rsp + 0x20], 1
add qword [rsp + 0x28], 0x10
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x38], rax
jne 0x1400136e0
mov r10, qword [rsp + 0x30]
mov qword [rsp + 0x20], r10
mov ecx, 1
call r10
mov r8d, 1
mov edx, 1
lea rcx, [0x140065309]
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r10, qword [rsp + 0x20]
mov ecx, 1
call r10
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
lea rcx, [0x140074420]
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rdx, [rdi - 1]
mov rcx, r15
call fcn.14000eea0
mov r10, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
jmp 0x1400137b1
Function at 0x1400206c0
Capabilities:
Hash data using murmur3

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
xor ebp, ebp
xor r13d, r13d
mov r12, rdx
sar rdx, 0x3f
mov rbx, rcx
lea rdi, [r12 - 1]
shr rdx, 0x3e
mov rsi, r12
lea rax, [r12 + rdx]
and eax, 3
sub rax, rdx
sub rsi, rax
cmp r12, 3
jle 0x140020830
nop word [rax + rax]
cmp r12, rbp
jle 0x1400207f0
mov eax, dword [rbx + rbp]
add rbp, 4
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, r13d
rol eax, 0xd
cmp rbp, rsi
lea r13d, [rax + rax*4 - 0x19ab949c]
jl 0x140020708
mov rax, r12
xor edi, edi
sar rax, 0x3f
shr rax, 0x3e
lea r14, [r12 + rax]
and r14d, 3
sub r14, rax
test r14, r14
jle 0x1400207aa
lea rbp, [r12 - 1]
jmp 0x140020774
test r15, r15
js 0x140020781
movzx eax, byte [rbx + r15]
shl edi, 8
or edi, eax
test r14, r14
je 0x14002079b
sub r14, 1
lea r15, [r14 + rsi]
cmp r15, r12
jl 0x140020760
mov rdx, rbp
mov rcx, r15
shl edi, 8
call fcn.14000eea0
movzx eax, byte [rbx + r15]
or edi, eax
test r14, r14
jne 0x140020774
imul edi, edi, 0xcc9e2d51
rol edi, 0xf
imul edi, edi, 0x1b873593
xor r13d, r12d
mov eax, r13d
xor eax, edi
mov r13d, eax
shr r13d, 0x10
xor r13d, eax
imul r13d, r13d, 0x85ebca6b
mov edx, r13d
shr edx, 0xd
xor edx, r13d
imul edx, edx, 0xc2b2ae35
mov eax, edx
shr eax, 0x10
xor eax, edx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rbp
mov rdx, rdi
call fcn.14000eea0
mov eax, dword [rbx + rbp]
add rbp, 4
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, r13d
rol eax, 0xd
cmp rsi, rbp
lea r13d, [rax + rax*4 - 0x19ab949c]
jg 0x140020708
jmp 0x14002073a
xor esi, esi
jmp 0x14002073a
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [rcx]
mov rbx, qword [rcx + 8]
test rsi, rsi
js 0x140020870
lea rcx, [rbx + 8]
test rbx, rbx
mov rdx, rsi
cmove rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
jmp 0x1400206c0
lea rdx, [rsi - 1]
mov r8, rsi
xor ecx, ecx
call fcn.140012b30
jmp 0x140020852
Function at 0x140020840
Capabilities:
Hash data using murmur3

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
xor ebp, ebp
xor r13d, r13d
mov r12, rdx
sar rdx, 0x3f
mov rbx, rcx
lea rdi, [r12 - 1]
shr rdx, 0x3e
mov rsi, r12
lea rax, [r12 + rdx]
and eax, 3
sub rax, rdx
sub rsi, rax
cmp r12, 3
jle 0x140020830
nop word [rax + rax]
cmp r12, rbp
jle 0x1400207f0
mov eax, dword [rbx + rbp]
add rbp, 4
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, r13d
rol eax, 0xd
cmp rbp, rsi
lea r13d, [rax + rax*4 - 0x19ab949c]
jl 0x140020708
mov rax, r12
xor edi, edi
sar rax, 0x3f
shr rax, 0x3e
lea r14, [r12 + rax]
and r14d, 3
sub r14, rax
test r14, r14
jle 0x1400207aa
lea rbp, [r12 - 1]
jmp 0x140020774
test r15, r15
js 0x140020781
movzx eax, byte [rbx + r15]
shl edi, 8
or edi, eax
test r14, r14
je 0x14002079b
sub r14, 1
lea r15, [r14 + rsi]
cmp r15, r12
jl 0x140020760
mov rdx, rbp
mov rcx, r15
shl edi, 8
call fcn.14000eea0
movzx eax, byte [rbx + r15]
or edi, eax
test r14, r14
jne 0x140020774
imul edi, edi, 0xcc9e2d51
rol edi, 0xf
imul edi, edi, 0x1b873593
xor r13d, r12d
mov eax, r13d
xor eax, edi
mov r13d, eax
shr r13d, 0x10
xor r13d, eax
imul r13d, r13d, 0x85ebca6b
mov edx, r13d
shr edx, 0xd
xor edx, r13d
imul edx, edx, 0xc2b2ae35
mov eax, edx
shr eax, 0x10
xor eax, edx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rbp
mov rdx, rdi
call fcn.14000eea0
mov eax, dword [rbx + rbp]
add rbp, 4
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, r13d
rol eax, 0xd
cmp rsi, rbp
lea r13d, [rax + rax*4 - 0x19ab949c]
jg 0x140020708
jmp 0x14002073a
xor esi, esi
jmp 0x14002073a
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [rcx]
mov rbx, qword [rcx + 8]
test rsi, rsi
js 0x140020870
lea rcx, [rbx + 8]
test rbx, rbx
mov rdx, rsi
cmove rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
jmp 0x1400206c0
lea rdx, [rsi - 1]
mov r8, rsi
xor ecx, ecx
call fcn.140012b30
jmp 0x140020852

Function at 0x140020b60
Capabilities:
Link many functions at runtime

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [rdx]
mov rsi, qword [rdx + 8]
mov rbp, qword [r8]
mov rdi, qword [r8 + 8]
test rcx, rcx
mov rbx, rcx
je 0x140020bc6
lea rax, [0x140066160]
test r12, r12
lea rdx, [rsi + 8]
cmove rdx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x140020bb0
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
test rbp, rbp
jle 0x140020bc6
lea rdx, [rdi + 8]
mov rcx, rbx
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
jne 0x140020b9c
mov rbx, qword [0x1400747d8]
test rbx, rbx
je 0x140020c10
lea rax, [0x140066160]
test r12, r12
mov rcx, rbx
lea rdx, [rsi + 8]
cmove rdx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
jne 0x140020b9c
test rbp, rbp
jle 0x140020c24
lea rdx, [rdi + 8]
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sub.KERNEL32.dll_GetProcAddress
call fcn.14001c300
test rax, rax
mov rbx, rax
mov qword [0x1400747d8], rax
jne 0x140020bd2
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x14005a120
Capabilities:
Write file on windows

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

Function at 0x14005a190
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140074d04]
test esi, esi
mov rbx, rcx
jle 0x14005a2c0
mov rax, qword [0x140074d08]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14005a1db
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14005a265
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14005a1c0
mov rcx, rbx
call fcn.14005ac00
test rax, rax
mov rdi, rax
je 0x14005a2e2
mov rax, qword [0x140074d08]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14005ad40
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140074d08]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14005a2c7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14005a25e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14005a270
add dword [0x140074d04], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x140074d08]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14005a25e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14005a120
nop dword [rax]
xor esi, esi
jmp 0x14005a1e8
mov rax, qword [0x140074d08]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.14005a120
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.14005a120
nop
nop word cs:[rax + rax]
nop dword [rax]