Function at 0x4545e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov esi, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
mov eax, dword [esi + 0x24]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x45462e
mov edx, dword [esp + 0x68]
test edx, edx
jne 0x454640
test ebx, ebx
je 0x454626
mov eax, dword [esi + 0x10]
test eax, eax
je 0x45496d
mov dword [esp], eax
call fcn.00467268
test eax, eax
setne al
test al, al
jne 0x454891
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x28]
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, dword [esi]
test ebp, 1
jne 0x4546f9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4546f4
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4549ae
mov dword [esp + 4], eax
mov dword [esp], 0x487f25
call sub.libgpg_error_0.dll_gpgrt_fputs
cmp eax, 0xffffffff
je 0x454891
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
test eax, eax
je 0x45499a
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.libgpg_error_0.dll_gpgrt_fputs
cmp eax, 0xffffffff
je 0x454891
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4549c6
mov dword [esp + 4], eax
mov dword [esp], 0x487f31
call sub.libgpg_error_0.dll_gpgrt_fputs
cmp eax, 0xffffffff
je 0x454891
mov ebp, dword [esi]
test ebp, 0x20
je 0x4546f4
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4549de
mov dword [esp + 4], eax
mov dword [esp], 0x487f38
call sub.libgpg_error_0.dll_gpgrt_fputs
cmp eax, 0xffffffff
je 0x454891
mov ebp, dword [esi]
or ebp, 1
mov dword [esi], ebp
mov eax, dword [esi + 8]
mov edi, dword [esi + 4]
mov dword [esp + 0x1c], eax
cmp edi, 3
jg 0x45494a
lea eax, [esi + 0x18]
mov dword [esp + 8], edi
mov dword [esp + 0x2c], eax
mov dword [esp + 4], eax
lea eax, [esp + 0x3c]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x68]
and ebp, 0x20
lea ecx, [ebx + eax]
mov dword [esp + 0x24], ecx
jne 0x454910
lea esi, [esi]
nop
movzx edx, byte [ebx]
lea eax, [edi + 1]
mov byte [esp + edi + 0x3c], dl
cmp eax, 2
jle 0x4548d0
movzx ecx, byte [esp + 0x3c]
movzx eax, byte [esp + 0x3d]
movzx edi, byte [esp + 0x3e]
mov edx, ecx
mov byte [esp + 0x20], al
shl ecx, 4
xor eax, eax
shr dl, 2
and ecx, 0x30
movzx ebp, dl
movzx edx, byte [esp + 0x20]
mov al, byte [ebp + 0x4883a0]
shr dl, 4
movzx ebp, dl
mov edx, dword [esp + 0x20]
or ecx, ebp
mov ah, byte [ecx + 0x4883a0]
mov ecx, edi
shl edx, 2
and edi, 0x3f
shr cl, 6
and edx, 0x3c
movzx ecx, cl
movzx eax, ax
or edx, ecx
movzx ecx, byte [edi + 0x4883a0]
lea edi, [esp + 0x38]
movzx edx, byte [edx + 0x4883a0]
shl ecx, 0x18
shl edx, 0x10
or eax, edx
or eax, ecx
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x10]
test eax, eax
je 0x454860
mov dword [esp + 4], eax
movsx eax, byte [edi]
add edi, 1
mov dword [esp], eax
call sub.libgpg_error_0.dll_gpgrt_fputc
lea eax, [esp + 0x3c]
cmp edi, eax
mov eax, dword [esi + 0x10]
jne 0x4547d4
mov dword [esp], eax
call sub.libgpg_error_0.dll_gpgrt_ferror
test eax, eax
jne 0x454891
add dword [esp + 0x1c], 1
mov eax, dword [esp + 0x1c]
cmp eax, 0xf
jle 0x454820
test byte [esi], 0x10
je 0x4548e0
mov dword [esp + 0x1c], 0
xor edi, edi
add ebx, 1
cmp dword [esp + 0x24], ebx
jne 0x454740
test edi, edi
je 0x454848
mov ecx, dword [esp + 0x2c]
xor eax, eax
movzx edx, byte [esp + eax + 0x3c]
mov byte [ecx + eax], dl
add eax, 1
cmp eax, edi
jb 0x454839
mov eax, dword [esp + 0x1c]
mov dword [esi + 4], edi
mov dword [esi + 8], eax
mov eax, dword [esp + 0x28]
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + 0xc]
add edi, 1
mov dword [esp + 4], eax
movsx eax, byte [edi - 1]
mov dword [esp], eax
call sub.msvcrt.dll_putc
lea eax, [esp + 0x3c]
cmp eax, edi
jne 0x454860
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_ferror
test eax, eax
je 0x454801
call sub.libgpg_error_0.dll_gpg_err_code_from_syserror
movzx eax, ax
mov dword [esp + 0x28], eax
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x14]
test eax, eax
je 0x45462e
mov dword [esp], eax
call sub.libgcrypt_20.dll_gcry_free
mov eax, dword [esi + 0x24]
mov dword [esi + 0x14], 0
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, eax
jmp 0x454822
mov eax, dword [esi + 0x10]
test eax, eax
je 0x454982
mov dword [esp + 4], eax
mov dword [esp], 0x487f38
call sub.libgpg_error_0.dll_gpgrt_fputs
cmp eax, 0xffffffff
jne 0x454818
jmp 0x454891
mov eax, dword [esi + 0x1c]
mov edx, ebx
mov ebp, ecx
lea esi, [esi]
nop
mov ecx, eax
shr eax, 0x10
xor al, byte [edx]
add edx, 1
movzx eax, al
shl ecx, 8
xor ecx, dword [eax*4 + 0x487fa0]
mov eax, ecx
cmp ebp, edx
jne 0x454920
and eax, 0xffffff
mov dword [esi + 0x1c], eax
jmp 0x454740
mov dword [esp + 8], 0xef
mov dword [esp + 4], str._home_wk_b_gnupg_2.2_dist_PLAY_release_gnupg_w32_2.2.19_common_b64enc.c
mov dword [esp], str.idx___4
call fcn.00474e00
mov ebp, dword [esi]
jmp 0x45470c
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_fflush
test eax, eax
setne al
jmp 0x45461e
mov eax, dword [esi + 0xc]
mov dword [esp], 0x487f38
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
jmp 0x4548fb
mov eax, dword [esi + 0xc]
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
jmp 0x454697
mov eax, dword [esi + 0xc]
mov dword [esp], 0x487f25
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
jmp 0x454674
mov eax, dword [esi + 0xc]
mov dword [esp], 0x487f31
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
jmp 0x4546bb
mov eax, dword [esi + 0xc]
mov dword [esp], 0x487f38
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
jmp 0x4546e9