Function at 0x402c00
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5311e5
mov eax, dword fs:[0]
push eax
sub esp, 0x53c
mov eax, dword [0x581e60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x544], eax
mov dword [ebp - 4], 1
call fcn.00409ea0
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x402c5a
push 0x80004005
call fcn.00404b40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x538], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x548], ebx
call fcn.00409ea0
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x402c90
push 0x80004005
call fcn.00404b40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x52c], eax
mov byte [ebp - 4], 3
call fcn.00409ea0
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x402cc0
push 0x80004005
call fcn.00404b40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x528], eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x534], ebx
call fcn.00409ea0
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x402cf6
push 0x80004005
call fcn.00404b40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x520], esi
lea ecx, [ebp - 0x538]
push str.HelloServerabcd
push ecx
mov byte [ebp - 4], 5
call fcn.00404630
add esp, 8
lea edx, [ebp - 0x534]
push edx
lea eax, [ebp - 0x528]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x52c]
push ecx
lea edx, [ebp - 0x548]
push edx
push eax
call fcn.00414868
movzx ecx, word [ebp - 0x534]
mov edx, dword [ebp - 0x538]
push ecx
mov ecx, dword [ebp - 0x52c]
push edx
mov edx, dword [ebp - 0x528]
lea eax, [ebp - 0x524]
push eax
call fcn.00407090
mov byte [ebp - 4], 6
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
je 0x402dcc
cmp dword [edi + 0xc], ebx
lea esi, [edi + 0xc]
jl 0x402db6
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x402db6
push eax
call fcn.00404b70
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x402dab
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add ebx, 0x10
mov dword [ebp - 0x520], ebx
jmp 0x402dc6
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x520]
call fcn.004049c0
mov esi, dword [ebp - 0x520]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x524]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402df2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esi - 0xc]
test edi, edi
jg 0x402dfe
or eax, 0xffffffff
jmp 0x402e16
push 0x7c
push esi
call fcn.0050c454
add esp, 8
test eax, eax
jne 0x402e12
or eax, 0xffffffff
jmp 0x402e16
sub eax, esi
sar eax, 1
sub edi, eax
dec edi
push edi
lea ecx, [ebp - 0x524]
push ecx
lea ecx, [ebp - 0x520]
call fcn.004040a0
mov byte [ebp - 4], 7
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
je 0x402e8d
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x402e77
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x402e77
push eax
call fcn.00404b70
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x402e6c
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add ebx, 0x10
mov dword [ebp - 0x520], ebx
jmp 0x402e87
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x520]
call fcn.004049c0
mov esi, dword [ebp - 0x520]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x524]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402eb3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi - 0xc], 0
jg 0x402ebe
or eax, 0xffffffff
jmp 0x402ed6
push 0x7c
push esi
call fcn.0050c454
add esp, 8
test eax, eax
jne 0x402ed2
or eax, 0xffffffff
jmp 0x402ed6
sub eax, esi
sar eax, 1
push eax
lea ecx, [ebp - 0x524]
push ecx
lea ecx, [ebp - 0x520]
call fcn.00404120
mov byte [ebp - 4], 8
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
je 0x402f4a
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x402f34
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x402f34
push eax
call fcn.00404b70
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x402f29
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add ebx, 0x10
mov dword [ebp - 0x520], ebx
jmp 0x402f44
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x520]
call fcn.004049c0
mov esi, dword [ebp - 0x520]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x524]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402f70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00409ea0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402f8a
push 0x80004005
call fcn.00404b40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x530], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp + 0xc]
push ecx
push esi
lea edx, [ebp - 0x530]
push str._s___s
push edx
call fcn.00404630
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
lea ebx, [ebp - 0x51c]
mov dword [ebp - 0x20], 0x64636261
mov dword [ebp - 0x1c], 0x68676665
mov dword [ebp - 0x18], 0x64636261
mov dword [ebp - 0x14], 0x68676665
call fcn.00401000
xor ebx, ebx
push 0x63
lea ecx, [ebp - 0x83]
push ebx
mov byte [ebp - 4], 0xa
push ecx
mov byte [ebp - 0x84], bl
call fcn.0050f160
mov esi, dword [ebp - 0x530]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
add esp, 0xc
or ecx, eax
jge 0x403029
push ebx
lea ecx, [ebp - 0x530]
call fcn.004048f0
mov esi, dword [ebp - 0x530]
sub esp, 0x1c
mov ecx, esp
xor edx, edx
mov eax, esi
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
mov dword [ebp - 0x53c], esp
mov word [ecx], dx
lea edi, [eax + 2]
jmp 0x403050
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x403050
sub eax, edi
sar eax, 1
push eax
mov eax, esi
call fcn.00401c60
lea ecx, [ebp - 0x24c]
call fcn.00407640
mov byte [ebp - 4], 0xb
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0050c08a
add esp, 0x24
cmp eax, ebx
jl 0x403563
cmp eax, dword [esi - 8]
jg 0x403563
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
cmp dword [ebp - 0x238], 0x10
mov eax, dword [ebp - 0x24c]
jae 0x4030b2
lea eax, [ebp - 0x24c]
mov edx, dword [ebp - 0x23c]
push edx
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.0050fae0
add esp, 0xc
lea ecx, [ebp - 0x84]
push ecx
lea edi, [ebp - 0x51c]
call fcn.00401530
push 0xc7
lea edx, [ebp - 0x213]
push ebx
push edx
call fcn.0050f160
push 0xc7
lea eax, [ebp - 0x14b]
push ebx
push eax
mov byte [ebp - 0x14c], bl
call fcn.0050f160
mov ecx, 0x19
lea esi, [ebp - 0x84]
lea edi, [ebp - 0x214]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x14c]
push ecx
lea edx, [ebp - 0x214]
call fcn.00401b20
add esp, 0x1c
call fcn.00409ea0
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x403147
push 0x80004005
call fcn.00404b40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x524], eax
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x14c]
mov byte [ebp - 0xe9], bl
mov dword [ebp - 0x21c], 0xf
mov dword [ebp - 0x220], ebx
mov byte [ebp - 0x230], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403182
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x14c]
lea esi, [ebp - 0x230]
call fcn.00401d70
sub esp, 0x1c
mov ecx, esp
mov byte [ebp - 4], 0xd
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], 0xf
mov edx, esi
mov dword [ebp - 0x53c], esp
mov byte [ecx], bl
push edx
or eax, 0xffffffff
xor ebx, ebx
call fcn.00402410
lea ecx, [ebp - 0x268]
call fcn.004077a0
add esp, 0x1c
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x254], 8
mov eax, dword [ebp - 0x268]
jae 0x4031ed
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x524]
push str.HelloServer_s
push eax
call fcn.00404630
add esp, 0xc
call fcn.00409ea0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40321c
push 0x80004005
call fcn.00404b40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x540], esi
lea ecx, [ebp - 0x534]
push ecx
lea edx, [ebp - 0x528]
push edx
lea eax, [ebp - 0x52c]
push eax
lea ecx, [ebp - 0x548]
mov byte [ebp - 4], 0xf
mov edx, dword [ebp + 8]
push ecx
push edx
call fcn.00414868
movzx eax, word [ebp - 0x534]
mov ecx, dword [ebp - 0x524]
push eax
push ecx
mov ecx, dword [ebp - 0x52c]
lea edx, [ebp - 0x53c]
push edx
mov edx, dword [ebp - 0x528]
call fcn.00407090
mov byte [ebp - 4], 0x10
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
je 0x4032df
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x4032c9
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x4032c9
push eax
call fcn.00404b70
mov esi, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4032be
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add esi, 0x10
mov dword [ebp - 0x540], esi
jmp 0x4032df
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x540]
call fcn.004049c0
mov esi, dword [ebp - 0x540]
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x53c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403305
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x544]
mov edi, dword [ecx]
lea ebx, [esi - 0x10]
sub edi, 0x10
cmp ebx, edi
je 0x40335e
cmp dword [edi + 0xc], 0
jl 0x403354
mov edx, dword [ebx]
cmp edx, dword [edi]
jne 0x403354
push ebx
call fcn.00404b70
mov esi, eax
add esp, 4
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403347
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [ebp - 0x544]
add esi, 0x10
mov dword [ecx], esi
jmp 0x40335e
mov eax, dword [esi - 0xc]
push eax
push esi
call fcn.004049c0
mov byte [ebp - 4], 0xe
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40337b
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
cmp dword [ebp - 0x254], 8
jb 0x403393
mov ecx, dword [ebp - 0x268]
push ecx
call fcn.0040932c
add esp, 4
xor edx, edx
cmp dword [ebp - 0x21c], 0x10
mov dword [ebp - 0x254], 7
mov dword [ebp - 0x258], 0
mov word [ebp - 0x268], dx
jb 0x4033c8
mov eax, dword [ebp - 0x230]
push eax
call fcn.0040932c
add esp, 4
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x524]
add eax, 0xfffffff0
mov dword [ebp - 0x21c], 0xf
mov dword [ebp - 0x220], 0
mov byte [ebp - 0x230], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403409
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x238], 0x10
jb 0x403421
mov ecx, dword [ebp - 0x24c]
push ecx
call fcn.0040932c
add esp, 4
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x530]
add eax, 0xfffffff0
mov dword [ebp - 0x238], 0xf
mov dword [ebp - 0x23c], 0
mov byte [ebp - 0x24c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403462
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x520]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403488
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x528]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4034ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x52c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4034d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x538]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4034fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40351d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403543
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050ba00
mov esp, ebp
pop ebp
ret 0xc
push 0x80070057
call fcn.00404b40
int3