Function at 0x4c1e9a
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x58
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
push ebx
push ebp
push esi
xor esi, esi
push edi
cmp edx, eax
jae 0x4c20c1
mov ebx, dword [esp + 0x70]
nop
push eax
push edx
lea eax, [esp + 0x50]
push eax
call fcn.004c23e0
mov edx, eax
add esp, 0xc
mov dword [esp + 0x24], edx
test edx, edx
je case.0x4c1bff.7
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
cmp eax, ecx
jae 0x4c20b2
nop dword [eax]
push ecx
push eax
lea eax, [esp + 0x60]
push eax
call fcn.004c23e0
add esp, 0xc
mov dword [esp + 0x20], eax
test eax, eax
je case.0x4c1bff.7
mov edi, dword [esp + 0x60]
lea eax, [esp + 0x28]
push edi
push dword [esp + 0x60]
push eax
call fcn.004c23e0
add esp, 0xc
test eax, eax
je case.0x4c1bff.7
push edi
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004c23e0
add esp, 0xc
test eax, eax
je case.0x4c1bff.7
cmp byte [esp + 0x36], 0
jne case.0x4c1bff.7
movzx ebp, byte [esp + 0x35]
lea eax, [ebp - 1]
cmp eax, 0x1d
ja case.0x4c1bff.7
movzx eax, byte [eax + 0x4c2100]
jmp dword [eax*4 + 0x4c20d8]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
sub eax, ecx
cmp eax, 1
je 0x4c1700
xor edx, edx
jmp 0x4c1b48
cmp byte [ecx], 0
mov eax, str.TRUE
mov ecx, str.FALSE
cmove eax, ecx
push eax
call dword [fcn.0067900c]
add esp, 4
mov edx, eax
jmp 0x4c1b48
mov edi, dword [esp + 0x30]
mov eax, edi
mov edx, dword [esp + 0x2c]
sub eax, edx
jne 0x4c1736
xor edx, edx
jmp 0x4c1b48
cmp eax, 4
jbe 0x4c174c
push edi
push edx
call fcn.004c24c0
add esp, 8
mov edx, eax
jmp 0x4c1b48
movsx ecx, byte [edx]
sar ecx, 0x1f
movzx eax, byte [edx]
inc edx
shl ecx, 8
or ecx, eax
cmp edx, edi
jb 0x4c1752
push ecx
cmp ecx, 0xa
mov eax, 0x55e740
mov ecx, 0x66501d
cmovb eax, ecx
push eax
push str._s_x
call fcn.00499d40
add esp, 0xc
mov edx, eax
jmp 0x4c1b48
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
inc eax
cmp eax, ecx
jbe 0x4c1799
xor edx, edx
jmp 0x4c1b48
push ecx
push eax
call fcn.004c24c0
add esp, 8
mov edx, eax
jmp 0x4c1b48
push dword [esp + 0x30]
push dword [esp + 0x30]
call fcn.004c24c0
add esp, 8
mov edx, eax
jmp 0x4c1b48
push 0x66501d
call dword [fcn.0067900c]
add esp, 4
mov edx, eax
jmp 0x4c1b48
push 1
push dword [esp + 0x34]
push dword [esp + 0x34]
call fcn.004c0b80
add esp, 0xc
mov edx, eax
jmp 0x4c1b48
mov ebx, dword [esp + 0x2c]
mov ecx, ebx
mov edx, dword [esp + 0x30]
cmp ecx, edx
jae 0x4c180d
nop dword [eax]
mov al, byte [ecx]
sub al, 0x30
cmp al, 9
ja 0x4c180d
inc ecx
cmp ecx, edx
jb 0x4c1800
lea edi, [ebx + 0xa]
mov eax, ecx
sub eax, edi
sub eax, 0
je 0x4c182d
sub eax, 2
je 0x4c1832
mov ebx, dword [esp + 0x70]
xor edx, edx
mov dword [esp + 0x14], edx
jmp 0x4c1b4c
mov edi, 0x55e780
cmp ecx, edx
jb 0x4c1845
mov ebx, dword [esp + 0x70]
xor edx, edx
mov dword [esp + 0x14], edx
jmp 0x4c1b4c
cmp byte [ecx], 0x5a
jne 0x4c1856
mov ecx, 0x55e784
mov edx, 0x55e787
jmp 0x4c1857
inc ecx
push ecx
sub edx, ecx
lea eax, [ebx + 8]
push edx
push edi
push eax
lea eax, [ebx + 6]
push eax
lea eax, [ebx + 4]
push eax
lea eax, [ebx + 2]
push eax
xor eax, eax
cmp byte [ebx], 0x35
push ebx
setl al
add eax, 0x13
push eax
push str._u_.2s__.2s__.2s__.2s:_.2s:_.2s__.s
call fcn.00499d40
mov ebx, dword [esp + 0x98]
add esp, 0x28
mov edx, eax
mov dword [esp + 0x14], eax
jmp 0x4c1b4c
mov ebp, dword [esp + 0x2c]
mov edi, 0x66501d
mov ebx, dword [esp + 0x30]
mov ecx, ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edi
cmp ecx, ebx
jae 0x4c18c0
mov al, byte [ecx]
sub al, 0x30
cmp al, 9
ja 0x4c18c0
inc ecx
cmp ecx, ebx
jb 0x4c18b3
mov eax, ecx
mov byte [esp + 0x12], 0x30
sub eax, ebp
sub eax, 0xc
sub eax, 0
je 0x4c18fa
sub eax, 1
je 0x4c18f1
sub eax, 1
je 0x4c18ea
mov ebx, dword [esp + 0x70]
xor edx, edx
mov dword [esp + 0x14], edx
jmp 0x4c1b4c
mov al, byte [ecx - 2]
mov byte [esp + 0x12], al
mov al, byte [ecx - 1]
mov byte [esp + 0x11], al
jmp 0x4c18ff
mov byte [esp + 0x11], 0x30
xor edx, edx
mov eax, ecx
cmp ecx, ebx
jae 0x4c196a
mov bl, byte [ecx]
mov byte [esp + 0x13], bl
cmp bl, 0x2e
mov ebx, dword [esp + 0x1c]
je 0x4c191d
cmp byte [esp + 0x13], 0x2c
jne 0x4c194f
inc ecx
nop
inc eax
cmp eax, ebx
jae 0x4c1931
mov dl, byte [eax]
cmp dl, 0x30
jl 0x4c1931
cmp dl, 0x39
jle 0x4c1920
mov edx, eax
sub edx, ecx
sub edx, 1
je 0x4c194f
lea edi, [ecx - 1]
add edi, edx
nop
cmp byte [edi], 0x30
jne 0x4c194b
dec edi
sub edx, 1
jne 0x4c1940
mov edi, dword [esp + 0x18]
cmp eax, ebx
jae 0x4c196a
cmp byte [eax], 0x5a
jne 0x4c1964
mov eax, str._GMT
mov ebx, 0x55e750
jmp 0x4c196a
mov edi, 0x665bb0
inc eax
push eax
sub ebx, eax
test edx, edx
push ebx
push edi
push ecx
push edx
mov ecx, 0x66501d
mov eax, 0x665080
cmove eax, ecx
push eax
movsx eax, byte [esp + 0x29]
push eax
movsx eax, byte [esp + 0x2e]
push eax
lea eax, [ebp + 0xa]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 6]
push eax
lea eax, [ebp + 4]
push eax
push ebp
push str._.4s__.2s__.2s__.2s:_.2s:_c_c_s_.s_s_.s
call fcn.00499d40
mov ebx, dword [esp + 0xa8]
add esp, 0x38
mov edx, eax
mov dword [esp + 0x14], eax
jmp 0x4c1b4c
mov ebx, dword [esp + 0x30]
lea eax, [ebp - 0xc]
mov edi, dword [esp + 0x2c]
mov ecx, 1
sub ebx, edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], 0
cmp eax, 0x12
ja case.0x4c19eb.13
movzx eax, byte [eax + 0x4c2130]
jmp dword [eax*4 + 0x4c2120]
mov ecx, 2
jmp 0x4c19fe
mov ecx, 4
mov dword [esp + 0x18], ecx
xor edx, edx
mov eax, ebx
div ecx
test edx, edx
jne case.0x4c19eb.13
mov eax, ebx
div ecx
cmp eax, 0x3fffffff
ja case.0x4c19eb.13
lea eax, [eax*4 + 1]
push eax
call dword [section..data]
mov edx, eax
add esp, 4
mov dword [esp + 0x1c], edx
test edx, edx
je case.0x4c19eb.13
cmp ebp, 0xc
jne 0x4c1a61
test ebx, ebx
je 0x4c1a56
push ebx
push edi
push edx
call fcn.00522170
add esp, 0xc
mov edx, dword [esp + 0x1c]
mov byte [ebx + edx], 0
mov eax, edx
jmp 0x4c1b3d
xor ebx, ebx
cmp edi, dword [esp + 0x30]
jae 0x4c1a56
nop dword [eax]
mov eax, dword [esp + 0x18]
xor ecx, ecx
sub eax, 2
je 0x4c1a8f
sub eax, 2
jne 0x4c1a98
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
add edi, 2
movzx eax, byte [edi]
shl ecx, 8
or ecx, eax
inc edi
movzx eax, byte [edi]
mov ebp, 1
shl ecx, 8
inc edi
or ecx, eax
cmp ecx, 0x80
jb 0x4c1b13
cmp ecx, 0x800
jb 0x4c1afc
cmp ecx, 0x10000
jb 0x4c1ae1
cmp ecx, 0x200000
jae 0x4c1b2c
mov al, cl
add edx, ebx
and al, 0x3f
or ecx, sym.MIDNIGHTLoader.exe_c_Aqe.oeOBj__h0DFNZ0W17a_Igqc_DMW2
or al, 0x80
mov ebp, 3
shr ecx, 6
mov byte [edx + 3], al
jmp 0x4c1ae8
add edx, ebx
mov ebp, 2
mov al, cl
or ecx, 0x20000
and al, 0x3f
or al, 0x80
shr ecx, 6
mov byte [edx + 2], al
jmp 0x4c1afe
add edx, ebx
mov al, cl
or ecx, 0x3000
and al, 0x3f
shr ecx, 6
or al, 0x80
inc ebp
mov byte [edx + 1], al
jmp 0x4c1b15
add edx, ebx
add ebx, ebp
mov byte [edx], cl
cmp edi, dword [esp + 0x30]
jae 0x4c1a52
mov edx, dword [esp + 0x1c]
jmp 0x4c1a70
push edx
call dword [fcn.00679004]
add esp, 4
mov eax, dword [esp + 0x14]
or ebx, 0xffffffff
xor edx, edx
test ebx, ebx
mov ebx, dword [esp + 0x70]
cmovns edx, eax
mov dword [esp + 0x14], edx
test edx, edx
je case.0x4c1bff.7
test esi, esi
je 0x4c1b9c
mov al, byte [edx]
mov ecx, edx
cmp al, 0x41
jl 0x4c1b6c
cmp al, 0x5a
ja 0x4c1b7c
mov al, byte [ecx + 1]
inc ecx
cmp al, 0x41
jge 0x4c1b60
test al, al
jne 0x4c1b7c
sub ecx, edx
cmp ecx, 2
mov ecx, 0x5555fc
jle 0x4c1b81
mov ecx, 0x5529e0
mov edx, dword [esp + 0x6c]
sub ecx, esi
cmp esi, ebx
jae 0x4c1b91
mov al, byte [ecx + esi]
mov byte [esi + edx], al
inc esi
cmp byte [ecx + esi], 0
jne 0x4c1b87
mov edx, dword [esp + 0x14]
cmp byte [edx], 0
je 0x4c1bc5
mov ecx, edx
mov edx, dword [esp + 0x6c]
sub ecx, esi
nop dword [eax]
cmp esi, ebx
jae 0x4c1bba
mov al, byte [ecx + esi]
mov byte [esi + edx], al
inc esi
cmp byte [ecx + esi], 0
jne 0x4c1bb0
mov edx, dword [esp + 0x14]
push edx
call dword [fcn.00679004]
add esp, 4
cmp esi, ebx
jae 0x4c1bdb
mov eax, dword [esp + 0x6c]
mov byte [esi + eax], 0x3d
inc esi
cmp byte [esp + 0x46], 0
jne case.0x4c1bff.7
movzx ebp, byte [esp + 0x45]
lea eax, [ebp - 1]
cmp eax, 0x1d
ja case.0x4c1bff.7
movzx eax, byte [eax + 0x4c216c]
jmp dword [eax*4 + 0x4c2144]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
sub eax, ecx
cmp eax, 1
je 0x4c1c1c
xor edx, edx
jmp 0x4c2067
cmp byte [ecx], 0
mov eax, str.TRUE
mov ecx, str.FALSE
cmove eax, ecx
push eax
call dword [fcn.0067900c]
add esp, 4
mov edx, eax
jmp 0x4c2067
mov edi, dword [esp + 0x40]
mov eax, edi
mov edx, dword [esp + 0x3c]
sub eax, edx
jne 0x4c1c52
xor edx, edx
jmp 0x4c2067
cmp eax, 4
jbe 0x4c1c68
push edi
push edx
call fcn.004c24c0
add esp, 8
mov edx, eax
jmp 0x4c2067
movsx ecx, byte [edx]
sar ecx, 0x1f
nop
movzx eax, byte [edx]
inc edx
shl ecx, 8
or ecx, eax
cmp edx, edi
jb 0x4c1c70
push ecx
cmp ecx, 0xa
mov eax, 0x55e740
mov ecx, 0x66501d
cmovb eax, ecx
push eax
push str._s_x
call fcn.00499d40
add esp, 0xc
mov edx, eax
jmp 0x4c2067
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
inc eax
cmp eax, ecx
jbe 0x4c1cb7
xor edx, edx
jmp 0x4c2067
push ecx
push eax
call fcn.004c24c0
add esp, 8
mov edx, eax
jmp 0x4c2067
push dword [esp + 0x40]
push dword [esp + 0x40]
call fcn.004c24c0
add esp, 8
mov edx, eax
jmp 0x4c2067
push 0x66501d
call dword [fcn.0067900c]
add esp, 4
mov edx, eax
jmp 0x4c2067
push 1
push dword [esp + 0x44]
push dword [esp + 0x44]
call fcn.004c0b80
add esp, 0xc
mov edx, eax
jmp 0x4c2067
mov ebx, dword [esp + 0x3c]
mov ecx, ebx
mov edx, dword [esp + 0x40]
cmp ecx, edx
jae 0x4c1d2d
nop dword [eax + eax]
mov al, byte [ecx]
sub al, 0x30
cmp al, 9
ja 0x4c1d2d
inc ecx
cmp ecx, edx
jb 0x4c1d20
lea edi, [ebx + 0xa]
mov eax, ecx
sub eax, edi
sub eax, 0
je 0x4c1d4d
sub eax, 2
je 0x4c1d52
mov ebx, dword [esp + 0x70]
xor edx, edx
mov dword [esp + 0x14], edx
jmp 0x4c206b
mov edi, 0x55e780
cmp ecx, edx
jb 0x4c1d65
mov ebx, dword [esp + 0x70]
xor edx, edx
mov dword [esp + 0x14], edx
jmp 0x4c206b
cmp byte [ecx], 0x5a
jne 0x4c1d76
mov ecx, 0x55e784
mov edx, 0x55e787
jmp 0x4c1d77
inc ecx
push ecx
sub edx, ecx
lea eax, [ebx + 8]
push edx
push edi
push eax
lea eax, [ebx + 6]
push eax
lea eax, [ebx + 4]
push eax
lea eax, [ebx + 2]
push eax
xor eax, eax
cmp byte [ebx], 0x35
push ebx
setl al
add eax, 0x13
push eax
push str._u_.2s__.2s__.2s__.2s:_.2s:_.2s__.s
call fcn.00499d40
mov ebx, dword [esp + 0x98]
add esp, 0x28
mov edx, eax
mov dword [esp + 0x14], eax
jmp 0x4c206b
mov ebp, dword [esp + 0x3c]
mov edi, 0x66501d
mov ebx, dword [esp + 0x40]
mov ecx, ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edi
cmp ecx, ebx
jae 0x4c1de0
mov al, byte [ecx]
sub al, 0x30
cmp al, 9
ja 0x4c1de0
inc ecx
cmp ecx, ebx
jb 0x4c1dd3
mov eax, ecx
mov byte [esp + 0x11], 0x30
sub eax, ebp
sub eax, 0xc
sub eax, 0
je 0x4c1e1a
sub eax, 1
je 0x4c1e11
sub eax, 1
je 0x4c1e0a
mov ebx, dword [esp + 0x70]
xor edx, edx
mov dword [esp + 0x14], edx
jmp 0x4c206b
mov al, byte [ecx - 2]
mov byte [esp + 0x11], al
mov al, byte [ecx - 1]
mov byte [esp + 0x12], al
jmp 0x4c1e1f
mov byte [esp + 0x12], 0x30
xor edx, edx
mov eax, ecx
cmp ecx, ebx
jae 0x4c1e8a
mov bl, byte [ecx]
mov byte [esp + 0x13], bl
cmp bl, 0x2e
mov ebx, dword [esp + 0x1c]
je 0x4c1e3d
cmp byte [esp + 0x13], 0x2c
jne 0x4c1e6f
inc ecx
nop
inc eax
cmp eax, ebx
jae 0x4c1e51
mov dl, byte [eax]
cmp dl, 0x30
jl 0x4c1e51
cmp dl, 0x39
jle 0x4c1e40
mov edx, eax
sub edx, ecx
sub edx, 1
je 0x4c1e6f
lea edi, [ecx - 1]
add edi, edx
nop
cmp byte [edi], 0x30
jne 0x4c1e6b
dec edi
sub edx, 1
jne 0x4c1e60
mov edi, dword [esp + 0x18]
cmp eax, ebx
jae 0x4c1e8a
cmp byte [eax], 0x5a
jne 0x4c1e84
mov eax, str._GMT
mov ebx, 0x55e750
jmp 0x4c1e8a
mov edi, 0x665bb0
inc eax
push eax
sub ebx, eax
test edx, edx
push ebx
push edi
push ecx
push edx
mov ecx, 0x66501d
mov eax, 0x665080
cmove eax, ecx
push eax
movsx eax, byte [esp + 0x2a]
push eax
movsx eax, byte [esp + 0x2d]
push eax
lea eax, [ebp + 0xa]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 6]
push eax
lea eax, [ebp + 4]
push eax
push ebp
push str._.4s__.2s__.2s__.2s:_.2s:_c_c_s_.s_s_.s
call fcn.00499d40
mov ebx, dword [esp + 0xa8]
add esp, 0x38
mov edx, eax
mov dword [esp + 0x14], eax
jmp 0x4c206b
mov ebx, dword [esp + 0x40]
lea eax, [ebp - 0xc]
mov edi, dword [esp + 0x3c]
mov ecx, 1
sub ebx, edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], 0
cmp eax, 0x12
ja case.0x4c1f0b.13
movzx eax, byte [eax + 0x4c219c]
jmp dword [eax*4 + 0x4c218c]
mov ecx, 2
jmp 0x4c1f1e
mov ecx, 4
mov dword [esp + 0x1c], ecx
xor edx, edx
mov eax, ebx
div ecx
test edx, edx
jne case.0x4c1f0b.13
mov eax, ebx
div ecx
cmp eax, 0x3fffffff
ja case.0x4c1f0b.13
lea eax, [eax*4 + 1]
push eax
call dword [section..data]
mov edx, eax
add esp, 4
mov dword [esp + 0x18], edx
test edx, edx
je case.0x4c1f0b.13
cmp ebp, 0xc
jne 0x4c1f81
test ebx, ebx
je 0x4c1f76
push ebx
push edi
push edx
call fcn.00522170
add esp, 0xc
mov edx, dword [esp + 0x18]
mov byte [ebx + edx], 0
mov eax, edx
jmp 0x4c205c
xor ebx, ebx
cmp edi, dword [esp + 0x40]
jae 0x4c1f76
nop dword [eax]
mov ecx, dword [esp + 0x1c]
xor eax, eax
sub ecx, 2
je 0x4c1faf
sub ecx, 2
jne 0x4c1fb8
movzx eax, byte [edi]
movzx ecx, byte [edi + 1]
shl eax, 8
or eax, ecx
add edi, 2
movzx ecx, byte [edi]
shl eax, 8
or eax, ecx
inc edi
movzx ecx, byte [edi]
mov ebp, 1
shl eax, 8
inc edi
or eax, ecx
cmp eax, 0x80
jb 0x4c2032
cmp eax, 0x800
jb 0x4c201a
cmp eax, 0x10000
jb 0x4c1ffe
cmp eax, 0x200000
jae 0x4c204b
mov cl, al
add edx, ebx
and cl, 0x3f
or eax, sym.MIDNIGHTLoader.exe_c_Aqe.oeOBj__h0DFNZ0W17a_Igqc_DMW2
or cl, 0x80
mov ebp, 3
shr eax, 6
mov byte [edx + 3], cl
jmp 0x4c2005
add edx, ebx
mov ebp, 2
mov cl, al
or eax, 0x20000
and cl, 0x3f
or cl, 0x80
shr eax, 6
mov byte [edx + 2], cl
jmp 0x4c201c
add edx, ebx
mov cl, al
or eax, 0x3000
and cl, 0x3f
shr eax, 6
or cl, 0x80
inc ebp
mov byte [edx + 1], cl
jmp 0x4c2034
add edx, ebx
add ebx, ebp
mov byte [edx], al
cmp edi, dword [esp + 0x40]
jae 0x4c1f72
mov edx, dword [esp + 0x18]
jmp 0x4c1f90
push edx
call dword [fcn.00679004]
add esp, 4
mov eax, dword [esp + 0x14]
or ebx, 0xffffffff
xor edx, edx
test ebx, ebx
mov ebx, dword [esp + 0x70]
cmovns edx, eax
mov dword [esp + 0x14], edx
test edx, edx
je case.0x4c1bff.7
cmp byte [edx], 0
mov ecx, edx
je 0x4c2094
mov edx, dword [esp + 0x6c]
nop word [eax + eax]
cmp esi, ebx
jae 0x4c2089
mov al, byte [ecx]
mov byte [esi + edx], al
inc ecx
inc esi
cmp byte [ecx], 0
jne 0x4c2080
mov edx, dword [esp + 0x14]
push edx
call dword [fcn.00679004]
mov eax, dword [esp + 0x24]
add esp, 4
mov ecx, dword [esp + 0x50]
cmp eax, ecx
jb 0x4c1670
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x74]
mov eax, dword [eax + 8]
cmp edx, eax
jb 0x4c1640
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x58
ret