Function at 0x406b70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
mov esi, edx
push edi
mov edi, ecx
mov dword [esp + 0x14], edi
cmp dword [esi], 0
jne 0x406b90
mov edx, 0x406690
call fcn.004061b0
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, 0x82
push 0xa404
push 0x9b7c6d4e
lea ecx, [edx - 0x7a]
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 edi
call eax
test eax, eax
je 0x406c08
cmp eax, 0xea
je 0x406bc0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
cmp dword [esp + 0x18], 1
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], 1
jb 0x406ff8
mov ebp, 0x7f
nop dword [eax + eax]
mov esi, dword [ebx]
mov byte [esp + 0x46], 0x77
mov byte [esp + 0x47], 0x73
mov byte [esp + 0x48], 0x5e
mov byte [esp + 0x49], 0x73
mov byte [esp + 0x4a], 0x34
mov byte [esp + 0x4b], 0x73
mov byte [esp + 0x4c], 0x35
mov byte [esp + 0x4d], 0x73
mov byte [esp + 0x4e], 0x6d
mov byte [esp + 0x4f], 0x73
mov byte [esp + 0x50], 0x27
mov byte [esp + 0x51], 0x73
mov byte [esp + 0x52], 0x73
mov byte [esp + 0x53], 0x73
mov al, byte [esp + 0x46]
mov byte [esp + 0x54], 0
cmp byte [esp + 0x54], 0
jne 0x406cb0
xor ecx, ecx
nop word [eax + eax]
mov al, byte [esp + ecx + 0x46]
movzx eax, al
sub eax, 0x73
lea eax, [eax + eax*8]
cdq
idiv ebp
lea eax, [edx + 0x7f]
cdq
idiv ebp
mov byte [esp + ecx + 0x46], dl
inc ecx
cmp ecx, 0xe
jb 0x406c90
mov edx, 0x5b
push 0x4aa0
push 0xa3a576c
lea ecx, [edx - 0x5a]
call fcn.004027e0
add esp, 8
lea ecx, [esp + 0x46]
push esi
push ecx
call eax
test eax, eax
je 0x406fda
mov esi, dword [ebx]
mov byte [esp + 0x55], 0x3e
mov byte [esp + 0x56], 0x53
mov byte [esp + 0x57], 0x14
mov byte [esp + 0x58], 0x53
mov byte [esp + 0x59], 0x15
mov byte [esp + 0x5a], 0x53
mov byte [esp + 0x5b], 0x4d
mov byte [esp + 0x5c], 0x53
mov byte [esp + 0x5d], 7
mov byte [esp + 0x5e], 0x53
mov byte [esp + 0x5f], 0x57
mov byte [esp + 0x60], 0x53
mov byte [esp + 0x61], 0x53
mov byte [esp + 0x62], 0x53
mov al, byte [esp + 0x55]
mov byte [esp + 0x63], 0
cmp byte [esp + 0x63], 0
jne 0x406d54
xor ecx, ecx
mov al, byte [esp + ecx + 0x55]
movzx eax, al
sub eax, 0x53
lea eax, [eax + eax*8]
cdq
idiv ebp
lea eax, [edx + 0x7f]
cdq
idiv ebp
mov byte [esp + ecx + 0x55], dl
inc ecx
cmp ecx, 0xe
jb 0x406d34
mov edx, 0x5b
push 0x4aa0
push 0xa3a576c
lea ecx, [edx - 0x5a]
call fcn.004027e0
add esp, 8
lea ecx, [esp + 0x55]
push esi
push ecx
call eax
test eax, eax
je 0x406fda
push 4
call fcn.0040aff0
add esp, 4
mov edx, 0x2b
mov ebp, eax
push 0xdb77
push 0x4f2a576c
lea ecx, [edx - 0x2a]
call fcn.004027e0
add esp, 8
push edi
call eax
mov esi, dword [ebx]
mov edx, 0x2b
push 0xdb77
push 0x4f2a576c
mov edi, eax
lea ecx, [edx - 0x2a]
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.0040aff0
mov dword [ebp], eax
lea ecx, [esi + esi]
mov edi, eax
add esp, 4
xor al, al
mov esi, 0x7f
rep stosb byte es:[edi], al
mov byte [esp + 0x38], 0x1e
mov byte [esp + 0x39], 0x61
mov byte [esp + 0x3a], 0x1e
mov byte [esp + 0x3b], 0x61
mov byte [esp + 0x3c], 0x61
mov byte [esp + 0x3d], 0x61
mov al, byte [esp + 0x38]
mov byte [esp + 0x3e], 0
cmp byte [esp + 0x3e], 0
jne 0x406e52
xor ecx, ecx
nop dword [eax]
mov al, byte [esp + ecx + 0x38]
movzx eax, al
sub eax, 0x61
lea eax, [eax + eax*4]
add eax, eax
cdq
idiv esi
lea eax, [edx + 0x7f]
cdq
idiv esi
mov byte [esp + ecx + 0x38], dl
inc ecx
cmp ecx, 6
jb 0x406e30
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], 0x17
mov byte [esp + 0x34], 0x38
mov byte [esp + 0x35], 0x38
mov byte [esp + 0x36], 0x38
mov al, byte [esp + 0x33]
mov byte [esp + 0x37], 0
cmp byte [esp + 0x37], 0
jne 0x406ed2
xor esi, esi
lea ebx, [esi + 0x7f]
nop dword [eax + eax]
mov al, byte [esp + esi + 0x33]
movzx ecx, al
sub ecx, 0x38
lea eax, [ecx*8]
sub eax, ecx
shl eax, 2
cdq
idiv ebx
lea eax, [edx + 0x7f]
cdq
idiv ebx
mov byte [esp + esi + 0x33], dl
inc esi
cmp esi, 4
jb 0x406ea0
mov ebx, dword [esp + 0x10]
mov esi, 0x7f
lea eax, [esp + 0x33]
push eax
push dword [ebp]
call edi
push dword [ebx]
push dword [ebp]
call edi
mov byte [esp + 0x3f], 0x4e
mov byte [esp + 0x40], 0x12
mov byte [esp + 0x41], 0x49
mov byte [esp + 0x42], 0x12
mov byte [esp + 0x43], 0x12
mov byte [esp + 0x44], 0x12
mov al, byte [esp + 0x3f]
mov byte [esp + 0x45], 0
cmp byte [esp + 0x45], 0
jne 0x406f35
xor ecx, ecx
mov al, byte [esp + ecx + 0x3f]
movzx eax, al
sub eax, 0x12
lea eax, [eax + eax*4]
add eax, eax
cdq
idiv esi
lea eax, [edx + 0x7f]
cdq
idiv esi
mov byte [esp + ecx + 0x3f], dl
inc ecx
cmp ecx, 6
jb 0x406f13
lea eax, [esp + 0x3f]
push eax
push dword [ebp]
call edi
push 0x10
call fcn.0040aff0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x406f63
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 0x406fcd
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 0x406fa1
test ecx, ecx
je 0x406f92
cmp byte [ecx + 8], 0
je 0x406f92
mov ecx, dword [ecx]
jmp 0x406f94
xor ecx, ecx
test edi, edi
jle 0x406faf
mov ecx, dword [ecx]
sub edi, 1
jne 0x406f98
jmp 0x406faf
cmp esi, edi
jle 0x406faf
sub esi, edi
mov ecx, dword [ecx + 4]
sub esi, 1
jne 0x406fa7
test ebx, ebx
je 0x406fcd
mov edi, dword [esp + 0x14]
test ecx, ecx
je 0x406fd1
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 0x406fd1
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov ebp, 0x7f
mov ecx, dword [esp + 0x20]
add ebx, 4
inc ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], ecx
cmp ecx, dword [esp + 0x18]
jbe 0x406c30
mov ebx, dword [esp + 0x1c]
mov edx, 0x5e
push 0x23f9
push 0xd9cb654e
lea ecx, [edx - 0x56]
call fcn.004027e0
add esp, 8
push ebx
call eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret