joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001faa0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x14001fac1
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14001faee
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14001faf0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14001fb49
test ecx, ecx
jle 0x14001fb29
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14001fb49
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14001fb49
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
mov ch, 0x18
popfq
add al, 0xc0
xor eax, 0x57b0c8d2
mov dh, 0x12
mov esp, 0x2cd67ad7
invalid
Function at 0x14001fb70
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14001fb92
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x14001fba1
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14001fbc4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001fbc6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14001fc02
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14001fc9e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14001fc3d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14001fc7e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14001fc9e
cmp rbx, rax
ja 0x14001fc50
test rbx, rbx
je 0x14001fc9e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
invalid
loopne 0x14013a768
invalid
movabs dword [0x49f3a695df303a74], eax
sub byte [0xea425c64], spl
xor eax, ebx
lodsb al, byte [rsi]
outsd dx, dword [rsi]
push rsp
sub eax, 0xb7d4a231
invalid
mov bh, 0x2e
jne 0x14013a7e5
stc
mov ah, 0x31
cli
jmp 0x149296c31
push rdi
Function at 0x1400200c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1401798e0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400200ed
xor eax, eax
jmp 0x14002024a
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140020118
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140020118
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x14002024a
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14002023d
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14002015b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140020186
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140020242
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400201f5
sub eax, 1
je 0x1400201f5
cmp eax, 2
jne 0x14002023d
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140020242
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140020223
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14002023d
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140020242
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140082c20
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140020600
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1401798e0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400206d3
cmp byte [rcx + 0x71], 0
je 0x1400206d3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400206cf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140020694
sub eax, 1
je 0x140020698
cmp eax, 2
jne 0x1400206cf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140082c20
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400206c6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400206cf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14002067c
xor al, al
jmp 0x14002067c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140082c20
add rsp, 0x60
pop rbx
ret
Function at 0x140022880
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x1401798e0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r15, r9
mov r12, r8
movzx r14d, dl
mov r13, qword [rbp + 0x60]
mov rsi, qword [0x14017a690]
mov dword [rbp - 0x40], 0xaf5bc6
mov byte [rbp - 0x3c], 0
xor ebx, ebx
mov dword [rbp - 0x38], ebx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
imul rcx, rdi
mov qword [rbp - 0x30], rcx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], rbx
mov byte [rbp - 0x3c], 1
lea edx, [rbx + 1]
lea rcx, [rbp - 0x28]
call fcn.1400232f0
mov rax, qword [rbp - 0x28]
mov byte [rax], r14b
mov rax, qword [rbp - 0x20]
sub rax, qword [rbp - 0x28]
mov dword [rbp - 0x38], eax
mov rdi, qword [rsi + 0x48]
lea r8d, [rbx + 0x18]
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.1400240d0
mov r9d, ebx
mov r8d, dword [rbp - 0x38]
test r8d, r8d
je 0x14002295b
mov edx, ebx
nop word [rax + rax]
mov rcx, qword [rbp - 0x28]
movzx eax, byte [rbp - 0x30]
xor byte [rcx + rdx], al
inc r9d
lea rdx, [rdx + 1]
mov r8d, dword [rbp - 0x38]
cmp r9d, r8d
jb 0x140022940
mov rdx, qword [rbp - 0x28]
mov rcx, rdi
call fcn.1400240d0
mov r8d, 0x18
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.140023b40
test eax, eax
jle 0x140022a3b
mov edx, dword [rbp - 0x38]
lea rcx, [rbp - 0x28]
call fcn.1400232f0
mov r9, r13
mov r8d, dword [rbp - 0x38]
mov rdx, qword [rbp - 0x28]
mov rcx, rdi
call fcn.140023da0
mov r9d, ebx
cmp dword [rbp - 0x38], ebx
jbe 0x1400229c9
mov r8, rbx
nop dword [rax + rax]
mov rdx, qword [rbp - 0x28]
movzx ecx, byte [rbp - 0x30]
xor byte [rdx + r8], cl
inc r9d
lea r8, [r8 + 1]
cmp r9d, dword [rbp - 0x38]
jb 0x1400229b0
test eax, eax
jle 0x140022a3b
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x28]
sub rdx, rax
dec rdx
movzx edi, byte [rax + rdx]
lea rcx, [rbp - 0x28]
call fcn.1400232f0
mov rax, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x28]
sub rax, rcx
mov dword [rbp - 0x38], eax
je 0x140022a3f
mov dword [r15], eax
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [r12], rax
mov r8d, dword [r15]
mov rdx, qword [rbp - 0x28]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
cmp dword [r15], 0
jbe 0x140022a33
mov rcx, rbx
nop
mov rax, qword [r12]
xor byte [rax + rcx], dil
inc ebx
lea rcx, [rcx + 1]
cmp ebx, dword [r15]
jb 0x140022a20
mov bl, 1
mov rcx, qword [rbp - 0x28]
jmp 0x140022a41
mov rcx, qword [rbp - 0x28]
xor bl, bl
test rcx, rcx
je 0x140022a7a
mov rdx, qword [rbp - 0x18]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022a75
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140022a75
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400825b4
movzx eax, bl
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140082c20
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140023b40
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
push r14
push r15
sub rsp, 0x58
mov r14d, r8d
mov r15, rcx
mov qword [rsp + 0x28], rdx
test r8d, r8d
je 0x140023d89
mov qword [rax + 0x20], rbx
mov ecx, r14d
mov qword [rax - 0x18], rbp
mov qword [rax - 0x20], rsi
mov qword [rax - 0x28], rdi
mov qword [rax - 0x30], r12
mov qword [rax - 0x38], r13
call fcn.1400825bc
xor r12d, r12d
mov r13, rax
mov ebp, r14d
test r14d, r14d
je 0x140023c6f
mov rax, qword gs:[0x60]
movsxd rsi, r12d
add rsi, r13
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov r11d, dword [rcx + r10 + 0x88]
add r11, r10
cmp r11, r10
je 0x140023c27
mov r9d, dword [r11 + 0x18]
test r9d, r9d
je 0x140023c27
mov edi, dword [r11 + 0x20]
nop word [rax + rax]
dec r9d
mov r8d, 0x811c9dc5
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x140023c22
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x140023c00
cmp r8d, 0xece4502d
je 0x140023c2c
test r9d, r9d
jne 0x140023be0
mov rax, qword [rax]
jmp 0x140023bb0
mov ecx, dword [r11 + 0x24]
mov rdx, rsi
add rcx, r10
movzx r8d, word [rcx + r9*2]
xor r9d, r9d
mov ecx, dword [r11 + 0x1c]
add rcx, r10
mov eax, dword [rcx + r8*4]
mov r8d, ebp
mov rcx, qword [r15 + 0x10]
add rax, r10
call rax
mov esi, eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140023c73
add r12d, eax
sub ebp, eax
cmp r12d, r14d
jb 0x140023b91
jmp 0x140023c73
mov esi, dword [rsp + 0x20]
mov rax, qword gs:[0x60]
mov rbp, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
mov r11, qword [rax + 0x30]
movsxd rcx, dword [r11 + 0x3c]
mov r10d, dword [rcx + r11 + 0x88]
add r10, r11
cmp r10, r11
je 0x140023d07
mov r9d, dword [r10 + 0x18]
test r9d, r9d
je 0x140023d07
mov edi, dword [r10 + 0x20]
nop word [rax + rax]
dec r9d
mov r8d, 0x811c9dc5
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r11]
add rdx, r11
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x140023d02
nop
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x140023ce0
cmp r8d, 0xa45cec64
je 0x140023d0c
test r9d, r9d
jne 0x140023cc0
mov rax, qword [rax]
jmp 0x140023c90
mov edx, dword [r10 + 0x24]
mov r8, r14
mov rcx, qword [rsp + 0x28]
add rdx, r11
movzx r9d, word [rdx + r9*2]
mov edx, dword [r10 + 0x1c]
add rdx, r11
mov r10d, dword [rdx + r9*4]
mov rdx, r13
add r10, r11
call r10
mov rcx, r13
call fcn.1400825b4
mov r13, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x88]
cmp esi, 0xffffffff
je 0x140023d71
test esi, esi
mov eax, 0
mov rsi, qword [rsp + 0x48]
cmovne eax, r12d
mov r12, qword [rsp + 0x38]
add rsp, 0x58
pop r15
pop r14
ret
mov rsi, qword [rsp + 0x48]
mov eax, 0xffffffff
mov r12, qword [rsp + 0x38]
add rsp, 0x58
pop r15
pop r14
ret
xor eax, eax
add rsp, 0x58
pop r15
pop r14
ret
Function at 0x1400240d0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
mov rax, qword gs:[0x60]
mov r14d, r8d
mov rbp, rdx
mov rsi, rcx
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop word [rax + rax]
mov r11, qword [rax + 0x30]
movsxd rcx, dword [r11 + 0x3c]
mov ebx, dword [rcx + r11 + 0x88]
add rbx, r11
cmp rbx, r11
je 0x140024178
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140024178
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x811c9dc5
mov r10d, r9d
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r11]
add rcx, r11
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x140024173
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x140024151
cmp r8d, 0x7261c8af
je 0x14002417d
test r9d, r9d
jne 0x140024130
mov rax, qword [rax]
jmp 0x140024100
mov r9d, dword [rbx + 0x24]
mov r8d, r14d
mov rcx, qword [rsi + 0x10]
add r9, r11
mov rdx, rbp
movzx r10d, word [r9 + r10*2]
mov r9d, dword [rbx + 0x1c]
add r9, r11
mov eax, dword [r9 + r10*4]
xor r9d, r9d
add rax, r11
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
jmp rax

