Function at 0x40f890
Capabilities:
Check http status code
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 0x439ab6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x3b8
mov eax, dword [0x44f00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x3ac], esi
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0x10]
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x3bc], eax
mov dword [ebp - 0x3c8], edx
test eax, eax
jne 0x40f8fc
mov eax, 0xfffffffd
jmp 0x410ac8
push ecx
lea ecx, [ebp - 0x294]
call fcn.00406ef0
mov dword [ebp - 4], 0
cmp byte [esi + 0x774], 0
je 0x40f93a
cmp dword [ebp - 0x280], 0x10
lea eax, [ebp - 0x294]
push 1
push dword [ebp - 0x284]
cmovae eax, dword [ebp - 0x294]
push eax
call fcn.004120f0
mov edi, dword [ebp - 0x284]
inc edi
lea esi, [edi*2 + 0x12]
push esi
call fcn.00421cc3
add esp, 4
mov dword [ebp - 0x3b0], eax
push esi
call fcn.00421cc3
add esp, 4
mov dword [ebp - 0x3c0], eax
push esi
push 0
push dword [ebp - 0x3b0]
call fcn.0041c210
add esp, 0xc
push esi
mov esi, dword [ebp - 0x3c0]
push 0
push esi
call fcn.0041c210
add esp, 0xc
lea eax, [ebp - 0x294]
cmp dword [ebp - 0x280], 0x10
cmovae eax, dword [ebp - 0x294]
push edi
push dword [ebp - 0x3b0]
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 - 0x3b0]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, esi
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x40f9d4
sub edi, ecx
mov byte [edi + esi], al
inc edi
mov eax, edi
and eax, 0x8000000f
jns 0x40f9f1
dec eax
or eax, 0xfffffff0
add eax, 1
je 0x40fa0a
mov byte [edi + esi], 0
inc edi
mov eax, edi
and eax, 0x8000000f
jns 0x40fa08
dec eax
or eax, 0xfffffff0
add eax, 1
jne 0x40f9f3
xor ecx, ecx
mov eax, edi
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.00421cc3
add esp, 4
mov dword [ebp - 0x3b8], eax
lea ecx, [edi + 1]
push ecx
push 0
push eax
call fcn.0041c210
mov ecx, dword [ebp - 0x3ac]
xorps xmm0, xmm0
add esp, 0xc
mov byte [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov edx, 0x11
mov esi, dword [ecx + 4]
lea ecx, [ebp - 0x28]
mov eax, ecx
sub esi, eax
lea eax, [edx + 0x7fffffed]
test eax, eax
je 0x40fa6f
mov al, byte [esi + ecx]
test al, al
je 0x40fa6f
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x40fa56
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov byte [eax], 0
lea eax, [ebp - 0x390]
push eax
mov eax, dword [ebp - 0x3ac]
mov ecx, dword [eax]
call fcn.004015a0
mov edx, dword [ebp - 0x3b8]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x3c0]
add esp, 4
push 1
push eax
lea eax, [ebp - 0x390]
push eax
push edi
call fcn.00402500
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.00421cc3
add esp, 0x14
mov dword [ebp - 0x3a0], eax
lea ecx, [esi + 5]
push ecx
push 0
push eax
call fcn.0041c210
add esp, 0xc
xor esi, esi
test edi, edi
jle 0x40fbf2
mov edx, dword [ebp - 0x3b8]
or eax, 0xffffffff
sub eax, edx
mov dword [ebp - 0x3b4], 2
mov dword [ebp - 0x3c4], eax
mov eax, 0xfffffffe
sub eax, edx
lea ecx, [edx + 2]
mov dword [ebp - 0x3a4], eax
mov edx, dword [ebp - 0x3a0]
nop dword [eax]
movzx eax, byte [ecx - 2]
shr eax, 2
mov al, byte [eax + 0x448cb0]
mov byte [esi + edx], al
lea eax, [esi + 1]
mov esi, dword [ebp - 0x3a0]
movsx edx, byte [ecx - 2]
add esi, eax
mov dword [ebp - 0x3a8], esi
and edx, 3
lea esi, [eax + 1]
shl edx, 4
mov eax, dword [ebp - 0x3c4]
add eax, ecx
cmp edi, eax
jle 0x4101c4
movzx eax, byte [ecx - 1]
shr eax, 4
or eax, edx
mov edx, dword [ebp - 0x3a8]
mov al, byte [eax + 0x448cb0]
mov byte [edx], al
movsx edx, byte [ecx - 1]
mov eax, dword [ebp - 0x3a0]
and edx, 0xf
add eax, esi
shl edx, 2
mov dword [ebp - 0x3a8], eax
cmp edi, dword [ebp - 0x3b4]
jle 0x4101a3
movzx eax, byte [ecx]
add dword [ebp - 0x3b4], 3
shr eax, 6
or eax, edx
mov edx, dword [ebp - 0x3a8]
mov al, byte [eax + 0x448cb0]
mov byte [edx], al
movsx eax, byte [ecx]
add ecx, 3
mov edx, dword [ebp - 0x3a0]
and eax, 0x3f
mov al, byte [eax + 0x448cb0]
mov byte [esi + edx + 1], al
add esi, 2
mov eax, dword [ebp - 0x3a4]
add eax, ecx
cmp eax, edi
jl 0x40fb30
mov edi, dword [ebp - 0x3a0]
mov byte [esi + edi], 0
add esi, 0x20
push esi
call fcn.00421cc3
add esp, 4
mov dword [ebp - 0x3a0], eax
push edi
push str._data_:__s_
push esi
mov esi, eax
push esi
call fcn.004035c0
mov ecx, esi
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fc25
sub ecx, edx
mov edx, dword [ebp - 0x3ac]
add edx, 0x23d
lea eax, [edx + 1]
mov dword [ebp - 0x3a4], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x40fc43
sub edx, dword [ebp - 0x3a4]
mov eax, dword [ebp - 0x3ac]
push ecx
push esi
push edx
add eax, 0x23d
push eax
push dword [ebp - 0x3bc]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov eax, dword [ebp - 0x3ac]
cmp byte [eax + 0x774], 0
je 0x40fddf
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x40fc81
push 0x104
lea eax, [ebp - 0x130]
sub esi, ecx
push 0
push eax
call fcn.0041c210
add esp, 0xc
lea eax, [ebp - 0x130]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str.BearSrceenShot.log
lea eax, [ebp - 0x130]
push 0x5c
push eax
call fcn.00422495
add esp, 8
mov edx, 0x13
lea ecx, [eax + 1]
call fcn.00403550
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
push 0
push eax
mov dword [ebp - 0x3b4], eax
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.004035c0
lea ecx, [ebp - 0x238]
add esp, 0x24
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fd68
push 0
push 0
sub ecx, edx
lea eax, [ebp - 0x238]
push ecx
push eax
push dword [ebp - 0x3b4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0
push 0x13
push str._Send_Cipher_Text:
push dword [ebp - 0x3b4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x3a0]
push 0
push 0
push esi
mov esi, dword [ebp - 0x3b4]
push eax
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]
mov esi, dword [ebp - 0x3a0]
push dword [ebp - 0x3b0]
call fcn.00421ca8
add esp, 4
push dword [ebp - 0x3c0]
call fcn.00421ca8
add esp, 4
push dword [ebp - 0x3b8]
call fcn.00421ca8
add esp, 4
push edi
call fcn.00421ca8
add esp, 4
push esi
call fcn.00421ca8
mov edi, dword [ebp - 0x3bc]
lea eax, [ebp - 0x394]
add esp, 4
mov dword [ebp - 0x394], 0
push 0
push eax
push 0
push 0x80000016
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov eax, dword [ebp - 0x394]
xor ecx, ecx
add eax, 2
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.00421cc3
mov ecx, dword [ebp - 0x394]
add esp, 4
add ecx, 2
mov esi, eax
push ecx
push 0
push esi
call fcn.0041c210
add esp, 0xc
lea eax, [ebp - 0x394]
push 0
push eax
push esi
push 0x80000016
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov eax, dword [ebp - 0x3ac]
cmp byte [eax + 0x774], 0
je 0x40fea7
push 0
push dword [ebp - 0x394]
push esi
call fcn.004120f0
push esi
call fcn.00421ca8
add esp, 4
mov dword [ebp - 0x394], 0
lea eax, [ebp - 0x394]
push 0
push eax
push 0
push 0x16
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov eax, dword [ebp - 0x394]
xor ecx, ecx
add eax, 2
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.00421cc3
mov ecx, dword [ebp - 0x394]
add esp, 4
add ecx, 2
mov esi, eax
mov dword [ebp - 0x3a8], esi
push ecx
push 0
push esi
call fcn.0041c210
add esp, 0xc
lea eax, [ebp - 0x394]
push 0
push eax
push esi
push 0x16
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov eax, dword [ebp - 0x3ac]
cmp byte [eax + 0x774], 0
je 0x41007d
mov eax, dword [ebp - 0x394]
push 0x104
mov dword [ebp - 0x3a4], eax
lea eax, [ebp - 0x130]
push 0
push eax
call fcn.0041c210
add esp, 0xc
lea eax, [ebp - 0x130]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str.BearSrceenShot.log
lea eax, [ebp - 0x130]
push 0x5c
push eax
call fcn.00422495
add esp, 8
mov edx, 0x13
lea ecx, [eax + 1]
call fcn.00403550
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.004035c0
lea ecx, [ebp - 0x238]
add esp, 0x24
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410012
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 - 0x3a4]
push dword [ebp - 0x3a8]
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]
mov esi, dword [ebp - 0x3a8]
push esi
call fcn.00421ca8
add esp, 4
mov dword [ebp - 0x264], 0
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x394], 0
mov dword [ebp - 0x398], 0
mov dword [ebp - 0x254], 0
push 0
push 0x44a524
mov dword [ebp - 0x250], 0xf
mov byte [ebp - 0x264], 0
call fcn.00406fc0
mov byte [ebp - 4], 1
push 0
push 0
lea eax, [ebp - 0x398]
mov dword [ebp - 0x24c], 0
push eax
push edi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov ecx, dword [ebp - 0x398]
test ecx, ecx
je 0x410225
xor eax, eax
add ecx, 2
setb al
neg eax
or eax, ecx
push eax
call fcn.00421cc3
mov ecx, dword [ebp - 0x398]
add esp, 4
add ecx, 2
mov esi, eax
mov dword [ebp - 0x3a8], esi
push ecx
push 0
push esi
call fcn.0041c210
add esp, 0xc
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 0x398]
push esi
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [ebp - 0x250]
mov edx, dword [ebp - 0x254]
sub ecx, edx
mov edi, dword [ebp - 0x24c]
mov dword [ebp - 0x3c4], eax
push edi
cmp edi, ecx
ja 0x4101e6
cmp dword [ebp - 0x250], 0x10
lea esi, [ebp - 0x264]
push dword [ebp - 0x3a8]
cmovae esi, dword [ebp - 0x264]
lea eax, [edx + edi]
add esi, edx
mov dword [ebp - 0x254], eax
push esi
call fcn.0041c3b0
mov byte [esi + edi], 0
add esp, 0xc
mov esi, dword [ebp - 0x3a8]
jmp 0x410200
mov al, byte [edx + 0x448cb0]
mov edx, dword [ebp - 0x3a8]
mov edi, dword [ebp - 0x3a0]
mov byte [edx], al
mov byte [esi + edi + 1], 0x3d
add esi, 2
jmp 0x40fbf8
mov al, byte [edx + 0x448cb0]
mov edx, dword [ebp - 0x3a8]
mov edi, dword [ebp - 0x3a0]
mov byte [edx], al
mov word [esi + edi], 0x3d3d
add esi, 2
jmp 0x40fbf8
push esi
mov byte [ebp - 0x3a4], 0
lea ecx, [ebp - 0x264]
push dword [ebp - 0x3a4]
push edi
call fcn.0040cac0
push esi
call fcn.00421ca8
add esp, 4
cmp dword [ebp - 0x3c4], 0
je 0x410225
cmp dword [ebp - 0x24c], 0
mov edi, dword [ebp - 0x3bc]
ja 0x4100d5
mov eax, dword [ebp - 0x3ac]
cmp byte [eax + 0x774], 0
je 0x410390
mov eax, dword [ebp - 0x254]
lea edi, [ebp - 0x264]
cmp dword [ebp - 0x250], 0x10
push 0x104
cmovae edi, dword [ebp - 0x264]
mov dword [ebp - 0x3a4], eax
lea eax, [ebp - 0x130]
push 0
push eax
call fcn.0041c210
add esp, 0xc
lea eax, [ebp - 0x130]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str.BearSrceenShot.log
lea eax, [ebp - 0x130]
push 0x5c
push eax
call fcn.00422495
add esp, 8
mov edx, 0x13
lea ecx, [eax + 1]
call fcn.00403550
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.004035c0
lea ecx, [ebp - 0x238]
add esp, 0x24
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410332
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 0x16
push str._Receive_Cipher_Text:
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0
push dword [ebp - 0x3a4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
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 - 0x3c8]
mov eax, ecx
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x4103a7
mov eax, dword [ecx]
mov byte [eax], 0
lea ecx, [ebp - 0x264]
cmp dword [ebp - 0x250], 0x10
cmovae ecx, dword [ebp - 0x264]
call fcn.00407c40
mov edi, eax
mov dword [ebp - 0x3b4], edi
test edi, edi
je 0x410402
mov esi, dword [edi + 8]
test esi, esi
je 0x4103fb
nop word [eax + eax]
mov ecx, dword [esi + 0x20]
mov edx, str.code
call fcn.00407230
test eax, eax
je 0x410497
mov esi, dword [esi]
test esi, esi
jne 0x4103e0
mov ecx, edi
call fcn.004072c0
or esi, 0xffffffff
mov edx, dword [ebp - 0x250]
cmp edx, 0x10
jb 0x41043f
mov ecx, dword [ebp - 0x264]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410435
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410ae8
push edx
push ecx
call fcn.00419332
add esp, 8
mov edx, dword [ebp - 0x280]
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0xf
mov byte [ebp - 0x264], 0
cmp edx, 0x10
jb 0x410ac6
mov ecx, dword [ebp - 0x294]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410abc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410ae8
jmp 0x410abc
cmp dword [esi + 0xc], 3
jne 0x4103fb
cmp dword [esi + 0x14], 0xc8
je 0x4104bb
mov ecx, edi
call fcn.004072c0
mov esi, 0xfffffffe
jmp 0x410405
mov esi, dword [edi + 8]
test esi, esi
je 0x4104eb
mov ecx, dword [esi + 0x20]
mov edx, str.data
call fcn.00407230
test eax, eax
je 0x4104e5
mov esi, dword [esi]
test esi, esi
jne 0x4104c2
mov ecx, edi
call fcn.004072c0
jmp 0x410405
cmp dword [esi + 0xc], 4
je 0x4104f9
mov ecx, edi
call fcn.004072c0
xor esi, esi
jmp 0x410405
mov edx, dword [esi + 0x10]
mov ecx, edx
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 0xf
mov byte [ebp - 0x27c], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410526
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x27c]
call fcn.00406fc0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x27c]
cmp dword [ebp - 0x268], 0x10
mov edi, dword [ebp - 0x27c]
mov ecx, dword [ebp - 0x26c]
cmovae eax, edi
dec eax
add eax, ecx
cmp byte [eax], 0x3d
jne 0x41056d
lea eax, [eax - 1]
dec ecx
cmp byte [eax], 0x3d
je 0x410564
lea eax, [ecx + ecx*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.00421cc3
add esp, 4
mov dword [ebp - 0x3a0], eax
lea ecx, [esi + 4]
push ecx
push 0
push eax
call fcn.0041c210
add esp, 0xc
lea esi, [ebp - 0x27c]
cmp dword [ebp - 0x268], 0x10
cmovae esi, edi
xor edi, edi
xor ah, ah
mov dword [ebp - 0x3a4], esi
xor ch, ch
mov byte [ebp - 0x39b], ah
xor al, al
mov byte [ebp - 0x39c], ch
xor dl, dl
mov byte [ebp - 0x39a], al
cmp dword [ebp - 0x26c], edi
jle 0x410761
mov eax, 0xfffffffe
add esi, 2
sub eax, dword [ebp - 0x3a4]
mov dword [ebp - 0x3c4], eax
nop dword [eax]
xor ecx, ecx
movzx eax, cl
mov dword [ebp - 0x3a4], eax
mov al, byte [esi - 2]
cmp al, byte [ecx + 0x448cb0]
movzx edx, dl
cmove edx, dword [ebp - 0x3a4]
inc ecx
cmp ecx, 0x40
jl 0x410602
mov al, byte [ebp - 0x39b]
mov dword [ebp - 0x3b0], edx
xor edx, edx
movzx eax, al
mov dword [ebp - 0x3a4], eax
mov al, byte [esi - 1]
cmp al, byte [edx + 0x448cb0]
movzx ecx, dl
cmovne ecx, dword [ebp - 0x3a4]
inc edx
mov al, cl
cmp edx, 0x40
jl 0x410632
mov byte [ebp - 0x39b], al
xor edx, edx
mov al, byte [ebp - 0x39c]
movzx eax, al
mov dword [ebp - 0x3a4], eax
mov al, byte [esi]
cmp al, byte [edx + 0x448cb0]
movzx ecx, dl
cmovne ecx, dword [ebp - 0x3a4]
inc edx
mov al, cl
cmp edx, 0x40
jl 0x410664
mov byte [ebp - 0x39c], al
xor edx, edx
mov al, byte [ebp - 0x39a]
nop word [eax + eax]
movzx eax, al
mov dword [ebp - 0x3a4], eax
mov al, byte [esi + 1]
cmp al, byte [edx + 0x448cb0]
mov eax, dword [ebp - 0x3a4]
movzx ecx, dl
cmovne ecx, eax
inc edx
mov al, cl
cmp edx, 0x40
jl 0x4106a0
mov ah, byte [ebp - 0x39b]
mov edx, dword [ebp - 0x3b0]
mov cl, ah
mov byte [ebp - 0x39a], al
mov al, dl
mov edx, dword [ebp - 0x3a0]
sar cl, 4
and cl, 3
shl al, 2
or cl, al
mov byte [edi + edx], cl
inc edi
cmp byte [esi], 0x3d
je 0x410761
mov ch, byte [ebp - 0x39c]
mov al, ah
mov cl, ch
shl al, 4
sar cl, 2
and cl, 0xf
or cl, al
mov byte [edi + edx], cl
inc edi
cmp byte [esi + 1], 0x3d
je 0x410761
mov al, byte [ebp - 0x39a]
mov cl, ch
and al, 0x3f
shl cl, 6
or cl, al
mov byte [ebp - 0x39b], ah
mov al, byte [ebp - 0x39a]
add esi, 4
mov byte [ebp - 0x39a], al
mov eax, dword [ebp - 0x3c4]
mov byte [edi + edx], cl
add eax, esi
mov edx, dword [ebp - 0x3b0]
inc edi
mov byte [ebp - 0x39c], ch
cmp eax, dword [ebp - 0x26c]
jl 0x410600
mov eax, dword [ebp - 0x3a0]
xor ecx, ecx
mov byte [edi + eax], 0
mov eax, edi
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.00421cc3
add esp, 4
mov ecx, eax
lea eax, [edi + 1]
mov dword [ebp - 0x3bc], ecx
mov dword [ebp - 0x3a8], eax
push eax
push 0
push ecx
call fcn.0041c210
add esp, 0xc
lea eax, [ebp - 0x390]
push 0xf0
push 0
push eax
call fcn.0041c210
mov esi, dword [ebp - 0x3ac]
lea eax, [ebp - 0x390]
add esp, 0xc
mov ecx, dword [esi]
push eax
call fcn.00401830
mov esi, dword [esi + 4]
lea ecx, [ebp - 0x28]
mov eax, ecx
add esp, 4
mov edx, 0x11
sub esi, eax
nop dword [eax + eax]
lea eax, [edx + 0x7fffffed]
test eax, eax
je 0x4107f9
mov al, byte [ecx + esi]
test al, al
je 0x4107f9
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4107e0
test edx, edx
lea eax, [ecx - 1]
mov edx, dword [ebp - 0x3bc]
cmovne eax, ecx
mov ecx, dword [ebp - 0x3a0]
push 0
mov byte [eax], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x390]
push eax
push edi
call fcn.00402500
mov edi, dword [ebp - 0x3a8]
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00421cc3
add esp, 0x14
mov dword [ebp - 0x3b8], eax
lea esi, [edi + edi]
push esi
push 0
push eax
call fcn.0041c210
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.00421cc3
add esp, 4
mov edi, eax
mov dword [ebp - 0x3c0], edi
push esi
push 0
push edi
call fcn.0041c210
add esp, 0xc
push dword [ebp - 0x3a8]
push dword [ebp - 0x3b8]
push 0xffffffffffffffff
push dword [ebp - 0x3bc]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push esi
push edi
push 0xffffffffffffffff
push dword [ebp - 0x3b8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, edi
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4108c6
mov ecx, dword [ebp - 0x3c8]
sub edx, esi
push edx
push edi
call fcn.00406fc0
mov eax, dword [ebp - 0x3ac]
cmp byte [eax + 0x774], 0
je 0x410a3b
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4108f4
push 0x104
lea eax, [ebp - 0x130]
sub esi, ecx
push 0
push eax
call fcn.0041c210
add esp, 0xc
lea eax, [ebp - 0x130]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str.BearSrceenShot.log
lea eax, [ebp - 0x130]
push 0x5c
push eax
call fcn.00422495
add esp, 8
mov edx, 0x13
lea ecx, [eax + 1]
call fcn.00403550
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 edi, eax
push 0
push edi
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.004035c0
lea ecx, [ebp - 0x238]
add esp, 0x24
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4109d7
push 0
push 0
sub ecx, edx
lea eax, [ebp - 0x238]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0
push 0x14
push str._Receive_Plan_Text:
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0
push esi
push dword [ebp - 0x3c0]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call esi
push 0
push 0
push 4
push str._r_n_r_n
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x3c0]
mov ecx, dword [ebp - 0x3b4]
call fcn.004072c0
push dword [ebp - 0x3a0]
call fcn.00421ca8
add esp, 4
push dword [ebp - 0x3bc]
call fcn.00421ca8
add esp, 4
push dword [ebp - 0x3b8]
call fcn.00421ca8
add esp, 4
push edi
call fcn.00421ca8
mov eax, dword [ebp - 0x268]
add esp, 4
xor esi, esi
cmp eax, 0x10
jb 0x410405
mov edx, dword [ebp - 0x27c]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x410aad
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410ae8
push ecx
push edx
call fcn.00419332
add esp, 8
jmp 0x410405
push edx
push ecx
call fcn.00419332
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.004192ef
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
call fcn.004219d1
int3