Function at 0x140002238
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3d18]
mov eax, 0x3e18
call fcn.1400160e0
sub rsp, rax
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov rax, qword [0x14001f078]
xor rax, rsp
mov qword [rbp + 0x3d00], rax
mov qword [rsp + 0x68], r9
mov r15d, r8d
mov qword [rbp - 0x70], rdx
mov edi, ecx
mov rsi, qword [rbp + 0x3d80]
mov qword [rbp - 0x78], rsi
mov r14, qword [rbp + 0x3d88]
mov qword [rbp - 0x68], r14
or rax, 0xffffffffffffffff
mov dword [rsp + 0x54], eax
xor ebx, ebx
mov qword [rbp - 0x80], rbx
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x78], rbx
mov dword [rsp + 0x5c], eax
mov qword [rsp + 0x70], rbx
mov dword [rsp + 0x58], ebx
mov dword [rbp + 0xbb4], ebx
mov byte [rbp - 0x50], bl
mov byte [rbp + 0xbb3], bl
xor edx, edx
mov r8d, 0x494
lea rcx, [rbp + 0x2be4]
call sub.msvcrt.dll_memset
mov dword [rbp + 0x3078], ebx
mov dword [rbp + 0x2be0], ebx
mov qword [rbp + 0x2bd8], rbx
lea rax, [rbp + 0x3498]
mov ecx, 0x80
mov qword [rax - 0x408], rbx
mov qword [rax], rbx
lea rax, [rax + 8]
sub rcx, 1
jne 0x1400022fd
mov dword [rbp + 0x3490], ebx
mov dword [rbp + 0x3898], ebx
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x38a0], xmm0
mov qword [rbp + 0x38f0], rbx
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x38b0], xmm1
movdqa xmmword [rbp + 0x38c0], xmm0
movdqa xmmword [rbp + 0x38d0], xmm1
movdqa xmmword [rbp + 0x38e0], xmm0
mov dword [rbp + 0x2bd0], ebx
mov qword [rbp + 0x2bc8], rbx
mov r12d, dword [rsi]
mov r13d, ebx
mov dword [rsp + 0x50], ebx
mov rcx, qword [0x14001f090]
or rax, 0xffffffffffffffff
cmp rcx, rax
jne 0x140002396
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
nop dword [rax + rax]
mov rcx, rax
mov qword [0x14001f098], rax
jmp 0x14000239d
mov qword [0x14001f098], rcx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000283d
lea rdx, str.Genmanifest_v2.5_Copyright_2002_2003_Microsoft_Corporation.
call fcn.140001b40
lea rdx, [0x140017bec]
mov rcx, qword [0x14001f098]
call fcn.140001b40
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x80]
lea r8, [rsp + 0x54]
mov rdx, qword [rbp - 0x70]
mov ecx, edi
call fcn.140001d0c
mov edi, eax
test eax, eax
js 0x140002591
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x78]
mov r8d, dword [rsp + 0x60]
lea rdx, [rbp + 0xbc0]
mov ecx, dword [rsp + 0x58]
call fcn.140001f58
mov edi, eax
test eax, eax
js 0x140002591
mov rcx, qword [0x140020660]
mov rax, qword [rcx]
mov r9, qword [rsp + 0x68]
mov r8d, r15d
lea rdx, [rbp - 0x50]
mov rax, qword [rax + 0x10]
call qword [vtable.H_MA8HI.0]
mov edi, eax
test eax, eax
js 0x140002591
mov rcx, qword [0x140020658]
mov rax, qword [rcx]
mov r9, r14
mov r8, rsi
lea rdx, [rbp - 0x50]
mov rax, qword [rax + 0x58]
call qword [vtable.H_MA8HI.0]
mov edi, eax
test eax, eax
js 0x140002591
cmp dword [rsp + 0x54], 1
jle 0x140002591
mov rbx, qword [rbp - 0x80]
mov rdx, qword [rbx + 8]
lea rcx, str._chain
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140002591
mov ecx, 0x32000
call fcn.140015308
mov rsi, rax
test rax, rax
jne 0x1400024e5
mov edi, 0x8007000e
jmp 0x140002591
mov dword [rsp + 0x58], 0x31ffe
cmp dword [rsp + 0x54], 3
jl 0x140002833
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140002833
lea r8, [rsp + 0x58]
mov rdx, rsi
call fcn.1400019d4
mov edi, eax
test eax, eax
jns 0x140002537
mov rcx, qword [0x14001f098]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140002591
lea rdx, str.Error:_couldnt_load__chain_input_File._r_n
call fcn.140001b40
jmp 0x140002591
mov eax, dword [rsp + 0x58]
shr rax, 1
mov word [rsi + rax*2], r13w
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.14000e86c
mov edi, eax
test eax, eax
js 0x140002591
mov r13d, dword [rsp + 0x50]
lea r15d, [r13 + 1]
mov edi, r15d
mov eax, 8
mul rdi
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140015308
mov rbx, rax
test rax, rax
jne 0x14000267d
mov edi, 0x8007000e
xor r13d, r13d
mov rcx, qword [0x140020660]
test rcx, rcx
je 0x1400025b3
lea rax, [0x140017028]
mov qword [rcx], rax
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov rcx, qword [0x140020658]
test rcx, rcx
je 0x1400025d5
lea rax, [0x140017058]
mov qword [rcx], rax
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov ecx, 0x80000000
lea eax, [rdi + rcx]
test ecx, eax
jne 0x14000264b
cmp edi, 0x8004930f
je 0x14000264b
mov dword [rsp + 0x50], r13d
lea r8, [rbp + 0x3900]
mov edx, edi
lea rcx, [rbp - 0x50]
call fcn.140002910
mov rbx, rax
lea rcx, [rbp + 0x3900]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop dword [rax + rax]
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
nop dword [rax + rax]
mov rcx, rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x50]
mov r8d, ebx
lea rdx, [rbp + 0x3900]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
nop
lea rcx, [rbp + 0xbc0]
call fcn.140003008
mov eax, edi
mov rcx, qword [rbp + 0x3d00]
xor rcx, rsp
call fcn.1400156d0
add rsp, 0x3e18
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r8, rdi
shl r8, 3
xor edx, edx
mov rcx, rbx
call sub.msvcrt.dll_memset
mov rdi, qword [rbp - 0x78]
mov eax, dword [rdi]
xor ecx, ecx
mov word [r14 + rax*2], cx
mov ecx, dword [rdi]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140015308
mov rcx, rax
mov qword [rbx], rax
test rax, rax
jne 0x1400026cd
mov edi, 0x8007000e
jmp 0x140002842
cmp dword [rdi], 2
jbe 0x14000282c
or rax, 0xffffffffffffffff
xor edx, edx
inc rax
cmp word [r14 + rax*2], dx
jne 0x1400026dc
cmp rax, 4
jbe 0x14000282c
lea r8, [r14 + 2]
mov edx, dword [rdi]
call fcn.140002bf4
mov edi, eax
test eax, eax
js 0x140002842
xor edi, edi
mov r14d, edi
test r13d, r13d
je 0x1400027ad
mov dword [rsp + 0x54], edi
xor r9d, r9d
lea r8, [rsp + 0x54]
mov edx, r14d
mov rcx, rsi
call fcn.14000e6d0
mov edi, eax
test eax, eax
js 0x140002842
mov ecx, dword [rsp + 0x54]
inc ecx
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140015308
lea ecx, [r14 + 1]
mov dword [rsp + 0x50], ecx
mov qword [rsp + 0x68], rcx
mov qword [rbx + rcx*8], rax
test rax, rax
je 0x1400026c3
mov r9, rax
lea r8, [rsp + 0x54]
mov edx, r14d
mov rcx, rsi
call fcn.14000e6d0
mov edi, eax
test eax, eax
js 0x140002842
mov ecx, dword [rsp + 0x54]
mov rax, qword [rsp + 0x68]
mov rax, qword [rbx + rax*8]
xor edi, edi
mov word [rax + rcx*2], di
mov r14d, dword [rsp + 0x50]
cmp r14d, r13d
jb 0x140002713
mov eax, 0xfeff
mov r14, qword [rbp - 0x68]
mov word [r14], ax
dec r12d
mov dword [rsp + 0x50], r12d
lea rcx, str._msdrm_:DRMConstructCertificateChain_n
call fcn.14000e9f8
test r15d, r15d
je 0x14000280c
mov rsi, rbx
xor edx, edx
mov rcx, qword [rsi]
call fcn.14000eb54
test al, al
je 0x14000280c
inc edi
add rsi, 8
cmp edi, r15d
jb 0x1400027d6
lea r9, [r14 + 2]
lea r8, [rsp + 0x50]
mov rdx, rbx
mov ecx, r15d
call fcn.14000e0d4
mov edi, eax
mov r12d, dword [rsp + 0x50]
jmp 0x140002811
mov edi, 0x80070057
mov edx, edi
lea rcx, str._msdrm_:_DRMConstructCertificateChain_HR_x_n
call fcn.14000e9f8
test edi, edi
js 0x140002842
mov rsi, qword [rbp - 0x78]
mov dword [rsi], r12d
jmp 0x140002842
mov edi, 0x80070057
jmp 0x140002842
mov edi, 0x80070057
jmp 0x140002591
mov edi, 0x80004005
test rbx, rbx
je 0x14000258e
lea eax, [r13 + 1]
xor r13d, r13d
test eax, eax
je 0x140002875
mov rsi, rbx
mov r14d, eax
mov rcx, qword [rsi]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
lea rsi, [rsi + 8]
sub r14, 1
jne 0x14000285c
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
jmp 0x140002591