Function at 0x1002b350
Capabilities:
Connect to http server
Create http request
Get file size
Print debug messages
Read and send data from client to server
Read file on windows
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10090910
push 0x1005aa50
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x1734
call fcn.10055c30
mov eax, dword [0x1009cbc0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x16ec], edx
mov ebx, ecx
mov dword [ebp - 0x16f4], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x16f8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x16e8], eax
mov dword [ebp - 0x1744], 0
mov dword [ebp - 0x1730], 0
mov dword [ebp - 0x1704], 0
mov dword [ebp - 0x174c], str.Accept:__
mov dword [ebp - 0x1748], 0
mov dword [ebp - 0x1738], 0
mov dword [ebp - 0x1740], 4
mov byte [ebp - 0x9cc], 0
push 0x7ff
push 0
lea eax, [ebp - 0x9cb]
push eax
call fcn.10055aa0
mov byte [ebp - 0x16e0], 0
push 0x7ff
push 0
lea eax, [ebp - 0x16df]
push eax
call fcn.10055aa0
mov dword [ebp - 0x16fc], 0
mov dword [ebp - 0x172c], 0xffffffff
mov dword [ebp - 0x173c], 0
mov dword [ebp - 0x1700], 0
mov byte [ebp - 0xcd8], 0
push 0x207
push 0
lea eax, [ebp - 0xcd7]
push eax
call fcn.10055aa0
mov byte [ebp - 0xee0], 0
push 0x207
push 0
lea eax, [ebp - 0xedf]
push eax
call fcn.10055aa0
mov byte [ebp - 0x38], 0
xor eax, eax
mov dword [ebp - 0x37], eax
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov byte [ebp - 0xad0], al
push 0x103
push eax
lea eax, [ebp - 0xacf]
push eax
call fcn.10055aa0
xor eax, eax
mov word [ebp - 0x148], ax
push 0x42
push eax
lea eax, [ebp - 0x146]
push eax
call fcn.10055aa0
add esp, 0x48
xor eax, eax
mov word [ebp - 0x1cc], ax
push 0x82
push eax
lea eax, [ebp - 0x1ca]
push eax
call fcn.10055aa0
mov byte [ebp - 0x5c], 0
xor eax, eax
mov dword [ebp - 0x5b], eax
mov dword [ebp - 0x57], eax
mov dword [ebp - 0x53], eax
mov dword [ebp - 0x4f], eax
mov dword [ebp - 0x4b], eax
mov dword [ebp - 0x47], eax
mov dword [ebp - 0x43], eax
mov dword [ebp - 0x3f], eax
mov byte [ebp - 0x3b], al
mov byte [ebp - 0x104], al
push 0x41
push eax
lea eax, [ebp - 0x103]
push eax
call fcn.10055aa0
add esp, 0x18
mov dword [ebp - 0x1710], 0
mov dword [ebp - 0x16f0], 0
mov dword [ebp - 0x170c], 0
mov dword [ebp - 0x1718], 0
mov dword [ebp - 0x1720], 0
mov dword [ebp - 0x1728], 0
mov dword [ebp - 0x1724], 0
mov dword [ebp - 0x171c], 0
mov dword [ebp - 0x1708], 0
mov dword [ebp - 0x1714], 0
mov dword [ebp - 0x1734], 0
mov dword [ebp - 0x16e4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 4], 1
push 0
push ebx
call fcn.1005292e
add esp, 8
test eax, eax
je 0x1002b5dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
lea eax, [esi + 0x1e]
jmp 0x1002cd8c
lea edx, [ebp - 0x148]
mov ecx, ebx
call fcn.100070e0
mov edi, eax
test edi, edi
je 0x1002b697
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x1002b621
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1002b67d
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1002b65c
mov byte [esi + 0xffff], 0
push esi
push str.SendFileToCosmos
push 1
mov edx, 0x9b4
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1002b674
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.10052152
add esp, 4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
mov eax, edi
jmp 0x1002cd8c
push 0xffffffffffffffff
lea eax, [ebp - 0x148]
push eax
push 0x22
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x16fc]
push eax
call fcn.10052d14
add esp, 0x14
test eax, eax
je 0x1002b715
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x1002b607
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1002b65c
mov byte [esi + 0xffff], 0
push esi
push str.SendFileToCosmos
push 1
mov edx, 0x9b8
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1002b674
lea edx, [ebp - 0x1cc]
mov ecx, ebx
call fcn.10006b30
mov edi, eax
test edi, edi
je 0x1002b781
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x1002b607
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1002b65c
mov byte [esi + 0xffff], 0
push esi
push str.SendFileToCosmos
push 1
mov edx, 0x9bc
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1002b674
push 0xffffffffffffffff
lea eax, [ebp - 0x1cc]
push eax
push 0x42
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x16fc]
push eax
call fcn.10052d14
add esp, 0x14
test eax, eax
je 0x1002b802
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x1002b607
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1002b65c
mov byte [esi + 0xffff], 0
push esi
push str.SendFileToCosmos
push 1
mov edx, 0x9c0
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1002b674
lea edx, [ebp - 0x16f0]
lea ecx, [ebp - 0x1710]
call fcn.10029c70
mov edi, eax
test edi, edi
je 0x1002b872
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x1002b607
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1002b65c
mov byte [esi + 0xffff], 0
push esi
push str.SendFileToCosmos
push 1
mov edx, 0x9c5
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1002b674
lea eax, [ebp - 0x170c]
push eax
mov ecx, dword [ebp - 0x1710]
call fcn.1002ab60
add esp, 4
mov edi, eax
test edi, edi
je 0x1002b8e6
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x1002b607
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1002b65c
mov byte [esi + 0xffff], 0
push esi
push str.SendFileToCosmos
push 1
mov edx, 0x9ca
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1002b674
lea eax, [ebp - 0x1718]
push eax
mov edx, str._key_:
mov ebx, dword [ebp - 0x170c]
mov ecx, ebx
call fcn.1002a430
add esp, 4
mov edi, eax
test edi, edi
je 0x1002b961
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x1002b607
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1002b65c
mov byte [esi + 0xffff], 0
push esi
push str.SendFileToCosmos
push 1
mov edx, 0x9cf
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1002b674
lea eax, [ebp - 0x1720]
push eax
mov edx, str._acl_:
mov ecx, ebx
call fcn.1002a430
add esp, 4
mov edi, eax
test edi, edi
je 0x1002b9d6
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x1002b607
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1002b65c
mov byte [esi + 0xffff], 0
push esi
push str.SendFileToCosmos
push 1
mov edx, 0x9d3
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1002b674
lea eax, [ebp - 0x1728]
push eax
mov edx, str._AWSAccessKeyId_:
mov ecx, ebx
call fcn.1002a430
add esp, 4
mov edi, eax
test edi, edi
je 0x1002ba4b
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x1002b607
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1002b65c
mov byte [esi + 0xffff], 0
push esi
push str.SendFileToCosmos
push 1
mov edx, 0x9d7
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1002b674
lea eax, [ebp - 0x1724]
push eax
mov edx, str._policy_:
mov ecx, ebx
call fcn.1002a430
add esp, 4
mov edi, eax
test edi, edi
je 0x1002bac0
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x1002b607
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1002b65c
mov byte [esi + 0xffff], 0
push esi
push str.SendFileToCosmos
push 1
mov edx, 0x9db
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1002b674
lea eax, [ebp - 0x171c]
push eax
mov edx, str._signature_:
mov ecx, ebx
call fcn.1002a430
add esp, 4
mov edi, eax
test edi, edi
je 0x1002bb35
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x1002b607
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1002b65c
mov byte [esi + 0xffff], 0
push esi
push str.SendFileToCosmos
push 1
mov edx, 0x9df
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1002b674
lea eax, [ebp - 0x1708]
push eax
mov edx, str._uploadUrl_:
mov ecx, ebx
call fcn.1002a430
add esp, 4
mov edi, eax
test edi, edi
je 0x1002bbaa
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x1002b607
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1002b65c
mov byte [esi + 0xffff], 0
push esi
push str.SendFileToCosmos
push 1
mov edx, 0x9e3
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1002b674
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
lea esi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov ebx, eax
test ebx, ebx
jne 0x1002bbe4
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call esi
jmp 0x1002bc4e
push dword [ebp - 0x1708]
push str.Cosmos_uploadUrl_:___s
push 0xffff
push ebx
call fcn.10052136
add esp, 0x10
push esi
test eax, eax
jle 0x1002bc2b
mov byte [ebx + 0xffff], 0
push ebx
push str.SendFileToCosmos
push 4
mov edx, 0x9e5
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1002bc45
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call esi
push ebx
call fcn.10052152
add esp, 4
lea edx, [ebp - 0x1714]
mov ecx, dword [ebp - 0x1708]
call fcn.1002a800
mov ebx, eax
test ebx, ebx
je 0x1002bd04
push 0x1000a
call fcn.1005218a
add esp, 4
mov edi, eax
test edi, edi
jne 0x1002bc92
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call esi
jmp 0x1002bcea
push 0x100865c0
push 0xffff
push edi
call fcn.10052136
add esp, 0xc
push ebx
test eax, eax
jle 0x1002bccd
mov byte [edi + 0xffff], 0
push edi
push str.SendFileToCosmos
push 1
mov edx, 0x9ea
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1002bce1
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call esi
push edi
call fcn.10052152
add esp, 4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
mov eax, ebx
jmp 0x1002cd8c
push 0xffffffffffffffff
push dword [ebp - 0x16ec]
push 0x104
lea eax, [ebp - 0xcd8]
push eax
lea eax, [ebp - 0x16fc]
push eax
call fcn.10052d14
add esp, 0x14
test eax, eax
je 0x1002bd87
lea ebx, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov edi, eax
test edi, edi
je 0x1002bc7c
push 0x100865c0
push 0xffff
push edi
call fcn.10052136
add esp, 0xc
push ebx
test eax, eax
jle 0x1002bccd
mov byte [edi + 0xffff], 0
push edi
push str.SendFileToCosmos
push 1
mov edx, 0x9ee
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1002bce1
push 0xffffffffffffffff
push dword [ebp - 0x16f8]
push 0x104
lea eax, [ebp - 0xee0]
push eax
lea eax, [ebp - 0x16fc]
push eax
call fcn.10052d14
add esp, 0x14
test eax, eax
je 0x1002be0a
lea ebx, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov edi, eax
test edi, edi
je 0x1002bc7c
push 0x100865c0
push 0xffff
push edi
call fcn.10052136
add esp, 0xc
push ebx
test eax, eax
jle 0x1002bccd
mov byte [edi + 0xffff], 0
push edi
push str.SendFileToCosmos
push 1
mov edx, 0x9f2
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1002bce1
lea eax, [ebp - 0xee0]
push eax
push dword [ebp - 0x1718]
push str._s_s
lea eax, [ebp - 0x16e0]
push eax
call fcn.1002e5e0
push 0
call fcn.100546dc
push eax
call fcn.10054b0e
add esp, 0x18
call fcn.10054aed
push eax
call fcn.10054aed
push eax
push str._________________________08x_08x
lea eax, [ebp - 0xc0]
push eax
call fcn.1002e600
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp - 0x16f4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x172c], eax
cmp eax, 0xffffffff
je 0x1002ca7e
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x16f0], eax
test eax, eax
jne 0x1002beb5
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
mov eax, 8
jmp 0x1002cd8c
cmp eax, 0x1e00000
jbe 0x1002bed9
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
mov eax, 0x15
jmp 0x1002cd8c
add eax, 0x1000
mov dword [ebp - 0x16ec], eax
add eax, 0xa
push eax
call fcn.1005218a
add esp, 4
mov ebx, eax
mov dword [ebp - 0x1700], ebx
test ebx, ebx
jne 0x1002bf19
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
mov eax, 5
jmp 0x1002cd8c
lea eax, [ebp - 0xcd8]
push eax
lea eax, [ebp - 0xc0]
push eax
push str.___s_r_nContent_Disposition:_form_data__name_file___filename__s__r_nContent_Type:_application_octet_stream_r_n_r_n
push dword [ebp - 0x16ec]
push ebx
call fcn.10052136
push 0x800
push ebx
call fcn.10053a0a
add esp, 0x1c
add ebx, eax
push 0
lea eax, [ebp - 0x173c]
push eax
push dword [ebp - 0x16f0]
push ebx
push dword [ebp - 0x172c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002ca9f
mov eax, dword [ebp - 0x16f0]
cmp dword [ebp - 0x173c], eax
jne 0x1002ca9f
add ebx, eax
lea eax, [ebp - 0xc0]
push eax
push str._r_n___s___r_n
mov eax, dword [ebp - 0x1700]
sub eax, ebx
add eax, dword [ebp - 0x16ec]
push eax
push ebx
call fcn.10052136
add esp, 0x10
test ebx, ebx
jne 0x1002bfac
xor eax, eax
jmp 0x1002bfba
push 0x800
push ebx
call fcn.10053a0a
add esp, 8
add ebx, eax
sub ebx, dword [ebp - 0x1700]
mov dword [ebp - 0x16ec], ebx
push 0
push 0
push 0
push 0
push 0x1008ca44
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x1744], eax
test eax, eax
jne 0x1002c098
call edi
add eax, 0x1e
mov dword [ebp - 0x16f4], eax
call edi
lea ebx, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov edi, eax
test edi, edi
jne 0x1002c022
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call esi
jmp 0x1002c07a
push 0x100865c0
push 0xffff
push edi
call fcn.10052136
add esp, 0xc
push ebx
test eax, eax
jle 0x1002c05d
mov byte [edi + 0xffff], 0
push edi
push str.SendFileToCosmos
push 1
mov edx, 0xa31
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1002c071
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call esi
push edi
call fcn.10052152
add esp, 4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
mov eax, dword [ebp - 0x16f4]
jmp 0x1002cd8c
push 0
push 0
push 3
push 0
push 0
push 0x1bb
push dword [ebp - 0x1714]
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x1730], eax
test eax, eax
jne 0x1002c127
call edi
add eax, 0x1e
mov dword [ebp - 0x16f4], eax
call edi
lea ebx, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov edi, eax
test edi, edi
je 0x1002c00c
push 0x100865c0
push 0xffff
push edi
call fcn.10052136
add esp, 0xc
push ebx
test eax, eax
jle 0x1002c05d
mov byte [edi + 0xffff], 0
push edi
push str.SendFileToCosmos
push 1
mov edx, 0xa35
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1002c071
push 0x800
push str.___s_r_nContent_Disposition:_form_data__name__s__r_n_r_n_s_r_n
call fcn.10053a0a
mov ebx, eax
push 0x800
lea eax, [ebp - 0xc0]
push eax
call fcn.10053a0a
add esp, 0x10
mov dword [ebp - 0x16f4], eax
mov ecx, dword [ebp - 0x170c]
test ecx, ecx
jne 0x1002c160
xor eax, eax
jmp 0x1002c16e
push 0x800
push ecx
call fcn.10053a0a
add esp, 8
mov ecx, dword [ebp - 0x16f4]
add ecx, 0x1e
add ecx, ebx
mov ebx, ecx
shl ebx, 4
sub ebx, ecx
add ebx, eax
add ebx, dword [ebp - 0x16ec]
lea eax, [ebx + 0xa]
push eax
call fcn.1005218a
add esp, 4
mov dword [ebp - 0x16e4], eax
test eax, eax
je 0x1002befc
push ebx
push 0
push eax
call fcn.10055aa0
lea eax, [ebp - 0x16e0]
push eax
push 0x1008cc9c
lea eax, [ebp - 0xc0]
push eax
push str.___s_r_nContent_Disposition:_form_data__name__s__r_n_r_n_s_r_n
lea eax, [ebp - 0x9cc]
push eax
call fcn.1002e5e0
lea eax, [ebp - 0x9cc]
push eax
push ebx
mov ecx, dword [ebp - 0x16e4]
push ecx
call fcn.100532bd
push dword [ebp - 0x1720]
push 0x1008cca0
lea eax, [ebp - 0xc0]
push eax
push str.___s_r_nContent_Disposition:_form_data__name__s__r_n_r_n_s_r_n
lea eax, [ebp - 0x9cc]
push eax
call fcn.1002e5e0
add esp, 0x40
lea eax, [ebp - 0x9cc]
push eax
push ebx
push dword [ebp - 0x16e4]
call fcn.100532bd
push dword [ebp - 0x1728]
push str.AWSAccessKeyId
lea eax, [ebp - 0xc0]
push eax
push str.___s_r_nContent_Disposition:_form_data__name__s__r_n_r_n_s_r_n
lea eax, [ebp - 0x9cc]
push eax
call fcn.1002e5e0
lea eax, [ebp - 0x9cc]
push eax
push ebx
push dword [ebp - 0x16e4]
call fcn.100532bd
push dword [ebp - 0x1724]
push str.policy
lea eax, [ebp - 0xc0]
push eax
push str.___s_r_nContent_Disposition:_form_data__name__s__r_n_r_n_s_r_n
lea eax, [ebp - 0x9cc]
push eax
call fcn.1002e5e0
add esp, 0x40
lea eax, [ebp - 0x9cc]
push eax
push ebx
push dword [ebp - 0x16e4]
call fcn.100532bd
push dword [ebp - 0x171c]
push str.signature
lea eax, [ebp - 0xc0]
push eax
push str.___s_r_nContent_Disposition:_form_data__name__s__r_n_r_n_s_r_n
lea eax, [ebp - 0x9cc]
push eax
call fcn.1002e5e0
lea eax, [ebp - 0x9cc]
push eax
push ebx
push dword [ebp - 0x16e4]
call fcn.100532bd
push 0xffffffffffffffff
push 0x100e22c0
push 0x19
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x16fc]
push eax
call fcn.10052d14
add esp, 0x40
test eax, eax
je 0x1002c33d
lea ebx, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov edi, eax
test edi, edi
je 0x1002bc7c
push 0x100865c0
push 0xffff
push edi
call fcn.10052136
add esp, 0xc
push ebx
test eax, eax
jle 0x1002bccd
mov byte [edi + 0xffff], 0
push edi
push str.SendFileToCosmos
push 1
mov edx, 0xa5e
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1002bce1
push 0xffffffffffffffff
push dword [ebp - 0x16e8]
push 0x19
lea eax, [ebp - 0xad0]
push eax
lea eax, [ebp - 0x16fc]
push eax
call fcn.10052d14
add esp, 0x14
test eax, eax
je 0x1002c3bd
lea ebx, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov edi, eax
test edi, edi
je 0x1002bc7c
push 0x100865c0
push 0xffff
push edi
call fcn.10052136
add esp, 0xc
push ebx
test eax, eax
jle 0x1002bccd
mov byte [edi + 0xffff], 0
push edi
push str.SendFileToCosmos
push 1
mov edx, 0xa62
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1002bce1
lea eax, [ebp - 0x38]
push eax
push str.x_amz_meta_componentversion
lea eax, [ebp - 0xc0]
push eax
push str.___s_r_nContent_Disposition:_form_data__name__s__r_n_r_n_s_r_n
lea eax, [ebp - 0x9cc]
push eax
call fcn.1002e5e0
lea eax, [ebp - 0x9cc]
push eax
push ebx
push dword [ebp - 0x16e4]
call fcn.100532bd
push str.mbae
push str.x_amz_meta_component
lea eax, [ebp - 0xc0]
push eax
push str.___s_r_nContent_Disposition:_form_data__name__s__r_n_r_n_s_r_n
lea eax, [ebp - 0x9cc]
push eax
call fcn.1002e5e0
lea eax, [ebp - 0x9cc]
push eax
push ebx
push dword [ebp - 0x16e4]
call fcn.100532bd
add esp, 0x40
push str.consumer
push str.x_amz_meta_productbuild
lea eax, [ebp - 0xc0]
push eax
push str.___s_r_nContent_Disposition:_form_data__name__s__r_n_r_n_s_r_n
lea eax, [ebp - 0x9cc]
push eax
call fcn.1002e5e0
lea eax, [ebp - 0x9cc]
push eax
push ebx
push dword [ebp - 0x16e4]
call fcn.100532bd
lea eax, [ebp - 0x38]
push eax
push str.x_amz_meta_productversion
lea eax, [ebp - 0xc0]
push eax
push str.___s_r_nContent_Disposition:_form_data__name__s__r_n_r_n_s_r_n
lea eax, [ebp - 0x9cc]
push eax
call fcn.1002e5e0
lea eax, [ebp - 0x9cc]
push eax
push ebx
push dword [ebp - 0x16e4]
call fcn.100532bd
add esp, 0x40
push str.mbae
push str.x_amz_meta_productcode
lea eax, [ebp - 0xc0]
push eax
push str.___s_r_nContent_Disposition:_form_data__name__s__r_n_r_n_s_r_n
lea eax, [ebp - 0x9cc]
push eax
call fcn.1002e5e0
lea eax, [ebp - 0x9cc]
push eax
push ebx
push dword [ebp - 0x16e4]
call fcn.100532bd
lea eax, [ebp - 0xcd8]
push eax
push str.x_amz_meta_filename
lea eax, [ebp - 0xc0]
push eax
push str.___s_r_nContent_Disposition:_form_data__name__s__r_n_r_n_s_r_n
lea eax, [ebp - 0x9cc]
push eax
call fcn.1002e5e0
lea eax, [ebp - 0x9cc]
push eax
push ebx
push dword [ebp - 0x16e4]
call fcn.100532bd
add esp, 0x40
push str.mbae
push str.x_amz_meta_source
lea eax, [ebp - 0xc0]
push eax
push str.___s_r_nContent_Disposition:_form_data__name__s__r_n_r_n_s_r_n
lea eax, [ebp - 0x9cc]
push eax
call fcn.1002e5e0
lea eax, [ebp - 0x9cc]
push eax
push ebx
push dword [ebp - 0x16e4]
call fcn.100532bd
lea eax, [ebp - 0x104]
push eax
push str.x_amz_meta_sha256
lea eax, [ebp - 0xc0]
push eax
push str.___s_r_nContent_Disposition:_form_data__name__s__r_n_r_n_s_r_n
lea eax, [ebp - 0x9cc]
push eax
call fcn.1002e5e0
lea eax, [ebp - 0x9cc]
push eax
push ebx
push dword [ebp - 0x16e4]
call fcn.100532bd
add esp, 0x40
lea eax, [ebp - 0x5c]
push eax
push str.x_amz_meta_md5
lea eax, [ebp - 0xc0]
push eax
push str.___s_r_nContent_Disposition:_form_data__name__s__r_n_r_n_s_r_n
lea eax, [ebp - 0x9cc]
push eax
call fcn.1002e5e0
lea eax, [ebp - 0x9cc]
push eax
push ebx
push dword [ebp - 0x16e4]
call fcn.100532bd
lea eax, [ebp - 0xad0]
push eax
push str.x_amz_meta_payloadtype
lea eax, [ebp - 0xc0]
push eax
push str.___s_r_nContent_Disposition:_form_data__name__s__r_n_r_n_s_r_n
lea eax, [ebp - 0x9cc]
push eax
call fcn.1002e5e0
lea eax, [ebp - 0x9cc]
push eax
push ebx
push dword [ebp - 0x16e4]
call fcn.100532bd
add esp, 0x40
push 0x800
push dword [ebp - 0x16e4]
call fcn.10053a0a
add eax, dword [ebp - 0x16ec]
mov dword [ebp - 0x16f0], eax
push 0x800
push dword [ebp - 0x16e4]
call fcn.10053a0a
add eax, dword [ebp - 0x16e4]
push dword [ebp - 0x16ec]
push dword [ebp - 0x1700]
push ebx
push eax
call fcn.1005465d
add esp, 0x20
push 0
push 0x800000
lea eax, [ebp - 0x174c]
push eax
push 0
push 0
push 0x1008ca8c
push 0x1008ca90
push dword [ebp - 0x1730]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
mov dword [ebp - 0x1704], ebx
test ebx, ebx
jne 0x1002c6c6
call edi
add eax, 0x1e
mov dword [ebp - 0x16e8], eax
call edi
lea ebx, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov edi, eax
test edi, edi
je 0x1002cac2
push 0x100865c0
push 0xffff
push edi
call fcn.10052136
add esp, 0xc
push ebx
test eax, eax
jle 0x1002cb13
mov byte [edi + 0xffff], 0
push edi
push str.SendFileToCosmos
push 1
mov edx, 0xa80
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1002cb27
push dword [ebp - 0x16f0]
push str.Content_Length:__d
lea eax, [ebp - 0x9cc]
push eax
call fcn.1002e5e0
add esp, 0xc
push 0x20000000
push 0xffffffffffffffff
lea eax, [ebp - 0x9cc]
push eax
push ebx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
jne 0x1002c762
call edi
add eax, 0x1e
mov dword [ebp - 0x16e8], eax
call edi
lea ebx, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov edi, eax
test edi, edi
je 0x1002cac2
push 0x100865c0
push 0xffff
push edi
call fcn.10052136
add esp, 0xc
push ebx
test eax, eax
jle 0x1002cb13
mov byte [edi + 0xffff], 0
push edi
push str.SendFileToCosmos
push 1
mov edx, 0xa84
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1002cb27
lea eax, [ebp - 0xc0]
push eax
push str.Content_Type:_multipart_form_data__boundary_s
lea eax, [ebp - 0x9cc]
push eax
call fcn.1002e5e0
add esp, 0xc
push 0x20000000
push 0xffffffffffffffff
lea eax, [ebp - 0x9cc]
push eax
push ebx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
jne 0x1002c7ff
call edi
add eax, 0x1e
mov dword [ebp - 0x16e8], eax
call edi
lea ebx, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov edi, eax
test edi, edi
je 0x1002cac2
push 0x100865c0
push 0xffff
push edi
call fcn.10052136
add esp, 0xc
push ebx
test eax, eax
jle 0x1002cb13
mov byte [edi + 0xffff], 0
push edi
push str.SendFileToCosmos
push 1
mov edx, 0xa88
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1002cb27
push dword [ebp - 0x16f0]
mov ebx, dword [ebp - 0x16e4]
push ebx
push 0
push 0
push dword [ebp - 0x1704]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x1002c889
call edi
add eax, 0x1e
mov dword [ebp - 0x16e8], eax
call edi
lea ebx, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov edi, eax
test edi, edi
je 0x1002cac2
push 0x100865c0
push 0xffff
push edi
call fcn.10052136
add esp, 0xc
push ebx
test eax, eax
jle 0x1002cb13
mov byte [edi + 0xffff], 0
push edi
push str.SendFileToCosmos
push 1
mov edx, 0xa8b
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1002cb27
push 0
lea eax, [ebp - 0x1740]
push eax
lea eax, [ebp - 0x1738]
push eax
push 0x20000013
push dword [ebp - 0x1704]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x1002c917
call edi
add eax, 0x1e
mov dword [ebp - 0x16e8], eax
call edi
lea ebx, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov edi, eax
test edi, edi
je 0x1002cac2
push 0x100865c0
push 0xffff
push edi
call fcn.10052136
add esp, 0xc
push ebx
test eax, eax
jle 0x1002cb13
mov byte [edi + 0xffff], 0
push edi
push str.SendFileToCosmos
push 1
mov edx, 0xa8e
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1002cb27
call edi
add eax, 0x1e
mov dword [ebp - 0x16f0], eax
mov dword [ebp - 0x16e8], 0
push 0x1000a
call fcn.1005218a
mov dword [ebp - 0x16ec], eax
push 0x2000a
call fcn.1005218a
add esp, 8
mov dword [ebp - 0x16f8], eax
cmp dword [ebp - 0x16ec], 0
je 0x1002ca27
test eax, eax
je 0x1002ca27
push dword [ebp - 0x1740]
push dword [ebp - 0x1738]
push str.SendFileToCosmos_response:__d____d
push 0xffff
push eax
call fcn.1005211a
add esp, 0x14
test eax, eax
jle 0x1002ca0d
xor ecx, ecx
mov eax, dword [ebp - 0x16f8]
mov word [eax + 0x1fffe], cx
push 0xfffffffffffffffe
push eax
call fcn.10051b84
push 0xffffffffffffffff
push dword [ebp - 0x16f8]
inc eax
push eax
push dword [ebp - 0x16ec]
lea eax, [ebp - 0x16e8]
push eax
call fcn.10052d14
add esp, 0x1c
test eax, eax
je 0x1002c9e6
push dword [ebp - 0x16f0]
push dword [ebp - 0x16f8]
push str.wcstombs_s_error_in_log_file:__s____d_n
call fcn.10052604
add esp, 0xc
push dword [ebp - 0x16f8]
call esi
push dword [ebp - 0x16f0]
push dword [ebp - 0x16ec]
push str.SendFileToCosmos
push 4
mov edx, 0xa90
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1002ca3b
push dword [ebp - 0x16f0]
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
jmp 0x1002ca39
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call esi
mov eax, dword [ebp - 0x16ec]
test eax, eax
je 0x1002ca4e
push eax
call fcn.10052152
add esp, 4
mov eax, dword [ebp - 0x16f8]
test eax, eax
je 0x1002ca61
push eax
call fcn.10052152
add esp, 4
cmp dword [ebp - 0x1738], 0xcc
je 0x1002ca85
lea edx, [ebp - 0x1734]
mov ecx, dword [ebp - 0x1704]
call fcn.1002a100
call edi
jmp 0x1002b5c0
mov dword [ebp - 4], 0
call fcn.1002cb54
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x1002cd8c
call edi
add eax, 0x1e
mov dword [ebp - 0x16e8], eax
call edi
lea ebx, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov edi, eax
test edi, edi
jne 0x1002cad8
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call esi
jmp 0x1002cb30
push 0x100865c0
push 0xffff
push edi
call fcn.10052136
add esp, 0xc
push ebx
test eax, eax
jle 0x1002cb13
mov byte [edi + 0xffff], 0
push edi
push str.SendFileToCosmos
push 1
mov edx, 0xa28
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1002cb27
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call esi
push edi
call fcn.10052152
add esp, 4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
mov eax, dword [ebp - 0x16e8]
jmp 0x1002cd8c
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1005132c
mov esp, ebp
pop ebp
ret