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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc48
mov eax, dword [0x55800c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0xc34], ecx
mov eax, dword [ebx]
mov edx, dword [eax + 0x14]
cmp eax, vtable.vncHTTPConnectThread.0
jne 0x46e290
push 0x401
call fcn.004cbf7b
mov ecx, dword [ebp - 0xc34]
mov edi, eax
lea eax, [ebp - 0xc2d]
xor esi, esi
push eax
call fcn.004866f0
test eax, eax
je 0x46ddf4
mov al, byte [ebp - 0xc2d]
lea ecx, [esi + edi]
cmp al, 0xa
je 0x46de0a
inc esi
mov byte [ecx], al
cmp esi, 0x3ff
je 0x46de01
push ecx
mov ecx, dword [ebp - 0xc34]
lea eax, [ebp - 0xc2d]
push eax
call fcn.004866f0
test eax, eax
jne 0x46ddc5
push edi
call fcn.004cbf38
add esp, 4
xor edi, edi
jmp 0x46de0d
mov byte [edi + 0x3ff], 0
jmp 0x46de0d
mov byte [ecx], 0
test edi, edi
je 0x46e27d
lea eax, [ebp - 0x41c]
push eax
push str.GET__s
push edi
call fcn.004349a0
add esp, 0xc
mov esi, eax
push edi
call fcn.004cbf38
add esp, 4
test esi, esi
je 0x46e27d
cmp esi, 0xffffffff
je 0x46e27d
lea eax, [ebp - 0x41c]
push eax
push str.d:_saasultravncwinvncwinvnc_vnchttpconnect.cpp_:_file__s_requested_n
push 1
push 0x558c50
call fcn.0041c840
mov edi, dword [ebp - 0xc34]
lea eax, [ebp - 0xc2d]
add esp, 0xc
mov ecx, edi
mov esi, 1
push eax
call fcn.004866f0
test eax, eax
je 0x46e27d
mov al, byte [ebp - 0xc2d]
cmp al, 0xa
jne 0x46de97
test esi, esi
jne 0x46dec4
mov esi, 1
jmp 0x46de9e
xor ecx, ecx
cmp al, 0x20
cmovge esi, ecx
push ecx
lea eax, [ebp - 0xc2d]
mov ecx, edi
push eax
call fcn.004866f0
test eax, eax
jne 0x46de82
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004cbf27
mov esp, ebp
pop ebp
ret 4
push str.d:_saasultravncwinvncwinvnc_vnchttpconnect.cpp_:_parameters_read_n
push 9
push 0x558c50
call fcn.0041c840
add esp, 0xc
cmp byte [ebp - 0x41c], 0x2f
je 0x46df19
push str.d:_saasultravncwinvncwinvnc_vnchttpconnect.cpp_:_filename_didnt_begin_with___n
push 0
push 0x558c50
call fcn.0041c840
add esp, 0xc
mov ecx, edi
push 0xa8
push 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
call fcn.00485fd0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004cbf27
mov esp, ebp
pop ebp
ret 4
mov ecx, 0x548754
lea eax, [ebp - 0x41c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x46df44
test dl, dl
je 0x46df40
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x46df44
add eax, 2
add ecx, 2
test dl, dl
jne 0x46df24
xor eax, eax
jmp 0x46df49
sbb eax, eax
or eax, 1
test eax, eax
jne 0x46e0ca
push str.d:_saasultravncwinvncwinvnc_vnchttpconnect.cpp_:_sending_main_page_n
push 1
push 0x558c50
call fcn.0041c840
add esp, 0xc
mov ecx, edi
push 0x11
push str.HTTP_1.0_200_OK_n_n
call fcn.00485fd0
cmp eax, 0x11
jne 0x46e27d
mov ecx, dword [ebx + 0x64]
mov eax, dword [ecx]
cmp eax, vtable.vncServer.0
jne 0x46e29e
xor eax, eax
cmp dword [ecx + 0x74], eax
setne al
test eax, eax
je 0x46e082
mov ecx, dword [ebx + 0x64]
lea edx, [ebp - 0xc40]
push edx
lea edx, [ebp - 0xc38]
push edx
mov eax, dword [ecx]
lea edx, [ebp - 0xc3c]
push edx
call dword [eax + 0x194]
lea eax, [ebp - 0xc34]
mov dword [ebp - 0xc34], 0x10
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x46e01f
lea ecx, [ebp - 0x18]
xor esi, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46dfe3
sub ecx, edx
je 0x46e032
nop
movsx eax, byte [ebp + esi - 0x18]
push eax
call fcn.004da9df
lea ecx, [ebp - 0x18]
mov byte [ebp + esi - 0x18], al
add esp, 4
lea edx, [ecx + 1]
inc esi
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46e010
sub ecx, edx
cmp esi, ecx
jb 0x46dff0
jmp 0x46e032
push 0x542d04
lea eax, [ebp - 0x18]
push 0x10
push eax
call fcn.004d0170
add esp, 0xc
mov ecx, dword [ebx + 0x64]
mov eax, dword [ecx]
cmp eax, vtable.vncServer.0
jne 0x46e2a9
mov esi, dword [ecx + 0x50]
cmp eax, vtable.vncServer.0
jne 0x46e2bb
mov eax, dword [ecx + 0x50]
mov edx, dword [ebp - 0xc38]
mov ecx, dword [ebp - 0xc3c]
add edx, 0x20
push esi
push edx
push ecx
push eax
push edx
push ecx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc2c]
push 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
push eax
call fcn.0046e6e0
add esp, 0x24
jmp 0x46e096
lea eax, [ebp - 0xc2c]
push 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
push eax
call fcn.0046e6e0
add esp, 8
lea esi, [ebp - 0xc2c]
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x46e0a0
sub esi, ecx
lea eax, [ebp - 0xc2c]
push esi
push eax
mov ecx, edi
call fcn.00485fd0
cmp eax, esi
jne 0x46e27d
push str.d:_saasultravncwinvncwinvnc_vnchttpconnect.cpp_:_sent_page_n
jmp 0x46e26e
mov ecx, dword [ebx + 0x64]
mov eax, dword [ecx]
cmp eax, vtable.vncServer.0
jne 0x46e2c6
mov eax, dword [ecx + 0x380]
xor edi, edi
test eax, eax
je 0x46e15a
mov esi, 0x519b94
nop dword [eax + eax]
mov ecx, dword [esi]
lea eax, [ebp - 0x41c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x46e118
test dl, dl
je 0x46e114
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x46e118
add eax, 2
add ecx, 2
test dl, dl
jne 0x46e0f8
xor eax, eax
jmp 0x46e11d
sbb eax, eax
or eax, 1
test eax, eax
je 0x46e12f
add esi, 0xc
inc edi
cmp esi, 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
jl 0x46e0f0
jmp 0x46e19d
push str.d:_saasultravncwinvncwinvnc_vnchttpconnect.cpp_:_requested_file_recognised_n
push 9
push 0x558c50
call fcn.0041c840
add esp, 0xc
lea eax, [edi + edi*2]
push dword [eax*4 + 0x519b98]
movzx eax, word [eax*4 + 0x519b9c]
jmp 0x46e1eb
mov esi, 0x51966c
nop
mov ecx, dword [esi]
lea eax, [ebp - 0x41c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x46e188
test dl, dl
je 0x46e184
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x46e188
add eax, 2
add ecx, 2
test dl, dl
jne 0x46e168
xor eax, eax
jmp 0x46e18d
sbb eax, eax
or eax, 1
test eax, eax
je 0x46e1c5
add esi, 0xc
inc edi
cmp esi, 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
jl 0x46e160
mov ecx, dword [ebp - 0xc34]
push 0xa8
push 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
call fcn.00485fd0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004cbf27
mov esp, ebp
pop ebp
ret 4
push str.d:_saasultravncwinvncwinvnc_vnchttpconnect.cpp_:_requested_file_recognised_n
push 9
push 0x558c50
call fcn.0041c840
add esp, 0xc
lea eax, [edi + edi*2]
push dword [eax*4 + 0x519670]
movzx eax, word [eax*4 + 0x519674]
push eax
push dword [0x567d1c]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x46e27d
push esi
push dword [0x567d1c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push dword [0x567d1c]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46e27d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x46e27d
push str.d:_saasultravncwinvncwinvnc_vnchttpconnect.cpp_:_sending_file..._n
push 9
push 0x558c50
call fcn.0041c840
mov ebx, dword [ebp - 0xc34]
add esp, 0xc
mov ecx, ebx
push 0x11
push str.HTTP_1.0_200_OK_n_n
call fcn.00485fd0
cmp eax, 0x11
jne 0x46e27d
push edi
push esi
mov ecx, ebx
call fcn.004866d0
test eax, eax
je 0x46e27d
push str.d:_saasultravncwinvncwinvnc_vnchttpconnect.cpp_:_file_successfully_sent_n
push 9
push 0x558c50
call fcn.0041c840
add esp, 0xc
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cbf27
mov esp, ebp
pop ebp
ret 4
push 0xa
push ecx
mov ecx, ebx
call edx
mov edi, eax
jmp 0x46de0d
call dword [eax + 0x168]
jmp 0x46df94
call dword [eax + 0x10c]
mov ecx, dword [ebx + 0x64]
mov esi, eax
mov eax, dword [ecx]
jmp 0x46e045
call dword [eax + 0x10c]
jmp 0x46e053
call dword [eax + 0x244]
jmp 0x46e0e0