Function at 0x406e80
Capabilities:
Encode data using base64

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x7c
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x94]
mov dword [esp + 0x38], eax
test edx, edx
je 0x40704f
xor eax, eax
lea edi, [esp + 0x4c]
mov ecx, 9
rep stosd dword es:[edi], eax
lea eax, [esp + 0x4c]
lea edi, [esp + 0x48]
mov dword [esp], edx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x54]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x58]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x44]
mov dword [esp + 0x10], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str._3s___d__3s__d__d:_d:_d_GMT
call sym._sscanf.constprop.0_1
cmp eax, 7
jne 0x407060
mov eax, dword [esp + 0x60]
mov dword [esp + 4], 0x428449
mov dword [esp], edi
lea edx, [eax - 0x76c]
mov dword [esp + 0x60], edx
cdq
shr edx, 0x1e
add eax, edx
and eax, 3
sub eax, edx
mov dword [esp + 0x5c], eax
call sym._strcmp
test eax, eax
je 0x40716d
mov dword [esp + 4], 0x42844d
mov dword [esp], edi
call sym._strcmp
test eax, eax
je 0x407168
mov dword [esp + 4], 0x428451
mov dword [esp], edi
call sym._strcmp
test eax, eax
je 0x4072b0
mov dword [esp + 4], 0x428455
mov dword [esp], edi
call sym._strcmp
test eax, eax
je 0x407408
mov dword [esp + 4], 0x428459
mov dword [esp], edi
call sym._strcmp
test eax, eax
je 0x407418
mov dword [esp + 4], 0x42845d
mov dword [esp], edi
call sym._strcmp
test eax, eax
je 0x40742c
mov dword [esp + 4], 0x428461
mov dword [esp], edi
call sym._strcmp
test eax, eax
je 0x407436
mov dword [esp + 4], 0x428465
mov dword [esp], edi
call sym._strcmp
test eax, eax
je 0x407440
mov dword [esp + 4], 0x428469
mov dword [esp], edi
call sym._strcmp
test eax, eax
je 0x40744a
mov dword [esp + 4], 0x42846d
mov dword [esp], edi
call sym._strcmp
test eax, eax
je 0x407454
mov dword [esp + 4], 0x428471
mov dword [esp], edi
call sym._strcmp
test eax, eax
je 0x407480
mov dword [esp + 4], 0x428475
mov dword [esp], edi
call sym._strcmp
mov edx, eax
mov eax, 0xb
test edx, edx
je 0x40716d
mov dword [esp], str.nada
call sym._printf_7
add esp, 0x7c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.Failed_to_parse_date_string._n
call sym._printf_7
mov dword [esp], 0x20
call sym._malloc
test eax, eax
je 0x40745e
mov dword [eax], ebx
mov dword [eax + 8], esi
mov dword [eax + 0x18], ebp
mov dword [esp + 0xc], ebp
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], str.Date_components:__d___d___d_n
call sym._printf_7
mov eax, dword [esp + 0x38]
mov dword [esp + 4], str.daily
mov dword [esp], eax
call sym._strcmp
test eax, eax
je 0x407218
mov eax, dword [esp + 0x38]
mov dword [esp + 4], str.weekly
mov dword [esp], eax
call sym._strcmp
test eax, eax
je 0x407230
mov eax, dword [esp + 0x38]
mov dword [esp + 4], str.bimonthly
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x4071d8
cmp ebp, 0xe
jg 0x407290
mov dword [esp], str.DAY_1
mov dword [0x447e80], 0x4284f9
call sym._puts
mov dword [esp], 0x64
call sym._malloc
mov dword [esp + 0x3c], eax
test eax, eax
je 0x40748a
mov dword [esp + 0xc], esi
mov eax, dword [0x447e80]
mov esi, dword [esp + 0x3c]
mov dword [esp + 8], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 4], str._d_d_s
mov dword [esp], esi
call sym._sprintf.constprop.0_4
mov dword [esp + 4], esi
mov dword [esp], str._________in_function_out:__s_n
call sym._printf_7
jmp 0x4071e4
mov eax, 1
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x4c]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_mktime]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x40]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_ctime]
mov dword [esp], str.Parsed_time:__s_n
mov dword [esp + 4], eax
call sym._printf_7
mov eax, dword [esp + 0x60]
mov ebp, dword [esp + 0x58]
mov dword [esp], str.TM_CONTROL:__d___d___d_n
lea esi, [eax + 0x76c]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xc], ebp
mov dword [esp + 4], esi
lea ebx, [eax + 1]
mov dword [esp + 8], ebx
call sym._printf_7
jmp 0x40706c
mov dword [esp], str.Specify_period._n
call sym._puts
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call sym._SHA256
mov dword [esp], eax
mov ebx, eax
call sym._strlen
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], eax
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
jmp sym._base64_encode
cmp ebp, 0x1e
ja case.0x407221.0
jmp dword [ebp*4 + 0x428538]
mov edi, str.a4418vss415yyvfggz4658113749s674
cmp ebp, 7
jle 0x407250
lea eax, [ebp - 8]
mov edi, str.s8842s5784s955s9997s8tbjccc64ssd
cmp eax, 6
ja 0x4072c0
lea esi, [esi]
nop
mov dword [esp], 0x64
mov dword [0x447e80], edi
call sym._malloc
mov dword [esp + 0x3c], eax
test eax, eax
je 0x40748a
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], str._d_d_s
mov dword [esp], eax
call sym._sprintf.constprop.0_4
jmp 0x4071e4
mov dword [esp], str.DAY_7
mov dword [0x447e80], 0x428501
call sym._puts
jmp 0x407113
mov eax, 2
jmp 0x40716d
sub ebp, 0xf
mov edi, str.1875s5s648win41d5good748w5bloom7
mov eax, str.9ss74s5lin7ggx74x9453uushgf222xj
cmp ebp, 7
cmovae edi, eax
jmp 0x407250
mov edi, str.s8842s5784s955s9997s41d5good748w5sd
jmp 0x407250
mov edi, str.a4418vss415yyvfa441887svss415yyvfgg
jmp 0x407250
mov edi, str.4588dhbxhs672hjka5645646fsdnjjxaasx
jmp 0x407250
mov edi, str.fhds673245546dsnncbbhs7773tsjj833gs
jmp 0x407250
mov edi, str.45ddhgs7774w15552c18454jw7377wee332
jmp 0x407250
mov edi, str.dsa454w8885c1hhhsgd77888hdbbnntsg66
jmp 0x407250
mov edi, str.860ce6515aea2965c84b96ba93388422290
jmp 0x407250
mov edi, str.ccfd5c04287711ff058aceb4315532f2b2a
jmp 0x407250
mov edi, str.6445c0afa764ffeef3cf82262490086a8c4
jmp 0x407250
mov edi, str.343af9e593f52fd217ca668ccb328942686
jmp 0x407250
mov edi, str.1f42b849ede5acce745asggzHg11d7f9922
jmp 0x407250
mov edi, str.986591f42b849ede5acce745a11d7f9922d
jmp 0x407250
mov edi, str.14b1175780b0859bfd045443f5b07ss4ed6
jmp 0x407250
mov edi, str.45dshhdbuw883chcghghs4548844c88sfjw
jmp 0x407250
mov edi, str.2f8b867c887cc4a0cdfcc431c5a5533bcc8
jmp 0x407250
mov edi, str.73ef3790abcd00a0ccb9889849a475f910c
jmp 0x407250
mov edi, str.0571958f2085b8c2e835a73ca984473ef37
jmp 0x407250
mov edi, str.27ae41e4649b934ca495991b3457852b855
jmp 0x407250
mov edi, str.e3b0c44298fc1c149afbf4swc899692427a
jmp 0x407250
mov edi, str.6a695ee3fdd45c8bec8e730e6def2671792
jmp 0x407250
mov edi, str.a6a2cef1e0d593612e59ad2e66a63fd95ee
jmp 0x407250
mov edi, str.53755730e18db24d09bc84ec61756ccfd87
jmp 0x407250
mov edi, str.017e755c61eb673c556ab6f5d6432553755
jmp 0x407250
mov edi, str.94efb3be4feacc2d5a081da833e011c2858
jmp 0x407250
mov edi, str.1a89ef1d67928c94e2fd28d56c9994efb3b
jmp 0x407250
mov edi, str.ce79b49712e32493c85a9569da1da38b5fa
jmp 0x407250
mov edi, str.dd26e4ef491109a1d16cd4cd22ed477a63e
jmp 0x407250
mov edi, str.340eadc977f483bf526ec92778247fadd26
jmp 0x407250
mov edi, str.3dcba706649f6295ade5581b34bb70289b0
jmp 0x407250
mov edi, str.db6ce4283fd4a43cb7552fdse4deaeb2975
jmp 0x407250
mov eax, 3
jmp 0x40716d
mov eax, 4
jmp 0x40716d
mov edi, str.bcc8ee66b77b6aec990d997b0c7a99d6297
jmp 0x407250
mov eax, 5
jmp 0x40716d
mov eax, 6
jmp 0x40716d
mov eax, 7
jmp 0x40716d
mov eax, 8
jmp 0x40716d
mov eax, 9
jmp 0x40716d
mov dword [esp], 2
call dword [0x423ecc]
mov dword [esp + 4], str.Failed_to_allocate_memory_n
mov dword [esp], eax
call sym._fprintf.constprop.0_3
jmp 0x40704f
mov eax, 0xa
jmp 0x40716d
mov dword [esp], 2
call dword [0x423ecc]
mov dword [esp + 4], str.Failed_to_allocate_memory_n
mov dword [esp], eax
call sym._fprintf.constprop.0_3
xor eax, eax
mov dword [esp + 0x3c], eax
jmp 0x4071e4