Function at 0x1400241b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r8d, 0x18
mov rdi, rdx
mov rbp, rcx
call fcn.1400240d0
mov eax, dword [rdi + 8]
xor ebx, ebx
mov r8d, ebx
test eax, eax
je 0x14002420b
mov edx, ebx
nop dword [rax]
movzx eax, byte [rdi + 0x10]
lea rdx, [rdx + 1]
mov rcx, qword [rdi + 0x18]
inc r8d
xor byte [rcx + rdx - 1], al
mov eax, dword [rdi + 8]
cmp r8d, eax
jb 0x1400241f0
mov rdx, qword [rdi + 0x18]
mov r8d, eax
mov rcx, rbp
call fcn.1400240d0
mov r8d, 0x18
mov rdx, rdi
mov rcx, rbp
call fcn.140023b40
test eax, eax
jg 0x140024233
xor eax, eax
jmp 0x140024278
mov edx, dword [rdi + 8]
lea rcx, [rdi + 0x18]
call fcn.1400232f0
mov r8d, dword [rdi + 8]
mov rcx, rbp
mov rdx, qword [rdi + 0x18]
call fcn.140023b40
cmp dword [rdi + 8], ebx
jbe 0x140024278
mov r8, rbx
nop word [rax + rax]
mov rdx, qword [rdi + 0x18]
lea r8, [r8 + 1]
movzx ecx, byte [rdi + 0x10]
inc ebx
xor byte [rdx + r8 - 1], cl
cmp ebx, dword [rdi + 8]
jb 0x140024260
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140041020
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x58
cmp byte [0x14008e047], 0
mov rax, qword [0x14008e040]
mov qword [rsp + 0x60], rax
je 0x14004119d
cmp dword [0x1401798c0], 2
jl 0x14004115c
movdqa xmm2, xmmword [0x1400b0940]
mov eax, 4
movdqa xmm4, xmmword [0x1400b0990]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x1400b0950]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movaps xmmword [rsp + 0x40], xmm6
movd xmm6, eax
mov eax, 0x1f
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movd xmm5, eax
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400b0960]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rsp + 0x60]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
pand xmm2, xmmword [0x1400b0970]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.5555555555555555YYP]
pxor xmm2, xmm0
punpckldq xmm1, xmm3
movd dword [rsp + 0x60], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movaps xmm6, xmmword [rsp + 0x40]
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400b0960]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rsp + 0x64]
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1400b0970]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.5555555555555555YYP]
pxor xmm2, xmm0
movd dword [rsp + 0x64], xmm2
jmp 0x14004119d
lea r8, [rsp + 0x60]
xor ecx, ecx
nop dword [rax]
nop word [rax + rax]
mov eax, 0x51eb851f
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x32
movzx eax, cl
inc ecx
sub al, dl
add al, 0x35
xor byte [r8 - 1], al
cmp ecx, 8
jl 0x140041170
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateFileA]
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400411e3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0x58
ret
xor al, al
add rsp, 0x58
ret
Function at 0x14004f8d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14004f8ee
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
xor ecx, ecx
cmp dword [rax], 0x4550
cmovne rax, rcx
ret
xor eax, eax
ret

