Function at 0x140001070
Capabilities:
Terminate process

Disassembly:
push rbp
push r12
push r14
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov r12, rcx
mov ecx, 0x100000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
jne 0x1400010ca
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, str.memory_not_enough__n
call fcn.140001010
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov qword [rsp + 0x268], rbx
xor ebx, ebx
mov qword [rsp + 0x278], rdi
mov qword [rsp + 0x238], r13
mov r13d, ebx
mov qword [rsp + 0x230], r15
mov r15d, ebx
mov qword [rsp + 0x270], rsi
mov qword [rsp + 0x30], r14
nop
mov edx, r15d
lea rcx, str.read:__d_n
call fcn.140001010
xor edx, edx
lea rcx, [rbp + 0x20]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
lea rdx, [rbp - 0x50]
xor eax, eax
mov r8d, 0xa
mov dword [rbp + 0x10], eax
mov ecx, r15d
mov qword [rbp - 0x69], rax
mov dword [rbp - 0x61], eax
mov byte [rbp - 0x5d], al
mov eax, dword [str.mykeya]
mov dword [rsp + 0x40], eax
movzx eax, word [0x1400032f8]
mov word [rsp + 0x44], ax
movzx eax, byte [0x1400032fa]
mov byte [rsp + 0x46], al
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rsp + 0x47], xmm0
movups xmmword [rsp + 0x57], xmm0
movups xmmword [rsp + 0x67], xmm0
movups xmmword [rsp + 0x77], xmm0
movups xmmword [rbp - 0x79], xmm0
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itoa]
lea rcx, [rsp + 0x40]
mov r8, rax
dec rcx
cmp byte [rcx + 1], bl
lea rcx, [rcx + 1]
jne 0x1400011a1
xor edx, edx
nop dword [rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400011b0
lea rcx, [rsp + 0x40]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], bl
lea rcx, [rcx + 1]
jne 0x1400011d0
movzx eax, word [0x1400032fc]
lea rdx, [0x140003384]
mov word [rcx], ax
movzx eax, byte [0x1400032fe]
mov byte [rcx + 2], al
xor ecx, ecx
call qword [sym.imp.CRYPT32.dll_CertOpenSystemStoreW]
mov rdi, rax
test rax, rax
je 0x140001650
xor r8d, r8d
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x40]
mov r9d, 0x70007
mov rcx, rdi
mov qword [rsp + 0x20], rax
lea edx, [r8 + 1]
call qword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov rsi, rax
test rax, rax
je 0x140001638
xor r8d, r8d
mov dword [rsp + 0x28], ebx
lea r9, str.2.5.4.10
mov qword [rsp + 0x20], rbx
mov rcx, rax
lea edx, [r8 + 3]
call qword [sym.imp.CRYPT32.dll_CertGetNameStringA]
mov rcx, rsi
cmp eax, 1
jbe 0x14000163a
mov dword [rsp + 0x28], eax
lea r9, str.2.5.4.10
xor r8d, r8d
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea edx, [r8 + 3]
call qword [sym.imp.CRYPT32.dll_CertGetNameStringA]
mov rcx, rsi
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
mov rdi, qword [rsp + 0x30]
lea rdx, [rbp + 0x20]
movups xmm0, xmmword [rdx]
lea r9, [rdi + 0x80]
inc r15d
movups xmm1, xmmword [rdx + 0x10]
lea rdx, [rdx + 0x80]
inc r13
mov rax, qword [rdx + 0x70]
movups xmmword [rdi], xmm0
movups xmm0, xmmword [rdx - 0x60]
movups xmmword [rdi + 0x10], xmm1
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [rdi + 0x20], xmm0
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [rdi + 0x30], xmm1
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [rdi + 0x40], xmm0
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [rdi + 0x50], xmm1
movups xmm1, xmmword [rdx - 0x10]
movups xmmword [rdi + 0x60], xmm0
add rdi, 0xfe
mov qword [rsp + 0x30], rdi
movups xmm0, xmmword [rdx]
movups xmmword [r9 - 0x10], xmm1
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [r9], xmm0
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [r9 + 0x10], xmm1
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [r9 + 0x20], xmm0
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [r9 + 0x30], xmm1
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [r9 + 0x40], xmm0
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [r9 + 0x50], xmm1
movups xmmword [r9 + 0x60], xmm0
mov qword [r9 + 0x70], rax
mov eax, dword [rdx + 0x78]
mov dword [r9 + 0x78], eax
movzx eax, word [rdx + 0x7c]
mov word [r9 + 0x7c], ax
cmp r13, 0x182
jl 0x140001100
mov edx, r15d
lea rcx, str.read:__d_n
call fcn.140001010
xor edx, edx
lea rcx, [rbp + 0x20]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
lea rdx, [rbp - 0x50]
xor eax, eax
mov r8d, 0xa
mov dword [rbp + 0x10], eax
mov ecx, r15d
mov qword [rbp - 0x69], rax
mov dword [rbp - 0x61], eax
mov byte [rbp - 0x5d], al
mov eax, dword [str.mykeya]
mov dword [rsp + 0x40], eax
movzx eax, word [0x1400032f8]
mov word [rsp + 0x44], ax
movzx eax, byte [0x1400032fa]
mov byte [rsp + 0x46], al
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rsp + 0x47], xmm0
movups xmmword [rsp + 0x57], xmm0
movups xmmword [rsp + 0x67], xmm0
movups xmmword [rsp + 0x77], xmm0
movups xmmword [rbp - 0x79], xmm0
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itoa]
lea rcx, [rsp + 0x40]
mov r8, rax
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], bl
lea rcx, [rcx + 1]
jne 0x140001410
xor edx, edx
nop dword [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140001420
lea rcx, [rsp + 0x40]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], bl
lea rcx, [rcx + 1]
jne 0x140001440
movzx eax, word [0x1400032fc]
lea rdx, [0x140003384]
mov word [rcx], ax
movzx eax, byte [0x1400032fe]
mov byte [rcx + 2], al
xor ecx, ecx
call qword [sym.imp.CRYPT32.dll_CertOpenSystemStoreW]
mov rdi, rax
test rax, rax
jne 0x14000148d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_open_certificate_store._Error:__d_n
call fcn.140001010
jmp 0x140001680
xor r8d, r8d
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x40]
mov r9d, 0x70007
mov rcx, rdi
mov qword [rsp + 0x20], rax
lea edx, [r8 + 1]
call qword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov rsi, rax
test rax, rax
je 0x14000166a
xor r8d, r8d
mov dword [rsp + 0x28], ebx
lea r9, str.2.5.4.10
mov qword [rsp + 0x20], rbx
mov rcx, rax
lea edx, [r8 + 3]
call qword [sym.imp.CRYPT32.dll_CertGetNameStringA]
mov rcx, rsi
cmp eax, 1
jbe 0x14000166c
mov dword [rsp + 0x28], eax
lea r9, str.2.5.4.10
xor r8d, r8d
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea edx, [r8 + 3]
call qword [sym.imp.CRYPT32.dll_CertGetNameStringA]
mov rcx, rsi
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
lea rcx, [rbp + 0x20]
imul eax, r15d, 0xfe
movups xmm0, xmmword [rcx]
mov r9d, 0xc9
movups xmm1, xmmword [rcx + 0x10]
movsxd rdx, eax
mov rax, qword [rcx + 0xa0]
add rdx, r14
movups xmmword [rdx], xmm0
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rdx + 0x10], xmm1
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rdx + 0x20], xmm0
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rdx + 0x30], xmm1
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rdx + 0x40], xmm0
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rdx + 0x50], xmm1
movups xmm1, xmmword [rcx + 0x70]
movups xmmword [rdx + 0x60], xmm0
sub rdx, 0xffffffffffffff80
movups xmm0, xmmword [rcx + 0x80]
movups xmmword [rdx - 0x10], xmm1
movups xmm1, xmmword [rcx + 0x90]
movups xmmword [rdx], xmm0
movups xmmword [rdx + 0x10], xmm1
mov qword [rdx + 0x20], rax
mov eax, dword [rcx + 0xa8]
mov dword [rdx + 0x28], eax
movzx eax, word [rcx + 0xac]
mov word [rdx + 0x2c], ax
nop
movzx r8d, byte [r14 + rbx*2]
movzx edx, byte [r14 + rbx*2 + 1]
lea ecx, [r8 - 0x30]
cmp cl, 9
lea eax, [r8 - 0x37]
movzx eax, al
mov ecx, 0xd0
cmova r8d, eax
lea eax, [rdx - 0x30]
shl r8b, 4
cmp al, 9
cmova ecx, r9d
add cl, dl
or r8b, cl
mov byte [rbx + r12], r8b
inc rbx
cmp rbx, 0xbfd5
jl 0x1400015b0
mov rsi, qword [rsp + 0x270]
mov rdi, qword [rsp + 0x278]
mov r13, qword [rsp + 0x238]
mov rbx, qword [rsp + 0x268]
mov r15, qword [rsp + 0x230]
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.140001990
add rsp, 0x240
pop r14
pop r12
pop rbp
ret
xor ecx, ecx
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
jmp 0x140001664
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_open_certificate_store._Error:__d_n
call fcn.140001010
call fcn.1400017a0
int3
xor ecx, ecx
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
call fcn.1400017a0
int3