Function at 0x49f6e0
Capabilities:
Encode data using base64 via winapi

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
mov ebx, ecx
push edi
push 0
mov dword [esp + 0x20], edx
lea ecx, [esp + 0x18]
lea eax, [esi + 0x2800]
mov dword [esp + 0x1c], ebx
push 4
push eax
xor edx, edx
call fcn.004240d0
add esp, 0xc
mov edx, 0x4bb6d8
push 0x24
push esi
mov esi, dword [esp + 0x1c]
mov ecx, esi
push ebx
call fcn.00423660
add esp, 0xc
push 1
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x49f739
mov eax, 9
jmp 0x49f758
mov ecx, esi
call fcn.00422690
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x20]
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x49f792
test eax, eax
mov ecx, 0xa
cmove eax, ecx
xor ebp, ebp
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x14], ebp
cmp eax, 9
je 0x49f7c3
mov eax, dword [esi + 0x78]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x49f777
push eax
call ebp
mov eax, dword [esi + 0x40]
test eax, eax
je 0x49f781
push eax
call ebp
mov eax, dword [esi + 8]
test eax, eax
je 0x49f78b
push eax
call ebp
push esi
call ebp
mov ebp, ebx
jmp 0x49f7c3
mov eax, dword [esi + 0x78]
mov ebx, dword [esi + 4]
mov edi, dword [esi + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x49f7a8
push eax
call ebp
mov eax, dword [esi + 0x40]
test eax, eax
je 0x49f7b2
push eax
call ebp
mov eax, dword [esi + 8]
test eax, eax
je 0x49f7bc
push eax
call ebp
push esi
call ebp
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
cmp edi, eax
jb 0x49f7df
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x18]
mov esi, dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
lea eax, [esp + 0x10]
push eax
push 0
push 1
push edi
push ebx
call esi
mov eax, dword [esp + 0x10]
add eax, 0x10
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov ebp, eax
lea eax, [esp + 0x10]
push eax
push ebp
push 1
push edi
push ebx
call esi
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x49f859
cmp dword [eax], 0
je 0x49f859
mov edx, dword [esp + 0x10]
mov ecx, ebp
push pe_nt_image_headers32
push 1
push eax
lea edx, [edx + 1]
call fcn.0049f540
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x49f855
push ebp
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edx, ebp
jmp 0x49f861
xor ecx, ecx
mov edx, ebx
mov dword [esp + 0x10], ecx
mov esi, dword [esp + 0x38]
lea eax, [esp + 0x24]
push 4
push eax
test ecx, ecx
mov dword [esp + 0x44], edx
mov eax, edi
mov dword [esp + 0x28], 0x4034b50
cmovne eax, ecx
mov dword [esp + 0x2c], 0
push eax
push edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], ecx
call dword [sym.imp.SHLWAPI.dll_HashData]
mov eax, dword [esp + 0x10]
mov ecx, edi
test eax, eax
cmovne ecx, eax
add ecx, 0x14
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
movups xmm0, xmmword [esp + 0x24]
mov edx, eax
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, edi
movups xmmword [edx], xmm0
mov dword [eax], edx
mov eax, dword [esp + 0x30]
mov dword [edx + 0x10], eax
mov eax, dword [esp + 0x10]
test eax, eax
cmovne ecx, eax
lea eax, [edx + 0x14]
push ecx
push dword [esp + 0x40]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push ebp
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp ebx, dword [esp + 0x18]
je 0x49f907
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
test ecx, ecx
cmovne edi, ecx
lea eax, [edi + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret