joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006cc0
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x140006cf0
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x140006cef
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140006cf5
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x140006cef
mov eax, 0
jmp 0x140006cef

Function at 0x140007370
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140007320
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140010980
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 fcn.1400194c0
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.1400194c0
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 0x1400109f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1409c9034]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x140010b80
mov rax, qword [0x1409c9038]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x140010a3c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x140010ac5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x140010a20
mov rcx, rdi
call fcn.140011550
test rax, rax
mov r12, rax
je 0x140010bd2
mov rax, qword [0x1409c9038]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.140011690
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1409c9038]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140010bb5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140010abe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140010b30
add dword [0x1409c9034], 1
cmp ebx, 8
jae 0x140010af1
test bl, 4
jne 0x140010b90
test ebx, ebx
je 0x140010ae6
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x140010ba4
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x140010ae6
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x140010b0a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x1409c9038]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140010abe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140010980
xor esi, esi
jmp 0x140010a47
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x140010ae6
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x140010ae6
mov rax, qword [0x1409c9038]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.140010980
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.140010980
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x1400111a0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1409c90a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1409c9080]
test rbx, rbx
je 0x1400111f4
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 0x1400111eb
test rsi, rsi
je 0x1400111eb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400111d0
lea rcx, [0x1409c90a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140011550
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1409c2bf0]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x1400115bf
mov rcx, r9
call fcn.140011420
test eax, eax
je 0x1400115bf
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x1400115bd
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x1400115b4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400115bf
add rdx, 0x28
cmp rdx, r9
jne 0x1400115a0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x14001b970
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1409be6c0]
jmp 0x140012380

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

Disassembly:
lea rcx, [0x1409be6c0]
jmp 0x140012380
Function at 0x140002f70
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [fcn.140055d00]
xor ebx, ebx
mov r12, rcx
mov rdi, rdx
test rdx, rdx
jle 0x140002fb2
nop
mov rsi, qword [r12 + rbx*8]
mov ecx, 1
add rbx, 1
call rbp
xor r8d, r8d
mov rcx, rax
mov rdx, rsi
call fcn.140002cf0
cmp rbx, rdi
jne 0x140002f90
mov ecx, 1
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x1400581dc]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbp
mov rcx, rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sub.msvcrt.dll_fflush

