Function at 0x405cb0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x41f7eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.00406060
mov ebp, dword [esp + 0xac]
xor ebx, ebx
push ebx
push 0x10000080
push 3
push ebx
push 1
push bind
push ebp
mov dword [esp + 0xc0], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
or ecx, 0xffffffff
mov dword [esp + 0x10], eax
cmp eax, ecx
jne 0x405d24
mov dword [esp + 0xa4], ecx
lea ecx, [esp + 0x10]
call fcn.00406080
mov eax, 0x333
jmp 0x40603e
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x40], eax
mov esi, ecx
mov dword [esp + 0x44], eax
inc esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x40], 0x10
lea ecx, [esi + esi]
push ecx
call fcn.00406f20
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x44], eax
push esi
push eax
push esi
push ebp
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x405d8a
lea ecx, [esp + 0x10]
mov dword [esp + 0xa4], 0xffffffff
call fcn.00406080
mov eax, 0x15f
jmp 0x40603e
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x70]
or ebp, 0xffffffff
rep stosd dword es:[edi], eax
mov al, 0xc2
lea ecx, [esp + 0x24]
mov byte [esp + 0x2d], al
mov byte [esp + 0x31], al
lea eax, [esp + 0x70]
mov esi, 1
push eax
lea edx, [esp + 0x44]
push ecx
push ebp
mov dword [esp + 0x7c], 0x2c
mov dword [esp + 0x88], 2
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], edx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], 0x10
mov dword [esp + 0x30], 0xaac56b
mov word [esp + 0x34], 0xcd44
mov word [esp + 0x36], 0x11d0
mov byte [esp + 0x38], 0x8c
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], 0xc0
mov byte [esp + 0x3c], 0x4f
mov byte [esp + 0x3e], 0x95
mov byte [esp + 0x3f], 0xee
call sub.WINTRUST.dll_WinVerifyTrust
cmp eax, ebx
je 0x405e48
lea ecx, [esp + 0x10]
mov dword [esp + 0xa4], ebp
call fcn.00406080
mov eax, 0x16e
jmp 0x40603e
mov eax, dword [esp + 0x10]
push ebx
lea edx, [esp + 0x40]
push ebx
push edx
push 0xff
push eax
call dword [sym.imp.imagehlp.dll_ImageEnumerateCertificates]
test eax, eax
jne 0x405e7d
lea ecx, [esp + 0x10]
mov dword [esp + 0xa4], ebp
call fcn.00406080
mov eax, 0x17a
jmp 0x40603e
cmp dword [esp + 0x3c], esi
je 0x405e9d
lea ecx, [esp + 0x10]
mov dword [esp + 0xa4], ebp
call fcn.00406080
mov eax, 0x17f
jmp 0x40603e
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x64]
push ecx
mov edi, 0x100
push ebx
push edx
mov dword [esp + 0x70], ebx
mov word [esp + 0x74], di
call dword [sym.imp.imagehlp.dll_ImageGetCertificateHeader]
test eax, eax
jne 0x405eda
lea ecx, [esp + 0x10]
mov dword [esp + 0xa4], ebp
call fcn.00406080
mov eax, 0x18d
jmp 0x40603e
mov eax, dword [esp + 0x64]
mov dword [esp + 0x34], eax
add eax, 0xc
push eax
call fcn.00406f20
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], esi
mov dword [esi], eax
mov word [esi + 4], di
mov edx, dword [esp + 0x10]
push ecx
push esi
push ebx
push edx
call dword [sym.imp.imagehlp.dll_ImageGetCertificateData]
test eax, eax
jne 0x405f2e
lea ecx, [esp + 0x10]
mov dword [esp + 0xa4], ebp
call fcn.00406080
mov eax, 0x196
jmp 0x40603e
xor eax, eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x50], eax
lea edx, [esp + 0x38]
mov dword [esp + 0x54], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x58], eax
mov dword [esp + 0x50], 0x14
mov dword [esp + 0x5c], eax
mov dword [esp + 0x54], 0x10001
mov dword [esp + 0x60], eax
mov eax, dword [esi]
push ecx
push edx
push ebx
add esi, 8
push eax
push esi
lea ecx, [esp + 0x64]
push ebx
push ecx
call dword [sym.imp.CRYPT32.dll_CryptVerifyMessageSignature]
test eax, eax
je 0x406029
cmp dword [esp + 0x38], ebx
je 0x406029
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.CRYPT32.dll_CertGetNameStringA]
push ebx
push ebx
push ebx
push ebx
push 4
push edx
call esi
mov edi, eax
push edi
call fcn.00406f20
add esp, 4
mov dword [esp + 0x20], eax
push edi
push eax
mov eax, dword [esp + 0x24]
push ebx
push ebx
push 4
push eax
call esi
xor esi, esi
cmp edi, 0x13
jae 0x405fd5
lea ecx, [esp + 0x10]
mov dword [esp + 0xa4], ebp
call fcn.00406080
mov eax, 0x1ac
jmp 0x40603e
mov eax, dword [esp + 0x20]
mov edi, 0x431128
sub edi, eax
mov ebp, 0x13
mov cl, byte [edi + eax]
mov dl, byte [eax]
xor ecx, 0xffffffea
and edx, 0xdf
and ecx, 0xdf
xor ecx, edx
add esi, ecx
inc eax
dec ebp
jne 0x405fe5
neg esi
sbb esi, esi
lea ecx, [esp + 0x10]
and esi, 0xffffff02
mov dword [esp + 0xa4], 0xffffffff
add esi, 0x2b1
call fcn.00406080
mov eax, esi
jmp 0x40603e
lea ecx, [esp + 0x10]
mov dword [esp + 0xa4], ebp
call fcn.00406080
mov eax, 0x19e
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x98
ret