Function at 0x4402ab
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.wluart.exe_lua_type
add esp, 0xc
sub eax, 3
je 0x440448
sub eax, 1
je 0x440235
sub eax, 1
je 0x440163
push dword [esp + 0x24]
push esi
call sym.wluart.exe_lua_objectname
push eax
push str.cannot_create_Buffer_from__s
push esi
call sym.wluart.exe_luaL_error
add esp, 0x14
jmp 0x44046b
mov ebx, dword [esp + 0x24]
xor ebp, ebp
push ebx
push esi
call sym.wluart.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.wluart.exe_lua_pushvalue
push esi
call sym.wluart.exe_lua_pushnil
push 0xfffffffffffffffe
push esi
call sym.wluart.exe_lua_next
add esp, 0x24
test eax, eax
je 0x440222
push 0xffffffffffffffff
push esi
call sym.wluart.exe_lua_type
add esp, 8
cmp eax, 3
je 0x4401c9
push 0xffffffffffffffff
push esi
call sym.wluart.exe_lua_objectname
push eax
push str.invalid_value_in_table_in_Buffer:from__number_expected_found__s_
push esi
call sym.wluart.exe_luaL_error
add esp, 0x14
push 0
push 0xffffffffffffffff
push esi
call sym.wluart.exe_lua_tointegerx
push 0xfffffffffffffffe
push esi
mov ebx, eax
mov edi, edx
call sym.wluart.exe_lua_settop
add esp, 0x14
test edi, edi
jl 0x4401fa
jg 0x4401fa
test ebx, ebx
jb 0x4401fa
test edi, edi
jl 0x440208
jg 0x4401fa
cmp ebx, 0xff
jbe 0x440208
push str.invalid_value_in_table_in_Buffer:from__byte_overflow_
push esi
call sym.wluart.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.wluart.exe_lua_next
add esp, 8
test eax, eax
jne 0x4401a2
push 0xfffffffffffffffe
push esi
call sym.wluart.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.wluart.exe_luaL_checklstring
add esp, 0xc
mov ebx, eax
cmp dword [esp + 0x24], 0
jle 0x44046b
push esi
call sym.wluart.exe_lua_gettop
add esp, 4
cmp eax, 2
jle 0x44046b
mov eax, dword [esp + 0x24]
push 0x4701c0
push str.utf8
inc eax
push eax
push esi
call sym.wluart.exe_luaL_checkoption
add esp, 0x10
cmp eax, 3
ja case.default.0x440284
jmp dword [eax*4 + 0x4404c0]
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 1
push eax
push ebx
call fcn.0043b0e0
mov ebx, eax
mov eax, dword [esp + 0x20]
mov dword [edi], eax
jmp 0x440468
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 0x4404b6
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 0x440329
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 0x440358
push str.invalid_hexadecimal_sequence_odd_number_of_characters_
push esi
call sym.wluart.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 0x440422
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 0x4403bd
lea eax, [ebx - 0x41]
cmp al, 5
ja 0x440399
sub bl, 0x37
jmp 0x4403bd
lea eax, [ebx - 0x61]
cmp al, 5
ja 0x4403a5
sub bl, 0x57
jmp 0x4403bd
movzx eax, bl
push eax
push str.invalid_character__c_in_hexadecimal_sequence
push esi
call sym.wluart.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 0x4403fd
lea eax, [ecx - 0x41]
cmp al, 5
ja 0x4403db
lea eax, [ecx - 0x37]
jmp 0x4403fd
lea eax, [ecx - 0x61]
cmp al, 5
ja 0x4403e7
lea eax, [ecx - 0x57]
jmp 0x4403fd
movzx eax, cl
push eax
push str.invalid_character__c_in_hexadecimal_sequence
push esi
call sym.wluart.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 0x440380
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 + 0x4701c0]
push str.unknown_encoding__s
push esi
call sym.wluart.exe_luaL_error
add esp, 0xc
jmp 0x44046b
push dword [esp + 0x24]
push esi
call sym.wluart.exe_luaL_checkinteger
add esp, 8
mov dword [edi], eax
mov ecx, edi
test eax, eax
jne 0x44046b
push str.cannot_create_Buffer_with_zero_length
push esi
call sym.wluart.exe_luaL_error
add esp, 8
mov eax, dword [edi]
test eax, eax
je 0x440492
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 0x440492
push str.memory_allocation_error:_not_enough_memory
push esi
call sym.wluart.exe_luaL_error
add esp, 8
test ebx, ebx
je 0x4404b6
push dword [edi]
push ebx
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp dword [esp + 0x14], 0
je 0x4404b6
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