Function at 0x479a70
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x18]
and eax, 0x380
cmp ax, 0x180
je 0x479a94
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [edx + 0x8c]
mov eax, dword [eax + 0x88]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x479a8a
mov ecx, edx
mov edx, dword [edx + 0x94]
push esi
push esi
mov eax, dword [edx + 4]
mov eax, dword [eax + 0x1b4]
push ecx
push edx
call dword [eax + 0x120]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ecx]
mov edi, dword [ebp - 0x24]
mov eax, dword [eax + 0x1c]
add edi, 8
mov dword [ebp - 0x20], eax
mov eax, edx
shl eax, 5
add esp, 0x10
lea eax, [ecx + eax + 8]
cmp edi, eax
jae 0x479e77
mov esi, edi
nop
cmp dword [esi + 0xc], 4
je 0x479ee0
test byte [esi + 0x1b], 1
jne 0x479e60
mov ecx, dword [esi]
test ecx, ecx
je 0x479e60
mov eax, dword [ebp + 0x10]
test byte [eax + 0x16], 0x10
je 0x479b24
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
test eax, eax
je 0x47a00a
mov eax, dword [esi + 8]
mov ecx, dword [ebp + 0x18]
lea eax, [eax + eax*2]
lea edx, [eax*4]
mov eax, dword [ecx]
add edx, eax
mov dword [ecx + 4], edx
cmp edx, dword [ecx + 8]
jae 0x479b4a
mov eax, dword [esi + 0x10]
add eax, 8
cmp dword [edx], eax
je 0x479b5e
push eax
push eax
push 0x552
push str._usr_local_google_buildbot_src_android_gcc_toolchain_build_.._binutils_binutils_2.27_bfd_elf_eh_frame.c
call fcn.004237c0
add esp, 0x10
push eax
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [esi + 0x10]
add eax, 8
push eax
call dword [ebp + 0x14]
add esp, 0x10
test eax, eax
sete al
and eax, 0xff
test eax, eax
je 0x479f05
mov edx, dword [ebp + 0xc]
mov al, byte [edx]
and eax, 3
cmp al, 3
je 0x479f2d
dec al
je 0x479f2d
and byte [esi + 0x1b], 0xfd
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0xb4]
inc edx
mov dword [eax + 0xb4], edx
mov edx, dword [esi]
mov dword [ebp - 0x18], edx
test byte [edx + 0x1b], 2
je 0x479e54
test byte [edx + 5], 0x20
jne 0x479f9b
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
and byte [edx + 0x1b], 0xfd
mov ecx, dword [ebp + 0x10]
test eax, eax
mov dword [edx], ecx
je 0x479e54
cmp byte [eax + 0x3c], 0xff
je 0x47a078
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x30]
add edx, 0x30
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x10]
mov ebx, dword [ecx]
lea eax, [eax + eax*2]
shl eax, 2
mov dword [edx + 0x30], 0
mov ecx, dword [ebp - 0x28]
add eax, ebx
mov dword [ecx + 4], 0
mov ebx, dword [eax + 4]
mov eax, dword [ebp + 0x18]
shr ebx, 8
cmp ebx, dword [eax + 0x14]
jae 0x479faf
lea eax, [ebx + ebx*4]
mov ecx, dword [ebp + 0x18]
lea edx, [eax*4]
mov eax, dword [ecx + 0xc]
add edx, eax
mov al, byte [edx + 0xc]
shr al, 4
jne 0x479faf
push eax
push eax
mov eax, dword [edx + 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00433c10
add esp, 0x10
test eax, eax
je 0x479e54
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x479c6e
mov eax, edx
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x479e54
mov edx, dword [ebp - 0x10]
mov byte [edx + 9], 1
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x24]
mov dword [edx + 0x34], ebx
mov dword [edx + 0x30], eax
mov edx, dword [ebp + 0xc]
mov al, byte [edx]
and eax, 3
cmp al, 3
je 0x479c9c
dec al
jne 0x479cd2
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov al, byte [ecx + 0x3c]
test al, 0x70
jne 0x479cd2
push eax
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
mov eax, dword [eax + 0x1b4]
push ebx
mov ecx, dword [ebp + 0xc]
push ecx
push edx
call dword [eax + 0x124]
add esp, 0x10
test eax, eax
je 0x479cd2
mov ecx, dword [ebp - 0x18]
or byte [ecx + 5], 0xc
push eax
push 0
push 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.0048fc20
add esp, 0xc
push eax
push 1
mov eax, dword [ebp - 0x10]
add eax, 8
push eax
call fcn.0048fc20
mov ebx, dword [ebp - 0x10]
add esp, 0xc
add ebx, 0xa
push eax
push ecx
push ebx
call sub.msvcrt.dll_strlen
pop ecx
inc eax
pop edx
push eax
push ebx
call fcn.0048fc20
add esp, 0xc
push eax
push 4
mov eax, dword [ebp - 0x10]
add eax, 0x20
push eax
call fcn.0048fc20
add esp, 0xc
push eax
push 4
mov eax, dword [ebp - 0x10]
add eax, 0x24
push eax
call fcn.0048fc20
add esp, 0xc
push eax
push 4
mov eax, dword [ebp - 0x10]
add eax, 0x28
push eax
call fcn.0048fc20
add esp, 0xc
push eax
push 4
mov eax, dword [ebp - 0x10]
add eax, 0x2c
push eax
call fcn.0048fc20
add esp, 0xc
push eax
push 8
mov edx, dword [ebp - 0x28]
push edx
call fcn.0048fc20
add esp, 0xc
push eax
push 4
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x38]
mov eax, dword [eax]
add eax, 0x3c
push eax
call fcn.0048fc20
add esp, 0xc
push eax
push 1
mov eax, dword [ebp - 0x10]
add eax, 0x3c
push eax
call fcn.0048fc20
add esp, 0xc
push eax
push 1
mov eax, dword [ebp - 0x10]
add eax, 0x3d
push eax
call fcn.0048fc20
add esp, 0xc
push eax
push 1
mov eax, dword [ebp - 0x10]
add eax, 0x3e
push eax
call fcn.0048fc20
add esp, 0xc
push eax
push 1
mov eax, dword [ebp - 0x10]
add eax, 0x3f
push eax
call fcn.0048fc20
add esp, 0xc
push eax
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov al, byte [ecx + 0x3f]
cmp eax, 0x32
ja 0x47a000
push eax
mov eax, dword [ebp - 0x10]
add eax, 0x41
push eax
call fcn.0048fc20
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
add esp, 0x10
mov dword [edx + 4], eax
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x47a086
push 1
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 4]
push eax
push ecx
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xb0]
push eax
call fcn.00490310
add esp, 0x10
mov dword [ebp - 0x14], eax
test eax, eax
je 0x479e54
mov eax, dword [eax]
test eax, eax
je 0x47a0b5
mov ebx, eax
mov eax, dword [ebp - 0x18]
or byte [eax + 0x1b], 2
or byte [eax + 5], 0x20
mov edx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x38]
mov dword [edx], eax
test byte [edx + 5], 2
je 0x479e4e
mov eax, dword [ebx + 0x38]
or byte [eax + 5], 2
mov ebx, dword [ebx + 0x38]
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp - 0x18]
mov dword [esi], ecx
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
nop
mov eax, edx
mov ecx, dword [ebp - 0x24]
shl eax, 5
add esi, 0x20
lea eax, [ecx + eax + 8]
cmp eax, esi
ja 0x479af0
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + 4]
test eax, eax
je 0x479e99
sub esp, 0xc
push eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x24]
add esp, 0x10
mov dword [eax + 4], 0
mov edx, dword [eax]
mov eax, edx
mov ecx, dword [ebp - 0x24]
shl eax, 5
xor ebx, ebx
lea eax, [ecx + eax + 8]
cmp edi, eax
jb 0x479ec3
jmp 0x479f0f
mov eax, edx
mov ecx, dword [ebp - 0x24]
shl eax, 5
add edi, 0x20
lea eax, [ecx + eax + 8]
cmp eax, edi
jbe 0x479f0f
test byte [edi + 0x1b], 2
jne 0x479eb0
mov dword [edi + 0x14], ebx
mov edx, dword [ebp - 0x1c]
mov eax, edi
call fcn.00478c00
add ebx, eax
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
jmp 0x479eb0
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax + 0xa0]
mov al, byte [esi + 0x1b]
test ebx, ebx
setne dl
add edx, edx
and eax, 0xfffffffd
or eax, edx
mov byte [esi + 0x1b], al
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
jmp 0x479e60
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
jmp 0x479e60
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x24]
mov dword [edx + 0x24], ebx
mov dword [edx + 0x28], eax
cmp eax, ebx
setne al
and eax, 0xff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
mov al, byte [esi + 0x18]
and eax, 0x70
jne 0x479f90
test byte [esi + 0x1b], 8
jne 0x479b9b
mov ecx, dword [ebp - 0x20]
mov eax, dword [0x520ff8]
cmp eax, 9
mov dword [ecx + 0xb8], 0
jle 0x47a04c
cmp eax, 0xa
jne 0x479b9b
mov ecx, dword [ebp + 0xc]
sub esp, 0xc
mov eax, dword [ecx + 0x18]
push str._P:_Further_warnings_about_FDE_encoding_preventing_.eh_frame_hdr_generation_dropped._n
call dword [eax + 0x2c]
mov ecx, dword [0x520ff8]
inc ecx
add esp, 0x10
mov dword [0x520ff8], ecx
jmp 0x479b9b
cmp eax, 0x50
jne 0x479b9b
jmp 0x479f41
mov ecx, dword [edx]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x18]
mov dword [esi], ecx
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
jmp 0x479e60
mov edx, dword [ebp + 0x18]
mov eax, ebx
mov ebx, dword [edx + 0x18]
mov edx, dword [edx + 0x1c]
sub eax, ebx
mov edx, dword [edx + eax*4]
mov al, byte [edx + 0xc]
sub eax, 6
cmp al, 1
ja 0x479fdd
lea esi, [esi]
mov edx, dword [edx + 0x14]
mov al, byte [edx + 0xc]
sub eax, 6
cmp al, 1
jbe 0x479fd0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x30], edx
push ecx
push 0
mov eax, dword [ebp + 0xc]
push eax
push edx
call fcn.00456e30
add esp, 0x10
test eax, eax
jne 0x479c8c
jmp 0x479cd2
mov eax, 0x32
jmp 0x479dd8
xor ebx, ebx
mov edx, dword [ebp - 0x1c]
mov bl, byte [esi + 0x18]
mov eax, ebx
shr ebx, 3
call fcn.00478ba0
mov edx, dword [ebp + 0x10]
mov ecx, eax
mov eax, dword [esi + 0x10]
sub esp, 0xc
add eax, dword [edx + 0x6c]
and ebx, 1
push ebx
lea edx, [ecx + eax + 8]
mov eax, dword [ebp + 8]
call fcn.00479090
add esp, 0x10
test eax, eax
setne al
and eax, 0xff
jmp 0x479b7b
push ebx
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
push str._P:_FDE_encoding_in__B__A__prevents_.eh_frame_hdr_table_being_created._n
call dword [eax + 0x2c]
mov ebx, dword [0x520ff8]
inc ebx
add esp, 0x10
mov dword [0x520ff8], ebx
jmp 0x479b9b
mov eax, dword [ebp - 0x10]
add eax, 0x30
mov dword [ebp - 0x28], eax
jmp 0x479cd2
push sub.msvcrt.dll_free
push 0x47a0f0
push 0x478bf0
push 1
call fcn.00490690
mov edx, dword [ebp - 0x20]
add esp, 0x10
test eax, eax
mov dword [edx + 0xb0], eax
jne 0x479dff
jmp 0x479e54
sub esp, 0xc
push 0x74
call sub.msvcrt.dll_malloc
add esp, 0x10
test eax, eax
je 0x479e54
mov ebx, eax
push eax
push 0x74
mov eax, dword [ebp - 0x10]
push eax
push ebx
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp - 0x14]
add esp, 0x10
mov dword [ecx], ebx
jmp 0x479e4e