Function at 0x14004f900
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1401798e0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14004fa17
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14004fa17
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
mov qword [rsp + 0x58], r8
mov ecx, dword [rax + rdx + 0xb0]
test ecx, ecx
jne 0x14004f979
mov qword [rdi], r8
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r8
jmp 0x14004fa22
lea rbx, [rdx + rcx]
mov ebp, dword [rax + rdx + 0xb4]
add rbp, rbx
mov rcx, qword [rsp + 0x50]
cmp rbx, rbp
jae 0x14004fa05
mov edx, dword [rbx + 4]
test edx, edx
je 0x14004fa05
mov eax, dword [rbx]
add rax, rsi
mov qword [rsp + 0x28], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x30], rax
lea rax, [rdx - 8]
shr rax, 1
mov dword [rsp + 0x38], eax
cmp rcx, r8
je 0x14004f9de
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rsp + 0x38]
movsd qword [rcx + 0x10], xmm1
mov rcx, qword [rsp + 0x50]
add rcx, 0x18
mov qword [rsp + 0x50], rcx
jmp 0x14004f9f5
lea r8, [rsp + 0x28]
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.14004eed0
mov rcx, qword [rsp + 0x50]
mov eax, dword [rbx + 4]
add rbx, rax
mov r8, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x14004f991
mov rax, qword [rsp + 0x48]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], r8
jmp 0x14004fa22
mov qword [rcx], r8
mov qword [rcx + 8], r8
mov qword [rcx + 0x10], r8
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140082c20
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400522c0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, r8
mov r15, rdx
mov rbp, rcx
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rdi + rcx], 0
jne 0x1400522e7
movsxd rcx, dword [rdx + 0x3c]
lea r13, [rdx + 0x18]
add r13, rcx
mov qword [rsp + 0x50], rbx
xor esi, esi
movzx eax, word [rcx + rdx + 0x14]
movzx r14d, word [rcx + rdx + 6]
add r13, rax
test r14d, r14d
je 0x140052365
nop word [rax + rax]
lea rcx, [rsi + rsi*4]
mov r8, rdi
lea rbx, [rcx*8]
mov rdx, rbp
add rbx, r13
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14005235e
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x140052350
cmp rdi, rax
je 0x140052384
inc esi
cmp esi, r14d
jb 0x140052320
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
cmp dword [rbx + 0xc], 0
je 0x140052365
test r12, r12
je 0x140052396
mov eax, dword [rbx + 8]
mov dword [r12], eax
mov eax, dword [rbx + 0xc]
add rax, r15
jmp 0x140052367