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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc48
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0xa
push ebx
mov dword [ebp - 0xc34], ecx
call dword [eax + 0x14]
mov esi, eax
test esi, esi
je 0x458bcf
lea eax, [ebp - 0x41c]
push eax
push str.GET__s
push esi
call fcn.004ae4e9
add esp, 0xc
mov edi, eax
push esi
call fcn.004ad334
add esp, 4
test edi, edi
je 0x458bcf
cmp edi, 0xffffffff
je 0x458bcf
lea eax, [ebp - 0x41c]
push eax
push str.vnchttpconnect.cpp_:_file__s_requested_n
push 1
push 0x4f6c50
call fcn.00414f90
add esp, 0xc
lea eax, [ebp - 0xc2d]
mov ecx, ebx
mov esi, 1
push eax
call fcn.004734f0
test eax, eax
je 0x458bcf
jmp 0x4587f0
mov al, byte [ebp - 0xc2d]
cmp al, 0xa
jne 0x458805
test esi, esi
jne 0x458832
mov esi, 1
jmp 0x45880c
xor ecx, ecx
cmp al, 0x20
cmovge esi, ecx
push ecx
lea eax, [ebp - 0xc2d]
mov ecx, ebx
push eax
call fcn.004734f0
test eax, eax
jne 0x4587f0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret 4
push str.vnchttpconnect.cpp_:_parameters_read_n
push 9
push 0x4f6c50
call fcn.00414f90
add esp, 0xc
cmp byte [ebp - 0x41c], 0x2f
je 0x458868
push str.vnchttpconnect.cpp_:_filename_didnt_begin_with___n
push 0
push 0x4f6c50
call fcn.00414f90
add esp, 0xc
jmp 0x458afd
mov ecx, 0x4e1290
lea eax, [ebp - 0x41c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x458893
test dl, dl
je 0x45888f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x458893
add eax, 2
add ecx, 2
test dl, dl
jne 0x458873
xor eax, eax
jmp 0x458898
sbb eax, eax
or eax, 1
test eax, eax
jne 0x458a2a
push str.vnchttpconnect.cpp_:_sending_main_page_n
push 1
push 0x4f6c50
call fcn.00414f90
add esp, 0xc
mov ecx, ebx
push 0x11
push str.HTTP_1.0_200_OK_n_n
call fcn.00472c20
cmp eax, 0x11
jne 0x458bcf
mov edi, dword [ebp - 0xc34]
mov ecx, dword [edi + 0x64]
mov eax, dword [ecx]
call dword [eax + 0x160]
test eax, eax
je 0x4589dc
mov ecx, dword [edi + 0x64]
lea edx, [ebp - 0xc40]
push edx
lea edx, [ebp - 0xc38]
push edx
mov eax, dword [ecx]
lea edx, [ebp - 0xc34]
push edx
call dword [eax + 0x184]
lea eax, [ebp - 0xc3c]
mov dword [ebp - 0xc3c], 0x10
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x45896f
lea ecx, [ebp - 0x18]
xor esi, esi
lea edx, [ecx + 1]
jmp 0x458930
mov al, byte [ecx]
inc ecx
test al, al
jne 0x458930
sub ecx, edx
je 0x458989
jmp 0x458940
movsx eax, byte [ebp + esi - 0x18]
push eax
call fcn.004afa3a
lea ecx, [ebp - 0x18]
mov byte [ebp + esi - 0x18], al
add esp, 4
lea edx, [ecx + 1]
inc esi
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x458960
sub ecx, edx
cmp esi, ecx
jb 0x458940
jmp 0x458989
mov eax, dword [0x4e38ec]
mov dword [ebp - 0x18], eax
mov ax, word [0x4e38f0]
mov word [ebp - 0x14], ax
mov al, byte [0x4e38f2]
mov byte [ebp - 0x12], al
mov ecx, dword [edi + 0x64]
mov esi, ecx
mov eax, dword [ecx]
call dword [eax + 0x114]
push eax
mov eax, dword [ebp - 0xc38]
mov ecx, esi
add eax, 0x20
push eax
mov eax, dword [esi]
push dword [ebp - 0xc34]
call dword [eax + 0x114]
push eax
mov eax, dword [ebp - 0xc38]
add eax, 0x20
push eax
push dword [ebp - 0xc34]
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.004ad5d8
add esp, 0x24
jmp 0x4589f0
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.004ad5d8
add esp, 8
lea esi, [ebp - 0xc2c]
lea ecx, [esi + 1]
lea esp, [esp]
mov al, byte [esi]
inc esi
test al, al
jne 0x458a00
sub esi, ecx
lea eax, [ebp - 0xc2c]
push esi
push eax
mov ecx, ebx
call fcn.00472c20
cmp eax, esi
jne 0x458bcf
push str.vnchttpconnect.cpp_:_sent_page_n
jmp 0x458bc0
mov edi, dword [ebp - 0xc34]
mov ecx, dword [edi + 0x64]
mov eax, dword [ecx]
call dword [eax + 0x220]
xor edi, edi
test eax, eax
je 0x458ab2
mov esi, 0x4db160
mov ecx, dword [esi]
lea eax, [ebp - 0x41c]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x458a70
test dl, dl
je 0x458a6c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x458a70
add eax, 2
add ecx, 2
test dl, dl
jne 0x458a50
xor eax, eax
jmp 0x458a75
sbb eax, eax
or eax, 1
test eax, eax
je 0x458a87
add esi, 0xc
inc edi
cmp esi, str.HTTP_1.0_200_OK_n_n
jl 0x458a46
jmp 0x458afd
push str.vnchttpconnect.cpp_:_requested_file_recognised_n
push 9
push 0x4f6c50
call fcn.00414f90
add esp, 0xc
lea eax, [edi + edi*2]
push dword [eax*4 + 0x4db164]
movzx eax, word [eax*4 + 0x4db168]
jmp 0x458b47
mov esi, 0x4db2ec
jmp 0x458ac0
mov ecx, dword [esi]
lea eax, [ebp - 0x41c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x458ae8
test dl, dl
je 0x458ae4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x458ae8
add eax, 2
add ecx, 2
test dl, dl
jne 0x458ac8
xor eax, eax
jmp 0x458aed
sbb eax, eax
or eax, 1
test eax, eax
je 0x458b21
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 0x458ac0
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
mov ecx, ebx
call fcn.00472c20
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret 4
push str.vnchttpconnect.cpp_:_requested_file_recognised_n
push 9
push 0x4f6c50
call fcn.00414f90
add esp, 0xc
lea eax, [edi + edi*2]
push dword [eax*4 + 0x4db2f0]
movzx eax, word [eax*4 + 0x4db2f4]
push eax
push dword [0x502044]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x458bcf
push esi
push dword [0x502044]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push dword [0x502044]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x458bcf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x458bcf
push str.vnchttpconnect.cpp_:_sending_file..._n
push 9
push 0x4f6c50
call fcn.00414f90
add esp, 0xc
mov ecx, ebx
push 0x11
push str.HTTP_1.0_200_OK_n_n
call fcn.00472c20
cmp eax, 0x11
jne 0x458bcf
push edi
push esi
mov ecx, ebx
call fcn.004734d0
test eax, eax
je 0x458bcf
push str.vnchttpconnect.cpp_:_file_successfully_sent_n
push 9
push 0x4f6c50
call fcn.00414f90
add esp, 0xc
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aca59
mov esp, ebp
pop ebp
ret 4