Function at 0x43b620
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov eax, 0x88d4
call fcn.00540b00
mov eax, dword [0x5b7b5c]
xor eax, esp
mov dword [esp + 0x88d0], eax
mov eax, dword [esp + 0x88dc]
mov edx, dword [esp + 0x88e4]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x88e8]
mov ebp, dword [edi]
mov esi, ecx
mov ecx, dword [esp + 0x88f0]
xor ebx, ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
cmp ebp, ebx
jne 0x43b677
mov ebp, 8
push ebx
lea eax, [esp + 0x18]
push eax
push ebp
lea edx, [esp + 0x34]
push edx
call fcn.004af010
test eax, eax
je 0x43b95f
mov edi, dword [edi + 8]
mov dword [esp + 0x10], ebp
cmp edi, ebx
je 0x43b6c3
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x2c]
push ecx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x43b6c3
push ebx
push ebx
push ebx
push 0x5530
call fcn.0044ef40
add esp, 0x10
mov edx, dword [esi + 0x20]
push edx
call fcn.004ff96a
mov eax, dword [esi + 0x18]
push eax
call fcn.004ff96a
mov ecx, dword [esi + 0x1c]
push ecx
call fcn.004ff96a
push 4
lea edx, [esp + 0x38]
push edx
lea edi, [esi + 4]
push 4
push edi
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
mov dword [edi], ebx
mov byte [esi + 0x14], bl
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x20], ebx
mov dword [esi], ebx
call fcn.0053f74e
push 4
call fcn.004ff95f
add esp, 0x20
mov ebx, eax
xor eax, eax
lea ecx, [edi + 3]
lea ebx, [ebx]
mov dl, byte [ecx]
mov byte [eax + ebx], dl
inc eax
dec ecx
cmp eax, 4
jl 0x43b720
push 4
push ebx
push 4
push edi
call fcn.0053f74e
push ebx
call fcn.004ff96a
mov eax, dword [edi]
add esp, 0x14
test eax, eax
jne 0x43b784
cmp dword [0x5ec79c], 0xa
jge 0x43b775
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
inc dword [0x5ec79c]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
mov ecx, esi
call fcn.0043b620
jmp 0x43b961
mov dword [0x5ec79c], 0
jmp 0x43b95f
cmp eax, 0x88b4
ja 0x43b942
sub eax, ebp
add eax, 4
mov ebx, eax
mov dword [esp + 0x10], 0
test ebx, ebx
jle 0x43b7dc
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + ebp + 0x30]
push ebx
add eax, edx
push eax
call fcn.004af010
test eax, eax
je 0x43b95f
mov eax, dword [esp + 0x14]
test eax, eax
je 0x43b95f
add dword [esp + 0x10], eax
sub ebx, eax
test ebx, ebx
jg 0x43b7a2
mov eax, dword [edi]
sub eax, ebp
add eax, 4
push eax
lea ecx, [esp + ebp + 0x2c]
push ecx
mov ecx, dword [esp + 0x28]
call fcn.00439280
mov al, byte [esp + 0x2c]
movzx edx, al
mov byte [esi + 0x14], al
mov eax, dword [edi]
sub eax, edx
dec eax
push eax
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
call fcn.004ff95f
mov ecx, dword [esi + 8]
push ecx
lea edx, [esp + 0x35]
push edx
push ecx
push eax
mov dword [esi + 0x20], eax
call fcn.0053f74e
movzx eax, byte [esi + 0x14]
mov edi, dword [esi + 8]
push eax
add edi, 5
call fcn.004ff95f
movzx ecx, byte [esi + 0x14]
push ecx
lea edx, [esp + edi + 0x44]
push edx
push ecx
push eax
mov dword [esi + 0x18], eax
call fcn.0053f74e
movzx eax, byte [esi + 0x14]
mov ebp, dword [esp + 0x4c]
add esp, 0x28
add edi, eax
cmp dword [ebp + 4], 0
je 0x43b8f6
mov ebx, dword [ebp]
mov dword [esp + 0x10], 0
test ebx, ebx
jle 0x43b8aa
lea ebx, [ebx]
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + edi + 0x30]
push ebx
add eax, edx
push eax
call fcn.004af010
test eax, eax
je 0x43b95f
mov eax, dword [esp + 0x14]
test eax, eax
je 0x43b95f
add dword [esp + 0x10], eax
sub ebx, eax
test ebx, ebx
jg 0x43b870
mov eax, dword [ebp]
push eax
call fcn.004ff95f
mov dword [esi + 0x1c], eax
mov ecx, dword [ebp]
push ecx
lea edx, [esp + edi + 0x30]
push edx
push ecx
push eax
call fcn.0053f74e
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx]
add esp, 0x14
push eax
push edi
lea ecx, [esp + 0x30]
push ecx
mov ecx, ebp
call fcn.00439410
test eax, eax
jne 0x43b8fa
mov edx, dword [esi]
cmp dword [edx + 0xc0], eax
jne 0x43b95f
push 0xffffffffffffffff
push 0x10
push 0x549c
jmp 0x43b95a
mov ebx, dword [esp + 0x1c]
inc dword [ebx]
mov eax, dword [esi + 0x20]
mov al, byte [eax]
cmp al, 2
je 0x43b91a
cmp al, 4
je 0x43b91a
mov dword [0x5ec79c], 0
mov eax, 1
jmp 0x43b961
cmp dword [0x5ec79c], 0xa
jge 0x43b775
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
inc dword [0x5ec79c]
push ebx
push ecx
push ebp
push edx
mov ecx, esi
call fcn.0043b620
jmp 0x43b961
mov esi, dword [esi]
test esi, esi
je 0x43b95f
cmp dword [esi + 0xc0], 0
jne 0x43b95f
push 0xffffffffffffffff
push 0x10
push 0x549b
call fcn.0050c4d3
xor eax, eax
mov ecx, dword [esp + 0x88e0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0053f73f
add esp, 0x88d4
ret 0x10