Function at 0x46ae80
Capabilities:
Check for time delay via gettickcount
Delete file
Read and send data from client to server
Read data from internet
Read file on windows
Receive data
Send data
Send http request
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x538a60]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0x53ebbc
push 8
push dword [0x53ebf0]
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x260], ebx
call dword [sym.imp.PGPsdk.dll_PGPNewHashContext]
add esp, 0xc
push 0x561418
push 0x51f4d8
push 0x100
push 0x100
push 0x547d60
call fcn.004bb430
add esp, 0x14
push 0x100
push 0x547d60
call fcn.004bbd22
push eax
push 0x547d60
push dword [0x53ebbc]
call dword [sym.imp.PGPsdk.dll_PGPContinueHash]
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x46ba4d
push 0x53ebc0
push dword [0x53ebbc]
call dword [sym.imp.PGPsdk.dll_PGPFinalizeHash]
mov esi, eax
add esp, 8
test esi, esi
jne 0x46ba8a
mov eax, dword [0x53ebbc]
test eax, eax
je 0x46af36
push eax
call dword [sym.imp.PGPsdk.dll_PGPFreeHashContext]
add esp, 4
mov eax, dword [0x560df0]
test eax, eax
je 0x46af5b
push eax
push str._s_id
push 0xffffffffffffffff
push 0x800
push 0x545d60
call fcn.004bb4ef
add esp, 0x14
jmp 0x46af74
push str._id
push 0xffffffffffffffff
push 0x800
push 0x545d60
call fcn.004bb4ef
add esp, 0x10
xor esi, esi
jmp 0x46af80
movzx eax, byte [esi + 0x53ebc0]
push eax
push 0x545d60
push str._s_02x
push 0xffffffffffffffff
push 0x800
push 0x545d60
call fcn.004bb4ef
inc esi
add esp, 0x18
cmp esi, 0x20
jb 0x46af80
test ebx, ebx
jne 0x46afc2
push dword [0x560dfc]
push 0x545d60
push str._su_00000000000000_0._s
jmp 0x46aff8
mov esi, dword [ebp - 0x260]
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x46afe8
cmp word [esi + eax*2], 0x5f
jne 0x46afde
inc bl
cmp bl, 2
je 0x46afe8
dec eax
test eax, eax
jg 0x46afd5
mov ebx, esi
lea eax, [ebx + eax*2]
push eax
push 0x545d60
push str._su_s
push 0xffffffffffffffff
push 0x800
push 0x545d60
call fcn.004bb4ef
add esp, 0x18
push 0x560d70
push 0x545d60
push str._sj_s
push 0xffffffffffffffff
push 0x800
push 0x545d60
call fcn.004bb4ef
movzx eax, word [0x560df4]
add esp, 0x18
cmp byte [0x560d6c], 0
push 0x545d60
push eax
push dword [0x560df8]
je 0x46b0c4
push str.POST_https:___S:_d__S_n
call fcn.004bc829
add esp, 0x10
push 0
push 0x4803000
push 0
push 0
push str.HTTP_1.0
push 0x545d60
push str.POST
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
mov dword [ebp - 0x21c], 0
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 4
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [ebp - 0x21c], 0x100
lea eax, [ebp - 0x21c]
push 4
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
jmp 0x46b0f4
push str.POST_http:___S:_d__S_n
call fcn.004bc829
add esp, 0x10
push 0
push 0x4000000
push 0
push 0
push str.HTTP_1.0
push 0x545d60
push str.POST
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
push 0x51b858
push 0x800
push 0x545d60
call fcn.00471700
add esp, 0xc
test edi, edi
jne 0x46b15a
push dword [0x560df0]
push str.HttpSendReqEx:_Failed_to_open_request_handle__S_n
push 0xffffffffffffffff
push 0x800
push 0x545d60
call fcn.004bb4ef
add esp, 0x14
push 0x545d60
push 0x525e34
call fcn.004bc829
add esp, 8
mov byte [0x53eb67], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004bae74
mov esp, ebp
pop ebp
ret
mov ecx, 0x28
lea eax, [ebp - 0x25c]
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x46b165
mov eax, dword [ebp + 8]
push ecx
push ecx
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x25c]
push ecx
push eax
push edi
mov dword [ebp - 0x25c], 0x28
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x254], ecx
mov dword [ebp - 0x250], ecx
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x244], ecx
mov dword [ebp - 0x23c], ecx
mov dword [ebp - 0x238], ecx
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
jne 0x46b267
mov byte [0x53eb67], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [0x560df0]
movzx eax, word [0x560df4]
push eax
push dword [0x560df8]
push 0x525e38
push 0xffffffffffffffff
push 0x800
push 0x545d60
call fcn.004bb4ef
push 0x545d60
push 0x525e34
call fcn.004bc829
add esp, 0x28
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
jne 0x46ba3a
push dword [0x560df0]
push str.HttpSendReqEx:_Failed_to_close_request_handle__S_n
push 0xffffffffffffffff
push 0x800
push 0x545d60
call fcn.004bb4ef
add esp, 0x14
push 0x545d60
push 0x525e34
call fcn.004bc829
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004bae74
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x46b50c
push ebx
push 0x55ed60
push str._s_s
push 0x1000
push 0x552d60
call fcn.004bb50e
add esp, 0x14
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push 0x552d60
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x260], eax
cmp eax, 0xffffffff
jne 0x46b2f6
push 0x552d60
push str.HttpSendReqEx:_Failed_to_access_file__S_n
push eax
push 0x800
push 0x545d60
call fcn.004bb4ef
add esp, 0x14
push 0x545d60
push 0x525e34
call fcn.004bc829
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004bae74
mov esp, ebp
pop ebp
ret
xor esi, esi
mov dword [ebp - 0x218], 0
xor eax, eax
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x268], eax
mov ecx, 0x4000
mov eax, 0x548d60
mov edi, edi
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x46b320
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x264], eax
push 0
lea eax, [ebp - 0x218]
push eax
push 0x4000
push 0x548d60
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46b38b
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x218]
push 0x548d60
push edi
call dword [sym.imp.WININET.dll_InternetWriteFile]
mov ecx, dword [ebp - 0x218]
mov eax, dword [ebp - 0x214]
test ecx, ecx
je 0x46b389
cmp ecx, eax
jne 0x46b429
add esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [ebp - 0x264]
cmp ecx, 0xbb8
jbe 0x46b3ea
add dword [ebp - 0x268], esi
mov eax, 0x10624dd3
mul ecx
shr esi, 0xa
mov ecx, edx
mov eax, esi
shr ecx, 6
xor edx, edx
div ecx
push eax
mov eax, dword [ebp + 8]
shr eax, 0xa
push eax
mov eax, dword [ebp - 0x268]
shr eax, 0xa
push eax
push ebx
push str._rUploading__S__dKB__dKB____dKB_sec________r
call fcn.004bc829
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x264], eax
xor esi, esi
cmp dword [ebp - 0x218], 0x4000
je 0x46b335
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x4000
mov eax, 0x548d60
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x46b410
push 0x552d60
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x46b52b
push dword [0x560df0]
movzx eax, word [0x560df4]
push eax
push dword [0x560df8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.HttpSendReqEx:_HTTP_read___write_error__possible_timeout__will_try_again_later_wininet_error_:__d____S:_d____S__n
push 0xffffffffffffffff
push 0x800
push 0x545d60
call fcn.004bb4ef
push 0x545d60
push 0x525e34
call fcn.004bc829
add esp, 0x28
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpEndRequestW]
test eax, eax
jne 0x46b4c8
push dword [0x560df0]
movzx eax, word [0x560df4]
push eax
push dword [0x560df8]
push str.HttpSendReqEx:_HTTP_connection_error__S:_d__S_n
push 0xffffffffffffffff
push 0x800
push 0x545d60
call fcn.004bb4ef
add esp, 0x1c
push 0x545d60
push 0x525e34
call fcn.004bc829
add esp, 8
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
jne 0x46b4e0
push str.Failed_to_close_Request_handle_n
call fcn.004bc829
add esp, 4
mov ecx, 0x4000
mov eax, 0x548d60
lea ebx, [ebx]
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x46b4f0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004bae74
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0
push eax
push 0
push 0x51b858
push edi
call dword [sym.imp.WININET.dll_InternetWriteFile]
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpEndRequestW]
test eax, eax
jne 0x46b594
push dword [0x560df0]
movzx eax, word [0x560df4]
push eax
push dword [0x560df8]
push str.HttpSendReqEx:_HttpEndRequest_error__S:_d____S_n
push 0xffffffffffffffff
push 0x800
push 0x545d60
call fcn.004bb4ef
add esp, 0x1c
push 0x545d60
push 0x525e34
call fcn.004bc829
add esp, 8
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
jne 0x46ba3a
push str.Failed_to_close_Request_handle_n
jmp 0x46ba32
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x1000
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x46bac7
mov ecx, 0x1000
lea esp, [esp]
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x46b5c0
push 0x1000
push 8
mov dword [ebp - 0x22c], ecx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [ebp - 0x260], ecx
test ecx, ecx
je 0x46badb
mov edx, 0x1000
mov byte [eax], 0
lea eax, [eax + 1]
dec edx
jne 0x46b5f4
lea eax, [ebp - 0x22c]
xor esi, esi
push eax
push 0x1000
push ecx
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, 1
jne 0x46b9c2
lea esp, [esp]
mov ecx, dword [ebp - 0x22c]
test ecx, ecx
je 0x46b68e
mov eax, dword [ebp - 0x260]
mov byte [eax + ecx], 0
add esi, dword [ebp - 0x22c]
push esi
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x46b80a
mov ecx, dword [ebp - 0x22c]
mov ebx, eax
push ecx
push dword [ebp - 0x260]
sub eax, ecx
add eax, esi
push esi
push eax
call fcn.004bb667
add esp, 0x10
lea eax, [ebp - 0x22c]
push eax
push 0x1000
push dword [ebp - 0x260]
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, 1
je 0x46b620
test esi, esi
je 0x46b9c2
push dword [0x53ebf0]
mov dword [ebp - 0x230], 0
mov byte [ebp - 0x20d], 1
call dword [sym.imp.PGPsdk.dll_PGPOLastOption]
add esp, 4
push eax
lea eax, [ebp - 0x228]
push eax
push 0x1000
lea eax, [ebp - 0x230]
push eax
push dword [0x53ebf0]
call dword [sym.imp.PGPsdk.dll_PGPOAllocatedOutputBuffer]
add esp, 0x10
push eax
push 1
push dword [0x53ebf0]
call dword [sym.imp.PGPsdk.dll_PGPOInputFormat]
add esp, 8
push eax
push esi
push ebx
push dword [0x53ebf0]
call dword [sym.imp.PGPsdk.dll_PGPOInputBuffer]
add esp, 0xc
push eax
lea eax, [ebp - 0x20d]
push eax
push 0x45db40
push dword [0x53ebf0]
call dword [sym.imp.PGPsdk.dll_PGPOEventHandler]
add esp, 0xc
push eax
push dword [0x53eba4]
push dword [0x53ebf0]
call dword [sym.imp.PGPsdk.dll_PGPOKeyDBRef]
add esp, 8
push eax
push dword [0x53ebf0]
call dword [sym.imp.PGPsdk.dll_PGPDecode]
add esp, 0x1c
cmp byte [ebp - 0x20d], 0
jne 0x46b96a
push dword [0x53eb58]
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov ecx, dword [0x53eb58]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xa]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 6]
push eax
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str._04d_02d_02d_02d_02d_02d
push 0x10
push 0x561208
call fcn.004716e0
add esp, 0x24
push 8
call fcn.004bb090
add esp, 4
mov esi, eax
push esi
push dword [0x53eb58]
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov ecx, dword [esi + 4]
xor edx, edx
add edx, dword [esi]
push 0
adc ecx, 0
sub edx, 0xd53e8000
push 0x989680
sbb ecx, 0x19db1de
push ecx
push edx
call fcn.004c1450
push esi
mov dword [0x53eb50], eax
mov dword [0x53eb54], edx
call fcn.004bae6f
mov esi, dword [ebp - 0x228]
add esp, 4
mov edx, dword [ebp - 0x230]
xor eax, eax
test esi, esi
je 0x46b878
mov cl, byte [eax + edx]
cmp cl, 0xd
je 0x46b874
cmp cl, 0xa
je 0x46b874
inc eax
cmp eax, esi
jb 0x46b7f6
jmp 0x46b878
push dword [0x560df0]
movzx eax, word [0x560df4]
push eax
push dword [0x560df8]
push str.HttpSendReqEx:_HTTP_reallocate_error__S:_d__S_n
push 0xffffffffffffffff
push 0x800
push 0x545d60
call fcn.004bb4ef
add esp, 0x1c
push 0x545d60
push 0x525e34
call fcn.004bc829
add esp, 8
test ebx, ebx
je 0x46ba3a
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004bae74
mov esp, ebp
pop ebp
ret
mov byte [eax + edx], 0
push edx
push 0x51f514
push 0x1000
push 0x545d60
mov dword [ebp - 0x230], edx
call fcn.004bb50e
add esp, 0x10
push 0
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x46baef
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], 0
push eax
push 0x5261f0
push 0x545d60
call fcn.004bd84a
mov ecx, eax
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x264], ecx
test ecx, ecx
je 0x46b93f
inc eax
mov dword [ebp - 0x214], eax
shl eax, 2
push eax
push esi
push 8
mov dword [ebp - 0x220], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
test esi, esi
je 0x46b960
mov ecx, dword [ebp - 0x220]
mov eax, dword [ebp - 0x264]
mov dword [ecx + esi - 4], eax
lea eax, [ebp - 0x234]
push eax
push 0x5261f0
push 0
call fcn.004bd84a
add esp, 0xc
mov dword [ebp - 0x264], eax
test eax, eax
mov eax, dword [ebp - 0x214]
jne 0x46b8e2
mov edx, eax
mov ecx, esi
call fcn.00455ab0
test esi, esi
je 0x46b9a2
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x46b9a8
push str.HttpSendReqEx:_memory_allocation_failed_n
jmp 0x46ba32
call fcn.00455940
push str.00000000000000
xorps xmm0, xmm0
mov dword [0x53ec54], 0
push 0x10
push 0x561208
movlpd qword [0x560d60], xmm0
mov dword [0x560d68], 0
call fcn.004716e0
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push dword [ebp - 0x230]
call dword [sym.imp.PGPsdk.dll_PGPFreeData]
add esp, 4
test ebx, ebx
je 0x46ba0e
push ebx
push 0
call esi
jmp 0x46ba07
call fcn.00455940
push str.00000000000000
xorps xmm0, xmm0
mov dword [0x53ec54], 0
push 0x10
push 0x561208
movlpd qword [0x560d60], xmm0
mov dword [0x560d68], 0
call fcn.004716e0
add esp, 0xc
test ebx, ebx
je 0x46ba0e
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
jne 0x46ba26
push str.HttpSendReqEx:_Failed_to_close_Request_handle_n
call fcn.004bc829
add esp, 4
mov byte [0x53eb67], 0
push 0x526220
call fcn.004bc829
add esp, 4
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bae74
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10c]
push eax
push 0x100
push esi
call dword [sym.imp.PGPsdk.dll_PGPGetErrorString]
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
push esi
push str.PGP_Error:_Failed_with__d___s_n
call fcn.004bc829
add esp, 0xc
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call fcn.004bcc8d
lea eax, [ebp - 0x20c]
push eax
push 0x100
push esi
call dword [sym.imp.PGPsdk.dll_PGPGetErrorString]
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push esi
push str.PGP_Error:_Failed_with__d___s_n
call fcn.004bc829
add esp, 0xc
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call fcn.004bcc8d
push str.Failed_to_allocate_memory_on_process_heap_n
call fcn.004bc829
add esp, 4
push 1
call fcn.004bcc8d
push str.Failed_to_allocate_memory_on_process_heap_n
call fcn.004bc829
add esp, 4
push 1
call fcn.004bcc8d
push str.Failed_to_allocate_memory_on_process_heap_n
call fcn.004bc829
add esp, 4
push 1
call fcn.004bcc8d
int3