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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x4464d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
test ebx, ebx
jne 0x40a8fb
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418fae
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x244]
mov dword [ebp - 0x38], 0x4f0053
push eax
push 0x20019
push 0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], 0x540046
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x30], 0x410057
mov dword [ebp - 0x2c], 0x450052
mov dword [ebp - 0x28], 0x46005c
mov dword [ebp - 0x24], 0x730061
mov dword [ebp - 0x20], 0x6f006f
mov dword [ebp - 0x1c], 0x440020
mov dword [ebp - 0x18], 0x4d0052
mov dword [ebp - 0x14], 0x50005c
mov dword [ebp - 0x10], 0x6c006f
mov dword [ebp - 0xc], 0x630069
mov dword [ebp - 8], 0x79
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40a98a
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418fae
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x240], ax
lea eax, [ebp - 0x23e]
push eax
call fcn.0041bd20
lea ecx, [ebp - 0x240]
add esp, 0xc
mov eax, ecx
mov edx, 0x104
sub ebx, eax
jmp 0x40a9c0
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x40a9de
movzx eax, word [ebx + ecx]
test ax, ax
je 0x40a9de
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x40a9c0
jmp 0x40a9e2
test edx, edx
jne 0x40a9e5
sub ecx, 2
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x248]
push edi
push eax
lea ecx, [ebp - 0x240]
call fcn.0040a870
mov esi, 0x104
test eax, eax
js 0x40aa5b
mov edx, dword [ebp - 0x248]
lea eax, [ebp - 0x240]
mov ecx, esi
lea eax, [eax + edx*2]
sub ecx, edx
je 0x40aa53
add edx, 0x7ffffefa
mov edi, 0x43fdd8
add edx, ecx
sub edi, eax
mov dword [ebp - 0x248], edi
test edx, edx
je 0x40aa4f
movzx edi, word [edi + eax]
test di, di
je 0x40aa4f
mov word [eax], di
dec edx
mov edi, dword [ebp - 0x248]
add eax, 2
dec ecx
jne 0x40aa30
jmp 0x40aa53
test ecx, ecx
jne 0x40aa56
sub eax, 2
xor ecx, ecx
mov word [eax], cx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40aa9c
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418fae
mov esp, ebp
pop ebp
ret
mov edx, esi
lea ecx, [ebp - 0x240]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x40aac2
movzx eax, word [ebx + ecx]
test ax, ax
je 0x40aac2
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x40aaa4
jmp 0x40aac6
test edx, edx
jne 0x40aac9
sub ecx, 2
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x240]
call fcn.0040a870
test eax, eax
js 0x40ab2b
mov ecx, dword [ebp - 0x248]
lea eax, [ebp - 0x240]
lea eax, [eax + ecx*2]
sub esi, ecx
je 0x40ab23
add ecx, 0x7ffffefa
mov edi, str._Cert
add ecx, esi
sub edi, eax
test ecx, ecx
je 0x40ab1f
movzx edx, word [edi + eax]
test dx, dx
je 0x40ab1f
mov word [eax], dx
dec ecx
add eax, 2
dec esi
jne 0x40ab06
jmp 0x40ab23
test esi, esi
jne 0x40ab26
sub eax, 2
xor ecx, ecx
mov word [eax], cx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x244]
test eax, eax
jne 0x40ab6c
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418fae
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418fae
mov esp, ebp
pop ebp
ret