Function at 0x1400031d0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
xor ebx, ebx
mov rbp, rcx
mov ecx, 0xfa0
call fcn.14000b7c0
mov rdi, rax
test rax, rax
je 0x1400032b5
lea r12, [rax + 0x10]
nop dword [rax]
mov rdx, qword [rdi]
test rdx, rdx
jg 0x140003213
sub rdx, 1
xor ecx, ecx
call fcn.14000e0e0
mov r9, rbp
mov r8d, 0xfa0
mov edx, 1
mov rcx, r12
call sub.msvcrt.dll_fread
mov rsi, rax
cmp rax, 0xfa0
je 0x1400032f0
mov rcx, rbp
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x140003351
test rsi, rsi
js 0x140003338
mov rdx, rsi
mov rcx, rdi
call fcn.14000beb0
mov rsi, rax
test rax, rax
je 0x140003320
mov rdx, qword [rax]
mov rcx, rbx
call fcn.14000c410
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, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, rbx
xor edx, edx
call fcn.14000c410
mov rbx, rax
mov rdx, 0xffffffffffffffff
xor ecx, ecx
call fcn.14000e0e0
mov r9, rbp
mov r8d, 0xfa0
mov edx, 1
mov ecx, 0x10
call sub.msvcrt.dll_fread
mov rsi, rax
cmp rax, 0xfa0
jne 0x140003238
jmp 0x1400032a8
mov rdx, qword [rdi]
mov rcx, rbx
call fcn.14000c410
mov r8, qword [rdi]
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 [rdi]
add qword [rbx], rax
jmp 0x140003200
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14000c410
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rsi
call fcn.14000df40
jmp 0x140003251
mov rcx, rbp
call fcn.140002b70
nop
nop word [rax + rax]
Function at 0x140003360
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov rsi, rdx
test rdx, rdx
js 0x1400034a0
mov rcx, rsi
call fcn.14000b7c0
mov rbx, rax
test rax, rax
je 0x1400034c8
mov rdx, qword [rax]
test rdx, rdx
jle 0x140003410
test rsi, rsi
js 0x140003424
lea rcx, [rbx + 0x10]
mov r9, rdi
mov r8, rsi
mov edx, 1
call sub.msvcrt.dll_fread
mov rcx, rdi
mov rbp, rax
cmp rsi, rax
je 0x140003440
call sub.msvcrt.dll_ferror
mov rcx, rdi
test eax, eax
jne 0x140003509
call sub.msvcrt.dll_fgetc
mov rdx, rdi
mov r12d, eax
mov ecx, eax
call sub.msvcrt.dll_ungetc
test r12d, r12d
jns 0x140003455
cmp rsi, rbp
jle 0x140003491
test rbp, rbp
js 0x1400034f0
mov rdx, rbp
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14000beb0
sub rdx, 1
xor ecx, ecx
call fcn.14000e0e0
test rsi, rsi
jns 0x14000339e
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rsi
call fcn.14000df40
jmp 0x14000339e
call sub.msvcrt.dll_fgetc
mov rdx, rdi
mov esi, eax
mov ecx, eax
call sub.msvcrt.dll_ungetc
test esi, esi
js 0x140003491
mov rcx, rdi
call fcn.1400031d0
mov rsi, rax
test rax, rax
je 0x1400034d8
mov rdx, qword [rax]
mov rcx, rbx
call fcn.14000c410
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, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rsi
call fcn.14000df40
mov rcx, rsi
call fcn.14000b7c0
mov rbx, rax
test rax, rax
jne 0x14000338d
mov rdx, 0xffffffffffffffff
jmp 0x140003414
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14000c410
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbp
call fcn.14000df40
jmp 0x1400033fa
call fcn.140002b70
nop
nop
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
xor ecx, ecx
call qword [fcn.140055d00]
cmp rbx, rax
je 0x140003563
mov rsi, qword [0x140057160]
mov rcx, rbx
call rsi
xor edx, edx
mov r8d, 2
mov rcx, rbx
mov rdi, rax
mov rbp, qword [0x140057168]
call rbp
mov rcx, rbx
call rsi
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call rbp
test rsi, rsi
jg 0x140003578
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.1400031d0
mov rdx, rsi
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140003360
Function at 0x140003510
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov rsi, rdx
test rdx, rdx
js 0x1400034a0
mov rcx, rsi
call fcn.14000b7c0
mov rbx, rax
test rax, rax
je 0x1400034c8
mov rdx, qword [rax]
test rdx, rdx
jle 0x140003410
test rsi, rsi
js 0x140003424
lea rcx, [rbx + 0x10]
mov r9, rdi
mov r8, rsi
mov edx, 1
call sub.msvcrt.dll_fread
mov rcx, rdi
mov rbp, rax
cmp rsi, rax
je 0x140003440
call sub.msvcrt.dll_ferror
mov rcx, rdi
test eax, eax
jne 0x140003509
call sub.msvcrt.dll_fgetc
mov rdx, rdi
mov r12d, eax
mov ecx, eax
call sub.msvcrt.dll_ungetc
test r12d, r12d
jns 0x140003455
cmp rsi, rbp
jle 0x140003491
test rbp, rbp
js 0x1400034f0
mov rdx, rbp
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14000beb0
sub rdx, 1
xor ecx, ecx
call fcn.14000e0e0
test rsi, rsi
jns 0x14000339e
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rsi
call fcn.14000df40
jmp 0x14000339e
call sub.msvcrt.dll_fgetc
mov rdx, rdi
mov esi, eax
mov ecx, eax
call sub.msvcrt.dll_ungetc
test esi, esi
js 0x140003491
mov rcx, rdi
call fcn.1400031d0
mov rsi, rax
test rax, rax
je 0x1400034d8
mov rdx, qword [rax]
mov rcx, rbx
call fcn.14000c410
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, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rsi
call fcn.14000df40
mov rcx, rsi
call fcn.14000b7c0
mov rbx, rax
test rax, rax
jne 0x14000338d
mov rdx, 0xffffffffffffffff
jmp 0x140003414
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14000c410
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbp
call fcn.14000df40
jmp 0x1400033fa
call fcn.140002b70
nop
nop
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
xor ecx, ecx
call qword [fcn.140055d00]
cmp rbx, rax
je 0x140003563
mov rsi, qword [0x140057160]
mov rcx, rbx
call rsi
xor edx, edx
mov r8d, 2
mov rcx, rbx
mov rdi, rax
mov rbp, qword [0x140057168]
call rbp
mov rcx, rbx
call rsi
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call rbp
test rsi, rsi
jg 0x140003578
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.1400031d0
mov rdx, rsi
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140003360

