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

Disassembly:
push r9
add qword [rsp + 0x30], 0x7fe490a3
movabs r9, 0x4d4b2bf024b512bc
test r9, r9
add qword [rsp + 8], 0xfffffffffffb164c
add qword [rsp + 0x28], 0xfffffffffffe20fc
mov rdi, r9
sub di, 0x5307
lea rdi, [rdi + r9*4 + 0x385a22b5]
lea r9, [rdi + rdi + 0x150542e9]
mov rdi, qword [rsp + 8]
mov rdi, qword [rdi]
or r9b, r9b
mov qword [rsp + 8], r9
push rdi
call fcn.1801a95cc
mov byte [rdi + rax], pe_nt_image_headers64
mov edx, 0x47432e20
mov esi, 0x474cedb4
mov dl, 0x77
movabs qword [0x6b4fb8b1564193b8], rax
sti
pop rsi
mov r13d, 0x47569bef
rcr dword [rbp - 0x7cb8a131], 1
test dword [rbx - 0x4c94475e], esp
int1
pop rdx
xor eax, 0xb8a204ca
mov dl, 0x62
test eax, 0x7ef4b8a4
sbb al, 0x5d
xchg rdx, rax
fist word [rdx + 0x47]
test byte [rcx + 0x78], al
mov ebp, 0x6467b5b8
scasd eax, dword [rdi]
mov eax, 0x40c99541
loope 0x18017d38b
invalid

Function at 0x1801cd0c4
Capabilities:
Execute syscall

Disassembly:
test r11, r11
push rdx
lea rax, [rax + r11 - 0x39245463]
movzx r11d, r11w
jo 0x1800d5417
push r8
not r11w
movabs r8, 0x496c727c07461365
add r8d, 0xf4519b7
mov r11b, 0xeb
call fcn.1800674dc
lea r11, [r11 + r11*4 + 0x39245464]
jge 0x1800b8838

Function at 0x1801d29c1
Capabilities:
Encode data using xor

