Function at 0x43f850
Capabilities:
Decode data using base64 via winapi

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x20]
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x14], ebx
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push dword [esp + 0x28]
mov esi, dword [esp + 0x28]
lea edi, [ebp + 4]
push esi
call sym.luart.exe_lua_type
add esp, 0xc
sub eax, 3
je 0x43fb98
sub eax, 1
je 0x43f985
sub eax, 1
je 0x43f8b3
push dword [esp + 0x24]
push esi
call sym.luart.exe_lua_objectname
push eax
push str.cannot_create_Buffer_from__s
push esi
call sym.luart.exe_luaL_error
add esp, 0x14
jmp 0x43fbbb
mov ebx, dword [esp + 0x24]
xor ebp, ebp
push ebx
push esi
call sym.luart.exe_luaL_len
push eax
push 1
mov dword [edi], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov ecx, dword [esp + 0x38]
push ebx
push esi
mov dword [ecx + 8], eax
call sym.luart.exe_lua_pushvalue
push esi
call sym.luart.exe_lua_pushnil
push 0xfffffffffffffffe
push esi
call sym.luart.exe_lua_next
add esp, 0x24
test eax, eax
je 0x43f972
push 0xffffffffffffffff
push esi
call sym.luart.exe_lua_type
add esp, 8
cmp eax, 3
je 0x43f919
push 0xffffffffffffffff
push esi
call sym.luart.exe_lua_objectname
push eax
push str.invalid_value_in_table_in_Buffer:from__number_expected_found__s_
push esi
call sym.luart.exe_luaL_error
add esp, 0x14
push 0
push 0xffffffffffffffff
push esi
call sym.luart.exe_lua_tointegerx
push 0xfffffffffffffffe
push esi
mov ebx, eax
mov edi, edx
call sym.luart.exe_lua_settop
add esp, 0x14
test edi, edi
jl 0x43f94a
jg 0x43f94a
test ebx, ebx
jb 0x43f94a
test edi, edi
jl 0x43f958
jg 0x43f94a
cmp ebx, 0xff
jbe 0x43f958
push str.invalid_value_in_table_in_Buffer:from__byte_overflow_
push esi
call sym.luart.exe_luaL_error
add esp, 8
mov eax, dword [esp + 0x28]
push 0xfffffffffffffffe
push esi
mov eax, dword [eax + 8]
mov byte [eax + ebp], bl
inc ebp
call sym.luart.exe_lua_next
add esp, 8
test eax, eax
jne 0x43f8f2
push 0xfffffffffffffffe
push esi
call sym.luart.exe_lua_settop
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push edi
push dword [esp + 0x28]
push esi
call sym.luart.exe_luaL_checklstring
add esp, 0xc
mov ebx, eax
cmp dword [esp + 0x24], 0
jle 0x43fbbb
push esi
call sym.luart.exe_lua_gettop
add esp, 4
cmp eax, 2
jle 0x43fbbb
mov eax, dword [esp + 0x24]
push 0x45a1b0
push str.utf8
inc eax
push eax
push esi
call sym.luart.exe_luaL_checkoption
add esp, 0x10
cmp eax, 3
ja case.default.0x43f9d4
jmp dword [eax*4 + 0x43fc10]
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 1
push eax
push ebx
call fcn.0043a840
mov ebx, eax
mov eax, dword [esp + 0x20]
mov dword [edi], eax
jmp 0x43fbb8
lea eax, [esp + 0x10]
mov dword [ebp + 8], ebx
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x2c], 0
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x1c], 0
push eax
push 0
push 1
push dword [edi]
mov dword [esp + 0x28], 0
push ebx
mov ebx, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
call ebx
test eax, eax
je 0x43fc06
push dword [esp + 0x28]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov esi, eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x30]
push eax
push esi
push 1
push dword [edi]
push dword [ebp + 8]
call ebx
test eax, eax
je 0x43fa79
mov eax, dword [esp + 0x28]
mov dword [edi], eax
pop edi
mov dword [ebp + 8], esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push esi
call eax
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov dword [ebp + 8], ebx
xor ebx, ebx
test byte [edi], 1
mov dword [esp + 0x10], ebx
je 0x43faa8
push str.invalid_hexadecimal_sequence_odd_number_of_characters_
push esi
call sym.luart.exe_luaL_error
add esp, 8
mov eax, dword [edi]
shr eax, 1
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [edi]
add esp, 4
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x43fb72
mov edx, eax
mov dword [esp + 0x28], eax
nop word [eax + eax]
mov eax, dword [ebp + 8]
mov bl, byte [ebx + eax]
lea eax, [ebx - 0x30]
cmp al, 9
jbe 0x43fb0d
lea eax, [ebx - 0x41]
cmp al, 5
ja 0x43fae9
sub bl, 0x37
jmp 0x43fb0d
lea eax, [ebx - 0x61]
cmp al, 5
ja 0x43faf5
sub bl, 0x57
jmp 0x43fb0d
movzx eax, bl
push eax
push str.invalid_character__c_in_hexadecimal_sequence
push esi
call sym.luart.exe_luaL_error
mov edx, dword [esp + 0x34]
add esp, 0xc
mov bl, al
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x10]
mov cl, byte [eax + ecx + 1]
lea eax, [ecx - 0x30]
cmp al, 9
jbe 0x43fb4d
lea eax, [ecx - 0x41]
cmp al, 5
ja 0x43fb2b
lea eax, [ecx - 0x37]
jmp 0x43fb4d
lea eax, [ecx - 0x61]
cmp al, 5
ja 0x43fb37
lea eax, [ecx - 0x57]
jmp 0x43fb4d
movzx eax, cl
push eax
push str.invalid_character__c_in_hexadecimal_sequence
push esi
call sym.luart.exe_luaL_error
mov edx, dword [esp + 0x34]
add esp, 0xc
shl bl, 4
add bl, al
mov byte [edx], bl
inc edx
mov ebx, dword [esp + 0x10]
mov ecx, dword [edi]
add ebx, 2
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], ebx
cmp ebx, ecx
jb 0x43fad0
mov eax, dword [esp + 0x14]
shr ecx, 1
mov dword [edi], ecx
pop edi
pop esi
mov dword [ebp + 8], eax
pop ebp
pop ebx
add esp, 0xc
ret
push dword [eax*4 + 0x45a1b0]
push str.unknown_encoding__s
push esi
call sym.luart.exe_luaL_error
add esp, 0xc
jmp 0x43fbbb
push dword [esp + 0x24]
push esi
call sym.luart.exe_luaL_checkinteger
add esp, 8
mov dword [edi], eax
mov ecx, edi
test eax, eax
jne 0x43fbbb
push str.cannot_create_Buffer_with_zero_length
push esi
call sym.luart.exe_luaL_error
add esp, 8
mov eax, dword [edi]
test eax, eax
je 0x43fbe2
push eax
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
jne 0x43fbe2
push str.memory_allocation_error:_not_enough_memory
push esi
call sym.luart.exe_luaL_error
add esp, 8
test ebx, ebx
je 0x43fc06
push dword [edi]
push ebx
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp dword [esp + 0x14], 0
je 0x43fc06
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push ebx
call eax
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret