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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400ca2c2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400ca309
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400ca362
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400ca320
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400ca3a3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400e28a2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400e28a3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400ca370
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400ca3c0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400ca444
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400ca444
dec r8
sub rdx, 1
jne 0x1400ca42a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400cbe48
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400cbe92
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400cbe92
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400cbe92
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400cbe92
cmp dword [rcx + 0x84], 0xe
jbe 0x1400cbe92
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400cbe94
xor al, al
add rsp, 0x28
ret

Function at 0x140001b7c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001bc6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001bc6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001bc6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001bc6
cmp dword [rcx + 0x84], 0xe
jbe 0x140001bc6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001bc8
xor al, al
add rsp, 0x28
ret
Function at 0x140003940
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003974
cmp word [rcx], 0x5a4d
jne 0x140003974
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003974
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003974
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003880
test eax, eax
jne 0x140003990
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.1400038f0
test rax, rax
je 0x140003985
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.14000413f
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004040
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.140003fe0
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 0x140004494
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x14000eb38]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x14000eb34]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400044e2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400044da
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400045c9
inc ebx
add rax, 0x28
jmp 0x1400044ba
mov rcx, r12
call fcn.140004cc1
mov rbp, rax
test rax, rax
jne 0x140004501
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140004430
movsxd rbx, ebx
mov rax, qword [0x14000eb38]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.140004d6f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000eb38]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004563
mov rax, qword [0x14000eb38]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140004430
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400045c3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400045c3
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 [0x14000eb38]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400045c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004430
inc dword [0x14000eb34]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140682108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14068228f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140682139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14068211f
add dl, dl
jne 0x140682146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406821a6
xor eax, eax
add dl, dl
jne 0x140682155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14068225d
add dl, dl
jne 0x140682166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140682173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140682180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14068218d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14068219a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14068212e
mov eax, 1
add dl, dl
jne 0x1406821b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406821c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406821ab
sub eax, ebx
mov ebx, 1
jne 0x1406821fc
mov ecx, 1
add dl, dl
jne 0x1406821de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406821eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406821d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14068212e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140682218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140682225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14068220d
cmp eax, 0x7d00
jae 0x14068224b
cmp eax, 0x500
jb 0x140682246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14068212e
cmp eax, 0x7f
ja 0x14068224e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14068212e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140682282
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14068212e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140003d00
Capabilities:
Parse pe header