Disassembly:
insb byte [rdi], dx
call fcn.1800d0e9d
jae 0x1800ad1c1
cmp edx, edx
mul dword fs:[rbx - 0x5f]
fdivr dword [rax]
outsd dx, dword [rsi]
xor al, 0xfd
cmpsq qword [rsi], qword [rdi]
movabs dword [0x2c66eac294d11ef9], eax
add dword [rcx + 0x39], ecx
and eax, 0xfdbe66e6
pop rbp
mov ah, 0x92
cli
loop 0x1801d2976
invalid
Function at 0x140003060
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.140004bc0
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.140004bc0
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 0x1400030d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000b0a4]
mov rbx, rcx
test esi, esi
jle 0x140003200
mov rax, qword [0x14000b0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000311b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400031a5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140003100
mov rcx, rbx
call fcn.140003b20
mov rdi, rax
test rax, rax
je 0x140003222
mov rax, qword [0x14000b0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003c60
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000b0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003207
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000319e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400031b0
add dword [0x14000b0a4], 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 [0x14000b0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000319e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140003060
nop dword [rax]
xor esi, esi
jmp 0x140003128
mov rax, qword [0x14000b0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140003060
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140003060
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003790
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000b100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000b0e0]
test rbx, rbx
je 0x1400037ec
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 0x1400037e3
test rsi, rsi
je 0x1400037e3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400037c8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003b20
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140008070]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003b40
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003b48
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003b40
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140003b9d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003b94
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003b40
add rax, 0x28
cmp rax, r9
jne 0x140003b80
xor eax, eax
ret

Function at 0x140003ba0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140008070]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140003bbf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003bc8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140003bbf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003c60
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140008070]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003c7f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003c88
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x402850
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
xor ebx, ebx
mov r13, 0xffffffffffffffff
mov rbp, rcx
mov ecx, 0xfa0
call fcn.00408e10
lea r12, [rax + 0x10]
test rax, rax
mov rsi, rax
je 0x402950
cmp qword [rsi], 0
jne 0x402892
mov rdx, r13
xor ecx, ecx
call fcn.0040c0f0
mov r9, rbp
mov r8d, 0xfa0
mov edx, 1
mov rcx, r12
call sub.msvcrt.dll_fread
cmp rax, 0xfa0
mov rdi, rax
je 0x402920
mov rcx, rbp
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x4029c9
test rdi, rdi
js 0x4029b0
mov rcx, rsi
mov rdx, rdi
call fcn.00409420
test rax, rax
mov rsi, rax
je 0x402993
mov rdx, qword [rax]
mov rcx, rbx
call fcn.00408f00
lea rdx, [rsi + 0x10]
mov rbx, rax
mov rax, qword [rax]
lea rcx, [rbx + rax + 0x10]
mov rax, qword [rsi]
lea r8, [rax + 1]
call sub.msvcrt.dll_memcpy
mov rax, qword [rsi]
add qword [rbx], rax
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rdx, qword [rsi]
mov rcx, rbx
call fcn.00408f00
mov r8, qword [rsi]
mov rdx, r12
mov rbx, rax
mov rax, qword [rax]
add r8, 1
lea rcx, [rbx + rax + 0x10]
call sub.msvcrt.dll_memcpy
mov rax, qword [rsi]
add qword [rbx], rax
jmp 0x402882
mov rbx, rax
jmp 0x402962
mov rcx, rbx
xor edx, edx
call fcn.00408f00
mov rbx, rax
xor ecx, ecx
mov rdx, r13
call fcn.0040c0f0
mov r9, rbp
mov edx, 1
mov rcx, r12
mov r8d, 0xfa0
call sub.msvcrt.dll_fread
cmp rax, 0xfa0
mov rdi, rax
jne 0x4028b3
jmp 0x402955
xor edx, edx
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp fcn.00408f00
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rdi
call fcn.0040bf50
jmp 0x4028cc
mov rcx, rbp
call fcn.00402610
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x4029e0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
test rdx, rdx
mov rdi, rcx
mov rbx, rdx
js 0x402b10
mov rcx, rbx
call fcn.00408e10
test rax, rax
mov rsi, rax
je 0x402a85
cmp qword [rax], 0
je 0x402a85
test rbx, rbx
js 0x402a98
lea rcx, [rsi + 0x10]
mov r9, rdi
mov r8, rbx
mov edx, 1
call sub.msvcrt.dll_fread
mov rcx, rdi
cmp rbx, rax
mov rbp, rax
je 0x402ab1
call sub.msvcrt.dll_ferror
mov rcx, rdi
test eax, eax
jne 0x402b5d
call sub.msvcrt.dll_fgetc
mov rdx, rdi
mov r12d, eax
mov ecx, eax
call sub.msvcrt.dll_ungetc
test r12d, r12d
jns 0x402ac6
cmp rbx, rbp
jle 0x402b02
test rbp, rbp
js 0x402b44
mov rdx, rbp
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.00409420
xor ecx, ecx
mov rdx, 0xffffffffffffffff
call fcn.0040c0f0
test rbx, rbx
jns 0x402a18
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbx
call fcn.0040bf50
jmp 0x402a18
call sub.msvcrt.dll_fgetc
mov rdx, rdi
mov ebx, eax
mov ecx, eax
call sub.msvcrt.dll_ungetc
test ebx, ebx
js 0x402b02
mov rcx, rdi
call fcn.00402850
test rax, rax
mov rbx, rax
je 0x402b30
mov rdx, qword [rax]
mov rcx, rsi
call fcn.00408f00
lea rdx, [rbx + 0x10]
mov rsi, rax
mov rax, qword [rax]
lea rcx, [rsi + rax + 0x10]
mov rax, qword [rbx]
lea r8, [rax + 1]
call sub.msvcrt.dll_memcpy
mov rax, qword [rbx]
add qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbx
call fcn.0040bf50
jmp 0x4029f9
xor edx, edx
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.00408f00
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbp
call fcn.0040bf50
jmp 0x402a70
call fcn.00402610
nop
nop dword [rax]
nop word cs:[rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [fcn.00449e10]
cmp rax, rbx
je 0x402bc0
mov rcx, rbx
call fcn.004498f0
xor edx, edx
mov r8d, 2
mov rcx, rbx
mov rdi, rax
call fcn.00449b40
mov rcx, rbx
call fcn.004498f0
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call fcn.00449b40
test rsi, rsi
jg 0x402bd0
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp fcn.00402850
mov rdx, rsi
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp fcn.004029e0
Function at 0x402b70
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
test rdx, rdx
mov rdi, rcx
mov rbx, rdx
js 0x402b10
mov rcx, rbx
call fcn.00408e10
test rax, rax
mov rsi, rax
je 0x402a85
cmp qword [rax], 0
je 0x402a85
test rbx, rbx
js 0x402a98
lea rcx, [rsi + 0x10]
mov r9, rdi
mov r8, rbx
mov edx, 1
call sub.msvcrt.dll_fread
mov rcx, rdi
cmp rbx, rax
mov rbp, rax
je 0x402ab1
call sub.msvcrt.dll_ferror
mov rcx, rdi
test eax, eax
jne 0x402b5d
call sub.msvcrt.dll_fgetc
mov rdx, rdi
mov r12d, eax
mov ecx, eax
call sub.msvcrt.dll_ungetc
test r12d, r12d
jns 0x402ac6
cmp rbx, rbp
jle 0x402b02
test rbp, rbp
js 0x402b44
mov rdx, rbp
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.00409420
xor ecx, ecx
mov rdx, 0xffffffffffffffff
call fcn.0040c0f0
test rbx, rbx
jns 0x402a18
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbx
call fcn.0040bf50
jmp 0x402a18
call sub.msvcrt.dll_fgetc
mov rdx, rdi
mov ebx, eax
mov ecx, eax
call sub.msvcrt.dll_ungetc
test ebx, ebx
js 0x402b02
mov rcx, rdi
call fcn.00402850
test rax, rax
mov rbx, rax
je 0x402b30
mov rdx, qword [rax]
mov rcx, rsi
call fcn.00408f00
lea rdx, [rbx + 0x10]
mov rsi, rax
mov rax, qword [rax]
lea rcx, [rsi + rax + 0x10]
mov rax, qword [rbx]
lea r8, [rax + 1]
call sub.msvcrt.dll_memcpy
mov rax, qword [rbx]
add qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbx
call fcn.0040bf50
jmp 0x4029f9
xor edx, edx
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.00408f00
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbp
call fcn.0040bf50
jmp 0x402a70
call fcn.00402610
nop
nop dword [rax]
nop word cs:[rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [fcn.00449e10]
cmp rax, rbx
je 0x402bc0
mov rcx, rbx
call fcn.004498f0
xor edx, edx
mov r8d, 2
mov rcx, rbx
mov rdi, rax
call fcn.00449b40
mov rcx, rbx
call fcn.004498f0
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call fcn.00449b40
test rsi, rsi
jg 0x402bd0
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp fcn.00402850
mov rdx, rsi
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp fcn.004029e0

Function at 0x4030e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r8, qword [rsp + 0x60]
mov rsi, rcx
lea rcx, [rdx + r9]
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
movsxd rbx, eax
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x403118
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, rsi
call fcn.00402610
nop
nop dword [rax + rax]
nop word cs:[rax + rax]

Function at 0x403210
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 0x40322f
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp sub.msvcrt.dll_fflush
Function at 0x403480
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 2
call qword [fcn.00449e10]
mov r8d, 0x4b
mov edx, 1
lea rcx, str._GC__cannot_register_thread_local_variable__too_many_thread_local_variables
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop
ret

Function at 0x413b10
Capabilities:
Hash data using murmur3

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
test rdx, rdx
mov r14, rcx
mov r12, rdx
lea r13, [rdx + 3]
cmovns r13, rdx
xor ebx, ebx
xor edi, edi
lea rsi, [rdx - 1]
and r13, 0xfffffffffffffffc
jg 0x413b6b
jmp 0x413b80
mov ecx, dword [r14 + rbx]
lea rbp, [rbx + 4]
mov rbx, rbp
imul eax, ecx, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, edi
rol eax, 0xd
cmp r13, rbp
lea edi, [rax + rax*4 - 0x19ab949c]
jle 0x413b82
cmp r12, rbx
ja 0x413b40
mov rdx, rsi
mov rcx, rbx
call fcn.0040c0f0
jmp 0x413b40
xor ebp, ebp
mov rax, r12
sar rax, 0x3f
shr rax, 0x3e
lea rsi, [r12 + rax]
and esi, 3
sub rsi, rax
test rsi, rsi
jle 0x413c65
lea r13, [rsi - 1]
lea rbx, [rbp + r13]
cmp r12, rbx
jbe 0x413c41
test r13, r13
movzx ebx, byte [r14 + rbx]
je 0x413bec
sub rsi, 2
lea r13, [rbp + rsi]
cmp r13, r12
jae 0x413c53
movzx eax, byte [r14 + r13]
shl ebx, 8
or ebx, eax
test rsi, rsi
je 0x413bec
cmp rbp, r12
jae 0x413c32
movzx eax, byte [r14 + rbp]
shl ebx, 8
or ebx, eax
imul ebx, ebx, 0xcc9e2d51
rol ebx, 0xf
imul ebx, ebx, 0x1b873593
mov eax, edi
xor eax, r12d
xor eax, ebx
mov ebx, eax
shr ebx, 0x10
xor ebx, eax
imul ebx, ebx, 0x85ebca6b
mov eax, ebx
shr eax, 0xd
xor eax, ebx
imul eax, eax, 0xc2b2ae35
mov edx, eax
shr edx, 0x10
xor eax, edx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
lea rdx, [r12 - 1]
mov rcx, rbp
call fcn.0040c0f0
jmp 0x413be2
lea rdx, [r12 - 1]
mov rcx, rbx
call fcn.0040c0f0
jmp 0x413bb2
lea rdx, [r12 - 1]
mov rcx, r13
call fcn.0040c0f0
jmp 0x413bce
xor ebx, ebx
jmp 0x413bfb
sub rsp, 0x38
xor edx, edx
test rcx, rcx
je 0x413c85
mov rdx, qword [rcx]
test rdx, rdx
je 0x413c85
je 0x413c92
add rcx, 0x10
add rsp, 0x38
jmp 0x413b10
mov qword [rsp + 0x28], rcx
call fcn.0040eca0
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rcx]
add rcx, 0x10
add rsp, 0x38
jmp 0x413b10
Function at 0x413c70
Capabilities:
Hash data using murmur3

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
test rdx, rdx
mov r14, rcx
mov r12, rdx
lea r13, [rdx + 3]
cmovns r13, rdx
xor ebx, ebx
xor edi, edi
lea rsi, [rdx - 1]
and r13, 0xfffffffffffffffc
jg 0x413b6b
jmp 0x413b80
mov ecx, dword [r14 + rbx]
lea rbp, [rbx + 4]
mov rbx, rbp
imul eax, ecx, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, edi
rol eax, 0xd
cmp r13, rbp
lea edi, [rax + rax*4 - 0x19ab949c]
jle 0x413b82
cmp r12, rbx
ja 0x413b40
mov rdx, rsi
mov rcx, rbx
call fcn.0040c0f0
jmp 0x413b40
xor ebp, ebp
mov rax, r12
sar rax, 0x3f
shr rax, 0x3e
lea rsi, [r12 + rax]
and esi, 3
sub rsi, rax
test rsi, rsi
jle 0x413c65
lea r13, [rsi - 1]
lea rbx, [rbp + r13]
cmp r12, rbx
jbe 0x413c41
test r13, r13
movzx ebx, byte [r14 + rbx]
je 0x413bec
sub rsi, 2
lea r13, [rbp + rsi]
cmp r13, r12
jae 0x413c53
movzx eax, byte [r14 + r13]
shl ebx, 8
or ebx, eax
test rsi, rsi
je 0x413bec
cmp rbp, r12
jae 0x413c32
movzx eax, byte [r14 + rbp]
shl ebx, 8
or ebx, eax
imul ebx, ebx, 0xcc9e2d51
rol ebx, 0xf
imul ebx, ebx, 0x1b873593
mov eax, edi
xor eax, r12d
xor eax, ebx
mov ebx, eax
shr ebx, 0x10
xor ebx, eax
imul ebx, ebx, 0x85ebca6b
mov eax, ebx
shr eax, 0xd
xor eax, ebx
imul eax, eax, 0xc2b2ae35
mov edx, eax
shr edx, 0x10
xor eax, edx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
lea rdx, [r12 - 1]
mov rcx, rbp
call fcn.0040c0f0
jmp 0x413be2
lea rdx, [r12 - 1]
mov rcx, rbx
call fcn.0040c0f0
jmp 0x413bb2
lea rdx, [r12 - 1]
mov rcx, r13
call fcn.0040c0f0
jmp 0x413bce
xor ebx, ebx
jmp 0x413bfb
sub rsp, 0x38
xor edx, edx
test rcx, rcx
je 0x413c85
mov rdx, qword [rcx]
test rdx, rdx
je 0x413c85
je 0x413c92
add rcx, 0x10
add rsp, 0x38
jmp 0x413b10
mov qword [rsp + 0x28], rcx
call fcn.0040eca0
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rcx]
add rcx, 0x10
add rsp, 0x38
jmp 0x413b10
Function at 0x4486e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0051bb24]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x448868
mov rax, qword [0x0051bb28]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x44872c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x4487b5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x448710
mov rcx, rbx
call fcn.00449380
test rax, rax
mov r12, rax
je 0x44889d
mov rax, qword [0x0051bb28]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.004494b0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0051bb28]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x448880
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4487ae
sub eax, 0x40
and eax, 0xffffffbf
jne 0x448810
add dword [0x0051bb24], 1
cmp edi, 8
jae 0x4487e3
test dil, 4
jne 0x448854
test edi, edi
je 0x4487d8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x44886f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x4487d8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x4487fc
jmp 0x4487d8
add rsi, qword [0x0051bb28]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4487ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00449fb0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x4487d8
xor esi, esi
jmp 0x448737
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x4487d8
mov rax, qword [0x0051bb28]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00449fb0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00449fb0
nop
nop dword [rax]

