Function at 0x406bc0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
mov esi, edx
mov ebx, ecx
push edi
mov dword [esp + 0x14], ebx
cmp dword [esi], 0
jne 0x406be0
mov edx, 0x4066e0
call fcn.00406200
mov dword [esi], eax
mov eax, dword [esi]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], 0
nop word [eax + eax]
mov edx, 0x47
push 0xf495
push 0xc78e6d4e
lea ecx, [edx - 0x3f]
call fcn.004027e0
add esp, 8
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x20]
push ecx
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
push ecx
push 0
push ebx
call eax
test eax, eax
je 0x406c58
cmp eax, 0xea
je 0x406c10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
cmp dword [esp + 0x18], 1
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], 1
jb 0x40706a
mov ebp, 0x7f
nop dword [eax + eax]
mov edi, dword [esi]
mov byte [esp + 0x46], 0x5d
mov byte [esp + 0x47], 0x15
mov byte [esp + 0x48], 0x18
mov byte [esp + 0x49], 0x15
mov byte [esp + 0x4a], 0x1e
mov byte [esp + 0x4b], 0x15
mov byte [esp + 0x4c], 0x30
mov byte [esp + 0x4d], 0x15
mov byte [esp + 0x4e], 0x28
mov byte [esp + 0x4f], 0x15
mov byte [esp + 0x50], 0x32
mov byte [esp + 0x51], 0x15
mov byte [esp + 0x52], 0x15
mov byte [esp + 0x53], 0x15
mov al, byte [esp + 0x46]
mov byte [esp + 0x54], 0
cmp byte [esp + 0x54], 0
jne 0x406d0c
xor esi, esi
nop word [eax + eax]
mov al, byte [esp + esi + 0x46]
mov ecx, 0x15
movzx eax, al
sub ecx, eax
mov eax, ecx
shl eax, 6
sub eax, ecx
cdq
idiv ebp
lea eax, [edx + 0x7f]
cdq
idiv ebp
mov byte [esp + esi + 0x46], dl
inc esi
cmp esi, 0xe
jb 0x406ce0
mov esi, dword [esp + 0x10]
mov edx, 0x1b
push 0xe247
push 0x98be576c
lea ecx, [edx - 0x1a]
call fcn.004027e0
add esp, 8
lea ecx, [esp + 0x46]
push edi
push ecx
call eax
test eax, eax
je 0x40704c
mov esi, dword [esi]
mov byte [esp + 0x55], 0x70
mov byte [esp + 0x56], 0x54
mov byte [esp + 0x57], 0x29
mov byte [esp + 0x58], 0x54
mov byte [esp + 0x59], 0x52
mov byte [esp + 0x5a], 0x54
mov byte [esp + 0x5b], 0x5c
mov byte [esp + 0x5c], 0x54
mov byte [esp + 0x5d], 0x10
mov byte [esp + 0x5e], 0x54
mov byte [esp + 0x5f], 0x79
mov byte [esp + 0x60], 0x54
mov byte [esp + 0x61], 0x54
mov byte [esp + 0x62], 0x54
mov al, byte [esp + 0x55]
mov byte [esp + 0x63], 0
cmp byte [esp + 0x63], 0
jne 0x406db0
xor ecx, ecx
mov al, byte [esp + ecx + 0x55]
movzx eax, al
sub eax, 0x54
imul eax, eax, 0x19
cdq
idiv ebp
lea eax, [edx + 0x7f]
cdq
idiv ebp
mov byte [esp + ecx + 0x55], dl
inc ecx
cmp ecx, 0xe
jb 0x406d90
mov edx, 0x1b
push 0xe247
push 0x98be576c
lea ecx, [edx - 0x1a]
call fcn.004027e0
add esp, 8
lea ecx, [esp + 0x55]
push esi
push ecx
call eax
test eax, eax
je 0x407048
push 4
call fcn.0040b170
add esp, 4
mov edx, 0x83
mov ecx, 1
mov ebp, eax
push 0xd226
push 0x800f576c
call fcn.004027e0
add esp, 8
push ebx
call eax
mov ebx, dword [esp + 0x10]
mov edx, 0x83
push 0xd226
push 0x800f576c
mov ecx, 1
mov edi, eax
mov esi, dword [ebx]
call fcn.004027e0
add esp, 8
push esi
call eax
lea esi, [edi + 0xf]
xor ecx, ecx
add esi, eax
mov edx, 2
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040b170
mov dword [ebp], eax
lea ecx, [esi + esi]
mov edi, eax
add esp, 4
xor al, al
rep stosb byte es:[edi], al
mov byte [esp + 0x38], 0x29
mov byte [esp + 0x39], 0x23
mov byte [esp + 0x3a], 0x29
mov byte [esp + 0x3b], 0x23
mov byte [esp + 0x3c], 0x23
mov byte [esp + 0x3d], 0x23
mov al, byte [esp + 0x38]
mov byte [esp + 0x3e], 0
cmp byte [esp + 0x3e], 0
jne 0x406eb4
xor esi, esi
lea edi, [esi + 0x7f]
nop dword [eax + eax]
mov al, byte [esp + esi + 0x38]
mov ecx, 0x23
movzx eax, al
sub ecx, eax
imul eax, ecx, 0x1b
cdq
idiv edi
lea eax, [edx + 0x7f]
cdq
idiv edi
mov byte [esp + esi + 0x38], dl
inc esi
cmp esi, 6
jb 0x406e90
lea eax, [esp + 0x38]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [ebp]
call edi
mov byte [esp + 0x33], 0x3f
mov byte [esp + 0x34], 0x29
mov byte [esp + 0x35], 0x29
mov byte [esp + 0x36], 0x29
mov al, byte [esp + 0x33]
mov byte [esp + 0x37], 0
cmp byte [esp + 0x37], 0
jne 0x406f28
xor esi, esi
lea ebx, [esi + 0x7f]
nop word [eax + eax]
mov al, byte [esp + esi + 0x33]
mov ecx, 0x29
movzx eax, al
sub ecx, eax
imul eax, ecx, 0x2a
cdq
idiv ebx
lea eax, [edx + 0x7f]
cdq
idiv ebx
mov byte [esp + esi + 0x33], dl
inc esi
cmp esi, 4
jb 0x406f00
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x33]
push eax
push dword [ebp]
call edi
push dword [ebx]
push dword [ebp]
call edi
mov byte [esp + 0x3f], 0xe
mov byte [esp + 0x40], 8
mov byte [esp + 0x41], 0x4d
mov byte [esp + 0x42], 8
mov byte [esp + 0x43], 8
mov byte [esp + 0x44], 8
mov al, byte [esp + 0x3f]
mov byte [esp + 0x45], 0
cmp byte [esp + 0x45], 0
jne 0x406f9a
xor esi, esi
lea edi, [esi + 0x7f]
nop dword [eax]
mov al, byte [esp + esi + 0x3f]
mov ecx, 8
movzx eax, al
sub ecx, eax
imul eax, ecx, 0x1b
cdq
idiv edi
lea eax, [edx + 0x7f]
cdq
idiv edi
mov byte [esp + esi + 0x3f], dl
inc esi
cmp esi, 6
jb 0x406f70
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0x3f]
push eax
push dword [ebp]
call edi
push 0x10
call fcn.0040b170
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x406fc8
mov byte [ebx + 8], 0
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], ebp
mov ebp, dword [esp + 0x2c]
test ebp, ebp
je 0x40703f
mov esi, dword [ebp + 4]
test esi, esi
mov ecx, dword [ebp]
mov eax, esi
cdq
lea edi, [esi + esi]
cmovns edi, esi
sub eax, edx
sar eax, 1
cmp edi, eax
jg 0x407009
test ecx, ecx
je 0x406ff7
cmp byte [ecx + 8], 0
je 0x406ff7
mov ecx, dword [ecx]
jmp 0x406ff9
xor ecx, ecx
test edi, edi
jle 0x407018
nop dword [eax]
mov ecx, dword [ecx]
sub edi, 1
jne 0x407000
jmp 0x407018
cmp esi, edi
jle 0x407018
sub esi, edi
nop
mov ecx, dword [ecx + 4]
sub esi, 1
jne 0x407010
test ebx, ebx
je 0x40703f
mov esi, dword [esp + 0x10]
test ecx, ecx
je 0x407034
mov eax, dword [ecx + 4]
mov dword [eax], ebx
mov dword [ebx + 4], eax
mov dword [ebx], ecx
mov dword [ecx + 4], ebx
inc dword [ebp + 4]
mov ebx, dword [esp + 0x14]
mov ebp, 0x7f
jmp 0x40704c
mov ebx, dword [esp + 0x14]
mov ebp, 0x7f
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add esi, 4
inc ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], ecx
cmp ecx, dword [esp + 0x18]
jbe 0x406c80
mov esi, dword [esp + 0x1c]
mov edx, 0x78
push 0x6f0
push 0xcc04654e
lea ecx, [edx - 0x70]
call fcn.004027e0
add esp, 8
push esi
call eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret