Function at 0x5e5594
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], esp
push 0xf0000000
push 1
push 0xa13344
push 0xa13344
lea eax, [ebp - 4]
push eax
xor eax, eax
call dword [sym.imp.advapi32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x5e561d
push 0x24
push 0x4367c56
push 6
call fcn.00645a6f
add esp, 0xc
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x5e5682
mov dword [ebp - 0x28], esp
push 0
push 1
push 0xa13344
push 0xa13344
lea eax, [ebp - 4]
push eax
xor eax, eax
call dword [sym.imp.advapi32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x5e566b
push 0x7d
push 0x4367c56
push 6
call fcn.00645a6f
add esp, 0xc
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x5e5682
mov eax, 0xa13348
jmp 0x5e59b0
push OleUIBusyA
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x5e5697
mov eax, 0xa13344
push eax
push 1
mov ebx, 0x198
call fcn.00646d90
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x5e56c1
push ebx
call fcn.00645a87
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x5e56e1
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00645a7b
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x5e56f2
push ebx
call fcn.00645a87
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push dword [ebp + 0x10]
push 0
push 2
push 8
call fcn.005e5a08
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x5e5724
push ebx
call fcn.00645a87
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x5e573b
mov eax, 0xa13348
push eax
push 1
mov ebx, 0x194
call fcn.00646e60
add esp, 0x10
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x198
call fcn.00646d90
add esp, 0x10
mov dword [ebp - 0x2c], eax
push dword [ebp - 8]
push dword [ebp - 0x2c]
push dword [ebp - 0x10]
mov ecx, 3
call fcn.005668a8
add esp, 0xc
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x5e5794
push ebx
call fcn.00645a87
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x5e57a8
push ebx
call fcn.00645a87
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x5e57bf
mov eax, 0xa13348
push eax
push 1
mov ebx, 0x194
call fcn.00646e60
add esp, 0x10
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esp
lea eax, [ebp - 0x18]
push eax
push 1
push 0
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x5e57f3
add eax, 8
push eax
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.advapi32.dll_CryptImportKey]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x5e581d
push 0x24c
push 0x4367c56
push 6
call fcn.00645a6f
add esp, 0xc
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x5e5865
mov dword [ebp - 0x28], esp
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.advapi32.dll_CryptReleaseContext]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x5e585b
push 0x281
push 0x4367c56
push 6
call fcn.00645a6f
add esp, 0xc
mov eax, 0xa13348
jmp 0x5e59b0
push dword [ebp - 0xc]
push dword [ebp - 0xc]
mov ecx, 2
call fcn.005668a8
add esp, 8
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x5e588f
push ebx
call fcn.00645a87
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x5e58a6
mov eax, 0xa13348
push eax
push 1
mov ebx, 0x194
call fcn.00646e60
add esp, 0x10
mov dword [ebp - 0x20], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x5e58cf
mov eax, 0xa13348
push eax
push 1
mov ebx, 0x194
call fcn.00646e60
add esp, 0x10
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], esp
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5e58f6
add eax, 8
push eax
push 0
push 1
push 0
push dword [ebp - 0x18]
xor eax, eax
call dword [sym.imp.advapi32.dll_CryptDecrypt]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x5e592f
push 0x395
push 0x4367c56
push 6
call fcn.00645a6f
add esp, 0xc
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x5e5946
mov eax, 0xa13348
jmp 0x5e59b0
push 0x80000301
push 0
push dword [ebp - 0x24]
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x5e5963
mov eax, 0xa13348
push eax
push 2
mov ebx, 0x1a0
call fcn.006472c0
add esp, 0x1c
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x5e598d
push ebx
call fcn.00645a87
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5e59ab
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00645a7b
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x5e59b0
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x5e59c1
push ebx
call fcn.00645a87
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x5e59d1
push ebx
call fcn.00645a87
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x5e59e1
push ebx
call fcn.00645a87
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x5e59f1
push ebx
call fcn.00645a87
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x5e5a01
push ebx
call fcn.00645a87
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc