Function at 0x40d810
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41b0e8
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x3c
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x40dc2f
mov eax, dword [esp + 0x60]
test eax, eax
je 0x40dc2f
and eax, 0x80000001
jns 0x40d850
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
je 0x40dc2f
mov esi, dword [esp + 0x64]
test esi, esi
je 0x40dc2f
mov ebx, dword [esp + 0x68]
test ebx, ebx
je 0x40dc2f
mov ebp, dword [esp + 0x6c]
test ebp, ebp
je 0x40dc2f
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebp
add edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ecx
cmp edx, 0x800
jge 0x40dc2f
inc edx
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
mov eax, dword [esp + 0x64]
cdq
sub eax, edx
mov dword [esp + 0x6c], edi
sar eax, 1
push eax
mov dword [esp + 0x74], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 8
mov dword [esp + 0x60], eax
test edi, edi
je 0x40dc2f
test eax, eax
je 0x40dc2f
mov dword [edi], 0
mov dword [eax], 0
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x68]
not ecx
dec ecx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x64]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x68]
mov esi, ebx
not ecx
dec ecx
lea edi, [eax + edx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebp
add edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x68]
mov esi, ebp
not ecx
dec ecx
lea edi, [eax + edx]
mov eax, ecx
mov ebx, dword [esp + 0x60]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ebp, dword [esp + 0x6c]
mov edi, dword [esp + 0x5c]
not ecx
dec ecx
add edx, ecx
test ebp, ebp
mov dword [esp + 0x10], edx
jle 0x40da29
mov dword [esp + 0x64], ebp
mov al, byte [edi]
cmp al, 0x41
jl 0x40d9ac
cmp al, 0x5a
jg 0x40d9ac
movsx ecx, al
lea edx, [ecx + 0x20]
jmp 0x40d9b1
movsx ecx, al
mov edx, ecx
cmp edx, 0x61
jl 0x40d9c6
cmp al, 0x41
jl 0x40d9c1
cmp al, 0x5a
jg 0x40d9c1
add ecx, 0x20
add ecx, 0xffffffa9
jmp 0x40d9d4
cmp al, 0x41
jl 0x40d9d1
cmp al, 0x5a
jg 0x40d9d1
add ecx, 0x20
add ecx, 0xffffffd0
shl cl, 4
inc edi
mov byte [ebx], cl
mov al, byte [edi]
cmp al, 0x41
jl 0x40d9ec
cmp al, 0x5a
jg 0x40d9ec
movsx edx, al
lea esi, [edx + 0x20]
jmp 0x40d9f1
movsx edx, al
mov esi, edx
cmp esi, 0x61
jl 0x40da06
cmp al, 0x41
jl 0x40da01
cmp al, 0x5a
jg 0x40da01
add edx, 0x20
lea eax, [edx - 0x57]
jmp 0x40da14
cmp al, 0x41
jl 0x40da11
cmp al, 0x5a
jg 0x40da11
add edx, 0x20
lea eax, [edx - 0x30]
add cl, al
mov eax, dword [esp + 0x64]
mov byte [ebx], cl
inc edi
inc ebx
dec eax
mov dword [esp + 0x64], eax
jne 0x40d99a
push 6
lea ecx, [esp + 0x2c]
call fcn.0040dcb0
push 0
mov dword [esp + 0x58], 0
call fcn.00410819
push 0
mov dword [esp + 0x24], eax
call fcn.00410819
mov dword [esp + 0x28], eax
mov byte [esp + 0x2c], 1
push 0
call fcn.00410819
add esp, 0xc
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x60]
cmp ebp, 2
mov byte [esp + 0x54], 2
jbe 0x40daff
mov ax, word [ebx]
push eax
call dword [sym.imp.WS2_32.dll_htons]
cmp ax, 0x320
lea esi, [ebp - 2]
ja 0x40dafa
mov edi, eax
and edi, 0xffff
cmp esi, edi
jl 0x40dafa
lea ecx, [ebx + 2]
lea edx, [esp + 0x60]
push ecx
push edi
push edx
call fcn.0040f2a7
mov ecx, dword [esp + 0x28]
mov edx, dword [eax]
push ecx
push edx
call fcn.004111e2
mov eax, dword [esp + 0x74]
push eax
call fcn.00410e17
sub esi, edi
add esp, 0x18
cmp esi, 0x320
ja 0x40dafa
lea ecx, [edi + ebx + 2]
lea edx, [esp + 0x60]
push ecx
push esi
push edx
call fcn.0040f2a7
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax]
push ecx
push edx
call fcn.004111e2
mov eax, dword [esp + 0x74]
push eax
call fcn.00410e17
add esp, 0x18
mov byte [esp + 0x24], 1
jmp 0x40daff
mov byte [esp + 0x24], 0
mov al, 0x8d
mov byte [esp + 0x34], 0
mov byte [esp + 0x35], 0
mov byte [esp + 0x36], 0
mov byte [esp + 0x37], 0
mov byte [esp + 0x3d], al
mov byte [esp + 0x48], al
mov eax, dword [esp + 0x34]
push eax
mov byte [esp + 0x3c], 0x75
mov byte [esp + 0x3d], 0x49
mov byte [esp + 0x3e], 0xde
mov byte [esp + 0x3f], 0x3b
mov byte [esp + 0x40], 0x34
mov byte [esp + 0x42], 0xcb
mov byte [esp + 0x43], 0xbd
mov byte [esp + 0x44], 0x81
mov byte [esp + 0x45], 0x70
mov byte [esp + 0x46], 0x13
mov byte [esp + 0x47], 0x8f
mov byte [esp + 0x48], 0xc9
mov byte [esp + 0x49], 0x30
mov byte [esp + 0x4a], 0xce
mov byte [esp + 0x4b], 0x59
mov byte [esp + 0x4d], 0xa1
mov byte [esp + 0x4e], 0x65
mov byte [esp + 0x4f], 9
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_ntohl]
lea ecx, [esp + 0x38]
lea edx, [esp + 0x60]
push ecx
push 0x14
push edx
mov dword [esp + 0x24], eax
call fcn.0040f2a7
mov ecx, dword [esp + 0x20]
mov edx, dword [eax]
push ecx
push edx
call fcn.004111e2
mov eax, dword [esp + 0x74]
push eax
call fcn.00410e17
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x80]
add esp, 0x18
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x14]
push ecx
push edx
push edi
push eax
lea ecx, [esp + 0x38]
call fcn.0040e360
and eax, 0xff
push edi
mov esi, eax
call fcn.0040e836
push ebx
call fcn.0040e836
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00410e17
mov edx, dword [esp + 0x2c]
push edx
call fcn.00410e17
mov eax, dword [esp + 0x2c]
push eax
call fcn.00410e17
add esp, 0x14
lea ecx, [esp + 0x28]
mov dword [esp + 0x54], 0xffffffff
call fcn.0040de60
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret