Function at 0x40f130
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 0x43af31
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x3a8
mov eax, dword [0x450008]
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 - 0x3ac], eax
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x3b4], ecx
test eax, eax
jne 0x40f190
mov eax, 0xfffffffd
jmp 0x410042
push edx
lea ecx, [ebp - 0x284]
call fcn.00404bb0
mov dword [ebp - 4], 0
cmp byte [0x451f2c], 0
je 0x40f1d0
cmp dword [ebp - 0x270], 0x10
lea ecx, [ebp - 0x284]
mov edx, dword [ebp - 0x274]
cmovae ecx, dword [ebp - 0x284]
push 1
call fcn.00411a90
add esp, 4
mov edi, dword [ebp - 0x274]
inc edi
lea esi, [edi*2 + 0x12]
push esi
call fcn.0041d395
add esp, 4
mov dword [ebp - 0x3a0], eax
push esi
call fcn.0041d395
add esp, 4
mov dword [ebp - 0x39c], eax
push esi
push 0
push dword [ebp - 0x3a0]
call fcn.00419080
add esp, 0xc
push esi
mov esi, dword [ebp - 0x39c]
push 0
push esi
call fcn.00419080
add esp, 0xc
lea eax, [ebp - 0x284]
cmp dword [ebp - 0x270], 0x10
cmovae eax, dword [ebp - 0x284]
push edi
push dword [ebp - 0x3a0]
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 - 0x3a0]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, esi
lea ecx, [edi + 1]
nop word [eax + eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x40f270
sub edi, ecx
mov byte [edi + esi], al
inc edi
mov eax, edi
and eax, 0x8000000f
jns 0x40f28d
dec eax
or eax, 0xfffffff0
add eax, 1
je 0x40f2a7
nop
mov byte [edi + esi], 0
inc edi
mov eax, edi
and eax, 0x8000000f
jns 0x40f2a5
dec eax
or eax, 0xfffffff0
add eax, 1
jne 0x40f290
xor ecx, ecx
mov eax, edi
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.0041d395
add esp, 4
lea ecx, [edi + 1]
mov esi, eax
mov dword [ebp - 0x398], esi
push ecx
push 0
push esi
call fcn.00419080
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.0040a960
lea eax, [ebp - 0x380]
push eax
call fcn.004010e0
mov ecx, dword [ebp - 0x39c]
lea eax, [ebp - 0x28]
add esp, 4
mov edx, esi
push 1
push eax
lea eax, [ebp - 0x380]
push eax
push edi
call fcn.00402030
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 fcn.0041d395
add esp, 0x14
mov dword [ebp - 0x390], eax
lea ecx, [esi + 5]
push ecx
push 0
push eax
call fcn.00419080
xor ecx, ecx
add esp, 0xc
xor esi, esi
mov dword [ebp - 0x3a4], ecx
test edi, edi
jle 0x40f4b3
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 - 0x390]
jmp 0x40f3a6
mov eax, dword [ebp - 0x398]
add ecx, eax
mov dword [ebp - 0x3a8], 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 - 0x3a8]
and ecx, 3
add eax, dword [ebp - 0x3b0]
mov edx, dword [ebp - 0x390]
shl ecx, 4
cmp edi, eax
jle 0x40f49d
mov edx, dword [ebp - 0x398]
mov eax, dword [ebp - 0x3a4]
movzx eax, byte [eax + edx + 1]
mov edx, dword [ebp - 0x390]
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 - 0x3a4]
movsx ecx, byte [eax + ecx + 1]
mov eax, dword [ebp - 0x3a8]
and ecx, 0xf
add eax, dword [ebp - 0x394]
shl ecx, 2
cmp edi, eax
jle 0x40f489
mov eax, dword [ebp - 0x3a4]
mov edx, dword [ebp - 0x398]
movzx eax, byte [eax + edx + 2]
mov edx, dword [ebp - 0x390]
shr eax, 6
or eax, ecx
mov ecx, dword [ebp - 0x3a4]
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 - 0x3a4], ecx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + edx + 3], al
add esi, 4
cmp ecx, edi
jl 0x40f3a0
jmp 0x40f4b9
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + edx + 2], al
mov byte [esi + edx + 3], 0x3d
add esi, 4
jmp 0x40f4b9
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + edx + 1], al
mov word [esi + edx + 2], 0x3d3d
add esi, 4
jmp 0x40f4b9
mov edx, dword [ebp - 0x390]
mov byte [esi + edx], 0
add esi, 0x20
push esi
call fcn.0041d395
mov edi, dword [ebp - 0x390]
add esp, 4
mov dword [ebp - 0x394], eax
push edi
push str._data_:__s_
push esi
mov esi, eax
push esi
call fcn.0040a8e0
mov edx, esi
add esp, 0x10
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x40f4f0
sub edx, ecx
mov ecx, 0x451f30
lea eax, [ecx + 1]
mov dword [ebp - 0x394], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f507
sub ecx, dword [ebp - 0x394]
push edx
push esi
push ecx
push 0x451f30
push dword [ebp - 0x3ac]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp byte [0x451f2c], 0
je 0x40f54b
mov edx, esi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x40f536
sub edx, ecx
mov ecx, esi
push 2
call fcn.00411a90
add esp, 4
push dword [ebp - 0x3a0]
call fcn.0041c805
add esp, 4
push dword [ebp - 0x39c]
call fcn.0041c805
add esp, 4
push dword [ebp - 0x398]
call fcn.0041c805
add esp, 4
push edi
call fcn.0041c805
add esp, 4
push esi
call fcn.0041c805
mov edi, dword [ebp - 0x3ac]
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 fcn.0041d395
mov ecx, dword [ebp - 0x384]
add esp, 4
add ecx, 2
mov esi, eax
push ecx
push 0
push esi
call fcn.00419080
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 [0x451f2c], 0
je 0x40f611
mov edx, dword [ebp - 0x384]
mov ecx, esi
push 0
call fcn.00411a90
add esp, 4
push esi
call fcn.0041c805
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 fcn.0041d395
mov ecx, dword [ebp - 0x384]
add esp, 4
add ecx, 2
mov dword [ebp - 0x3a0], eax
push ecx
push 0
push eax
call fcn.00419080
add esp, 0xc
lea eax, [ebp - 0x384]
push 0
push eax
push dword [ebp - 0x3a0]
push 0x16
push edi
call esi
cmp byte [0x451f2c], 0
je 0x40f7dd
mov eax, dword [ebp - 0x384]
push 0x104
mov dword [ebp - 0x394], eax
lea eax, [ebp - 0x130]
push 0
push eax
call fcn.00419080
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 fcn.0041db27
add esp, 4
mov edx, 0xc
push str.network.log
push ecx
lea ecx, [eax + 1]
call fcn.0040a960
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.0040a8e0
lea ecx, [ebp - 0x238]
add esp, 0x24
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f778
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 - 0x3a0]
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 - 0x3a0]
call fcn.0041c805
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 0x44c1d0
mov byte [ebp - 0x26c], 0
call fcn.00404e80
mov byte [ebp - 4], 1
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 0x40f939
xor eax, eax
add ecx, 2
setb al
neg eax
or eax, ecx
push eax
call fcn.0041d395
mov ecx, dword [ebp - 0x388]
add esp, 4
add ecx, 2
mov esi, eax
mov dword [ebp - 0x3a8], esi
push ecx
push 0
push esi
call fcn.00419080
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 0x40f8fa
cmp dword [ebp - 0x258], 0x10
lea esi, [ebp - 0x26c]
push dword [ebp - 0x3a8]
cmovae esi, dword [ebp - 0x26c]
lea eax, [edx + edi]
add esi, edx
mov dword [ebp - 0x25c], eax
push esi
call fcn.004197a0
mov byte [edi + esi], 0
add esp, 0xc
mov esi, dword [ebp - 0x3a8]
jmp 0x40f914
push esi
mov byte [ebp - 0x394], 0
lea ecx, [ebp - 0x26c]
push dword [ebp - 0x394]
push edi
call fcn.00405800
push esi
call fcn.0041c805
add esp, 4
cmp dword [ebp - 0x3b0], 0
je 0x40f939
cmp dword [ebp - 0x254], 0
mov edi, dword [ebp - 0x3ac]
ja 0x40f830
cmp byte [0x451f2c], 0
je 0x40faa2
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 fcn.00419080
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 fcn.0041db27
add esp, 4
mov edx, 0xc
push str.network.log
push ecx
lea ecx, [eax + 1]
call fcn.0040a960
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.0040a8e0
lea ecx, [ebp - 0x238]
add esp, 0x24
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fa47
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 0x40fab9
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 fcn.0041d395
mov edi, eax
add esp, 4
mov dword [ebp - 0x3b0], edi
test edi, edi
je 0x40fb41
xorps xmm0, xmm0
movups xmmword [edi], xmm0
movups xmmword [edi + 0x10], xmm0
movq qword [edi + 0x20], xmm0
test esi, esi
je 0x40fb0f
nop dword [eax]
mov al, byte [esi]
test al, al
je 0x40fb0f
cmp al, 0x20
ja 0x40fb0f
add esi, 1
jne 0x40fb00
mov edx, esi
mov ecx, edi
call fcn.004142c0
test eax, eax
je 0x40fb3a
mov esi, dword [edi + 8]
test esi, esi
je 0x40fb3a
mov ecx, dword [esi + 0x20]
mov edx, str.code
call fcn.00413cd0
test eax, eax
je 0x40fb81
mov esi, dword [esi]
test esi, esi
jne 0x40fb23
mov ecx, edi
call fcn.00413d60
or esi, 0xffffffff
mov edx, dword [ebp - 0x258]
cmp edx, 0x10
jb 0x40ffef
mov ecx, dword [ebp - 0x26c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ffe5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410060
jmp 0x40ffe5
test esi, esi
je 0x40fb3a
cmp dword [esi + 0xc], 3
jne 0x40fb3a
cmp dword [esi + 0x14], 0xc8
mov ecx, edi
je 0x40fba2
call fcn.00413d60
mov esi, 0xfffffffe
jmp 0x40fb44
mov edx, str.data
call fcn.004146a0
test eax, eax
jne 0x40fbbb
mov ecx, edi
call fcn.00413d60
xor esi, esi
jmp 0x40fb44
cmp dword [eax + 0xc], 4
je 0x40fbcf
mov ecx, edi
call fcn.00413d60
xor esi, esi
jmp 0x40fb44
push dword [eax + 0x10]
lea ecx, [ebp - 0x250]
call fcn.00404b70
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 0x40fc0e
dec eax
cmp byte [eax + ecx - 1], 0x3d
je 0x40fc06
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 fcn.0041d395
add esp, 4
mov dword [ebp - 0x3a0], eax
lea ecx, [esi + 4]
push ecx
push 0
push eax
call fcn.00419080
add esp, 0xc
lea ecx, [ebp - 0x250]
cmp dword [ebp - 0x23c], 0x10
cmovae ecx, edi
xor edi, edi
mov dword [ebp - 0x39c], edi
mov dword [ebp - 0x390], edi
cmp dword [ebp - 0x240], edi
jle 0x40fe10
mov dl, byte [ebp - 0x38f]
lea esi, [ecx + 2]
mov eax, 0xfffffffe
mov dword [ebp - 0x3a4], edx
sub eax, ecx
mov dword [ebp - 0x394], eax
mov al, byte [ebp - 0x38d]
mov dword [ebp - 0x39c], eax
mov al, byte [ebp - 0x38e]
mov dword [ebp - 0x398], eax
mov al, byte [ebp - 0x390]
mov dword [ebp - 0x390], eax
mov edx, dword [ebp - 0x390]
xor ecx, ecx
nop word [eax + eax]
movzx edx, dl
mov dword [ebp - 0x390], edx
mov dl, byte [esi - 2]
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 0x40fcc0
mov edx, dword [ebp - 0x3a4]
xor ecx, ecx
movzx edx, dl
mov dword [ebp - 0x3a4], edx
mov dl, byte [esi - 1]
cmp dl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [ebp - 0x3a4]
movzx eax, cl
cmove edx, eax
inc ecx
mov dword [ebp - 0x3a4], edx
cmp ecx, 0x40
jl 0x40fcf2
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 0x40fd24
mov edx, dword [ebp - 0x39c]
xor ecx, ecx
nop word [eax + eax]
movzx edx, dl
mov dword [ebp - 0x39c], edx
mov dl, byte [esi + 1]
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 0x40fd60
mov edx, dword [ebp - 0x3a4]
mov cl, dl
mov eax, dword [ebp - 0x390]
sar cl, 4
shl al, 2
and cl, 3
or cl, al
mov eax, dword [ebp - 0x3a0]
mov byte [edi + eax], cl
inc edi
cmp byte [esi], 0x3d
je 0x40fe0a
mov cl, byte [ebp - 0x398]
mov al, dl
sar cl, 2
shl al, 4
and cl, 0xf
or cl, al
mov eax, dword [ebp - 0x3a0]
mov byte [edi + eax], cl
inc edi
cmp byte [esi + 1], 0x3d
je 0x40fe0a
mov al, byte [ebp - 0x398]
add esi, 4
mov ecx, dword [ebp - 0x39c]
shl al, 6
and cl, 0x3f
or cl, al
mov eax, dword [ebp - 0x3a0]
mov byte [edi + eax], cl
inc edi
mov eax, dword [ebp - 0x394]
add eax, esi
cmp eax, dword [ebp - 0x240]
jl 0x40fcb2
mov dword [ebp - 0x39c], edi
mov esi, dword [ebp - 0x3a0]
xor ecx, ecx
mov eax, edi
add eax, 1
setb cl
mov byte [edi + esi], 0
neg ecx
or ecx, eax
push ecx
call fcn.0041d395
add esp, 4
mov dword [ebp - 0x3a8], eax
inc edi
push edi
push 0
push eax
call fcn.00419080
add esp, 0xc
lea eax, [ebp - 0x380]
push 0xf0
push 0
push eax
call fcn.00419080
add esp, 0xc
lea eax, [ebp - 0x380]
push eax
call fcn.00401360
push str.dmYjExMmQtZTk5NC
push ecx
mov edx, 0x11
lea ecx, [ebp - 0x28]
call fcn.0040a960
mov edx, dword [ebp - 0x3a8]
lea eax, [ebp - 0x28]
push 0
push eax
lea eax, [ebp - 0x380]
mov ecx, esi
push eax
push dword [ebp - 0x39c]
call fcn.00402030
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041d395
add esp, 0x14
mov dword [ebp - 0x3ac], eax
lea esi, [edi + edi]
push esi
push 0
push eax
call fcn.00419080
xor ecx, ecx
add esp, 0xc
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041d395
add esp, 4
mov dword [ebp - 0x394], eax
push esi
push 0
push eax
call fcn.00419080
add esp, 0xc
push edi
push dword [ebp - 0x3ac]
mov edi, dword [ebp - 0x3a8]
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 - 0x3ac]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 0x3b4]
push esi
call fcn.00404e50
cmp byte [0x451f2c], 0
je 0x40ff65
mov edx, esi
lea ecx, [edx + 1]
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x40ff50
sub edx, ecx
mov ecx, esi
push 4
call fcn.00411a90
add esp, 4
mov ecx, dword [ebp - 0x3b0]
call fcn.00413d60
push dword [ebp - 0x3a0]
call fcn.0041c805
add esp, 4
push edi
call fcn.0041c805
add esp, 4
push dword [ebp - 0x3ac]
call fcn.0041c805
add esp, 4
push esi
call fcn.0041c805
mov eax, dword [ebp - 0x23c]
add esp, 4
xor esi, esi
cmp eax, 0x10
jb 0x40fb44
mov edx, dword [ebp - 0x250]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ffd6
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410065
push ecx
push edx
call fcn.004162d7
add esp, 8
jmp 0x40fb44
push edx
push ecx
call fcn.004162d7
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 0x410040
mov ecx, dword [ebp - 0x284]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410036
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41006a
push edx
push ecx
call fcn.004162d7
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.00416291
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0041ca55
call fcn.0041ca55
call fcn.0041ca55
int3