Function at 0x40b6b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x460597
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x4780bc]
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.0045e3f0
add esp, 4
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x40b738
mov ecx, eax
call fcn.00411aa0
push 0
push 0x462c8f
mov ecx, 0x478788
mov byte [ebp - 4], 1
mov byte [0x478784], 0
call fcn.004038d0
lea eax, [ebp - 0xac]
mov dword [ebp - 0xac], 0
push eax
call sub.SensApi.dll_IsNetworkAlive
test eax, eax
je 0x40bec7
push 0x1024
mov dword [0x478860], 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 [0x478784], 0
mov dword [ebp - 0x1c], 0xd4c3d5d9
xor ecx, ecx
mov dword [ebp - 0x18], 0x100cdda
mov al, cl
sub al, 0x51
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 6
jb 0x40b7b0
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.004063e0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00412df0
add esp, 8
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 4
jb 0x40b7fb
mov edx, dword [edx]
mov dword [ebp - 0x50], 0xdbc5d3ce
xor ecx, ecx
mov dword [ebp - 0x4c], 0x100dadc
nop dword [eax + eax]
mov al, cl
sub al, 0x51
xor byte [ebp + ecx - 0x50], al
inc ecx
cmp ecx, 6
jb 0x40b810
push edx
lea eax, [ebp - 0x50]
mov byte [ebp - 0x49], 0
push eax
lea ecx, [ebp - 0x68]
call fcn.00410c50
mov ecx, dword [ebp - 0x6c]
mov byte [ebp - 4], 3
cmp ecx, 0x10
jb 0x40b863
mov edx, dword [ebp - 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b859
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b89f
push ecx
push edx
call fcn.0045e420
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 0x40b8af
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b8a5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40b8a5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045e420
add esp, 8
lea eax, [ebp - 0x40]
push 0x47880c
push eax
call fcn.00412df0
add esp, 8
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 5
jb 0x40b8ce
mov edx, dword [edx]
mov dword [ebp - 0x20], 0xdac5c5ce
xor ecx, ecx
mov dword [ebp - 0x1c], 0xd1ddec
mov byte [ebp - 0x18], 1
mov al, cl
sub al, 0x51
xor byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 7
jb 0x40b8e2
push edx
lea eax, [ebp - 0x20]
mov byte [ebp - 0x18], 0
push eax
lea ecx, [ebp - 0x68]
call fcn.00410c50
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x40b93b
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b931
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40b931
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045e420
add esp, 8
sub esp, 0x18
mov ecx, esp
push 0x4787f4
call fcn.00402850
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xa1]
call fcn.00414a80
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 6
jb 0x40b967
mov edx, dword [edx]
mov dword [ebp - 0x24], 0xdac5c5ce
xor ecx, ecx
mov dword [ebp - 0x20], 0xdfc1dad6
mov dword [ebp - 0x1c], 0xd3cdd9d4
mov dword [ebp - 0x18], 0x100d2d4
mov al, cl
sub al, 0x51
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 0xe
jb 0x40b985
push edx
lea eax, [ebp - 0x24]
mov byte [ebp - 0x15], 0
push eax
lea ecx, [ebp - 0x68]
call fcn.00410c50
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x40b9de
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b9d4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40b9d4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045e420
add esp, 8
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00402850
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xa1]
call fcn.00414a80
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 7
jb 0x40ba06
mov edx, dword [edx]
mov dword [ebp - 0x1c], 0xc6d0c2ed
xor ecx, ecx
mov dword [ebp - 0x18], 0x100d5c5
mov al, cl
sub al, 0x51
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 6
jb 0x40ba16
push edx
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x15], 0
push eax
lea ecx, [ebp - 0x68]
call fcn.00410c50
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x40ba6f
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ba65
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40ba65
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045e420
add esp, 8
sub esp, 0x18
mov ecx, esp
push 0x4787c4
call fcn.00402850
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xa1]
call fcn.00414a80
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 8
jb 0x40ba9b
mov edx, dword [edx]
mov dword [ebp - 0x1c], 0xd7c2dfc3
xor ecx, ecx
mov word [ebp - 0x18], 0xc1
mov byte [ebp - 0x16], 1
nop
mov al, cl
sub al, 0x51
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 5
jb 0x40bab0
push edx
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x16], 0
push eax
lea ecx, [ebp - 0x68]
call fcn.00410c50
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x40bb09
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40baff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40baff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045e420
add esp, 8
sub esp, 0x18
lea eax, [esi + 0x78]
mov ecx, esp
push eax
call fcn.00402850
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xa1]
call fcn.00414a80
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 9
jb 0x40bb34
mov edx, dword [edx]
mov dword [ebp - 0x1c], 0xdedfd8cc
xor ecx, ecx
mov dword [ebp - 0x18], 0x100d0da
mov al, cl
sub al, 0x51
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 6
jb 0x40bb44
push edx
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x15], 0
push eax
lea ecx, [ebp - 0x68]
call fcn.00410c50
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x40bb9d
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bb93
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40bb93
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045e420
add esp, 8
movaps xmm0, xmmword [0x462e00]
lea ecx, [ebp - 0x68]
movups xmmword [ebp - 0x48], xmm0
push 0
movaps xmm0, xmmword [0x462e40]
movups xmmword [ebp - 0x38], xmm0
mov word [ebp - 0x28], 0x100
call fcn.00410e10
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 0x40bbe6
sub ecx, edi
push ecx
push esi
mov ecx, edx
call fcn.004025b0
push ebx
sub esp, 0x18
mov byte [ebp - 4], 0xa
mov edx, esp
mov dword [ebp - 0x18], edx
cmp byte [ebp - 0x27], 0
je 0x40bc22
xor ecx, ecx
nop dword [eax]
mov al, cl
sub al, 0x51
xor byte [ebp + ecx - 0x48], al
inc ecx
cmp ecx, 0x20
jb 0x40bc10
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.004063e0
mov byte [ebp - 4], 1
call fcn.0040d760
add esp, 0x38
test al, al
jne 0x40bd39
movaps xmm0, xmmword [0x462d70]
xor ecx, ecx
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], 0xf3f5a6c7
mov dword [ebp - 0x2c], 0xf7a6a6
mov byte [ebp - 0x28], 1
nop dword [eax + eax]
mov al, cl
sub al, 0x51
xor byte [ebp + ecx - 0x40], al
inc ecx
cmp ecx, 0x17
jb 0x40bc70
lea eax, [ebp - 0x40]
mov byte [ebp - 0x28], 0
push 4
push eax
call fcn.00411f80
mov eax, dword [0x478864]
add esp, 8
cmp eax, 3
ja case.0x40bc9e.3
jmp dword [eax*4 + 0x40c008]
inc eax
mov byte [0x478784], 1
mov dword [0x478864], eax
lea ecx, [ebp - 0x1c]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x1c], 0xd7c3dfec
push eax
mov word [ebp - 0x18], 0x100
call fcn.004077d0
push eax
mov ecx, 0x478788
call fcn.004076e0
lea ecx, [ebp - 0x40]
call fcn.004017f0
mov esi, dword [ebp - 0xa8]
lea ecx, [ebp - 0x1c]
push esi
mov dword [ebp - 0x1c], 0xd7c3dfec
mov word [ebp - 0x18], 0x100
call fcn.004077d0
mov ecx, dword [ebp - 0x54]
cmp ecx, 0x10
jb 0x40bf8d
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bf83
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40bf83
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov byte [0x478785], 1
mov dword [0x478864], 0
cmp ebx, 0x462cec
jne 0x40be3b
movaps xmm0, xmmword [0x462d70]
xor ecx, ecx
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], 0xa3f6a6c7
mov dword [ebp - 0x2c], 0xf7a6f2
mov byte [ebp - 0x28], 1
nop
mov al, cl
sub al, 0x51
xor byte [ebp + ecx - 0x40], al
inc ecx
cmp ecx, 0x17
jb 0x40bd70
lea eax, [ebp - 0x40]
mov byte [ebp - 0x28], 0
push 5
push eax
call fcn.00411f80
mov eax, dword [0x478868]
add esp, 8
cmp eax, 3
ja case.0x40bd9e.3
jmp dword [eax*4 + 0x40c018]
inc eax
mov byte [0x478784], 1
mov dword [0x478868], eax
lea ecx, [ebp - 0x1c]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x1c], 0xd7c3dfec
push eax
mov word [ebp - 0x18], 0x100
call fcn.004077d0
push eax
mov ecx, 0x478788
call fcn.004076e0
lea ecx, [ebp - 0x40]
call fcn.004017f0
mov esi, dword [ebp - 0xa8]
lea ecx, [ebp - 0x1c]
push esi
mov dword [ebp - 0x1c], 0xd7c3dfec
mov word [ebp - 0x18], 0x100
call fcn.004077d0
mov ecx, dword [ebp - 0x54]
cmp ecx, 0x10
jb 0x40bf8d
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bf83
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40bf83
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov byte [0x478785], 1
jmp 0x40be45
mov dword [0x478868], 0
push 0x1024
push 0
push dword [0x478858]
call sub.VCRUNTIME140.dll_memset
mov esi, dword [0x478858]
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 0x40be62
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.00409210
mov dword [ebp - 0x1c], 0xd7c3dfec
xor ecx, ecx
mov word [ebp - 0x18], 0x100
mov al, cl
sub al, 0x51
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 4
jb 0x40be94
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.004063e0
jmp 0x40bcfa
movaps xmm0, xmmword [0x462e50]
xor ecx, ecx
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0xadb6b4da
mov dword [ebp - 0x30], 0x82e5afb1
mov dword [ebp - 0x2c], 0xa7bfa8
mov byte [ebp - 0x28], 1
nop dword [eax]
mov al, cl
sub al, 0x51
xor byte [ebp + ecx - 0x44], al
inc ecx
cmp ecx, 0x1b
jb 0x40bef0
lea eax, [ebp - 0x44]
mov byte [ebp - 0x28], 0
push 4
push eax
call fcn.00411f80
mov eax, dword [0x478860]
add esp, 8
cmp eax, 3
ja case.0x40bf1a.3
jmp dword [eax*4 + 0x40c028]
inc eax
mov dword [0x478860], eax
jmp 0x40bcde
mov byte [0x478785], 1
xor ecx, ecx
mov dword [ebp - 0x20], 0xd6ddd1e8
mov dword [ebp - 0x1c], 0xd3c7c6dc
mov word [ebp - 0x18], 0x100
nop dword [eax]
mov al, cl
sub al, 0x51
xor byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 8
jb 0x40bf50
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.004063e0
jmp 0x40bcfa
push ecx
push edx
call fcn.0045e420
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.0045e42e
mov esp, ebp
pop ebp
ret 4