Function at 0x43d4c0
Capabilities:
Encrypt or decrypt via wincrypt
Move file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a0a53
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x4c2c40]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c2c40]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
mov eax, dword [esp + 0x154]
mov ebp, dword [esp + 0x150]
xor ebx, ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x100], 7
mov dword [esp + 0xfc], ebx
mov word [esp + 0xec], bx
lea ecx, [esp + 0xe8]
mov dword [esp + 0x148], ebx
call fcn.0043d1a0
test al, al
jne 0x43d56d
cmp dword [esp + 0x100], 8
jb 0x43d566
mov ecx, dword [esp + 0xec]
push ecx
call fcn.0045a870
add esp, 4
xor al, al
jmp 0x43d9b6
push 4
push str..dat
lea ecx, [esp + 0xf0]
call fcn.004035d0
lea edx, [esp + 0x18]
push edx
lea edi, [esp + 0x30]
lea esi, [esp + 0x24]
call fcn.0043dd30
add esp, 4
cmp al, 1
je 0x43d5ba
cmp dword [esp + 0x100], 8
jb 0x43d566
mov eax, dword [esp + 0xec]
push eax
call fcn.0045a870
add esp, 4
xor al, al
jmp 0x43d9b6
lea ecx, [esp + 0x5c]
push ecx
call fcn.0043ddf0
mov esi, 0xf
mov dword [esp + 0x11c], esi
mov dword [esp + 0x118], ebx
mov byte [esp + 0x108], bl
lea edx, [esp + 0x104]
push edx
mov ebx, ebp
mov byte [esp + 0x14c], 2
call fcn.00432ae0
add esp, 4
lea eax, [esp + 0x104]
push eax
lea ecx, [esp + 0x68]
push ecx
call fcn.0043e660
mov eax, dword [esp + 0xf4]
mov edi, 8
add esp, 8
cmp dword [esp + 0x100], edi
jae 0x43d629
lea eax, [esp + 0xec]
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, ebx
mov dword [esp + 0x30], eax
jne 0x43d6d9
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [esp + 0x20]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [esp + 0x11c], 0x10
jb 0x43d68a
mov edx, dword [esp + 0x108]
push edx
call fcn.0045a870
add esp, 4
lea ecx, [esp + 0xb0]
mov dword [esp + 0x11c], esi
mov dword [esp + 0x118], ebx
mov byte [esp + 0x108], bl
mov byte [esp + 0x148], bl
call fcn.0043de90
lea eax, [esp + 0xb0]
push eax
mov dword [esp + 0xb4], vtable.std::ios_base.0
call fcn.00477692
add esp, 4
cmp dword [esp + 0x100], edi
jmp 0x43d554
mov esi, 0x480
push esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x38], ebx
call fcn.004795c0
add esp, 4
mov edi, eax
push edi
lea edx, [esp + 0x60]
push edx
mov ecx, 0x400
call fcn.0043e4f0
mov eax, dword [esp + 0x60]
xor ecx, ecx
cmp eax, 0x400
push 0
setl cl
lea edx, [esp + 0x2c]
push edx
push 0
push 0
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x28]
mov ebp, ecx
push ebp
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
cmp dword [esp + 0x28], esi
jbe 0x43d773
push esi
mov dword [esp + 0x20], esi
call fcn.004795c0
add esp, 4
push esi
push edi
mov ebx, eax
push esi
push ebx
call fcn.00478a35
mov esi, dword [esp + 0x38]
push esi
push edi
call fcn.0047b196
mov ecx, dword [esp + 0x34]
push ecx
push ebx
mov edi, eax
push esi
push edi
call fcn.00478a35
push ebx
call fcn.004797af
add esp, 0x2c
mov eax, dword [esp + 0x18]
push esi
lea edx, [esp + 0x28]
push edx
push edi
push 0
push ebp
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov edx, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x38]
push ecx
push edx
mov ebx, eax
mov eax, dword [esp + 0x3c]
push edi
push eax
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test ebp, ebp
je 0x43d6f1
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004797af
mov edx, dword [esp + 0x30]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [esp + 0x20]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test ebx, ebx
jne 0x43d838
lea ecx, [esp + 0x104]
call fcn.004015b0
lea ecx, [esp + 0xb0]
mov byte [esp + 0x148], bl
call fcn.0043de90
lea edx, [esp + 0xb0]
push edx
mov dword [esp + 0xb4], vtable.std::ios_base.0
call fcn.00477692
add esp, 4
lea ecx, [esp + 0xe8]
call fcn.00401620
xor al, al
jmp 0x43d9b6
mov eax, dword [esp + 0x38]
push eax
lea esi, [esp + 0x124]
call fcn.004021b0
push 0x5c
push 0x2f
mov edi, esi
mov byte [esp + 0x150], 3
call fcn.00404060
mov ebp, dword [esp + 0x104]
mov esi, dword [esp + 0x13c]
add ebp, 2
xor ecx, ecx
mov eax, ebp
mov edx, 2
add esi, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045a875
mov ebx, eax
xor ecx, ecx
add esp, 0xc
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045a875
add esp, 4
cmp dword [esp + 0x100], 8
mov edi, eax
mov eax, dword [esp + 0xec]
jae 0x43d8c2
lea eax, [esp + 0xec]
push eax
push ebp
push ebx
call fcn.00478f31
mov eax, dword [esp + 0x130]
add esp, 0xc
cmp dword [esp + 0x138], 8
jae 0x43d8e5
lea eax, [esp + 0x124]
push eax
push esi
push edi
call fcn.00478f31
add esp, 0xc
xor eax, eax
mov word [ebx + ebp*2 - 4], ax
mov word [ebx + ebp*2 - 2], ax
mov word [edi + esi*2 - 4], ax
mov word [edi + esi*2 - 2], ax
mov ecx, 0x1e
lea eax, [esp + 0x3c]
nop
mov byte [eax], 0
add eax, 1
sub ecx, 1
jne 0x43d910
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x3c]
mov esi, 1
push eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], edi
mov word [esp + 0x50], 0x414
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push ebx
call fcn.0045a870
add esp, 4
push edi
call fcn.0045a870
add esp, 4
cmp dword [esp + 0x1c], esi
lea ecx, [esp + 0x120]
sete bl
call fcn.00401620
lea ecx, [esp + 0x104]
call fcn.004015b0
lea ecx, [esp + 0xb0]
mov byte [esp + 0x148], 0
call fcn.0043de90
lea ecx, [esp + 0xb0]
push ecx
mov dword [esp + 0xb4], vtable.std::ios_base.0
call fcn.00477692
add esp, 4
lea ecx, [esp + 0xe8]
call fcn.00401620
mov al, bl
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.00478599
add esp, 0x138
ret