Function at 0x140003930
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
je 0x14000394f
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 0x140003a00
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 2
call qword [fcn.140055d00]
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 0x140013930
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 ebx, ebx
xor r13d, r13d
mov rdi, rdx
sar rdx, 0x3f
mov rbp, rcx
shr rdx, 0x3e
mov r12, rdi
lea rsi, [rdi - 1]
lea rax, [rdi + rdx]
and eax, 3
sub rax, rdx
sub r12, rax
cmp rdi, 3
jle 0x140013aa0
nop dword [rax]
cmp rdi, rbx
jle 0x140013a60
mov eax, dword [rbp + rbx]
add rbx, 4
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, r13d
rol eax, 0xd
lea r13d, [rax + rax*4 - 0x19ab949c]
cmp rbx, r12
jl 0x140013978
mov rax, rdi
xor ebx, ebx
sar rax, 0x3f
shr rax, 0x3e
lea r14, [rdi + rax]
and r14d, 3
sub r14, rax
test r14, r14
jle 0x140013a1c
lea rsi, [rdi - 1]
jmp 0x1400139e5
test r15, r15
js 0x1400139f2
movzx eax, byte [rbp + r15]
shl ebx, 8
or ebx, eax
test r14, r14
je 0x140013a0d
sub r14, 1
lea r15, [r12 + r14]
cmp r15, rdi
jl 0x1400139d0
mov rdx, rsi
mov rcx, r15
shl ebx, 8
call fcn.14000e0e0
movzx eax, byte [rbp + r15]
or ebx, eax
test r14, r14
jne 0x1400139e5
imul ebx, ebx, 0xcc9e2d51
rol ebx, 0xf
imul ebx, ebx, 0x1b873593
xor r13d, edi
mov eax, r13d
xor eax, ebx
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, rbx
mov rdx, rsi
call fcn.14000e0e0
mov eax, dword [rbp + rbx]
add rbx, 4
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, r13d
rol eax, 0xd
lea r13d, [rax + rax*4 - 0x19ab949c]
cmp r12, rbx
jg 0x140013978
jmp 0x1400139ab
xor r12d, r12d
jmp 0x1400139ab
push rbx
sub rsp, 0x20
xor edx, edx
mov rbx, rcx
test rcx, rcx
je 0x140013acb
mov rdx, qword [rcx]
test rdx, rdx
js 0x140013ae0
add rbx, 0x10
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x140013930
lea rax, [rdx - 1]
mov r8, rdx
xor ecx, ecx
mov rdx, rax
call fcn.140010bd0
mov rdx, qword [rbx]
jmp 0x140013ac7
Function at 0x140013ab0
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 ebx, ebx
xor r13d, r13d
mov rdi, rdx
sar rdx, 0x3f
mov rbp, rcx
shr rdx, 0x3e
mov r12, rdi
lea rsi, [rdi - 1]
lea rax, [rdi + rdx]
and eax, 3
sub rax, rdx
sub r12, rax
cmp rdi, 3
jle 0x140013aa0
nop dword [rax]
cmp rdi, rbx
jle 0x140013a60
mov eax, dword [rbp + rbx]
add rbx, 4
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, r13d
rol eax, 0xd
lea r13d, [rax + rax*4 - 0x19ab949c]
cmp rbx, r12
jl 0x140013978
mov rax, rdi
xor ebx, ebx
sar rax, 0x3f
shr rax, 0x3e
lea r14, [rdi + rax]
and r14d, 3
sub r14, rax
test r14, r14
jle 0x140013a1c
lea rsi, [rdi - 1]
jmp 0x1400139e5
test r15, r15
js 0x1400139f2
movzx eax, byte [rbp + r15]
shl ebx, 8
or ebx, eax
test r14, r14
je 0x140013a0d
sub r14, 1
lea r15, [r12 + r14]
cmp r15, rdi
jl 0x1400139d0
mov rdx, rsi
mov rcx, r15
shl ebx, 8
call fcn.14000e0e0
movzx eax, byte [rbp + r15]
or ebx, eax
test r14, r14
jne 0x1400139e5
imul ebx, ebx, 0xcc9e2d51
rol ebx, 0xf
imul ebx, ebx, 0x1b873593
xor r13d, edi
mov eax, r13d
xor eax, ebx
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, rbx
mov rdx, rsi
call fcn.14000e0e0
mov eax, dword [rbp + rbx]
add rbx, 4
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, r13d
rol eax, 0xd
lea r13d, [rax + rax*4 - 0x19ab949c]
cmp r12, rbx
jg 0x140013978
jmp 0x1400139ab
xor r12d, r12d
jmp 0x1400139ab
push rbx
sub rsp, 0x20
xor edx, edx
mov rbx, rcx
test rcx, rcx
je 0x140013acb
mov rdx, qword [rcx]
test rdx, rdx
js 0x140013ae0
add rbx, 0x10
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x140013930
lea rax, [rdx - 1]
mov r8, rdx
xor ecx, ecx
mov rdx, rax
call fcn.140010bd0
mov rdx, qword [rbx]
jmp 0x140013ac7

