Function at 0x404990
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 0x526511
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x480
mov eax, dword [0x57254c]
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 0x40507f
push 0x20a
push eax
lea eax, [ebp - 0x2f0]
push eax
call fcn.004fb730
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 0x404b70
sub ecx, edx
lea eax, [ebp - 0x2f0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x308]
call fcn.00407a50
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x2f8]
test ecx, ecx
je 0x40501f
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 0x404bed
cmp edx, 8
lea eax, [ebp - 0x308]
cmovae eax, esi
cmp word [eax + ecx*2 - 2], 0x2f
je 0x404bed
push 1
push 0x555afc
lea ecx, [ebp - 0x308]
call fcn.00407ba0
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], 0x55005c
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 0x404ca3
sub ecx, edx
lea eax, [ebp - 0x88]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x308]
call fcn.00407ba0
cmp dword [ebp - 0x2f4], 8
lea edi, [ebp - 0x308]
cmovae edi, dword [ebp - 0x308]
call fcn.00405960
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x404d00
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 0x40501f
xorps xmm0, xmm0
lea ecx, [ebp - 0x328]
push 0
movups xmmword [ebp - 0x328], xmm0
movq qword [ebp - 0x318], xmm0
call fcn.004546b0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x3a0]
push 0x78
push 0
push eax
call fcn.004fb730
add esp, 0xc
lea ecx, [ebp - 0x3a0]
call fcn.0045bba0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x458]
push 0xb8
push 0
push eax
call fcn.004fb730
add esp, 8
lea ecx, [ebp - 0x458]
call fcn.00406730
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.00406610
push 1
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x3a0]
call fcn.0045bd30
test al, al
je 0x404fe7
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.00455db0
mov ecx, eax
call fcn.00456320
test al, al
jne 0x404fe7
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x328]
call fcn.00455db0
mov ecx, eax
call fcn.00455020
mov byte [ebp - 4], 4
mov esi, dword [eax + 0x10]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x464]
cmp edx, 0x10
jb 0x404e50
mov ecx, dword [ebp - 0x478]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404e46
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40509d
push edx
push ecx
call fcn.004f8ec4
add esp, 8
mov dword [ebp - 0x468], 0
mov dword [ebp - 0x464], 0xf
mov byte [ebp - 0x478], 0
test esi, esi
je 0x404fe7
lea ecx, [ebp - 0x60]
call fcn.00404740
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.00455db0
mov ecx, eax
call fcn.00455020
mov byte [ebp - 4], 6
mov edx, eax
push 0xfde9
lea ecx, [ebp - 0x478]
call fcn.00469000
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x5c]
push eax
call fcn.004061d0
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x464]
cmp edx, 8
jb 0x404f0d
mov ecx, dword [ebp - 0x478]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404f03
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4050a2
push edx
push ecx
call fcn.004f8ec4
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 0x404f68
mov ecx, dword [ebp - 0x490]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404f5e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4050a7
push edx
push ecx
call fcn.004f8ec4
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 0x404fcb
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.00409750
mov byte [ebp - 4], 8
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0x1c]
call fcn.00409750
mov byte [ebp - 4], 5
add dword [edi + 0x258], 0x34
jmp 0x404fdb
lea eax, [ebp - 0x60]
push eax
push esi
lea ecx, [edi + 0x254]
call fcn.00408cf0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x60]
call fcn.004047b0
lea ecx, [ebp - 0x458]
call fcn.004065a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x458]
call fcn.00404690
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3a0]
call fcn.004044d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x328]
call fcn.00454cc0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2f4]
cmp edx, 8
jb 0x405062
mov ecx, dword [ebp - 0x308]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405058
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4050ac
push edx
push ecx
call fcn.004f8ec4
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.004f8955
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00500017
call fcn.00500017
call fcn.00500017
call fcn.00500017
int3