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

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x14], ebx
push dword [edi + 8]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
inc eax
push 0x4751dc
push str.utf8
push eax
push esi
mov dword [esp + 0x38], eax
call sym.wluart_static.exe_luaL_checkoption
push dword [esp + 0x34]
mov dword [edi + 0xc], eax
lea ebp, [edi + 4]
push esi
call sym.wluart_static.exe_lua_type
add esp, 0x1c
sub eax, 3
je 0x4421c0
sub eax, 1
je 0x441fab
sub eax, 1
je 0x441ed0
push dword [esp + 0x20]
push esi
call sym.wluart_static.exe_lua_objectname
push eax
push str.cannot_create_Buffer_from__s
push esi
call sym.wluart_static.exe_luaL_error
add esp, 0x14
jmp case.0x441feb.0
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x20]
push ebx
push esi
call sym.wluart_static.exe_luaL_len
push eax
push 1
mov dword [ebp], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
push ebx
push esi
mov dword [edi + 8], eax
call sym.wluart_static.exe_lua_pushvalue
push esi
call sym.wluart_static.exe_lua_pushnil
push 0xfffffffffffffffe
push esi
call sym.wluart_static.exe_lua_next
add esp, 0x24
test eax, eax
je 0x441f98
nop
push 0xffffffffffffffff
push esi
call sym.wluart_static.exe_lua_type
add esp, 8
cmp eax, 3
je 0x441f37
push 0xffffffffffffffff
push esi
call sym.wluart_static.exe_lua_objectname
push eax
push str.invalid_value_in_table_in_Buffer:from__number_expected_found__s_
push esi
call sym.wluart_static.exe_luaL_error
add esp, 0x14
push 0
push 0xffffffffffffffff
push esi
call sym.wluart_static.exe_lua_tointegerx
push 0xfffffffffffffffe
push esi
mov ebx, eax
mov ebp, edx
call sym.wluart_static.exe_lua_settop
add esp, 0x14
test ebp, ebp
jl 0x441f68
jg 0x441f68
test ebx, ebx
jb 0x441f68
test ebp, ebp
jl 0x441f76
jg 0x441f68
cmp ebx, 0xff
jbe 0x441f76
push str.invalid_value_in_table_in_Buffer:from__byte_overflow_
push esi
call sym.wluart_static.exe_luaL_error
add esp, 8
mov ebp, dword [esp + 0x24]
mov eax, dword [edi + 8]
push 0xfffffffffffffffe
push esi
mov byte [eax + ebp], bl
inc ebp
mov dword [esp + 0x2c], ebp
call sym.wluart_static.exe_lua_next
add esp, 8
test eax, eax
jne 0x441f10
push 0xfffffffffffffffe
push esi
call sym.wluart_static.exe_lua_settop
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push ebp
push dword [esp + 0x24]
push esi
call sym.wluart_static.exe_luaL_checklstring
add esp, 0xc
mov ebx, eax
cmp dword [esp + 0x20], 0
jle case.0x441feb.0
push esi
call sym.wluart_static.exe_lua_gettop
add esp, 4
cmp eax, 2
jle case.0x441feb.0
mov ecx, dword [edi + 0xc]
mov eax, dword [ebp]
mov dword [esp + 0x10], eax
cmp ecx, 3
ja case.default.0x441feb
jmp dword [ecx*4 + 0x44223c]
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 1
push eax
push ebx
call fcn.0043cba0
mov ebx, eax
add esp, 8
mov eax, dword [esp + 0x10]
add eax, eax
mov dword [ebp], eax
jmp case.0x441feb.0
lea ecx, [esp + 0x24]
mov dword [edi + 8], ebx
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0
push ecx
push 0
push 1
push eax
push ebx
mov ebx, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov dword [esp + 0x40], 0
call ebx
test eax, eax
je 0x442231
push dword [esp + 0x20]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov esi, eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x28]
push eax
push esi
push 1
push dword [ebp]
push dword [edi + 8]
call ebx
test eax, eax
je 0x442097
mov eax, dword [esp + 0x20]
mov dword [edi + 8], esi
pop edi
pop esi
mov dword [ebp], eax
pop ebp
pop ebx
add esp, 8
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, 8
ret
mov dword [edi + 8], ebx
xor ebx, ebx
mov dword [esp + 0x24], ebx
test al, 1
je 0x4420c5
push str.invalid_hexadecimal_sequence_odd_number_of_characters_
push esi
call sym.wluart_static.exe_luaL_error
add esp, 8
mov eax, dword [ebp]
shr eax, 1
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [ebp]
add esp, 4
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x442193
mov edx, eax
mov dword [esp + 0x20], eax
nop dword [eax]
mov eax, dword [edi + 8]
mov bl, byte [ebx + eax]
lea eax, [ebx - 0x30]
cmp al, 9
jbe 0x44212d
lea eax, [ebx - 0x41]
cmp al, 5
ja 0x442109
sub bl, 0x37
jmp 0x44212d
lea eax, [ebx - 0x61]
cmp al, 5
ja 0x442115
sub bl, 0x57
jmp 0x44212d
movzx eax, bl
push eax
push str.invalid_character__c_in_hexadecimal_sequence
push esi
call sym.wluart_static.exe_luaL_error
mov edx, dword [esp + 0x2c]
add esp, 0xc
mov bl, al
mov ecx, dword [edi + 8]
mov eax, dword [esp + 0x24]
mov cl, byte [ecx + eax + 1]
lea eax, [ecx - 0x30]
cmp al, 9
jbe 0x44216d
lea eax, [ecx - 0x41]
cmp al, 5
ja 0x44214b
lea eax, [ecx - 0x37]
jmp 0x44216d
lea eax, [ecx - 0x61]
cmp al, 5
ja 0x442157
lea eax, [ecx - 0x57]
jmp 0x44216d
movzx eax, cl
push eax
push str.invalid_character__c_in_hexadecimal_sequence
push esi
call sym.wluart_static.exe_luaL_error
mov edx, dword [esp + 0x2c]
add esp, 0xc
shl bl, 4
add bl, al
mov byte [edx], bl
inc edx
mov ebx, dword [esp + 0x24]
mov ecx, dword [ebp]
add ebx, 2
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ebx
cmp ebx, ecx
jb 0x4420f0
mov eax, dword [esp + 0x14]
mov dword [edi + 8], eax
pop edi
shr ecx, 1
pop esi
mov dword [ebp], ecx
pop ebp
pop ebx
add esp, 8
ret
push 0
push dword [esp + 0x28]
push esi
call sym.wluart_static.exe_lua_tolstring
push eax
push str.unknown_encoding__s
push esi
call sym.wluart_static.exe_luaL_error
add esp, 0x18
jmp case.0x441feb.0
push dword [esp + 0x20]
push esi
call sym.wluart_static.exe_luaL_checkinteger
add esp, 8
mov dword [ebp], eax
mov ecx, ebp
test eax, eax
jne case.0x441feb.0
push str.cannot_create_Buffer_with_zero_length
push esi
call sym.wluart_static.exe_luaL_error
add esp, 8
mov eax, dword [ebp]
test eax, eax
je 0x44220c
push eax
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
add esp, 8
mov dword [edi + 8], eax
test eax, eax
jne 0x44220c
push str.memory_allocation_error:_not_enough_memory
push esi
call sym.wluart_static.exe_luaL_error
add esp, 8
test ebx, ebx
je 0x442231
push dword [ebp]
push ebx
push dword [edi + 8]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp dword [esp + 0x14], 0
je 0x442231
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, 8
ret