Function at 0x40be90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4614f7
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x4790bc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0xb0], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0xac], eax
mov dword [ebp - 0x68], 0
mov dword [ebp - 0xa8], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
push 4
mov byte [ebp - 4], 1
call fcn.0045f2b0
add esp, 4
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x40bf18
mov ecx, eax
call fcn.00412930
push 0
push 0x463c77
mov ecx, 0x479788
mov byte [ebp - 4], 1
mov byte [0x479784], 0
call fcn.004035c0
lea eax, [ebp - 0xac]
mov dword [ebp - 0xac], 0
push eax
call sub.SensApi.dll_IsNetworkAlive
test eax, eax
je 0x40c6a7
push 0x1024
mov dword [0x479860], 0
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push 0x1024
mov ebx, eax
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov byte [0x479784], 0
mov dword [ebp - 0x1c], 0x71647062
xor ecx, ecx
mov dword [ebp - 0x18], 0x1006071
mov al, cl
add al, 0x14
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 6
jb 0x40bf90
lea eax, [ebp - 0xa2]
mov byte [ebp - 0x15], 0
push eax
lea eax, [ebp - 0x16]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x40]
call fcn.004065c0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00413c80
add esp, 8
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 4
jb 0x40bfdb
mov edx, dword [edx]
mov dword [ebp - 0x50], 0x7e627675
xor ecx, ecx
mov dword [ebp - 0x4c], 0x1007777
nop dword [eax + eax]
mov al, cl
add al, 0x14
xor byte [ebp + ecx - 0x50], al
inc ecx
cmp ecx, 6
jb 0x40bff0
push edx
lea eax, [ebp - 0x50]
mov byte [ebp - 0x49], 0
push eax
lea ecx, [ebp - 0x68]
call fcn.00411ae0
mov ecx, dword [ebp - 0x6c]
mov byte [ebp - 4], 3
cmp ecx, 0x10
jb 0x40c043
mov edx, dword [ebp - 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c039
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c07f
push ecx
push edx
call fcn.0045f2e0
add esp, 8
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x40c08f
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c085
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40c085
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045f2e0
add esp, 8
lea eax, [ebp - 0x40]
push 0x47980c
push eax
call fcn.00413c80
add esp, 8
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 5
jb 0x40c0ae
mov edx, dword [edx]
mov dword [ebp - 0x20], 0x7f626075
xor ecx, ecx
mov dword [ebp - 0x1c], 0x7e7047
mov byte [ebp - 0x18], 1
mov al, cl
add al, 0x14
xor byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 7
jb 0x40c0c2
push edx
lea eax, [ebp - 0x20]
mov byte [ebp - 0x18], 0
push eax
lea ecx, [ebp - 0x68]
call fcn.00411ae0
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x40c11b
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c111
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40c111
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045f2e0
add esp, 8
sub esp, 0x18
mov ecx, esp
push 0x4797f4
call fcn.00402540
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xa1]
call fcn.00415910
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 6
jb 0x40c147
mov edx, dword [edx]
mov dword [ebp - 0x24], 0x7f626075
xor ecx, ecx
mov dword [ebp - 0x20], 0x726e777d
mov dword [ebp - 0x1c], 0x766a7c7f
mov dword [ebp - 0x18], 0x1004f4f
mov al, cl
add al, 0x14
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 0xe
jb 0x40c165
push edx
lea eax, [ebp - 0x24]
mov byte [ebp - 0x15], 0
push eax
lea ecx, [ebp - 0x68]
call fcn.00411ae0
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x40c1be
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c1b4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40c1b4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045f2e0
add esp, 8
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00402540
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xa1]
call fcn.00415910
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 7
jb 0x40c1e6
mov edx, dword [edx]
mov dword [ebp - 0x1c], 0x63776756
xor ecx, ecx
mov dword [ebp - 0x18], 0x100786e
mov al, cl
add al, 0x14
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 6
jb 0x40c1f6
push edx
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x15], 0
push eax
lea ecx, [ebp - 0x68]
call fcn.00411ae0
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x40c24f
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c245
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40c245
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045f2e0
add esp, 8
sub esp, 0x18
mov ecx, esp
push 0x4797c4
call fcn.00402540
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xa1]
call fcn.00415910
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 8
jb 0x40c27b
mov edx, dword [edx]
mov dword [ebp - 0x1c], 0x72657a78
xor ecx, ecx
mov word [ebp - 0x18], 0x6a
mov byte [ebp - 0x16], 1
nop
mov al, cl
add al, 0x14
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 5
jb 0x40c290
push edx
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x16], 0
push eax
lea ecx, [ebp - 0x68]
call fcn.00411ae0
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x40c2e9
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c2df
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40c2df
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045f2e0
add esp, 8
sub esp, 0x18
lea eax, [esi + 0x78]
mov ecx, esp
push eax
call fcn.00402540
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xa1]
call fcn.00415910
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 9
jb 0x40c314
mov edx, dword [edx]
mov dword [ebp - 0x1c], 0x7b787d77
xor ecx, ecx
mov dword [ebp - 0x18], 0x1007d71
mov al, cl
add al, 0x14
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 6
jb 0x40c324
push edx
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x15], 0
push eax
lea ecx, [ebp - 0x68]
call fcn.00411ae0
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x40c37d
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c373
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40c373
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045f2e0
add esp, 8
movaps xmm0, xmmword [0x463dd0]
lea ecx, [ebp - 0x68]
movups xmmword [ebp - 0x48], xmm0
push 0
movaps xmm0, xmmword [str.FBK_tKFG]
movups xmmword [ebp - 0x38], xmm0
mov word [ebp - 0x28], 0x100
call fcn.00411ca0
sub esp, 0x18
mov esi, eax
mov edx, esp
mov dword [ebp - 0x4c], esp
mov ecx, esi
mov dword [edx], 0
mov dword [edx + 0x10], 0
lea edi, [ecx + 1]
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c3c6
sub ecx, edi
push ecx
push esi
mov ecx, edx
call fcn.004022a0
push ebx
sub esp, 0x18
mov byte [ebp - 4], 0xa
mov edx, esp
mov dword [ebp - 0x18], edx
cmp byte [ebp - 0x27], 0
je 0x40c402
xor ecx, ecx
nop dword [eax]
mov al, cl
add al, 0x14
xor byte [ebp + ecx - 0x48], al
inc ecx
cmp ecx, 0x20
jb 0x40c3f0
mov byte [ebp - 0x27], 0
lea eax, [ebp - 0xa2]
mov ecx, edx
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004065c0
mov byte [ebp - 4], 1
call fcn.0040e5b0
add esp, 0x38
test al, al
jne 0x40c519
movaps xmm0, xmmword [0x463d40]
xor ecx, ecx
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], 0x1612435c
mov dword [ebp - 0x2c], 0x184b4d
mov byte [ebp - 0x28], 1
nop dword [eax + eax]
mov al, cl
add al, 0x14
xor byte [ebp + ecx - 0x40], al
inc ecx
cmp ecx, 0x17
jb 0x40c450
lea eax, [ebp - 0x40]
mov byte [ebp - 0x28], 0
push 4
push eax
call fcn.00412e10
mov eax, dword [0x479864]
add esp, 8
cmp eax, 3
ja case.0x40c47e.3
jmp dword [eax*4 + 0x40c7e8]
inc eax
mov byte [0x479784], 1
mov dword [0x479864], eax
lea ecx, [ebp - 0x1c]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x1c], 0x72647a57
push eax
mov word [ebp - 0x18], 0x100
call fcn.00407ea0
push eax
mov ecx, 0x479788
call fcn.00407db0
lea ecx, [ebp - 0x40]
call fcn.004014e0
mov esi, dword [ebp - 0xa8]
lea ecx, [ebp - 0x1c]
push esi
mov dword [ebp - 0x1c], 0x72647a57
mov word [ebp - 0x18], 0x100
call fcn.00407ea0
mov ecx, dword [ebp - 0x54]
cmp ecx, 0x10
jb 0x40c76d
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c763
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40c763
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov byte [0x479785], 1
mov dword [0x479864], 0
cmp ebx, 0x463cbc
jne 0x40c61b
movaps xmm0, xmmword [0x463d40]
xor ecx, ecx
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], 0x4611435c
mov dword [ebp - 0x2c], 0x184b19
mov byte [ebp - 0x28], 1
nop
mov al, cl
add al, 0x14
xor byte [ebp + ecx - 0x40], al
inc ecx
cmp ecx, 0x17
jb 0x40c550
lea eax, [ebp - 0x40]
mov byte [ebp - 0x28], 0
push 5
push eax
call fcn.00412e10
mov eax, dword [0x479868]
add esp, 8
cmp eax, 3
ja case.0x40c57e.3
jmp dword [eax*4 + 0x40c7f8]
inc eax
mov byte [0x479784], 1
mov dword [0x479868], eax
lea ecx, [ebp - 0x1c]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x1c], 0x72647a57
push eax
mov word [ebp - 0x18], 0x100
call fcn.00407ea0
push eax
mov ecx, 0x479788
call fcn.00407db0
lea ecx, [ebp - 0x40]
call fcn.004014e0
mov esi, dword [ebp - 0xa8]
lea ecx, [ebp - 0x1c]
push esi
mov dword [ebp - 0x1c], 0x72647a57
mov word [ebp - 0x18], 0x100
call fcn.00407ea0
mov ecx, dword [ebp - 0x54]
cmp ecx, 0x10
jb 0x40c76d
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c763
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40c763
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov byte [0x479785], 1
jmp 0x40c625
mov dword [0x479868], 0
push 0x1024
push 0
push dword [0x479858]
call sub.VCRUNTIME140.dll_memset
mov esi, dword [0x479858]
add esp, 0xc
mov edx, ebx
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [esi], al
lea esi, [esi + 1]
test al, al
jne 0x40c642
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [ebp - 0xb0]
add esp, 4
call fcn.004098e0
mov dword [ebp - 0x1c], 0x72647a57
xor ecx, ecx
mov word [ebp - 0x18], 0x100
mov al, cl
add al, 0x14
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 4
jb 0x40c674
mov esi, dword [ebp - 0xa8]
lea eax, [ebp - 0xa2]
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 0x17], 0
push eax
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.004065c0
jmp 0x40c4da
movaps xmm0, xmmword [0x463e10]
xor ecx, ecx
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0x48515141
mov dword [ebp - 0x30], 0x6f0a425a
mov dword [ebp - 0x2c], 0x405a43
mov byte [ebp - 0x28], 1
nop dword [eax]
mov al, cl
add al, 0x14
xor byte [ebp + ecx - 0x44], al
inc ecx
cmp ecx, 0x1b
jb 0x40c6d0
lea eax, [ebp - 0x44]
mov byte [ebp - 0x28], 0
push 4
push eax
call fcn.00412e10
mov eax, dword [0x479860]
add esp, 8
cmp eax, 3
ja case.0x40c6fa.3
jmp dword [eax*4 + 0x40c808]
inc eax
mov dword [0x479860], eax
jmp 0x40c4be
mov byte [0x479785], 1
xor ecx, ecx
mov dword [ebp - 0x20], 0x737a7453
mov dword [ebp - 0x1c], 0x7e686b77
mov word [ebp - 0x18], 0x100
nop dword [eax]
mov al, cl
add al, 0x14
xor byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 8
jb 0x40c730
mov esi, dword [ebp - 0xa8]
lea eax, [ebp - 0xa2]
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 0x17], 0
push eax
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.004065c0
jmp 0x40c4da
push ecx
push edx
call fcn.0045f2e0
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045f2ee
mov esp, ebp
pop ebp
ret 4