Function at 0x180054d70
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rsi, rdx
mov rdi, rcx
xor r13d, r13d
cmp byte [0x18010a364], r13b
je 0x180054dfd
lea rcx, [rbp + 0xd8]
call fcn.18004aaf4
mov rbx, rax
cmp byte [rax + 0x33], r13b
je 0x180054de0
mov r9d, r13d
mov cl, r9b
and cl, 7
shl cl, 3
movabs r8, 0xd993efbb19cfe32d
shr r8, cl
xor byte [r9 + rax], r8b
inc r9
cmp r9, 0x33
jb 0x180054db9
mov byte [rax + 0x33], r13b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
mov r9d, dword [0x18010a5a0]
mov rdx, rbx
mov ecx, 3
call fcn.18006a848
test rsi, rsi
jne 0x180054e38
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
lea r9, str.no_pWebBrowser2
lea r8, str.CBrowserMonitorFTM::Start_2
lea rdx, str.BrowserMonitorSinkFTM
lea ecx, [rsi + 1]
call fcn.18005dd20
mov eax, 0x80004003
jmp 0x18005529b
mov rcx, qword [rdi + 0x50]
cmp rcx, rsi
je 0x180054e67
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rdi + 0x50]
mov qword [rdi + 0x50], rsi
mov rcx, rsi
test rdx, rdx
je 0x180054e67
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 0x50]
mov qword [rbp + 0xe8], r13
mov rax, qword [rcx]
lea r8, [rbp + 0xe8]
lea rdx, [0x1800d3510]
call qword [rax]
mov ebx, eax
test eax, eax
jns 0x180054eb9
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], eax
lea r9, str.QueryInterface_for_Unknown_from_m_spWebBrowser2_failed
lea r8, str.CBrowserMonitorFTM::Start_2
lea rdx, str.BrowserMonitorSinkFTM
mov ecx, 2
call fcn.18005dd20
jmp 0x180055287
mov rcx, qword [rdi + 0x50]
lea r12, [rdi + 0xb0]
mov rax, qword [rcx]
mov rdx, r12
call qword [rax + pe_nt_image_headers64]
mov ebx, eax
test eax, eax
js 0x180055287
mov rcx, qword [r12]
call fcn.18004ae14
mov qword [rbp + 0xd8], r13
mov rcx, qword [rdi + 0x50]
mov rax, qword [rcx]
lea rdx, [rbp + 0xd8]
call qword [rax + 0xf0]
test eax, eax
js 0x180055158
mov rcx, qword [rbp + 0xd8]
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x180055158
mov r15, qword [rbp + 0xd8]
lea rax, [rbp - 0x78]
mov qword [rbp - 0x80], rax
test r15, r15
jne 0x180054f3b
mov rdx, r13
mov qword [rbp - 0x80], rdx
jmp 0x180055020
or r14, 0xffffffffffffffff
inc r14
cmp word [r15 + r14*2], r13w
jne 0x180054f3f
inc r14d
lea ebx, [r14*4]
mov r9d, 0x80
lea r8, [rbp - 0x78]
mov edx, ebx
lea rcx, [rbp - 0x80]
call fcn.18000e834
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], ebx
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, r15
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, r13d
test eax, eax
sete bl
test eax, eax
jne 0x180055014
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x180055014
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
mov r9d, r14d
mov r8, r15
xor edx, edx
lea ecx, [rax - 0x77]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
mov r9d, 0x80
lea r8, [rbp - 0x78]
mov edx, eax
lea rcx, [rbp - 0x80]
call fcn.18000e834
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], ebx
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, r15
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, r13d
test eax, eax
sete bl
test ebx, ebx
jne 0x1800552bc
mov rdx, qword [rbp - 0x80]
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
lea rcx, [rsp + 0x40]
call fcn.180003104
lea rax, [rbp - 0x78]
mov rcx, qword [rbp - 0x80]
cmp rcx, rax
je 0x18005504f
call fcn.1800a89bc
lea rcx, [0x180108460]
call fcn.180007dac
lea r9, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae r9, qword [rsp + 0x40]
mov r14, qword [rsp + 0x50]
mov rax, qword [reloc.WS2_32.dll_ntohs]
cmp r14, rax
ja 0x1800550ab
lea rbx, [0x1801012d0]
cmp rax, 0x10
cmovae rbx, qword [0x1801012d0]
mov qword [0x1801012e0], r14
mov r8, r14
mov rdx, r9
mov rcx, rbx
call fcn.18009fc20
mov byte [rbx + r14], r13b
jmp 0x1800550bd
mov r8b, r13b
mov rdx, r14
lea rcx, [0x1801012d0]
call fcn.180003a38
mov edx, 2
mov rcx, qword [r12]
call qword [sym.imp.USER32.dll_GetAncestor]
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rcx, qword [rsp + 0x40]
mov rdx, rax
call fcn.18005d728
lea rcx, [0x180108460]
call fcn.180007dc4
cmp byte [rdi + 0xe8], r13b
jne 0x18005511b
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rcx, qword [rsp + 0x40]
mov r8d, 1
mov rdx, qword [r12]
call fcn.18005daa0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x180055158
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180055153
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800552d5
call fcn.18009d1f4
mov rax, qword [rdi]
mov rdx, rsi
mov rcx, rdi
call qword [rax + 0x38]
test eax, eax
jns 0x180055195
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], eax
lea r9, str.MarshalBrowserPointer_failed
lea r8, str.CBrowserMonitorFTM::Start_2
lea rdx, str.BrowserMonitorSinkFTM
mov ecx, 4
call fcn.18005dd20
mov eax, dword [rbp + 0xe8]
mov dword [rdi + 0x58], eax
mov qword [rbp + 0xe0], r13
mov rax, qword [rdi]
lea r8, [rbp + 0xe0]
lea rdx, [0x1800da170]
mov rcx, rdi
call qword [rax]
mov r8d, 0x104
lea rdx, [rbp - 0x80]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.1800098d0
lea r8, [0x1800eb6a8]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.180009988
lea rcx, [rdi + 0xc0]
cmp rcx, rax
je 0x180055208
mov r8b, r13b
mov rdx, rax
call fcn.180007418
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x180055241
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005523c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800552b6
call fcn.18009d1f4
lea r9, [rdi + 0x5c]
lea r8, [0x1800da220]
mov rdx, qword [rbp + 0xe0]
mov rcx, qword [rdi + 0x50]
call fcn.18004af8c
mov ebx, eax
lea rcx, [rsp + 0x40]
call fcn.180005f10
mov rcx, qword [rbp + 0xe0]
test rcx, rcx
je 0x18005527a
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp + 0xd8]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbp + 0xe8]
test rcx, rcx
je 0x180055299
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov eax, ebx
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1800a45b8
int3
mov r8d, 0x80
lea rdx, [rbp - 0x78]
mov rcx, qword [rbp - 0x80]
call fcn.18000e6e8
call fcn.18004b03c
int3
call fcn.1800a45b8
int3