Function at 0x1400412c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x4c0]
sub rsp, 0x5c0
mov rax, qword [0x1401b7030]
xor rax, rsp
mov qword [rbp + 0x4b0], rax
mov r14d, r8d
mov r15d, edx
mov dword [rsp + 0x44], edx
mov rbx, rcx
cmp byte [rcx + 0x73], 0
je 0x140041b8a
mov word [rsp + 0x70], 0x407
xor r12d, r12d
mov qword [rsp + 0x74], r12
lea eax, [r14 + 1]
mov edi, eax
mov ecx, eax
call fcn.14011c740
mov rsi, rax
mov r8d, edi
xor edx, edx
mov rcx, rax
call fcn.1401216a0
mov r8d, r14d
mov rdx, rsi
mov rcx, qword [rbx + 0x38]
call fcn.140025f70
cmp r14d, 0x104
jbe 0x140041354
mov byte [rsi + 0x104], r12b
jmp 0x140041358
mov byte [r14 + rsi], r12b
mov eax, dword [rbx + 0xb54]
cmp eax, 1
je 0x1400413af
mov r8d, 4
lea rdx, [rsp + 0x40]
mov rcx, qword [rbx + 0x38]
call fcn.140025f70
mov ecx, dword [rsp + 0x40]
mov r12d, ecx
and r12d, 0xff0000
mov eax, ecx
shr eax, 0x10
or r12d, eax
shr r12d, 8
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shl eax, 8
or r12d, eax
mov eax, dword [rbx + 0xb54]
cmp eax, 1
jne 0x1400413ba
cmp r15d, 0xffffffff
je 0x1400413c5
cmp eax, 1
je 0x140041411
cmp r15d, 0xffffffff
jne 0x140041411
cmp r12d, r15d
jne 0x140041411
lea rax, [0x1401bd680]
mov qword [rsp + 0x20], rax
mov r9, rsi
lea r8, [0x1401bd580]
lea rdx, str.__s____s____s
lea rcx, [rbp + 0x170]
call fcn.140048000
lea rdx, [rbp + 0x170]
mov rcx, rbx
call fcn.140040ed0
mov rcx, rsi
call fcn.14011c3a0
mov byte [rbx + 0xb3e], 1
jmp 0x140041b8a
lea r14, [rbx + 0x9f1]
mov r9d, 0x124
mov r8, r14
mov edx, 0x40f
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_GetDlgItemTextA]
mov edx, 0x2c
mov rcx, rsi
call fcn.14012f358
mov rdi, rax
lea rcx, [rbx + 0xb3f]
test rax, rax
jne 0x140041450
mov byte [rcx], al
jmp 0x140041461
lea r8, [rax + 1]
mov edx, reloc.WS2_32.dll_select
call fcn.14012524c
mov byte [rdi], 0
mov edx, 0x5c
mov rcx, rsi
call fcn.14012f358
lea r9, [rax + 1]
mov r8, r14
lea rdx, [0x14019c6b0]
lea rcx, [rbp + 0x380]
call fcn.140048060
xor r13b, r13b
xor eax, eax
mov qword [rsp + 0x50], rax
mov rdi, 0xffffffffffffffff
mov rcx, rdi
nop dword [rax]
inc rcx
cmp byte [r14 + rcx], al
jne 0x1400414a0
inc rcx
call fcn.14011c740
mov r15, rax
mov r8, rdi
inc r8
cmp byte [r14 + r8], r13b
jne 0x1400414b7
inc r8
xor edx, edx
mov rcx, r15
call fcn.1401216a0
mov rdx, rdi
inc rdx
cmp byte [r14 + rdx], r13b
jne 0x1400414d0
inc rdx
mov r8, r14
mov rcx, r15
call fcn.14012524c
mov edx, 0x5c
mov rcx, r15
call fcn.14012f358
mov byte [rax], r13b
lea r8, [rbx + 0xb8a]
mov rax, rsi
sub r8, rsi
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140041517
inc rax
test ecx, ecx
jne 0x140041504
test edx, edx
je 0x140041559
mov rax, rdi
nop
inc rax
cmp byte [rsi + rax], r13b
jne 0x140041520
cmp rax, 4
jb 0x140041b8a
lea rdx, [rax + rsi]
xor ecx, ecx
lea r8, str..zip
movzx eax, byte [rdx + rcx - 4]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x140041b8a
cmp rcx, 5
jne 0x140041540
cmp byte [r15 + 1], 0x3a
jne 0x140041564
mov byte [r15 + 3], r13b
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.GetDiskFreeSpaceExA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400415a9
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x50]
mov rcx, r15
call rax
movzx r13d, r13b
test eax, eax
mov eax, 1
cmove r13d, eax
mov rcx, r15
call fcn.14011c3a0
mov rcx, qword [rsp + 0x50]
sar rcx, 0xa
mov eax, 0x10624dd3
mul dword [rsp + 0x44]
shr edx, 6
movzx r15d, r13b
cmp ecx, edx
mov r13d, 1
cmovb r15d, r13d
lea edx, [r13 + 0x5b]
mov rcx, rsi
call fcn.14012f358
test rax, rax
je 0x140041b0d
cmp byte [rax + 1], 0
je 0x140041b0d
test r15b, r15b
je 0x140041620
lea r9, [rbp + 0x380]
lea r8, [0x1401bc800]
lea rdx, str.__s____s__
lea rcx, [rbp + 0x170]
call fcn.140048000
jmp 0x140041b3a
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov r15, rax
mov edx, 0x5c
mov rcx, rax
call fcn.14012f358
test rax, rax
je 0x140041643
inc rax
jmp 0x140041646
mov rax, r15
mov r8d, 9
lea rdx, str._UVNCDIR_
mov rcx, rax
call fcn.14012e560
test eax, eax
jne 0x140041690
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], InitCommonControls
mov byte [rbp - 0x50], al
inc rdi
cmp byte [r15 + rdi], 0
jne 0x140041672
mov r8, rdi
mov rdx, r15
lea rcx, [rbp - 0x50]
call fcn.14002dc40
xor r15d, r15d
jmp 0x140041705
mov qword [rbp - 0x60], 0
mov qword [rbp - 0x58], InitCommonControls
mov byte [rbp - 0x70], 0
mov r8d, 9
lea rdx, str._UVNCPFT_
lea rcx, [rbp - 0x70]
call fcn.14002dc40
nop
nop dword [rax + rax]
inc rdi
cmp byte [r15 + rdi], 0
jne 0x1400416c0
mov r8, rdi
mov rdx, r15
lea rcx, [rbp - 0x70]
call fcn.140047e60
movups xmm0, xmmword [rbp - 0x70]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rbp - 0x60]
movups xmmword [rbp - 0x40], xmm1
xor r15d, r15d
mov qword [rbp - 0x60], r15
mov qword [rbp - 0x58], InitCommonControls
mov byte [rbp - 0x70], r15b
lea rcx, [rbp - 0x70]
call fcn.14002dbe0
lea r8, [rbp - 0x50]
cmp qword [rbp - 0x38], 0x10
cmovae r8, qword [rbp - 0x50]
mov edx, 0x124
mov rcx, r14
call fcn.1401252ac
lea rcx, [rbp - 0x50]
call fcn.14002dbe0
mov edx, r12d
shl rdx, 0x20
mov eax, dword [rsp + 0x44]
add rdx, rax
mov qword [rbx + 0x600], rdx
mov r9d, WSAAsyncSelect
lea r8, [rbp + 0x110]
call fcn.14003f340
lea rax, [rbp + 0x110]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x380]
lea r8, [0x1401bcf80]
lea rdx, [0x14019c718]
lea rcx, [rbp + 0x170]
call fcn.140048000
lea rdx, [rbp + 0x170]
mov rcx, rbx
call fcn.140040ed0
mov rdi, qword [rbx + 0x40]
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov edx, 0x40a
lea r8d, [rdx - 8]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendDlgItemMessageA]
movzx eax, word [rbx + 0xb58]
shl rax, 0x10
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov edx, 0x40a
lea r8d, [rdx - 9]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendDlgItemMessageA]
xor r8d, r8d
mov rdx, qword [rbx + 0x40]
mov rcx, rbx
call fcn.140040d70
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 3]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbx + 0xb18], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete dil
cmp qword [rbx + 0xb18], 0xffffffffffffffff
jne 0x1400418c8
lea rax, [0x1401bbf70]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x380]
lea r8, [0x1401bd580]
lea rdx, str.__s____s____s
lea rcx, [rbp + 0x170]
call fcn.140048000
lea rdx, [rbp + 0x170]
mov rcx, rbx
call fcn.140040ed0
mov rcx, qword [rbx + 0xb18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.14011c3a0
mov byte [rbx + 0xb3e], 1
mov dword [rsp + 0x74], 0xffffffff
mov rcx, qword [rbx + 0x38]
mov r8d, InitCommonControls
lea rdx, [rsp + 0x70]
cmp dword [rbx + 0xb54], 1
jne 0x1400418bb
xor r9d, r9d
call fcn.140026ae0
jmp 0x140041b8a
mov r9b, 7
call fcn.1400266a0
jmp 0x140041b8a
mov rcx, rsi
call fcn.14011c3a0
mov edx, dword [rbx + 0xb58]
add edx, 0x400
mov rcx, qword [rbx + 0x38]
call fcn.140027070
test dil, dil
je 0x140041a68
cmp dword [rbx + 0xb54], 1
je 0x140041a68
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
lea rdx, [rbp - 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp rdi, 0xffffffffffffffff
je 0x140041a68
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [rbp - 0x14]
shl rax, 0x20
mov ecx, dword [rbp - 0x10]
add rax, rcx
mov ecx, dword [rbx + 0xb58]
xor edx, edx
div rcx
lea ecx, [rax*4 + 0x400]
mov dword [rsp + 0x48], ecx
call fcn.14011c740
mov rdi, rax
mov qword [rsp + 0x58], rax
mov r13, qword [rbx + 0xb18]
xor r12b, r12b
mov dword [rsp + 0x40], r15d
mov esi, r15d
mov ecx, dword [rbx + 0xb58]
call fcn.14011c740
mov r15, rax
mov r14, rdi
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, dword [rbx + 0xb58]
mov rdx, r15
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [rsp + 0x40]
test eax, eax
jne 0x1400419b4
test edi, edi
je 0x1400419b8
mov r12b, 1
jmp 0x1400419b8
test edi, edi
je 0x1400419dd
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call sym.vncviewer.exe_adler32_z
mov r8d, edi
mov rdx, r15
mov ecx, eax
call sym.vncviewer.exe_adler32_z
mov dword [r14], eax
add esi, 4
add r14, 4
jmp 0x140041982
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, r15
call fcn.14011c3a0
test r12b, r12b
jne 0x140041a65
cmp esi, 0xffffffff
je 0x140041a65
mov word [rbp - 0x80], 0xc07
mov eax, dword [rsp + 0x48]
bswap eax
mov dword [rbp - 0x7c], eax
mov ecx, esi
shl ecx, 0x10
mov eax, esi
and eax, 0xff00
or ecx, eax
shl ecx, 8
mov eax, esi
sar eax, 8
and eax, 0xff00
or ecx, eax
mov eax, esi
shr eax, 0x18
or ecx, eax
mov dword [rbp - 0x78], ecx
mov byte [rsp + 0x20], 1
mov r9b, 7
mov r8d, InitCommonControls
lea rdx, [rbp - 0x80]
mov rcx, qword [rbx + 0x38]
call fcn.140026620
mov r9b, 1
mov r8d, esi
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rbx + 0x38]
call fcn.140026ae0
xor r15d, r15d
mov eax, dword [rsp + 0x44]
bswap eax
mov dword [rsp + 0x74], eax
mov rcx, qword [rbx + 0x38]
mov r8d, InitCommonControls
lea rdx, [rsp + 0x70]
cmp dword [rbx + 0xb54], 1
jne 0x140041a94
xor r9d, r9d
call fcn.140026ae0
jmp 0x140041a9c
mov r9b, 7
call fcn.1400266a0
mov qword [rbx + 0xb20], 0
mov qword [rbx + 0xb28], r15
mov qword [rbx + 0xb30], r15
mov dword [rbx + 0xb38], r15d
mov word [rbx + 0xb3c], 0x101
mov byte [rbx + 0xb3e], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x610], eax
cmp dword [rbx + 0xb54], 1
jne 0x140041b06
mov rax, qword [rbx + 0x38]
cmp byte [rax + 0x4d60], 0
je 0x140041b06
cmp byte [rax + 0x4d61], 0
jne 0x140041b06
mov dword [rax + 0x4d54], r15d
mov rcx, rbx
call fcn.14003e030
mov al, 1
jmp 0x140041b8c
lea rax, [0x1401bd680]
mov qword [rsp + 0x20], rax
lea r9, str.Invalid_remote_file_name
lea r8, [0x1401bc800]
lea rdx, str.__s____s____s
lea rcx, [rbp + 0x170]
call fcn.140048000
lea rdx, [rbp + 0x170]
mov rcx, rbx
call fcn.140040ed0
mov rcx, rsi
call fcn.14011c3a0
mov dword [rsp + 0x74], 0xffffffff
mov rcx, qword [rbx + 0x38]
mov r8d, InitCommonControls
lea rdx, [rsp + 0x70]
cmp dword [rbx + 0xb54], r13d
jne 0x140041b7b
xor r9d, r9d
call fcn.140026ae0
jmp 0x140041b83
mov r9b, 7
call fcn.1400266a0
mov byte [rbx + 0xb3e], r13b
xor al, al
mov rcx, qword [rbp + 0x4b0]
xor rcx, rsp
call fcn.14011c340
mov rbx, qword [rsp + 0x618]
add rsp, 0x5c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret