Function at 0x140074220
Capabilities:
Extract resource via kernel32 functions
Get hostname

Disassembly:
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0xba0]
sub rsp, 0xca0
mov rax, qword [0x1401ef010]
xor rax, rsp
mov qword [rbp + 0xb90], rax
mov rax, qword [rcx]
mov r8b, 0xa
mov r14, rdx
mov rsi, rcx
call qword [rax + 0x28]
mov rdi, rax
test rax, rax
je 0x14007465a
mov r9d, 0x400
mov qword [rsp + 0xcd0], rbx
lea r8, [rbp - 0x80]
mov rcx, rax
lea rdx, str.GET__s
call fcn.140037330
mov rcx, rdi
mov ebx, eax
call fcn.140132640
lea eax, [rbx + 1]
cmp eax, 1
jbe 0x140074652
lea r9, [rbp - 0x80]
mov edx, 1
lea r8, str.vncHTTPConnectThread::DoHTTP_:_file__s_requested_n
lea rcx, vtable.VNCLog.0
call fcn.140018c00
lea rdx, [rsp + 0x50]
mov rcx, r14
mov edi, 1
call fcn.140088b60
test eax, eax
je 0x140074652
xor ebx, ebx
movzx eax, byte [rsp + 0x50]
cmp al, 0xa
jne 0x1400742e7
test edi, edi
jne 0x140074302
mov edi, 1
jmp 0x1400742ec
cmp al, 0x20
cmovge edi, ebx
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.140088b60
test eax, eax
jne 0x1400742d3
jmp 0x140074652
lea r8, str.vncHTTPConnectThread::DoHTTP_:_parameters_read_n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140018c00
cmp byte [rbp - 0x80], 0x2f
je 0x14007433a
lea r8, str.vncHTTPConnectThread::DoHTTP_:_filename_didnt_begin_with___n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140018c00
jmp 0x140074562
cmp byte [rbp - 0x7f], bl
jne 0x1400744c2
lea r8, str.vncHTTPConnectThread::DoHTTP_:_sending_main_page_n
mov edx, 1
lea rcx, vtable.VNCLog.0
call fcn.140018c00
mov r8d, setsockopt
lea rdx, str.HTTP_1.0_200_OK_n_n
mov rcx, r14
call fcn.140088340
cmp eax, 0x11
jne 0x140074652
mov rcx, qword [rsi + 0xa0]
mov rax, qword [rcx]
call qword [rax + 0x1a0]
mov rdi, 0xffffffffffffffff
test eax, eax
je 0x140074479
mov rcx, qword [rsi + 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 0x140074420
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], bl
jne 0x1400743e0
test rax, rax
je 0x140074431
nop dword [rax]
movsx ecx, byte [rsp + rbx + 0x68]
call fcn.1401454f4
mov byte [rsp + rbx + 0x68], al
lea rcx, [rsp + 0x68]
inc rbx
mov rax, rdi
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140074410
cmp rbx, rax
jb 0x1400743f0
jmp 0x140074431
lea r8, [0x1401c9b4c]
mov edx, reloc.WS2_32.dll_recv
call fcn.14013b330
mov rax, qword [0x1401fdf80]
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.140074bd0
jmp 0x14007448c
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.140074bd0
lea rax, [rbp + 0x380]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140074493
mov r8d, edi
lea rdx, [rbp + 0x380]
mov rcx, r14
call fcn.140088340
cmp eax, edi
jne 0x140074652
lea r8, str.vncHTTPConnectThread::DoHTTP_:_sent_page_n
jmp 0x140074641
mov rax, qword [0x1401fdf80]
cmp dword [rax + 0x7a4], ebx
je 0x140074514
lea rdi, str._VncViewer.jar
mov r9, rdi
lea r10, [0x140196d78]
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 0x140074503
inc rax
test ecx, ecx
jne 0x1400744f0
test edx, edx
je 0x14007457c
inc ebx
add r9, 0x18
cmp r9, r10
jl 0x1400744e2
jmp 0x140074562
lea rdi, str._VncViewer.jar
mov r9, rdi
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 0x140074553
inc rax
test ecx, ecx
jne 0x140074540
test edx, edx
je 0x14007457c
inc ebx
add r9, 0x18
cmp r9, r10
jl 0x140074530
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, r14
call fcn.140088340
jmp 0x140074652
lea r8, str.vncHTTPConnectThread::DoHTTP_:_requested_file_recognised_n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140018c00
movsxd rax, ebx
lea rcx, [rax + rax*2]
movzx edx, word [rdi + rcx*8 + 0x10]
mov r8, qword [rdi + rcx*8 + 8]
mov rcx, qword [0x1401fb658]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
test rax, rax
je 0x140074652
mov rcx, qword [0x1401fb658]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, qword [0x1401fb658]
mov rdx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140074652
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140074652
lea r8, str.vncHTTPConnectThread::DoHTTP_:_sending_file..._n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140018c00
mov r8d, setsockopt
lea rdx, str.HTTP_1.0_200_OK_n_n
mov rcx, r14
call fcn.140088340
cmp eax, 0x11
jne 0x140074652
mov r8d, edi
mov rdx, rbx
mov rcx, r14
call fcn.140088340
cmp eax, edi
jne 0x140074652
lea r8, str.vncHTTPConnectThread::DoHTTP_:_file_successfully_sent_n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140018c00
mov rbx, qword [rsp + 0xcd0]
mov rcx, qword [rbp + 0xb90]
xor rcx, rsp
call fcn.140132620
mov rsi, qword [rsp + 0xcd8]
add rsp, 0xca0
pop r14
pop rdi
pop rbp
ret