Function at 0x140004d50
Capabilities:
Terminate process

Disassembly:
push rbp
push rsi
push r12
push r13
lea rbp, [rsp - 0x98]
sub rsp, 0x198
mov rax, qword [0x140010008]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov r13d, dword [0x140010034]
mov r12, rcx
mov ecx, 0x100000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
jne 0x140004db2
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.1400048b0
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 0x400
mov qword [rsp + 0x1d8], r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
jne 0x140004df4
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, str.memory_not_enough__n
call fcn.1400048b0
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov qword [rsp + 0x1c8], rbx
mov eax, 0x80808081
imul r13d
mov qword [rsp + 0x1d0], rdi
mov ebx, r13d
add edx, r13d
mov qword [rsp + 0x190], r15
sar edx, 7
xor edi, edi
mov eax, edx
mov r15d, edi
shr eax, 0x1f
add edx, eax
imul eax, edx, 0xff
sub ebx, eax
movsxd rax, edx
mov qword [rsp + 0x28], rax
test edx, edx
jle 0x1400050bc
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x30], rsi
nop dword [rax + rax]
xorps xmm0, xmm0
lea rdx, [rbp + 0x10]
xor eax, eax
mov r8d, 0xa
mov qword [r14], rax
mov ecx, r15d
mov dword [rbp + 0x70], eax
mov qword [rbp - 0xa], rax
mov dword [rbp - 2], eax
mov word [rbp + 2], ax
mov eax, dword [str.mykey]
mov dword [rbp - 0x60], eax
movzx eax, word [0x14000ea5c]
mov word [rbp - 0x5c], ax
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
movups xmmword [rbp + 0x60], xmm0
movups xmmword [rbp - 0x5a], xmm0
movups xmmword [rbp - 0x4a], xmm0
movups xmmword [rbp - 0x3a], xmm0
movups xmmword [rbp - 0x2a], xmm0
movups xmmword [rbp - 0x1a], xmm0
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itoa]
mov r8, rax
lea rax, [rbp - 0x60]
dec rax
cmp byte [rax + 1], dil
lea rax, [rax + 1]
jne 0x140004ec3
xor edx, edx
nop
movzx ecx, byte [r8 + rdx]
mov byte [rax + rdx], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x140004ed0
xorps xmm0, xmm0
mov qword [rsp + 0x48], rdi
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x50], xmm0
lea rax, [rbp - 0x60]
movdqa xmmword [rsp + 0x60], xmm1
lea r9, [rsp + 0x38]
movdqa xmmword [rsp + 0x70], xmm0
lea r8, [rbp - 0x70]
mov qword [rsp + 0x40], rax
mov edx, 1
mov qword [rbp - 0x80], rdi
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x38], rdi
mov dword [rbp - 0x70], edi
call qword [sym.imp.ADVAPI32.dll_CredReadDomainCredentialsA]
test eax, eax
je 0x14000527c
mov r8, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
mov rdx, qword [rcx + 0x10]
lea rcx, [r14 + 0x80]
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [r14], xmm0
movups xmmword [r14 + 0x10], xmm1
movups xmm0, xmmword [rdx + 0x20]
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [r14 + 0x20], xmm0
movups xmmword [r14 + 0x30], xmm1
movups xmm0, xmmword [rdx + 0x40]
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [r14 + 0x40], xmm0
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [r14 + 0x50], xmm1
movups xmm1, xmmword [rdx + 0x70]
sub rdx, 0xffffffffffffff80
movups xmmword [r14 + 0x60], xmm0
movups xmmword [rcx - 0x10], xmm1
mov rax, qword [rdx + 0x70]
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rcx + 0x50], xmm1
movups xmmword [rcx + 0x60], xmm0
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]
lea rdx, [r8 + 0x80]
mov byte [rcx + 0x7e], al
lea rcx, [r14 + 0x80]
movups xmm0, xmmword [r14]
mov rax, qword [rcx + 0x70]
movups xmm1, xmmword [r14 + 0x10]
movups xmmword [r8], xmm0
movups xmm0, xmmword [r14 + 0x20]
movups xmmword [r8 + 0x10], xmm1
movups xmm1, xmmword [r14 + 0x30]
movups xmmword [r8 + 0x20], xmm0
movups xmm0, xmmword [r14 + 0x40]
movups xmmword [r8 + 0x30], xmm1
movups xmm1, xmmword [r14 + 0x50]
movups xmmword [r8 + 0x40], xmm0
movups xmm0, xmmword [r14 + 0x60]
movups xmmword [r8 + 0x50], xmm1
movups xmm1, xmmword [r14 + 0x70]
movups xmmword [r8 + 0x60], xmm0
movups xmm0, xmmword [rcx]
movups xmmword [rdx - 0x10], xmm1
movups xmm1, xmmword [rcx + 0x10]
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 xmmword [rdx + 0x60], xmm0
mov qword [rdx + 0x70], rax
mov eax, dword [rcx + 0x78]
mov dword [rdx + 0x78], eax
movzx eax, word [rcx + 0x7c]
mov word [rdx + 0x7c], ax
add r8, 0xff
movzx eax, byte [rcx + 0x7e]
inc r15d
mov byte [rdx + 0x7e], al
mov rax, qword [rsp + 0x20]
inc rax
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x20], rax
cmp rax, qword [rsp + 0x28]
jl 0x140004e50
test ebx, ebx
je 0x1400051e5
xorps xmm0, xmm0
lea rdx, [rbp + 0x10]
xor eax, eax
mov r8d, 0xa
mov qword [r14], rax
mov ecx, r15d
mov dword [rbp + 0x70], eax
mov qword [rbp - 0xa], rax
mov dword [rbp - 2], eax
mov word [rbp + 2], ax
mov eax, dword [str.mykey]
mov dword [rbp - 0x60], eax
movzx eax, word [0x14000ea5c]
mov word [rbp - 0x5c], ax
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
movups xmmword [rbp + 0x60], xmm0
movups xmmword [rbp - 0x5a], xmm0
movups xmmword [rbp - 0x4a], xmm0
movups xmmword [rbp - 0x3a], xmm0
movups xmmword [rbp - 0x2a], xmm0
movups xmmword [rbp - 0x1a], xmm0
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itoa]
lea rcx, [rbp - 0x60]
mov r8, rax
dec rcx
nop word [rax + rax]
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x140005140
xor edx, edx
nop dword [rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140005150
xorps xmm0, xmm0
mov qword [rsp + 0x48], rdi
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x50], xmm0
lea rax, [rbp - 0x60]
movdqa xmmword [rsp + 0x60], xmm1
lea r9, [rsp + 0x30]
movdqa xmmword [rsp + 0x70], xmm0
lea r8, [rbp - 0x70]
mov qword [rsp + 0x40], rax
mov edx, 1
mov qword [rbp - 0x80], rdi
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rdi
mov dword [rbp - 0x70], edi
call qword [sym.imp.ADVAPI32.dll_CredReadDomainCredentialsA]
test eax, eax
je 0x14000527c
mov rcx, qword [rsp + 0x30]
movsxd rbx, ebx
mov r8, rbx
mov rdx, qword [rcx]
mov rcx, r14
mov rdx, qword [rdx + 0x10]
call sub.VCRUNTIME140.dll_memcpy
imul ecx, r15d, 0xff
mov r8, rbx
mov rdx, r14
movsxd rcx, ecx
add rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov eax, r13d
cdq
sub eax, edx
sar eax, 1
movsxd r9, eax
test eax, eax
jle 0x14000523f
mov r10d, 0xc9
nop word [rax + rax]
movzx r8d, byte [rsi + rdi*2]
movzx edx, byte [rsi + rdi*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, r10d
add cl, dl
or r8b, cl
mov byte [rdi + r12], r8b
inc rdi
cmp rdi, r9
jl 0x140005200
mov rbx, qword [rsp + 0x1c8]
mov rdi, qword [rsp + 0x1d0]
mov r15, qword [rsp + 0x190]
mov r14, qword [rsp + 0x1d8]
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.1400053b0
add rsp, 0x198
pop r13
pop r12
pop rsi
pop rbp
ret
lea rcx, str.Read
call fcn.140005360
int3