Disassembly:
push rsi
push rdi
mov r8d, 0x100
mov eax, 1
cmp rdx, 0x40
jb 0x140003e02
test cl, 3
je 0x140003d27
mov r8d, 0x400
jmp 0x140003e02
movzx r9d, word [rcx]
cmp r9d, 0x5a4d
jne 0x140003dfc
mov r9d, dword [rcx + 0x3c]
test r9b, 3
jne 0x140003d1c
cmp r9d, 0x1000000
jbe 0x140003d56
mov r8d, 0x700
jmp 0x140003e02
lea r11, [r9 + 0x88]
cmp r11, rdx
ja 0x140003e02
cmp dword [rcx + r9], 0x4550
jne 0x140003dfc
movzx esi, word [rcx + r9 + 0x18]
cmp esi, 0x20b
je 0x140003d8a
cmp esi, 0x10b
jne 0x140003dfc
mov edi, dword [rcx + r9 + 0x54]
cmp rdi, rdx
ja 0x140003e02
mov r10d, dword [rcx + r9 + 0x50]
cmp edi, r10d
ja 0x140003d4b
movzx esi, si
cmp esi, 0x20b
jne 0x140003e08
mov esi, dword [rcx + r9 + 0x84]
cmp esi, 0x10
mov edi, 0x10
cmovb edi, esi
shl edi, 3
add r11, rdi
cmp r11, rdx
ja 0x140003e02
movzx r11d, word [rcx + r9 + 6]
cmp r11, 0x60
ja 0x140003d4b
lea r11, [r11 + r11*4]
lea r11, [r9 + r11*8]
movzx ecx, word [rcx + r9 + 0x14]
add rcx, r11
add rcx, 0x18
cmp rcx, rdx
ja 0x140003e02
shl r10, 0x20
xor eax, eax
mov r8, r10
jmp 0x140003e02
mov r8d, 0x500
or rax, r8
pop rdi
pop rsi
ret
mov r8d, 0x600
jmp 0x140003e02
Function at 0x140004580
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp], 0xfffffffffffffffe
mov qword [rbp - 0x10], rcx
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov dword [rbp - 4], 0
mov qword [rbp - 0x30], rdx
mov r14, qword [rdx]
mov edi, 8
lea r15, [rbp - 4]
xor ebx, ebx
xor esi, esi
jmp 0x1400045dd
mov r13, r12
mov qword [rbp - 0x18], r13
mov rbx, r13
mov esi, r12d
lea r8d, [rbx*8]
mov dword [rsp + 0x20], 3
mov rcx, r14
mov rdx, rdi
mov r9, r15
call sub.PSAPI.DLL_EnumProcessModulesEx
test eax, eax
je 0x14000467c
mov r12d, dword [rbp - 4]
cmp r12d, esi
jbe 0x1400046d8
mov rsi, r12
sub rsi, rbx
jbe 0x1400045d0
mov rax, qword [rbp - 0x20]
sub rax, rbx
mov r13, rbx
cmp rax, rsi
jae 0x14000463a
lea rcx, [rbp - 0x28]
mov rdx, rbx
mov r8, rsi
call fcn.14001f1c0
mov rdi, qword [rbp - 0x28]
mov r13, qword [rbp - 0x18]
lea rcx, [rdi + r13*8]
cmp rsi, 2
jb 0x14000466d
mov r8, rbx
not r8
add r8, r12
shl r8, 3
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rax, [r12 + r13]
sub rax, rbx
lea rcx, [rdi + rax*8]
add rcx, 0xfffffffffffffff8
add r13, rsi
dec r13
mov qword [rcx], 0
inc r13
jmp 0x1400045d3
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rbp - 0x10]
mov qword [rcx + 8], rax
movups xmm0, xmmword [rbp - 0x48]
movups xmmword [rcx + 0x10], xmm0
mov rax, qword [rbp - 0x38]
mov qword [rcx + 0x20], rax
mov qword [rcx], 0
mov rdx, qword [rbp - 0x20]
test rdx, rdx
je 0x1400046c3
shl rdx, 3
mov r8d, 8
mov rcx, rdi
call fcn.140003800
mov rax, qword [rbp - 0x10]
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov r14d, r12d
shr r14d, 3
cmp rbx, r14
jb 0x1400047a8
cmp r12d, 8
jae 0x1400046fa
mov eax, 8
xor ecx, ecx
jmp 0x14000477f
mov r15, r14
shl r15, 4
movzx eax, byte [0x140030161]
mov edx, 8
mov rcx, r15
call fcn.1400037f0
test rax, rax
je 0x1400047bc
cmp r14d, 1
jne 0x14000472c
xor ecx, ecx
mov r10, qword [rbp - 0x30]
jmp 0x140004765
mov edx, r14d
and edx, 0xfffffffe
lea r8, [rax + 0x18]
xor ecx, ecx
mov r10, qword [rbp - 0x30]
nop dword [rax]
mov r9, qword [rdi + rcx*8]
mov qword [r8 - 0x18], r10
mov qword [r8 - 0x10], r9
mov r9, qword [rdi + rcx*8 + 8]
mov qword [r8 - 8], r10
mov qword [r8], r9
add rcx, 2
add r8, 0x20
cmp rdx, rcx
jne 0x140004740
test r14b, 1
je 0x14000477c
mov rdx, qword [rdi + rcx*8]
shl rcx, 4
mov qword [rax + rcx], r10
mov qword [rax + rcx + 8], rdx
mov rcx, r14
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 8], rax
mov qword [rdx + 0x10], r14
mov qword [rdx + 0x18], rcx
mov qword [rdx], 4
mov rdx, qword [rbp - 0x20]
test rdx, rdx
jne 0x1400046b1
jmp 0x1400046c3
lea r8, str.C:Users_root.cargo_registry_srcindex.crates.io_6f17d22bba15001fwinproc_0.6.4_srcprocessmod.rs
mov rcx, r14
mov rdx, rbx
call fcn.140020340
jmp 0x1400047c9
mov ecx, 8
mov rdx, r15
call fcn.14001fe40
ud2
Function at 0x1400074e0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x140007570
jmp 0x14000755f
jae 0x140007630
cmp r8, 0x201
jae 0x140007570
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x1400075c8
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14000759f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14001f400
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x1400075f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140007698
mov r8d, r14d
cmp r15, r8
jne 0x140007550
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400076bb
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14000755f
jmp 0x140007570
cmp rsi, r8
jb 0x1400076d5
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140009280
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x140007681
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140003800
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x140007669
jmp 0x140007681
lea rcx, str.internal_error:_entered_unreachable_code_rustc_cc66ad468955717ab92600c770da8c1601a4ff33library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001ff50
jmp 0x1400076ea
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140020340
ud2
Function at 0x14000e210
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140024340]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000e254
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000e2ba
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000e2f1
test eax, eax
js 0x14000e2cb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000e2e4
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
lea rdx, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rsi, [rsp + 0x78]
lea r9, [rsp + 0x50]
mov r8d, 1
mov rcx, rsi
call fcn.140004fb0
lea rcx, [rsp + 0x58]
mov rdx, rsi
call fcn.140009080
mov rcx, rax
call fcn.1400053e0
mov ecx, 7
int 0x29
ud2
Function at 0x14001ca80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001cafa
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14001caf0
cmp r11, r10
ja 0x14001cb93
cmp r10, rdx
ja 0x14001cba7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14001caf2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14001cad0
jmp 0x14001cb67
ja 0x14001cafa
mov r11, r10
cmp rax, r8
jne 0x14001caa2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001cb6b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14001cb40
mov r8, r10
sub ecx, r9d
jns 0x14001cb5e
jmp 0x14001cb6d
cmp r10, rdx
je 0x14001cb79
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001cb6d
xor al, 1
cmp r8, rdx
jne 0x14001cb20
jmp 0x14001cb6d
xor eax, eax
jmp 0x14001cb6d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuelibrarycore_src_nummod.rsfrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001ff50
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1400203b0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140020340
ud2

