Function at 0x401430
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword fs:[0x30]
push esi
push edi
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov ecx, eax
mov dword [ebp - 0xc], eax
mov edx, eax
mov dword [ebp - 8], ecx
movzx eax, word [ecx + 0x2c]
mov edi, 0x3591ed57
mov esi, dword [ecx + 0x30]
shr eax, 1
lea eax, [esi + eax*2]
mov dword [ebp - 0x14], eax
cmp esi, eax
je 0x4014b1
nop dword [eax]
mov cl, byte [esi]
movsx edx, cl
sub cl, 0x41
mov eax, edx
or eax, 0x20
cmp cl, 0x19
cmova eax, edx
add esi, 2
xor eax, edi
imul edi, eax, 0x1000193
cmp esi, dword [ebp - 0x14]
jne 0x401480
cmp edi, 0xcbbc7e35
je 0x4014f3
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx]
mov ecx, eax
mov dword [ebp - 8], ecx
cmp eax, edx
je 0x4014c2
cmp dword [ecx + 0x18], 0
jne 0x401461
xor eax, eax
push str.crypt32.dll
call eax
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x401599
push str.Failed_load_library__n
call fcn.00401890
add esp, 4
call fcn.00404e71
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov esi, dword [ebp - 8]
mov esi, dword [esi + 0x18]
test esi, esi
je 0x4014c2
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
add eax, esi
mov dword [ebp - 0x10], eax
cmp eax, esi
je 0x4014c2
xor ecx, ecx
mov dword [ebp - 8], ecx
cmp dword [eax + 0x18], ecx
je 0x4014c2
mov eax, dword [eax + 0x20]
add eax, esi
mov dword [ebp - 0xc], eax
nop
mov edx, dword [eax]
mov edi, 0x2a91dc06
mov al, byte [edx + esi]
add edx, esi
inc edx
test al, al
je 0x401562
movsx ecx, al
lea edx, [edx + 1]
sub al, 0x41
mov byte [ebp - 1], al
mov eax, ecx
or eax, 0x20
cmp byte [ebp - 1], 0x19
cmova eax, ecx
xor eax, edi
imul edi, eax, 0x1000193
mov al, byte [edx - 1]
test al, al
jne 0x401531
mov ecx, dword [ebp - 8]
cmp edi, 0xc555458a
je 0x40157c
mov edx, dword [ebp - 0x10]
inc ecx
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
cmp ecx, dword [edx + 0x18]
jne 0x401520
jmp 0x4014c2
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + esi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + esi]
add eax, esi
jmp 0x4014c4
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x401620
xor ecx, ecx
mov dword [ebp - 0xc], ecx
cmp dword [eax + 0x18], ecx
je 0x401620
mov eax, dword [eax + 0x20]
add eax, edi
mov dword [ebp - 0x10], eax
nop dword [eax + eax]
mov esi, dword [eax]
mov eax, 0xb66aef98
add esi, edi
mov dl, byte [esi]
inc esi
test dl, dl
je 0x40160b
mov edi, eax
movsx ecx, dl
lea esi, [esi + 1]
sub dl, 0x41
mov eax, ecx
or eax, 0x20
cmp dl, 0x19
mov dl, byte [esi - 1]
cmova eax, ecx
xor eax, edi
imul edi, eax, 0x1000193
test dl, dl
jne 0x4015d2
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], edi
cmp dword [ebp - 8], 0x2749a999
mov edi, dword [ebp - 0x1c]
je 0x4016c0
mov edx, dword [ebp - 0x14]
inc ecx
mov eax, dword [ebp - 0x10]
add eax, 4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
cmp ecx, dword [edx + 0x18]
jne 0x4015c0
xor edx, edx
mov dword [ebp - 0x20], 0xb979de28
mov dword [ebp - 0x1c], 0x246654e2
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x20], 0x86e7ed1a
mov dword [ebp - 0x1c], 0xdb5236d
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 0xb916de7a
mov dword [ebp - 0x1c], 0x2412548d
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x20], 0x86e7ed1a
mov dword [ebp - 0x1c], 0xdb5236d
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x44], ecx
movaps xmm1, xmmword [ebp - 0x50]
xorps xmm1, xmmword [ebp - 0x30]
push eax
push 0
movaps xmmword [ebp - 0x30], xmm1
call edx
mov dword [ebp - 8], eax
test eax, eax
jne 0x4016dd
push str.Failed_open_certificate_store_n
call fcn.00401890
add esp, 4
call fcn.00404e71
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + edi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov edx, dword [eax + edi]
add edx, edi
jmp 0x401622
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x401757
xor ecx, ecx
mov dword [ebp - 0xc], ecx
cmp dword [eax + 0x18], ecx
je 0x401757
mov eax, dword [eax + 0x20]
add eax, edi
mov dword [ebp - 0x14], eax
nop
mov edx, dword [eax]
mov esi, 0x1aecfdd4
mov al, byte [edx + edi]
add edx, edi
inc edx
test al, al
je 0x401742
movsx ecx, al
lea edx, [edx + 1]
sub al, 0x41
mov byte [ebp - 1], al
mov eax, ecx
or eax, 0x20
cmp byte [ebp - 1], 0x19
cmova eax, ecx
xor eax, esi
imul esi, eax, 0x1000193
mov al, byte [edx - 1]
test al, al
jne 0x401711
mov ecx, dword [ebp - 0xc]
cmp esi, 0x5cd2d266
je 0x401789
mov edx, dword [ebp - 0x10]
inc ecx
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], eax
cmp ecx, dword [edx + 0x18]
jne 0x401700
xor eax, eax
push 0
push 1
push 0x33d
push section..data
push 1
push dword [ebp - 8]
call eax
test eax, eax
jne 0x4017d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x80092005
jne 0x4017a3
push str.Certificate_already_installed__n
jmp 0x4017d6
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + edi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edi]
add eax, edi
jmp 0x401759
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.004011d0
add esp, 8
cmp dword [eax + 0x14], 0xf
jbe 0x4017b8
mov eax, dword [eax]
push eax
push esi
push str.Failed_install_certificate_to_store:__0x_X___s_n
call fcn.00401890
add esp, 0xc
lea ecx, [ebp - 0x50]
call fcn.00401130
jmp 0x4017de
push str.Successful_install_certificate_to_store__n
call fcn.00401890
add esp, 4
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x401857
xor ecx, ecx
mov dword [ebp - 0xc], ecx
cmp dword [eax + 0x18], ecx
je 0x401857
mov eax, dword [eax + 0x20]
add eax, edi
mov dword [ebp - 0x14], eax
mov edx, dword [eax]
mov esi, 0xf4e38e5a
mov al, byte [edx + edi]
add edx, edi
inc edx
test al, al
je 0x401842
movsx ecx, al
lea edx, [edx + 1]
sub al, 0x41
mov byte [ebp - 1], al
mov eax, ecx
or eax, 0x20
cmp byte [ebp - 1], 0x19
cmova eax, ecx
xor eax, esi
imul esi, eax, 0x1000193
mov al, byte [edx - 1]
test al, al
jne 0x401811
mov ecx, dword [ebp - 0xc]
cmp esi, 0xe463b59
je 0x40186e
mov edx, dword [ebp - 0x10]
inc ecx
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], eax
cmp ecx, dword [edx + 0x18]
jne 0x401800
xor eax, eax
push 0
push dword [ebp - 8]
call eax
call fcn.00404e71
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + edi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edi]
add eax, edi
jmp 0x401859