Function at 0x14001ea40
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, qword [rcx]
mov rdi, qword [rcx + 8]
mov rbx, rsi
cmp rdi, rsi
jge 0x14001ea62
lea rcx, [0x14005a260]
call fcn.140001cb0
sub rdi, rsi
mov r8, rdi
je 0x14001eac9
mov r9, qword [0x14007cde0]
mov rcx, qword [0x14007cde8]
cmp rdi, 0xffffffffffffffff
je 0x14001ead8
mov rax, 0xffffffffffffffff
xor edx, edx
div rdi
lea rax, [rcx + r9]
xor rcx, r9
ror r9, 9
mov rdi, rdx
mov r10, rcx
xor r9, rcx
ror rcx, 0x1c
shl r10, 0xe
xor r9, r10
add rdi, rax
jb 0x14001ea8a
add r8, 1
xor edx, edx
mov qword [0x14007cde0], r9
div r8
mov qword [0x14007cde8], rcx
lea rbx, [rdx + rsi]
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rax, r9
mov rdx, r9
add r9, rcx
xor rax, rcx
ror rdx, 9
lea rbx, [r9 + rsi]
mov r8, rax
xor rdx, rax
ror rax, 0x1c
shl r8, 0xe
mov qword [0x14007cde8], rax
mov rax, rbx
xor rdx, r8
mov qword [0x14007cde0], rdx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x140041330
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rsi
push rbx
test rdx, rdx
mov eax, r8d
lea r8, [rdx + 7]
mov r9, rcx
cmovns r8, rdx
mov r10, rdx
xor r11d, r11d
lea rcx, [0x14005e560]
sar r8, 3
cmp rdx, 7
jle 0x140041400
nop
mov ebx, dword [r9 + r11*8 + 4]
xor eax, dword [r9 + r11*8]
add r11, 1
mov esi, ebx
movzx edx, bl
shr esi, 0x18
mov edx, dword [rcx + rdx*4 + 0xc00]
xor edx, dword [rcx + rsi*4]
movzx esi, al
xor edx, dword [rcx + rsi*4 + 0x1c00]
mov esi, eax
shr esi, 0x18
xor edx, dword [rcx + rsi*4 + 0x1000]
movzx esi, bh
shr ebx, 0x10
movzx ebx, bl
xor edx, dword [rcx + rsi*4 + 0x800]
xor edx, dword [rcx + rbx*4 + 0x400]
movzx ebx, ah
shr eax, 0x10
movzx eax, al
xor edx, dword [rcx + rbx*4 + 0x1800]
xor edx, dword [rcx + rax*4 + 0x1400]
mov eax, edx
cmp r8, r11
jg 0x140041360
shl r8, 3
cmp r10, r8
jle 0x1400413f8
add r8, r9
lea rcx, [0x14005e560]
add r9, r10
movzx edx, byte [r8]
add r8, 1
xor edx, eax
shr eax, 8
movzx edx, dl
xor eax, dword [rcx + rdx*4]
cmp r9, r8
jne 0x1400413e0
pop rbx
pop rsi
ret
xor r8d, r8d
jmp 0x1400413ce

Function at 0x14004c310
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rbx, rcx
lea rax, [rbp + 0x28]
mov ecx, 2
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
mov qword [rbp - 8], rax
call fcn.140055d00
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 [rbp - 8]
mov ecx, 2
call fcn.140055d00
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 0x14004c380
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
movsxd rsi, dword [0x1400818d4]
mov rbx, rcx
test esi, esi
jle 0x14004c4b0
mov rax, qword [0x1400818d8]
xor r9d, r9d
add rax, 0x18
nop dword [rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14004c3cb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14004c453
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14004c3b0
mov rcx, rbx
call fcn.14004ce30
mov rdi, rax
test rax, rax
je 0x14004c4d2
mov rax, qword [0x1400818d8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14004cf70
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400818d8]
lea rdx, [rbp - 0x30]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14004c4b7
mov eax, dword [rbp - 0xc]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14004c44c
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14004c460
add dword [0x1400818d4], 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 2
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400818d8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14004c44c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14004c310
nop word [rax + rax]
xor esi, esi
jmp 0x14004c3d8
mov rax, qword [0x1400818d8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14004c310
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14004c310
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14004ca60
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
lea r13, [0x140081940]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140081920]
test rbx, rbx
je 0x14004cac5
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [rbx]
call r12
mov rsi, rax
call rdi
test rsi, rsi
je 0x14004cabc
test eax, eax
jne 0x14004cabc
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14004caa0
mov rcx, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14004ce30
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140063530]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14004ce50
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14004ce58
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14004ce50
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14004cead
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 0x14004cea4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14004ce50
add rax, 0x28
cmp rax, r9
jne 0x14004ce90
xor eax, eax
ret

Function at 0x14004ceb0
Capabilities:
Parse pe header

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

Function at 0x14004cf70
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140063530]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14004cf8f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14004cf98
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret