Function at 0x406c00
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 + 0x1c], ebx
cmp dword [esi], 0
jne 0x406c20
mov edx, 0x4066e0
call fcn.004061f0
mov dword [esi], eax
mov eax, dword [esi]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], 0
nop word [eax + eax]
mov edx, 0x2c
push 0xf225
push 0x1bfa6d4e
lea ecx, [edx - 0x24]
call fcn.00402800
add esp, 8
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x1c]
push ecx
push 0xffffffffffffffff
lea ecx, [esp + 0x28]
push ecx
push 0
push ebx
call eax
test eax, eax
je 0x406c98
cmp eax, 0xea
je 0x406c50
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
cmp dword [esp + 0x14], 1
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], 1
jb 0x407089
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ebp, 0x7f
nop
mov edi, dword [esi]
mov byte [esp + 0x46], 0x6b
mov byte [esp + 0x47], 0x42
mov byte [esp + 0x48], 0x49
mov byte [esp + 0x49], 0x42
mov byte [esp + 0x4a], 0x57
mov byte [esp + 0x4b], 0x42
mov byte [esp + 0x4c], 2
mov byte [esp + 0x4d], 0x42
mov byte [esp + 0x4e], 0x44
mov byte [esp + 0x4f], 0x42
mov byte [esp + 0x50], 0x31
mov byte [esp + 0x51], 0x42
mov byte [esp + 0x52], 0x42
mov byte [esp + 0x53], 0x42
mov al, byte [esp + 0x46]
mov byte [esp + 0x54], 0
cmp byte [esp + 0x54], 0
jne 0x406d48
xor esi, esi
nop word [eax + eax]
mov al, byte [esp + esi + 0x46]
mov ecx, 0x42
movzx eax, al
sub ecx, eax
imul eax, ecx, 0x1b
cdq
idiv ebp
lea eax, [edx + 0x7f]
cdq
idiv ebp
mov byte [esp + esi + 0x46], dl
inc esi
cmp esi, 0xe
jb 0x406d20
mov esi, dword [esp + 0x10]
mov edx, 0x2f
push 0x46a4
push 0x388b576c
lea ecx, [edx - 0x2e]
call fcn.00402800
add esp, 8
lea ecx, [esp + 0x46]
push edi
push ecx
call eax
test eax, eax
je 0x40706b
mov edi, dword [esi]
mov byte [esp + 0x55], 0x46
mov byte [esp + 0x56], 0x45
mov byte [esp + 0x57], 0x48
mov byte [esp + 0x58], 0x45
mov byte [esp + 0x59], 0x4e
mov byte [esp + 0x5a], 0x45
mov byte [esp + 0x5b], 0x21
mov byte [esp + 0x5c], 0x45
mov byte [esp + 0x5d], 0x79
mov byte [esp + 0x5e], 0x45
mov byte [esp + 0x5f], 0x5d
mov byte [esp + 0x60], 0x45
mov byte [esp + 0x61], 0x45
mov byte [esp + 0x62], 0x45
mov al, byte [esp + 0x55]
mov byte [esp + 0x63], 0
cmp byte [esp + 0x63], 0
jne 0x406dfe
xor esi, esi
nop dword [eax]
mov al, byte [esp + esi + 0x55]
mov ecx, 0x45
movzx eax, al
sub ecx, eax
mov eax, ecx
shl eax, 5
sub eax, ecx
add eax, eax
cdq
idiv ebp
lea eax, [edx + 0x7f]
cdq
idiv ebp
mov byte [esp + esi + 0x55], dl
inc esi
cmp esi, 0xe
jb 0x406dd0
mov esi, dword [esp + 0x10]
mov edx, 0x2f
push 0x46a4
push 0x388b576c
lea ecx, [edx - 0x2e]
call fcn.00402800
add esp, 8
lea ecx, [esp + 0x55]
push edi
push ecx
call eax
test eax, eax
je 0x40706b
push 4
call fcn.0040b1b0
add esp, 4
mov edx, 0x6d
mov ebp, eax
push 0xb96f
push 0x474f576c
lea ecx, [edx - 0x6c]
call fcn.00402800
add esp, 8
push dword [esp + 0x1c]
call eax
mov esi, dword [esi]
mov edx, 0x6d
push 0xb96f
push 0x474f576c
mov edi, eax
lea ecx, [edx - 0x6c]
call fcn.00402800
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.0040b1b0
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], 0x56
mov edi, 0x7f
mov byte [esp + 0x39], 8
mov byte [esp + 0x3a], 0x56
mov byte [esp + 0x3b], 8
mov byte [esp + 0x3c], 8
mov byte [esp + 0x3d], 8
mov al, byte [esp + 0x38]
mov byte [esp + 0x3e], 0
cmp byte [esp + 0x3e], 0
jne 0x406ef6
xor ecx, ecx
mov al, byte [esp + ecx + 0x38]
movzx eax, al
sub eax, 8
imul eax, eax, 0x25
cdq
idiv edi
lea eax, [edx + 0x7f]
cdq
idiv edi
mov byte [esp + ecx + 0x38], dl
inc ecx
cmp ecx, 6
jb 0x406ed6
lea eax, [esp + 0x38]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [esp + 0x1c]
push dword [ebp]
call ebx
mov byte [esp + 0x33], 0x54
mov byte [esp + 0x34], 0x10
mov byte [esp + 0x35], 0x10
mov byte [esp + 0x36], 0x10
mov al, byte [esp + 0x33]
mov byte [esp + 0x37], 0
cmp byte [esp + 0x37], 0
jne 0x406f5a
xor esi, esi
mov al, byte [esp + esi + 0x33]
mov ecx, 0x10
movzx eax, al
sub ecx, eax
lea eax, [ecx + ecx*8]
shl eax, 2
cdq
idiv edi
lea eax, [edx + 0x7f]
cdq
idiv edi
mov byte [esp + esi + 0x33], dl
inc esi
cmp esi, 4
jb 0x406f33
lea eax, [esp + 0x33]
push eax
push dword [ebp]
call ebx
mov eax, dword [esp + 0x10]
push dword [eax]
push dword [ebp]
call ebx
mov byte [esp + 0x3f], 0x5e
mov byte [esp + 0x40], 0x41
mov byte [esp + 0x41], 0x51
mov byte [esp + 0x42], 0x41
mov byte [esp + 0x43], 0x41
mov byte [esp + 0x44], 0x41
mov al, byte [esp + 0x3f]
mov byte [esp + 0x45], 0
cmp byte [esp + 0x45], 0
jne 0x406fc4
xor esi, esi
nop
mov al, byte [esp + esi + 0x3f]
mov ecx, 0x41
movzx eax, al
sub ecx, eax
imul eax, ecx, 0x2d
cdq
idiv edi
lea eax, [edx + 0x7f]
cdq
idiv edi
mov byte [esp + esi + 0x3f], dl
inc esi
cmp esi, 6
jb 0x406fa0
lea eax, [esp + 0x3f]
push eax
push dword [ebp]
call ebx
push 0x10
call fcn.0040b1b0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x406ff2
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 0x40705c
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 0x407030
test ecx, ecx
je 0x407021
cmp byte [ecx + 8], 0
je 0x407021
mov ecx, dword [ecx]
jmp 0x407023
xor ecx, ecx
test edi, edi
jle 0x40703e
mov ecx, dword [ecx]
sub edi, 1
jne 0x407027
jmp 0x40703e
cmp esi, edi
jle 0x40703e
sub esi, edi
mov ecx, dword [ecx + 4]
sub esi, 1
jne 0x407036
test ebx, ebx
je 0x40705c
mov esi, dword [esp + 0x10]
test ecx, ecx
je 0x407060
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]
jmp 0x407060
mov esi, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ebp, 0x7f
mov ecx, dword [esp + 0x20]
add esi, 4
inc ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], ecx
cmp ecx, dword [esp + 0x14]
jbe 0x406cc0
mov esi, dword [esp + 0x18]
mov edx, 0x62
push 0x469b
push 0xc1c3654e
lea ecx, [edx - 0x5a]
call fcn.00402800
add esp, 8
push esi
call eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret