Function at 0x40c540
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e18d
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x4750bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x20]
mov dword [ebp - 4], 1
call fcn.00412bf0
mov esi, eax
mov dword [ebp - 0x30], 0x100633b
xor ecx, ecx
lea eax, [ecx + 0x51]
xor byte [ebp + ecx - 0x30], al
inc ecx
cmp ecx, 2
jb 0x40c585
lea eax, [ebp - 0x30]
mov byte [ebp - 0x2d], 0
push 5
push eax
call fcn.0040fa40
add esp, 8
test esi, esi
jne 0x40c5af
xor bl, bl
jmp 0x40c9ab
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
mov byte [ebp - 4], 3
xor ecx, ecx
mov dword [ebp - 0x30], 0x100603b
nop
lea eax, [ecx + 0x51]
xor byte [ebp + ecx - 0x30], al
inc ecx
cmp ecx, 2
jb 0x40c5f0
lea eax, [ebp - 0x30]
mov byte [ebp - 0x2d], 0
push 5
push eax
call fcn.0040fa40
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push 0x2712
push esi
call fcn.004160a0
add esp, 0x14
mov dword [ebp - 0x30], 0x100613b
xor ecx, ecx
nop
lea eax, [ecx + 0x51]
xor byte [ebp + ecx - 0x30], al
inc ecx
cmp ecx, 2
jb 0x40c630
lea eax, [ebp - 0x30]
mov byte [ebp - 0x2d], 0
push 5
push eax
call fcn.0040fa40
push 1
push 0x51
push esi
call fcn.004160a0
add esp, 0x14
mov dword [ebp - 0x34], 0x383f273f
mov dword [ebp - 0x30], 0x252225
xor ecx, ecx
mov byte [ebp - 0x2c], 1
nop dword [eax]
lea eax, [ecx + 0x51]
xor byte [ebp + ecx - 0x34], al
inc ecx
cmp ecx, 7
jb 0x40c670
lea eax, [ebp - 0x34]
mov byte [ebp - 0x2c], 0
push eax
push 0x2722
push esi
call fcn.004160a0
add esp, 0xc
mov dword [ebp - 0x30], 0x100663b
xor ecx, ecx
nop dword [eax]
lea eax, [ecx + 0x51]
xor byte [ebp + ecx - 0x30], al
inc ecx
cmp ecx, 2
jb 0x40c6a0
lea eax, [ebp - 0x30]
mov byte [ebp - 0x2d], 0
push 5
push eax
call fcn.0040fa40
push str.bratvapubgm.com
push 0x27c1
push esi
call fcn.004160a0
add esp, 0x14
mov dword [ebp - 0x30], 0x100673b
xor ecx, ecx
lea eax, [ecx + 0x51]
xor byte [ebp + ecx - 0x30], al
inc ecx
cmp ecx, 2
jb 0x40c6d8
lea eax, [ebp - 0x30]
mov byte [ebp - 0x2d], 0
push 5
push eax
call fcn.0040fa40
push 1
push 0x40
push esi
call fcn.004160a0
add esp, 0x14
mov dword [ebp - 0x30], 0x100643b
xor ecx, ecx
nop word [eax + eax]
lea eax, [ecx + 0x51]
xor byte [ebp + ecx - 0x30], al
inc ecx
cmp ecx, 2
jb 0x40c710
lea eax, [ebp - 0x30]
mov byte [ebp - 0x2d], 0
push 5
push eax
call fcn.0040fa40
cmp dword [ebp + 0x38], 0x10
lea eax, [ebp + 0x24]
cmovae eax, dword [ebp + 0x24]
push eax
push 0x271f
push esi
call fcn.004160a0
add esp, 0x14
mov dword [ebp - 0x30], 0x100653b
xor ecx, ecx
nop
lea eax, [ecx + 0x51]
xor byte [ebp + ecx - 0x30], al
inc ecx
cmp ecx, 2
jb 0x40c750
lea eax, [ebp - 0x30]
mov byte [ebp - 0x2d], 0
push 5
push eax
call fcn.0040fa40
push 0x40d360
push 0x4e2b
push esi
call fcn.004160a0
lea eax, [ebp - 0x4c]
push eax
push 0x2711
push esi
call fcn.004160a0
add esp, 0x20
mov dword [ebp - 0x30], 0x1006a3b
xor ecx, ecx
lea eax, [ecx + 0x51]
xor byte [ebp + ecx - 0x30], al
inc ecx
cmp ecx, 2
jb 0x40c797
lea eax, [ebp - 0x30]
mov byte [ebp - 0x2d], 0
push 5
push eax
call fcn.0040fa40
push 0x40b260
push 0x4e6f
push esi
call fcn.004160a0
lea eax, [ebp - 0x64]
push eax
push 0x272d
push esi
call fcn.004160a0
add esp, 0x20
mov dword [ebp - 0x30], 0x1006b3b
xor ecx, ecx
nop
lea eax, [ecx + 0x51]
xor byte [ebp + ecx - 0x30], al
inc ecx
cmp ecx, 2
jb 0x40c7e0
lea eax, [ebp - 0x30]
mov byte [ebp - 0x2d], 0
push 5
push eax
call fcn.0040fa40
push esi
call fcn.00412c30
add esp, 0xc
mov dword [ebp - 0x30], 0x63633b
mov esi, eax
mov byte [ebp - 0x2c], 1
xor ecx, ecx
lea eax, [ecx + 0x51]
xor byte [ebp + ecx - 0x30], al
inc ecx
cmp ecx, 3
jb 0x40c814
lea eax, [ebp - 0x30]
mov byte [ebp - 0x2c], 0
push 5
push eax
call fcn.0040fa40
add esp, 8
test esi, esi
jns 0x40c84f
mov eax, esi
neg eax
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.00406d30
add esp, 8
mov byte [eax - 1], 0x2d
dec eax
jmp 0x40c85c
lea eax, [ebp - 0x13]
push esi
push eax
call fcn.00406d30
add esp, 8
lea ecx, [ebp - 0x7d]
push ecx
lea ecx, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.004065c0
cmp dword [ebp - 0x68], 0x10
lea eax, [ebp - 0x7c]
push 5
cmovae eax, dword [ebp - 0x7c]
push eax
mov byte [ebp - 4], 4
call fcn.0040fa40
mov ecx, dword [ebp - 0x68]
add esp, 8
mov byte [ebp - 4], 3
cmp ecx, 0x10
jb 0x40c8c1
mov edx, dword [ebp - 0x7c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c8b7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40c8b7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045bf3a
add esp, 8
test esi, esi
je 0x40c8cc
mov edx, dword [ebp - 0x38]
xor bl, bl
jmp 0x40c91f
lea eax, [ebp - 0x30]
mov word [ebp - 0x30], 0x6a
push 5
push eax
mov byte [ebp - 0x2e], 0
call fcn.0040fa40
push 0x1024
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push 0x1024
push 0
push eax
mov dword [0x4757b0], eax
call sub.VCRUNTIME140.dll_memset
mov edx, dword [ebp - 0x38]
lea ecx, [ebp - 0x4c]
add esp, 0x18
cmp edx, 0x10
cmovae ecx, dword [ebp - 0x4c]
sub edi, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edi + ecx - 1], al
test al, al
jne 0x40c910
mov bl, 1
mov ecx, dword [ebp - 0x50]
cmp ecx, 0x10
jb 0x40c956
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c949
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ca13
push ecx
push edx
call fcn.0045bf3a
mov edx, dword [ebp - 0x38]
add esp, 8
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
cmp edx, 0x10
jb 0x40c999
mov ecx, dword [ebp - 0x4c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c98f
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ca13
push edx
push ecx
call fcn.0045bf3a
add esp, 8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x40c9db
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c9d1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ca13
push ecx
push edx
call fcn.0045bf3a
add esp, 8
mov ecx, dword [ebp + 0x38]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp ecx, 0x10
jb 0x40ca23
mov edx, dword [ebp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ca19
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40ca19
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045bf3a
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045bf48
mov esp, ebp
pop ebp
ret