Function at 0x456a80
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov eax, 0x84c
call fcn.00468d20
mov eax, dword [0x5808f0]
xor eax, esp
mov dword [esp + 0x848], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x860]
push 0x827
lea eax, [esp + 0x35]
push 0
push eax
mov ebp, ecx
mov byte [esp + 0x3c], 0
call fcn.00468ca0
push 0x10000
xor esi, esi
xor ebx, ebx
call fcn.004691cd
add esp, 0x10
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4564e0
mov ecx, edi
call fcn.0043a470
jmp 0x4566c8
cmp dword [ebp + 0x2c], 4
jne 0x456520
mov ecx, edi
call fcn.00424be0
sub eax, 0x80c
sbb edx, ebx
push edx
push eax
mov ecx, edi
call fcn.004249e0
push 0
push eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
mov dword [esp + 0x1c], eax
call fcn.00424be0
sub eax, 0x808
sbb edx, ebx
push edx
push eax
mov ecx, edi
call fcn.00424750
cmp dword [ebp + 0x2c], 5
jne 0x456560
mov ecx, edi
call fcn.00424be0
sub eax, 0x814
sbb edx, ebx
push edx
push eax
mov ecx, edi
call fcn.004249e0
push 0
push eax
lea edx, [esp + 0x38]
push edx
mov ecx, edi
mov dword [esp + 0x1c], eax
call fcn.00424be0
sub eax, 0x810
sbb edx, ebx
push edx
push eax
mov ecx, edi
call fcn.00424750
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push eax
push ecx
lea edx, [esp + 0x38]
push edx
mov ecx, ebp
call fcn.00456090
mov ecx, edi
test al, al
je 0x4564d6
call fcn.00424be0
mov dword [esp + 0x20], edx
mov edx, dword [ebp + 0x2c]
mov ecx, eax
mov dword [esp + 0x1c], ecx
cmp edx, 4
jne 0x4565a9
mov ebp, dword [esp + 0x20]
add eax, 0xfffff7f0
mov dword [esp + 0x10], eax
adc ebp, 0xffffffff
jmp 0x4565b1
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp edx, 5
mov edx, dword [esp + 0x20]
jne 0x456605
mov eax, ecx
add eax, 0xfffff7d8
mov ebp, edx
adc ebp, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x4565d3
cmp eax, 0xd00000
jbe 0x456601
mov dword [esp + 0x10], 0xd00000
xor ebp, ebp
lea ecx, [ecx]
mov eax, dword [esp + 0x10]
mov ecx, eax
sub ecx, esi
mov edx, ebp
sbb edx, ebx
mov dword [esp + 0x28], edx
jne 0x4565fa
cmp ecx, 0x10000
jbe 0x456611
mov eax, 0x10000
jmp 0x456613
mov eax, dword [esp + 0x10]
test ebp, ebp
jb 0x45667b
ja 0x4565e4
test eax, eax
jbe 0x45667b
jmp 0x4565e4
sub eax, esi
push 0
push eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
push eax
push ebx
push esi
mov ecx, edi
call fcn.00424750
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x24]
push ecx
push edx
push 0
push 0xffffffffffffffff
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
push 0
push ecx
push edx
push ebx
push esi
mov ecx, edi
call fcn.00424860
add esi, dword [esp + 0x24]
adc ebx, 0
cmp ebx, ebp
jb 0x4565e0
ja 0x456673
cmp esi, dword [esp + 0x10]
jb 0x4565e0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x260]
xor eax, eax
sub ecx, eax
mov eax, dword [esp + 0x264]
sbb edx, esi
xor esi, esi
sub ecx, eax
sbb edx, esi
push edx
push ecx
mov ecx, edi
call fcn.00424c20
mov ecx, edi
call fcn.00424c90
mov ecx, dword [esp + 0x244]
push ecx
mov ecx, edi
call fcn.00424cb0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [esp + 0x18]
push edx
call fcn.004690f0
add esp, 4
mov ecx, dword [esp + 0x858]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004690b5
add esp, 0x84c
ret 8
mov eax, 0x240
call fcn.00468d20
mov eax, dword [0x5808f0]
xor eax, esp
mov dword [esp + 0x23c], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x250]
push 0xff
xor ebx, ebx
lea eax, [esp + 0x14d]
mov esi, ecx
push ebx
push eax
mov dword [esp + 0x28], esi
mov byte [esp + 0x154], 0
call fcn.00468ca0
mov eax, dword [esi + 0x24]
add esp, 0xc
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
cmp eax, 0x50
jae 0x45675c
mov ecx, edi
call fcn.0043a470
jmp 0x456a5e
push ebp
push eax
call fcn.004691cd
mov ebp, eax
add esp, 4
mov ecx, edi
cmp ebp, ebx
jne 0x456778
call fcn.0043a470
jmp 0x456a5d
call fcn.00424be0
mov esi, eax
mov ecx, esi
sub ecx, 0x108
mov ebx, edx
sbb edx, 0
push edx
push ecx
mov ecx, edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ebx
call fcn.004249e0
mov dword [esp + 0x40], eax
mov eax, esi
sub eax, 0x104
mov ecx, ebx
sbb ecx, 0
push ecx
push eax
mov ecx, edi
call fcn.004249e0
push 0
mov dword [esp + 0x34], eax
push 8
mov eax, esi
sub eax, 0x110
lea edx, [esp + 0x40]
push edx
mov ecx, ebx
sbb ecx, 0
push ecx
push eax
mov ecx, edi
call fcn.00424750
push 0
push 0x100
mov eax, esi
sub eax, 0x100
lea edx, [esp + 0x154]
push edx
mov ecx, ebx
sbb ecx, 0
push ecx
push eax
mov ecx, edi
call fcn.00424750
movzx edx, byte [esp + 0x14c]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x151]
push ecx
push 0
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x34]
push 0xffffffffffffffff
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x456839
mov ecx, edi
call fcn.0043a470
jmp 0x456a54
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x151]
push edx
lea eax, [esp + 0x50]
push eax
call fcn.00455d40
xor eax, eax
jb 0x45698a
ja 0x456870
cmp dword [esp + 0x40], eax
jbe 0x45698a
jmp 0x456870
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
push 0
push 0x80
push ebp
push esi
push ebx
mov ecx, edi
mov byte [esp + 0x15c], 0
mov byte [esp + 0x15d], 0
call fcn.00424750
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x34]
lea ecx, [esp + 0x24]
push ecx
push ebp
push 0
push 0xffffffffffffffff
add ebx, 0x80
push 0
adc esi, 0
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x3c], 0x80
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x456a54
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
push 0
push ecx
push ebp
push edx
push esi
mov ecx, edi
call fcn.00424860
add esi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
adc dword [esp + 0x1c], 0
mov eax, dword [eax + 0x24]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x40]
sub esi, ebx
cmp esi, eax
jbe 0x45690d
mov esi, eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
xor ebx, ebx
push ebx
push esi
push ebp
push ecx
push edx
mov ecx, edi
call fcn.00424750
mov ecx, dword [esp + 0x20]
push esi
push ebp
lea eax, [esp + 0x50]
push eax
call fcn.00455dc0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebx
push esi
push ebp
push ecx
push edx
mov ecx, edi
call fcn.00424860
add dword [esp + 0x10], esi
adc dword [esp + 0x14], ebx
add dword [esp + 0x18], esi
adc dword [esp + 0x1c], ebx
cmp dword [esp + 0x30], ebx
je 0x456966
mov eax, dword [esp + 0x20]
cmp esi, dword [eax + 0x24]
jb 0x456982
xor eax, eax
cmp dword [esp + 0x14], eax
jb 0x456870
ja 0x456982
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x10], ecx
jb 0x456870
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
cmp dword [esp + 0x30], 0
je 0x456a43
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov ecx, esi
add ecx, 0xfffffee8
mov dword [esp + 0x30], ecx
mov ecx, ebx
adc ecx, 0xffffffff
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x34], ecx
cmp edx, ecx
ja 0x456a43
jb 0x4569d8
mov edx, eax
cmp edx, dword [esp + 0x30]
jae 0x456a43
jmp 0x4569d8
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + 0x24]
sub esi, eax
sub esi, 0x118
cmp esi, ecx
jbe 0x4569ed
mov esi, ecx
mov edx, dword [esp + 0x14]
xor ebx, ebx
push ebx
push esi
push ebp
push edx
push eax
mov ecx, edi
call fcn.00424750
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push ebx
push esi
push ebp
push eax
push ecx
mov ecx, edi
call fcn.00424860
add dword [esp + 0x10], esi
mov eax, dword [esp + 0x14]
adc eax, ebx
add dword [esp + 0x18], esi
mov dword [esp + 0x14], eax
adc dword [esp + 0x1c], ebx
cmp eax, dword [esp + 0x34]
jb 0x4569d0
ja 0x456a3b
mov edx, dword [esp + 0x30]
cmp dword [esp + 0x10], edx
jb 0x4569d0
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
sub esi, dword [esp + 0x38]
mov ecx, edi
sbb ebx, dword [esp + 0x3c]
push ebx
push esi
call fcn.00424c20
push ebp
call fcn.004690f0
add esp, 4
pop ebp
mov ecx, dword [esp + 0x248]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004690b5
add esp, 0x240
ret 8
mov eax, 0x220
call fcn.00468d20
mov eax, dword [0x5808f0]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x24]
push edi
mov edi, dword [esp + 0x234]
xor ebp, ebp
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], edi
xor ebx, ebx
mov dword [esp + 0x28], ebp
call fcn.004691cd
add esp, 4
mov dword [esp + 0x18], eax
mov ecx, edi
test eax, eax
jne 0x456ad5
call fcn.0043a470
jmp 0x456c3a
call fcn.00424be0
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x10], ecx
xor edi, edi
mov esi, eax
add esi, 0xfffffefc
mov ecx, edx
adc ecx, 0xffffffff
cmp ecx, edi
jb 0x456b08
ja 0x456afc
cmp esi, dword [esp + 0x10]
jbe 0x456b08
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], ecx
xor ecx, ecx
jmp 0x456b0c
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0x1c]
push 0
mov dword [esp + 0x18], ecx
push 0x100
sub eax, 0x100
lea ecx, [esp + 0x134]
push ecx
sbb edx, ebx
push edx
push eax
mov ecx, edi
call fcn.00424750
movzx edx, byte [esp + 0x12c]
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x131]
push ecx
push 0
push 0xffffffffffffffff
mov dword [esp + 0x34], edx
mov edx, dword [esi + 0x34]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x456b70
mov ecx, edi
call fcn.0043a470
jmp 0x456c2d
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x131]
push edx
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.00455d40
cmp dword [esp + 0x14], ebx
jb 0x456c1d
ja 0x456ba0
cmp dword [esp + 0x10], ebx
jbe 0x456c1d
nop
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + 0x24]
sub esi, ebx
sbb edi, ebp
xor eax, eax
mov byte [esp + 0x128], 0
mov byte [esp + 0x129], 0
cmp edi, eax
jb 0x456bd3
ja 0x456bcf
cmp esi, ecx
jbe 0x456bd3
mov esi, ecx
mov edi, eax
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push edi
push esi
push edx
push ebp
push ebx
call fcn.00424750
mov eax, dword [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.00455dc0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push edi
push esi
push edx
push ebp
push ebx
call fcn.00424860
add ebx, esi
adc ebp, edi
cmp ebp, dword [esp + 0x14]
jb 0x456ba0
ja 0x456c1d
cmp ebx, dword [esp + 0x10]
jb 0x456ba0
mov ecx, dword [esp + 0x1c]
push 0
push 0x104
call fcn.00424c20
mov eax, dword [esp + 0x18]
push eax
call fcn.004690f0
add esp, 4
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004690b5
add esp, 0x220
ret 8
mov eax, dword [ecx + 0x2c]
cmp eax, 1
jne 0x45716d
jmp fcn.00456c60
cmp eax, 2
jne 0x457177
jmp 0x456a80
cmp eax, 3
jne 0x457181
jmp 0x4566f0
cmp eax, 4
je 0x45718b
cmp eax, 5
jne 0x457190
jmp 0x456480
ret 8