Function at 0x448ff0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0051be00]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0051bde0]
test rbx, rbx
je 0x449044
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x44903b
test rsi, rsi
je 0x44903b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x449020
lea rcx, [0x0051be00]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x449380
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0050b9f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x4493ed
mov rcx, r8
call fcn.00449260
test eax, eax
je 0x4493ed
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4493ed
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4493e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4493ef
add rax, 0x28
cmp rax, r9
jne 0x4493d0
xor eax, eax
add rsp, 0x28
ret

Function at 0x449fb0
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp fcn.00401510
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 fcn.00449e10
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.00449e10
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x449ac4
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov eax, dword [rbp + 0x20]
cmp eax, 0
jg 0x449aec
jmp 0x449b96
mov rax, qword [rbp + 0x18]
mov qword [rbp - 8], rax
mov eax, dword [rbp + 0x20]
movsxd rax, eax
mov qword [rbp - 0x10], rax
movabs rax, 0
mov qword [rbp - 0x18], rax
call sub.msvcrt.dll___iob_func
add rax, 0x30
mov qword [rbp - 0x20], rax
mov eax, dword [rbp + 0x10]
cmp eax, 2
jne 0x449b32
call sub.msvcrt.dll___iob_func
add rax, 0x60
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x10]
cmp rax, 0
jg 0x449b45
jmp 0x449b96
mov rax, qword [rbp - 0x20]
mov r9, rax
mov rax, qword [rbp - 0x10]
mov r8, rax
movabs rax, 1
mov r11, rax
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fwrite
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rcx, qword [rbp - 8]
add rcx, rax
mov qword [rbp - 8], rcx
mov rax, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x18]
sub rax, rcx
mov qword [rbp - 0x10], rax
jmp 0x449b32
leave
ret

Function at 0x449acf
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov eax, dword [rbp + 0x20]
cmp eax, 0
jg 0x449aec
jmp 0x449b96
mov rax, qword [rbp + 0x18]
mov qword [rbp - 8], rax
mov eax, dword [rbp + 0x20]
movsxd rax, eax
mov qword [rbp - 0x10], rax
movabs rax, 0
mov qword [rbp - 0x18], rax
call sub.msvcrt.dll___iob_func
add rax, 0x30
mov qword [rbp - 0x20], rax
mov eax, dword [rbp + 0x10]
cmp eax, 2
jne 0x449b32
call sub.msvcrt.dll___iob_func
add rax, 0x60
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x10]
cmp rax, 0
jg 0x449b45
jmp 0x449b96
mov rax, qword [rbp - 0x20]
mov r9, rax
mov rax, qword [rbp - 0x10]
mov r8, rax
movabs rax, 1
mov r11, rax
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fwrite
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rcx, qword [rbp - 8]
add rcx, rax
mov qword [rbp - 8], rcx
mov rax, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x18]
sub rax, rcx
mov qword [rbp - 0x10], rax
jmp 0x449b32
leave
ret