Function at 0x14001eca4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001ecee
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001ecee
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001ecee
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001ecee
cmp dword [rcx + 0x84], 0xe
jbe 0x14001ecee
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001ecf0
xor al, al
add rsp, 0x28
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x0059afa0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x0059afb0]
mov dword [rax], 1
mov rax, qword [0x0059afc0]
mov dword [rax], 1
mov rax, qword [0x0059af90]
mov dword [rax], 1
mov rax, qword [0x0059ae20]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x0059af80]
mov dword [0x005a700c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x4010b0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x0059aef0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x0059add0]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067
Function at 0x494810
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x150
mov r12, 0xffffffffffffffba
mov rax, qword [rsp + 0x1c8]
mov esi, dword [rax]
mov rdi, rdx
test esi, esi
mov edx, 3
mov r13, rcx
cmove esi, edx
mov r14, r8
mov rbx, r9
cmp rdi, r9
jb 0x49498f
mov r12, 0xffffffffffffffb8
cmp r9, 0x7f
jbe 0x49498f
mov r12, 0xffffffffffffffba
cmp rdi, 0xff
jbe 0x49498f
mov rcx, r14
mov r12d, dword [rax + 8]
xor r8d, r8d
mov rdx, r9
mov dword [rsp + 0x50], 0xec30a437
mov ebp, dword [rax + 4]
call sym.XXH64
mov rcx, rax
test r12d, r12d
je 0x4949a8
mov dword [rsp + 0x54], r12d
cmp ebp, 1
jbe 0x494910
mov r12, qword [dbg.__acrt_iob_func]
mov ecx, 2
call r12
lea r8, [0x0056663f]
lea rdx, str._r_70s_r
mov rcx, rax
call sym.fprintf
mov ecx, 2
call r12
mov rcx, rax
call sym.fflush
mov ecx, 2
call r12
mov r8d, 0x10
mov edx, 1
lea rcx, str.statistics_...__n
mov r9, rax
call sym.fwrite
mov ecx, 2
call r12
mov rcx, rax
call sym.fflush
mov eax, dword [rsp + 0x1c0]
mov dword [rsp + 0x40], ebp
mov r8d, esi
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], rbx
mov r9, qword [rsp + 0x1b0]
mov edx, 0xf8
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x1b8]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x20], rax
call sym.ZDICT_analyzeEntropy
mov r12, rax
cmp rax, 0xffffffffffffff88
ja 0x49498f
lea rsi, [rax + 8]
lea r12, [rbx + rsi]
cmp r12, rdi
jbe 0x49496f
mov rbx, rdi
mov r12, rdi
sub rbx, rsi
lea rcx, [r13 + rsi]
mov r8, rbx
mov rdx, r14
call sym.memmove
lea rdx, [rsp + 0x50]
mov r8, rsi
mov rcx, r13
call sym.memcpy
mov rax, r12
add rsp, 0x150
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
movabs rdx, 0x8000800080008001
mul rdx
shr rdx, 0x1e
mov rax, rdx
shl rax, 0x10
sub rax, rdx
shl rax, 0xf
sub rcx, rax
lea r12d, [rcx + 0x8000]
jmp 0x49489f