Function at 0x404020
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c0c8
push 0x40b1c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb04
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0xb14], ecx
mov eax, dword [ebp + 8]
lea ebx, [eax + 7]
push 0x40d134
push ebx
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
mov byte [ebp - 0x144], 0
mov ecx, 0x31
xor eax, eax
lea edi, [ebp - 0x143]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub ecx, edx
push ecx
push ebx
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
mov dword [ebp - 0x148], 0x50
push 0x40d130
lea ecx, [ebp - 0x144]
push ecx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0x1c
test eax, eax
je 0x4040d9
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebp - 0x148], eax
mov byte [ebp - 0x94c], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x94b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x100
xor eax, eax
lea edi, [ebp - 0x94c]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x78], 0x47
mov byte [ebp - 0x77], 0x45
mov cl, 0x54
mov byte [ebp - 0x76], cl
mov bl, 0x20
mov byte [ebp - 0x75], bl
mov byte [ebp - 0x74], 0x25
mov byte [ebp - 0x73], 0x73
mov byte [ebp - 0x72], bl
mov al, 0x48
mov byte [ebp - 0x71], al
mov byte [ebp - 0x70], cl
mov byte [ebp - 0x6f], cl
mov byte [ebp - 0x6e], 0x50
mov byte [ebp - 0x6d], 0x2f
mov byte [ebp - 0x6c], 0x31
mov byte [ebp - 0x6b], 0x2e
mov byte [ebp - 0x6a], 0x31
mov dl, 0xd
mov byte [ebp - 0x69], dl
mov cl, 0xa
mov byte [ebp - 0x68], cl
mov byte [ebp - 0x67], al
mov byte [ebp - 0x66], 0x6f
mov byte [ebp - 0x65], 0x73
mov byte [ebp - 0x64], 0x74
mov byte [ebp - 0x63], 0x3a
mov byte [ebp - 0x62], bl
mov byte [ebp - 0x61], 0x25
mov byte [ebp - 0x60], 0x73
mov byte [ebp - 0x5f], dl
mov byte [ebp - 0x5e], cl
mov byte [ebp - 0x5d], 0x43
mov byte [ebp - 0x5c], 0x6f
mov byte [ebp - 0x5b], 0x6e
mov byte [ebp - 0x5a], 0x6e
mov al, 0x65
mov byte [ebp - 0x59], al
mov byte [ebp - 0x58], 0x63
mov byte [ebp - 0x57], 0x74
mov byte [ebp - 0x56], 0x69
mov byte [ebp - 0x55], 0x6f
mov byte [ebp - 0x54], 0x6e
mov byte [ebp - 0x53], 0x3a
mov byte [ebp - 0x52], bl
mov byte [ebp - 0x51], 0x6b
mov byte [ebp - 0x50], al
mov byte [ebp - 0x4f], al
mov byte [ebp - 0x4e], 0x70
mov byte [ebp - 0x4d], 0x2d
mov byte [ebp - 0x4c], 0x61
mov byte [ebp - 0x4b], 0x6c
mov byte [ebp - 0x4a], 0x69
mov byte [ebp - 0x49], 0x76
mov byte [ebp - 0x48], al
mov byte [ebp - 0x47], dl
mov byte [ebp - 0x46], cl
mov byte [ebp - 0x45], 0x55
mov byte [ebp - 0x44], 0x73
mov byte [ebp - 0x43], al
mov byte [ebp - 0x42], 0x72
mov byte [ebp - 0x41], 0x2d
mov byte [ebp - 0x40], 0x41
mov byte [ebp - 0x3f], 0x67
mov byte [ebp - 0x3e], al
mov byte [ebp - 0x3d], 0x6e
mov byte [ebp - 0x3c], 0x74
mov byte [ebp - 0x3b], 0x3a
mov byte [ebp - 0x3a], bl
mov byte [ebp - 0x39], 0x4d
mov byte [ebp - 0x38], 0x6f
mov byte [ebp - 0x37], 0x7a
mov byte [ebp - 0x36], 0x69
mov byte [ebp - 0x35], 0x6c
mov byte [ebp - 0x34], 0x6c
mov byte [ebp - 0x33], 0x61
mov byte [ebp - 0x32], 0x2f
mov byte [ebp - 0x31], 0x35
mov byte [ebp - 0x30], 0x2e
mov byte [ebp - 0x2f], 0x30
mov byte [ebp - 0x2e], dl
mov byte [ebp - 0x2d], cl
mov byte [ebp - 0x2c], 0x41
mov byte [ebp - 0x2b], 0x63
mov byte [ebp - 0x2a], 0x63
mov byte [ebp - 0x29], al
mov byte [ebp - 0x28], 0x70
mov byte [ebp - 0x27], 0x74
mov byte [ebp - 0x26], 0x3a
mov byte [ebp - 0x25], bl
mov al, 0x2a
mov byte [ebp - 0x24], al
mov byte [ebp - 0x23], 0x2f
mov byte [ebp - 0x22], al
mov byte [ebp - 0x21], 0x5c
mov byte [ebp - 0x20], dl
mov byte [ebp - 0x1f], cl
mov byte [ebp - 0x1e], dl
mov byte [ebp - 0x1d], cl
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x144]
push edx
push esi
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x94c]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edx, [ebp - 0x94c]
push edx
mov esi, dword [sym.imp.MSVCRT.dll_puts]
call esi
add esp, 0x14
mov word [ebp - 0xaf4], 0
mov ecx, 0x63
xor eax, eax
lea edi, [ebp - 0xaf2]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xaf4]
push eax
push 0x202
mov ecx, dword [0x40e600]
call dword [ecx + 0x150]
push 6
push 1
push 2
mov edx, dword [0x40e600]
call dword [edx + 0x14c]
mov ebx, eax
mov dword [ebp - 0x960], ebx
xor eax, eax
mov dword [ebp - 0x95a], eax
mov dword [ebp - 0x956], eax
mov dword [ebp - 0x952], eax
mov word [ebp - 0x94e], ax
mov word [ebp - 0x95c], 2
mov ecx, dword [ebp - 0x148]
push ecx
mov edx, dword [0x40e600]
call dword [edx + 0x164]
mov word [ebp - 0x95a], ax
lea eax, [ebp - 0x144]
push eax
mov ecx, dword [ebp - 0xb14]
call fcn.00403fc0
mov dword [ebp - 0x958], eax
mov byte [ebp - 0x548], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x547]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x100
xor eax, eax
lea edi, [ebp - 0x548]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x54c], eax
push 0x10
lea ecx, [ebp - 0x95c]
push ecx
push ebx
mov edx, dword [0x40e600]
call dword [edx + 0x15c]
cmp eax, 0xffffffff
je 0x404583
push 0
lea edi, [ebp - 0x94c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea eax, [ebp - 0x94c]
push eax
push ebx
mov ecx, dword [0x40e600]
call dword [ecx + 0x154]
cmp eax, 0xffffffff
je 0x404583
push 0
push 0x400
lea edx, [ebp - 0x548]
push edx
push ebx
mov eax, dword [0x40e600]
call dword [eax + 0x170]
cmp eax, 0xffffffff
je 0x404583
lea ecx, [ebp - 0x548]
push ecx
call esi
add esp, 4
mov dword [ebp - 4], 0
push str.HTTP_1.1_302
lea edx, [ebp - 0x548]
push edx
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
call esi
add esp, 8
mov dword [ebp - 0xafc], eax
test eax, eax
jne 0x404423
push str.HTTP_1.0_301
lea eax, [ebp - 0x548]
push eax
call esi
add esp, 8
mov dword [ebp - 0xafc], eax
test eax, eax
je 0x4044bc
push str.ocation:
lea ecx, [ebp - 0x548]
push ecx
call esi
add esp, 8
mov esi, eax
mov dword [ebp - 0xb08], esi
test esi, esi
jne 0x404453
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call sub.MSVCRT.dll__local_unwind2
add esp, 8
jmp 0x404583
mov edi, str.ocation:
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add esi, ecx
mov dword [ebp - 0xb08], esi
push 0x40d0d4
push esi
call dword [sym.imp.MSVCRT.dll_strstr]
mov dword [ebp - 0xb04], eax
mov byte [eax], 0
mov dword [ebp - 0x54c], 0x12e
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
call sub.MSVCRT.dll__local_unwind2
add esp, 0x10
jmp 0x404583
push str.HTTP_1.1_200
lea edx, [ebp - 0x548]
push edx
call esi
add esp, 8
mov dword [ebp - 0xb00], eax
test eax, eax
je 0x40456e
push str.filename
lea eax, [ebp - 0x548]
push eax
call esi
add esp, 8
mov esi, eax
mov dword [ebp - 0xb10], esi
test esi, esi
jne 0x404508
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
call sub.MSVCRT.dll__local_unwind2
add esp, 8
jmp 0x404583
mov edi, str.filename
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add esi, ecx
mov dword [ebp - 0xb10], esi
push 0x40d0d4
push esi
call dword [sym.imp.MSVCRT.dll_strstr]
mov dword [ebp - 0xb0c], eax
mov byte [eax], 0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x54c], 0xc8
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll__local_unwind2
add esp, 0x10
jmp 0x404583
mov dword [ebp - 4], 0xffffffff
call 0x404580
mov ebx, dword [ebp - 0x960]
mov esp, dword [ebp - 0x18]
push ebx
mov ecx, dword [0x40e600]
call dword [ecx + 0x160]
mov eax, dword [ebp - 0x54c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8