Function at 0x405280
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ee31
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x480
mov eax, dword [0x57c54c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x460], ecx
lea eax, [ebp - 0x45c]
mov dword [ebp - 0x45c], 0
push eax
push 0x20019
push 0
lea eax, [ebp - 0xe0]
mov dword [ebp - 0xe0], 0x6f0053
push eax
push reloc.WS2_32.dll_accept
mov dword [ebp - 0xdc], 0x740066
mov dword [ebp - 0xd8], 0x610077
mov dword [ebp - 0xd4], 0x650072
mov dword [ebp - 0xd0], 0x33005c
mov dword [ebp - 0xcc], 0x300036
mov dword [ebp - 0xc8], 0x680063
mov dword [ebp - 0xc4], 0x6f0072
mov dword [ebp - 0xc0], 0x65006d
mov dword [ebp - 0xbc], 0x43005c
mov dword [ebp - 0xb8], 0x720068
mov dword [ebp - 0xb4], 0x6d006f
mov dword [ebp - 0xb0], 0x65
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40596f
push 0x20a
push eax
lea eax, [ebp - 0x2f0]
push eax
call fcn.00503920
add esp, 0xc
mov dword [ebp - 0x30c], 0x20a
lea eax, [ebp - 0x30c]
mov dword [ebp - 0xac], 0x61006c
mov dword [ebp - 0xa8], 0x740073
mov dword [ebp - 0xa4], 0x69005f
push eax
lea eax, [ebp - 0x2f0]
mov dword [ebp - 0xa0], 0x73006e
push eax
push 0
push 0
lea eax, [ebp - 0xac]
mov dword [ebp - 0x9c], 0x610074
push eax
push dword [ebp - 0x45c]
mov dword [ebp - 0x98], 0x6c006c
mov dword [ebp - 0x94], 0x70005f
mov dword [ebp - 0x90], 0x740061
mov dword [ebp - 0x8c], 0x68
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x45c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x2f8], 0
lea ecx, [ebp - 0x2f0]
mov dword [ebp - 0x2f4], 0
mov dword [ebp - 0x2f8], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x2f4], 7
mov word [ebp - 0x308], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405460
sub ecx, edx
lea eax, [ebp - 0x2f0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x308]
call fcn.0040ab40
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x2f8]
test ecx, ecx
je 0x40590f
mov edx, dword [ebp - 0x2f4]
lea eax, [ebp - 0x308]
mov esi, dword [ebp - 0x308]
cmp edx, 8
cmovae eax, esi
cmp word [eax + ecx*2 - 2], 0x5c
je 0x4054dd
cmp edx, 8
lea eax, [ebp - 0x308]
cmovae eax, esi
cmp word [eax + ecx*2 - 2], 0x2f
je 0x4054dd
push 1
push 0x55eb5c
lea ecx, [ebp - 0x308]
call fcn.0040ac90
xor eax, eax
mov dword [ebp - 0x88], 0x360033
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x84], 0x430030
mov dword [ebp - 0x80], 0x720068
lea edx, [ecx + 2]
mov dword [ebp - 0x7c], 0x6d006f
mov dword [ebp - 0x78], 0x5c0065
mov dword [ebp - 0x74], 0x680043
mov dword [ebp - 0x70], 0x6f0072
mov dword [ebp - 0x6c], 0x65006d
mov dword [ebp - 0x68], str.Signature
mov dword [ebp - 0x64], 0x650073
mov dword [ebp - 0x60], 0x200072
mov dword [ebp - 0x5c], 0x610044
mov dword [ebp - 0x58], 0x610074
mov dword [ebp - 0x54], 0x44005c
mov dword [ebp - 0x50], 0x660065
mov dword [ebp - 0x4c], 0x750061
mov dword [ebp - 0x48], 0x74006c
mov dword [ebp - 0x44], 0x50005c
mov dword [ebp - 0x40], 0x650072
mov dword [ebp - 0x3c], 0x650066
mov dword [ebp - 0x38], 0x650072
mov dword [ebp - 0x34], 0x63006e
mov dword [ebp - 0x30], 0x730065
mov word [ebp - 0x2c], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405593
sub ecx, edx
lea eax, [ebp - 0x88]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x308]
call fcn.0040ac90
cmp dword [ebp - 0x2f4], 8
lea edi, [ebp - 0x308]
cmovae edi, dword [ebp - 0x308]
call fcn.004074f0
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x4055f0
movaps xmm0, xmmword [str.PathFileExistsW]
lea ecx, [ebp - 0x24]
push ecx
push eax
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
push edi
call eax
test eax, eax
je 0x40590f
xorps xmm0, xmm0
lea ecx, [ebp - 0x328]
push 0
movups xmmword [ebp - 0x328], xmm0
movq qword [ebp - 0x318], xmm0
call fcn.0045a9f0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x3a0]
push 0x78
push 0
push eax
call fcn.00503920
add esp, 0xc
lea ecx, [ebp - 0x3a0]
call fcn.00461e30
mov byte [ebp - 4], 2
lea eax, [ebp - 0x458]
push 0xb8
push 0
push eax
call fcn.00503920
add esp, 8
lea ecx, [ebp - 0x458]
call fcn.00409630
mov byte [ebp - 4], 3
lea eax, [ebp - 0x308]
cmp dword [ebp - 0x2f4], 8
lea ecx, [ebp - 0x458]
cmovae eax, dword [ebp - 0x308]
sub esp, 8
push eax
call fcn.00409510
push 1
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x3a0]
call fcn.00461fc0
test al, al
je 0x4058d7
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x656d6f68
push eax
lea ecx, [ebp - 0x328]
mov dword [ebp - 0x1c], 0x65676170
mov byte [ebp - 0x18], 0
call fcn.0045c0f0
mov ecx, eax
call fcn.0045c660
test al, al
jne 0x4058d7
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x328]
call fcn.0045c0f0
mov ecx, eax
call fcn.0045b360
mov byte [ebp - 4], 4
mov esi, dword [eax + 0x10]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x464]
cmp edx, 0x10
jb 0x405740
mov ecx, dword [ebp - 0x478]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405736
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40598d
push edx
push ecx
call fcn.005010b4
add esp, 8
mov dword [ebp - 0x468], 0
mov dword [ebp - 0x464], 0xf
mov byte [ebp - 0x478], 0
test esi, esi
je 0x4058d7
lea ecx, [ebp - 0x60]
call fcn.00405030
mov byte [ebp - 4], 5
lea eax, [ebp - 0x490]
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x60], 2
push eax
lea ecx, [ebp - 0x328]
call fcn.0045c0f0
mov ecx, eax
call fcn.0045b360
mov byte [ebp - 4], 6
mov edx, eax
push 0xfde9
lea ecx, [ebp - 0x478]
call fcn.0046f170
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x5c]
push eax
call fcn.00408010
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x464]
cmp edx, 8
jb 0x4057fd
mov ecx, dword [ebp - 0x478]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4057f3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405992
push edx
push ecx
call fcn.005010b4
add esp, 8
xor eax, eax
mov dword [ebp - 0x468], 0
mov dword [ebp - 0x464], 7
mov word [ebp - 0x478], ax
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x47c]
cmp edx, 0x10
jb 0x405858
mov ecx, dword [ebp - 0x490]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40584e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405997
push edx
push ecx
call fcn.005010b4
add esp, 8
mov edi, dword [ebp - 0x460]
mov dword [ebp - 0x480], 0
mov dword [ebp - 0x47c], 0xf
mov byte [ebp - 0x490], 0
mov esi, dword [edi + 0x258]
cmp dword [edi + 0x25c], esi
je 0x4058bb
mov eax, dword [ebp - 0x60]
lea ecx, [esi + 4]
mov dword [esi], eax
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x460], esi
call fcn.0040d350
mov byte [ebp - 4], 8
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0x1c]
call fcn.0040d350
mov byte [ebp - 4], 5
add dword [edi + 0x258], 0x34
jmp 0x4058cb
lea eax, [ebp - 0x60]
push eax
push esi
lea ecx, [edi + 0x254]
call fcn.0040c030
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x60]
call fcn.004050a0
lea ecx, [ebp - 0x458]
call fcn.004094a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x458]
call fcn.00404f80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3a0]
call fcn.00404dc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x328]
call fcn.0045b000
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2f4]
cmp edx, 8
jb 0x405952
mov ecx, dword [ebp - 0x308]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405948
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40599c
push edx
push ecx
call fcn.005010b4
add esp, 8
xor eax, eax
mov dword [ebp - 0x2f8], 0
mov dword [ebp - 0x2f4], 7
mov word [ebp - 0x308], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00500b45
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00508868
call fcn.00508868
call fcn.00508868
call fcn.00508868
int3