Function at 0x403940
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e0c8
push 0x40dd70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb08
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0xb18], ecx
mov eax, dword [ebp + 8]
lea esi, [eax + 7]
push 0x40f0bc
push esi
mov ebx, dword [sym.imp.MSVCRT.dll_strstr]
call ebx
mov edx, eax
mov dword [ebp - 0x964], edx
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, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub ecx, edx
push ecx
push esi
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
mov esi, 0x50
push 0x40f0b8
lea ecx, [ebp - 0x144]
push ecx
call ebx
add esp, 0x1c
test eax, eax
je 0x4039f4
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov esi, 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
mov eax, dword [ebp - 0x964]
push eax
lea ecx, [ebp - 0x78]
push ecx
lea edx, [ebp - 0x94c]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x94c]
push eax
call dword [sym.imp.MSVCRT.dll_puts]
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 ecx, [ebp - 0xaf4]
push ecx
push 0x202
mov edx, dword [0x4106bc]
call dword [edx + 0x164]
push 6
push 1
push 2
mov eax, dword [0x4106bc]
call dword [eax + 0x160]
mov ebx, eax
mov dword [ebp - 0x960], ebx
xor ecx, ecx
mov dword [ebp - 0x95a], ecx
mov dword [ebp - 0x956], ecx
mov dword [ebp - 0x952], ecx
mov word [ebp - 0x94e], cx
mov word [ebp - 0x95c], 2
push esi
mov edx, dword [0x4106bc]
call dword [edx + 0x178]
mov word [ebp - 0x95a], ax
cmp si, 0x50
je 0x403c56
push 0x40f0b8
lea eax, [ebp - 0x144]
push eax
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
call esi
add esp, 8
test eax, eax
je 0x403c5c
mov byte [eax], 0
jmp 0x403c5c
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea ecx, [ebp - 0x144]
push ecx
mov ecx, dword [ebp - 0xb18]
call fcn.004038e0
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 edx, [ebp - 0x95c]
push edx
push ebx
mov eax, dword [0x4106bc]
call dword [eax + 0x170]
cmp eax, 0xffffffff
je 0x403ec5
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 ecx, [ebp - 0x94c]
push ecx
push ebx
mov edx, dword [0x4106bc]
call dword [edx + 0x168]
cmp eax, 0xffffffff
je 0x403ec5
push 0
push 0x400
lea eax, [ebp - 0x548]
push eax
push ebx
mov ecx, dword [0x4106bc]
call dword [ecx + 0x184]
cmp eax, 0xffffffff
je 0x403ec5
lea edx, [ebp - 0x548]
push edx
call dword [sym.imp.MSVCRT.dll_puts]
add esp, 4
mov dword [ebp - 4], 0
push str.HTTP_1.1_302
lea eax, [ebp - 0x548]
push eax
call esi
add esp, 8
mov dword [ebp - 0xb00], eax
test eax, eax
jne 0x403d65
push str.HTTP_1.0_301
lea ecx, [ebp - 0x548]
push ecx
call esi
add esp, 8
mov dword [ebp - 0xb00], eax
test eax, eax
je 0x403dfe
push str.ocation:
lea edx, [ebp - 0x548]
push edx
call esi
add esp, 8
mov esi, eax
mov dword [ebp - 0xb0c], esi
test esi, esi
jne 0x403d95
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll__local_unwind2
add esp, 8
jmp 0x403ec5
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 - 0xb0c], esi
push 0x40f05c
push esi
call dword [sym.imp.MSVCRT.dll_strstr]
mov dword [ebp - 0xb08], 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 edx, ecx
mov esi, edi
mov edi, dword [ebp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll__local_unwind2
add esp, 0x10
jmp 0x403ec5
push str.HTTP_1.1_200
lea ecx, [ebp - 0x548]
push ecx
call esi
add esp, 8
mov dword [ebp - 0xb04], eax
test eax, eax
je 0x403eb0
push str.filename
lea edx, [ebp - 0x548]
push edx
call esi
add esp, 8
mov esi, eax
mov dword [ebp - 0xb14], esi
test esi, esi
jne 0x403e4a
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll__local_unwind2
add esp, 8
jmp 0x403ec5
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 - 0xb14], esi
push 0x40f05c
push esi
call dword [sym.imp.MSVCRT.dll_strstr]
mov dword [ebp - 0xb10], 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 0x403ec5
mov dword [ebp - 4], 0xffffffff
call 0x403ec2
mov ebx, dword [ebp - 0x960]
mov esp, dword [ebp - 0x18]
push ebx
mov ecx, dword [0x4106bc]
call dword [ecx + 0x174]
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