Function at 0x140075460
Capabilities:
Extract resource via kernel32 functions
Get hostname
Receive data
Receive data on socket

Disassembly:
push rbp
push rdi
push r12
push r15
lea rbp, [rsp - 0xba8]
sub rsp, 0xca8
mov rax, qword [0x14021b0e0]
xor rax, rsp
mov qword [rbp + 0xb90], rax
mov rax, qword [rcx]
mov r8b, 0xa
mov r15, rdx
mov r12, rcx
call qword [rax + 0x28]
mov rdi, rax
test rax, rax
je 0x140075921
mov r9d, 0x400
mov qword [rsp + 0xce0], rbx
lea r8, [rbp - 0x80]
mov rcx, rax
lea rdx, str.GET__s
call fcn.140038040
mov rcx, rdi
mov ebx, eax
call fcn.140147b10
lea eax, [rbx + 1]
cmp eax, 1
jbe 0x140075919
mov qword [rsp + 0xce8], rsi
lea r9, [rbp - 0x80]
lea r8, str.vncHTTPConnectThread::DoHTTP_:_file__s_requested_n
mov qword [rsp + 0xca0], r14
mov edx, 1
lea rcx, vtable.VNCLog.0
call fcn.140018d00
xor esi, esi
mov r14d, 1
nop dword [rax]
lea rdi, [rsp + 0x50]
mov ebx, 1
nop word [rax + rax]
mov rcx, qword [r15 + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x140075549
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x140075547
movsxd rcx, eax
add rdi, rcx
sub ebx, eax
jmp 0x14007555a
je 0x1400755b2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1400758e8
test ebx, ebx
jne 0x140075520
movzx eax, byte [rsp + 0x50]
cmp al, 0xa
jne 0x1400755a2
test r14d, r14d
je 0x140075507
lea r8, str.vncHTTPConnectThread::DoHTTP_:_parameters_read_n
lea edx, [rbx + 9]
lea rcx, vtable.VNCLog.0
call fcn.140018d00
cmp byte [rbp - 0x80], 0x2f
je 0x1400755cf
lea r8, str.vncHTTPConnectThread::DoHTTP_:_filename_didnt_begin_with___n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140018d00
jmp 0x1400757f2
cmp al, 0x20
jl 0x140075510
mov r14d, esi
jmp 0x140075510
lea r8, str.VSocket::ReadExactHTTP_:_zero_bytes_read3_n
mov edx, 4
lea rcx, vtable.VNCLog.0
call fcn.140018d00
jmp 0x140075909
cmp byte [rbp - 0x7f], sil
jne 0x140075752
lea r8, str.vncHTTPConnectThread::DoHTTP_:_sending_main_page_n
mov edx, 1
lea rcx, vtable.VNCLog.0
call fcn.140018d00
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, str.HTTP_1.0_200_OK_n_n
mov rcx, r15
call fcn.14008ab60
cmp eax, 0x11
jne 0x140075909
mov rcx, qword [r12 + 0xa0]
mov rax, qword [rcx]
call qword [rax + 0x1a0]
mov rbx, 0xffffffffffffffff
test eax, eax
je 0x140075709
mov rcx, qword [r12 + 0xa0]
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x5c]
mov rax, qword [rcx]
call qword [rax + 0x1c0]
lea rdx, [rsp + 0x54]
mov dword [rsp + 0x54], reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea rcx, [rsp + 0x68]
test eax, eax
je 0x1400756b0
mov rax, rbx
inc rax
cmp byte [rcx + rax], sil
jne 0x140075673
test rax, rax
je 0x1400756c1
movsx ecx, byte [rsp + rsi + 0x68]
call fcn.14015a9c4
mov byte [rsp + rsi + 0x68], al
lea rcx, [rsp + 0x68]
inc rsi
mov rax, rbx
nop word [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x1400756a0
cmp rsi, rax
jb 0x140075681
jmp 0x1400756c1
lea r8, str.WinVNC
mov edx, reloc.WS2_32.dll_recv
call fcn.140150800
mov rax, qword [0x14022a710]
lea r8, [rsp + 0x68]
mov r9d, dword [rsp + 0x5c]
lea rdx, str._HTML__n___HEAD__TITLE____.256s____TITLE___HEAD__n___BODY__n___SPAN_styleposition:_absolute__top:0px_left:0px__n_OBJECT__n____IDVncViewer_n____classid__clsid:8AD9C840_044E_11D1_B3E9_00805F499D93_n____codebase__http:__java.sun.com_update_1.4.2_jinstall_1_4_windows_i586.cabVersion1_4_0_0_n____WIDTH___d_HEIGHT___d___n_____PARAM_NAME__CODE_VALUE__VncViewer.class___n_____PARAM_NAME__ARCHIVE_VALUE__VncViewer.jar___n_____PARAM_NAME__type_VALUE__application_x_java_applet_version1.4__n_____PARAM_NAME__scriptable_VALUE__false__n_____PARAM_NAME__PORT_VALUE_d__n_____PARAM_NAME__ENCODING_VALUETight__n_____PARAM_NAME__Open_New_Window_VALUEYes__n_____COMMENT__n_t_EMBED__n____________type__application_x_java_applet_version1.4__n____________CODE__VncViewer.class__n____________ARCHIVE__VncViewer.jar__n____________WIDTH___d__n____________HEIGHT___d__n____________PORT__d__n____________ENCODING_Tight__n_t____scriptable__false__n_t____pluginspage_http:__java.sun.com_products_plugin_index.htmldownload__n_t_____NOEMBED__n______________NOEMBED__n_t__EMBED__n______COMMENT__n__OBJECT__n____SPAN__n____BODY__n__HTML__n
mov ecx, dword [rax + 0x72c]
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x40], ecx
add eax, 0x20
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], r9d
mov dword [rsp + 0x28], ecx
lea rcx, [rbp + 0x380]
mov dword [rsp + 0x20], eax
call fcn.140075fb0
jmp 0x14007571c
lea rdx, str._HTML__n___HEAD__TITLE_UltraVNC_desktop__TITLE___HEAD__n___BODY__n_____H1_Connections_Disabled__H1__n____The_requested_desktop_is_not_configured_to_accept_incoming_connections._n____BODY__n__HTML__n
lea rcx, [rbp + 0x380]
call fcn.140075fb0
lea rax, [rbp + 0x380]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140075723
mov r8d, ebx
lea rdx, [rbp + 0x380]
mov rcx, r15
call fcn.14008ab60
cmp eax, ebx
jne 0x140075909
lea r8, str.vncHTTPConnectThread::DoHTTP_:_sent_page_n
jmp 0x1400758d5
mov rax, qword [0x14022a710]
cmp dword [rax + 0x7a4], esi
je 0x1400757a4
lea rbx, str._VncViewer.jar
mov r9, rbx
lea r10, [0x1401eb748]
mov r8, qword [r9]
lea rax, [rbp - 0x80]
sub r8, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140075793
inc rax
test ecx, ecx
jne 0x140075780
test edx, edx
je 0x14007580c
inc esi
add r9, 0x18
cmp r9, r10
jl 0x140075772
jmp 0x1400757f2
lea rbx, str._VncViewer.jar
mov r9, rbx
lea r10, str._HTML__n___HEAD__TITLE____.256s____TITLE___HEAD__n___BODY__n___SPAN_styleposition:_absolute__top:0px_left:0px__n_OBJECT__n____IDVncViewer_n____classid__clsid:8AD9C840_044E_11D1_B3E9_00805F499D93_n____codebase__http:__java.sun.com_update_1.4.2_jinstall_1_4_windows_i586.cabVersion1_4_0_0_n____WIDTH___d_HEIGHT___d___n_____PARAM_NAME__CODE_VALUE__VncViewer.class___n_____PARAM_NAME__ARCHIVE_VALUE__VncViewer.jar___n_____PARAM_NAME__type_VALUE__application_x_java_applet_version1.4__n_____PARAM_NAME__scriptable_VALUE__false__n_____PARAM_NAME__PORT_VALUE_d__n_____PARAM_NAME__ENCODING_VALUETight__n_____PARAM_NAME__Open_New_Window_VALUEYes__n_____COMMENT__n_t_EMBED__n____________type__application_x_java_applet_version1.4__n____________CODE__VncViewer.class__n____________ARCHIVE__VncViewer.jar__n____________WIDTH___d__n____________HEIGHT___d__n____________PORT__d__n____________ENCODING_Tight__n_t____scriptable__false__n_t____pluginspage_http:__java.sun.com_products_plugin_index.htmldownload__n_t_____NOEMBED__n______________NOEMBED__n_t__EMBED__n______COMMENT__n__OBJECT__n____SPAN__n____BODY__n__HTML__n
nop word [rax + rax]
mov r8, qword [r9]
lea rax, [rbp - 0x80]
sub r8, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1400757e3
inc rax
test ecx, ecx
jne 0x1400757d0
test edx, edx
je 0x14007580c
inc esi
add r9, 0x18
cmp r9, r10
jl 0x1400757c0
mov r8d, 0xa8
lea rdx, str.HTTP_1.0_404_Not_Found_n_n_HTML__n___HEAD__TITLE_404_Not_Found__TITLE___HEAD__n___BODY__n_____H1_Not_Found__H1__n____The_requested_file_could_not_be_found._n____BODY__n__HTML__n
mov rcx, r15
call fcn.14008ab60
jmp 0x140075909
lea r8, str.vncHTTPConnectThread::DoHTTP_:_requested_file_recognised_n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140018d00
movsxd rax, esi
lea rcx, [rax + rax*2]
movzx edx, word [rbx + rcx*8 + 0x10]
mov r8, qword [rbx + rcx*8 + 8]
mov rcx, qword [0x1402281b0]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
test rax, rax
je 0x140075909
mov rcx, qword [0x1402281b0]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, qword [0x1402281b0]
mov rdx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140075909
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140075909
lea r8, str.vncHTTPConnectThread::DoHTTP_:_sending_file..._n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140018d00
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, str.HTTP_1.0_200_OK_n_n
mov rcx, r15
call fcn.14008ab60
cmp eax, 0x11
jne 0x140075909
mov r8d, edi
mov rdx, rbx
mov rcx, r15
call fcn.14008ab60
cmp eax, edi
jne 0x140075909
lea r8, str.vncHTTPConnectThread::DoHTTP_:_file_successfully_sent_n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140018d00
jmp 0x140075909
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.VSocket::ReadExactHTTP_:_HTTP_socket_error:__d_n
mov edx, 4
mov r9d, eax
lea rcx, vtable.VNCLog.0
call fcn.140018d00
mov rsi, qword [rsp + 0xce8]
mov r14, qword [rsp + 0xca0]
mov rbx, qword [rsp + 0xce0]
mov rcx, qword [rbp + 0xb90]
xor rcx, rsp
call fcn.140147af0
add rsp, 0xca8
pop r15
pop r12
pop rdi
pop rbp
ret