Function at 0x40db40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46175d
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x4790bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0x39c], esi
mov dword [ebp - 4], 1
call fcn.00415fa0
mov edi, eax
test edi, edi
jne 0x40dba1
push eax
push 0x463c77
mov ecx, esi
call fcn.004035c0
mov byte [ebp - 0x385], 0
jmp 0x40e4fe
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0xf
mov byte [ebp - 0x7c], 0
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0xf
mov byte [ebp - 0xc4], 0
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleCursorInfo]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
mov dword [ebp - 0x64], 0
mov eax, 0x5b20
mov dword [ebp - 0x390], 0x32
mov dword [ebp - 0x54], 2
mov dword [ebp - 0x50], 0xf
mov word [ebp - 0x64], ax
mov byte [ebp - 0x62], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], 0xf
mov word [ebp - 0x4c], 0x3d
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 0xf
mov word [ebp - 0x34], 0x3d
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x84], 1
mov dword [ebp - 0x80], 0xf
mov word [ebp - 0x94], 0x2d
mov dword [ebp - 0xac], 0
mov dword [ebp - 0x9c], 1
mov dword [ebp - 0x98], 0xf
mov word [ebp - 0xac], 0x5d
lea eax, [ebp - 0x385]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x386]
mov byte [ebp - 0x386], 1
push eax
lea eax, [ebp - 0xac]
mov byte [ebp - 0x385], 1
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x390]
push eax
lea ecx, [ebp - 0x384]
call fcn.00406900
mov ecx, dword [ebp - 0x98]
mov byte [ebp - 4], 0xa
cmp ecx, 0x10
jb 0x40dd3d
mov edx, dword [ebp - 0xac]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40dd33
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e566
push ecx
push edx
call fcn.0045f2e0
add esp, 8
mov ecx, dword [ebp - 0x80]
mov byte [ebp - 4], 0xb
cmp ecx, 0x10
jb 0x40dd78
mov edx, dword [ebp - 0x94]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40dd6e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e566
push ecx
push edx
call fcn.0045f2e0
add esp, 8
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 0xc
cmp ecx, 0x10
jb 0x40ddb0
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40dda6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e566
push ecx
push edx
call fcn.0045f2e0
add esp, 8
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 0xd
cmp ecx, 0x10
jb 0x40dde8
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ddde
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e566
push ecx
push edx
call fcn.0045f2e0
add esp, 8
mov ecx, dword [ebp - 0x50]
mov byte [ebp - 4], 0xe
cmp ecx, 0x10
jb 0x40de20
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40de16
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e566
push ecx
push edx
call fcn.0045f2e0
add esp, 8
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0x18], 0x32
mov dword [ebp - 0xe4], 1
mov dword [ebp - 0xe0], 0xf
mov word [ebp - 0xf4], 0x5b
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xcc], 1
mov dword [ebp - 0xc8], 0xf
mov word [ebp - 0xdc], 0x3d
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 0xf
mov word [ebp - 0x34], 0x3e
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], 0xf
mov word [ebp - 0x4c], 0x20
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x50], 0xf
mov word [ebp - 0x64], 0x5d
push 0x20
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 0x13
call fcn.00401530
movups xmm0, xmmword [str.Extracting_Archive]
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0xfc], 0x12
movups xmmword [eax], xmm0
mov cx, word [0x463ca4]
mov word [eax + 0x10], cx
mov dword [ebp - 0xf8], 0x1f
mov byte [eax + 0x12], 0
lea ecx, [ebp - 0x390]
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x38c]
mov dword [ebp - 0x3a8], 2
sub eax, ecx
mov dword [ebp - 0x390], 0
mov dword [ebp - 0x394], eax
xor ecx, ecx
sar eax, 2
xor edx, edx
xor esi, esi
mov dword [ebp - 0x398], eax
test eax, eax
je 0x40dfba
cmp eax, 0x3fffffff
ja 0x40e597
shl eax, 2
cmp eax, 0x1000
jb 0x40df85
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x40e59c
push ecx
call fcn.0045f2b0
add esp, 4
test eax, eax
je 0x40e2cd
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x40df98
test eax, eax
je 0x40df96
push eax
call fcn.0045f2b0
add esp, 4
mov esi, eax
jmp 0x40df98
xor esi, esi
push dword [ebp - 0x394]
lea eax, [ebp - 0x390]
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x398]
add esp, 0xc
lea ecx, [esi + eax*4]
lea edx, [esi + eax*4]
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x80], ecx
mov eax, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x398], eax
mov dword [ebp - 0x394], 0
mov dword [ebp - 0x3a0], 0x64
mov dword [ebp - 0x3a4], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov byte [ebp - 0x386], 0
mov byte [ebp - 0x385], 0
mov byte [ebp - 0x387], 0
mov byte [ebp - 0x388], 0
mov byte [ebp - 0x389], 0
mov dword [ebp - 0x3ac], 0
lea eax, [ebp - 0x398]
mov byte [ebp - 4], 0x1c
push eax
lea eax, [ebp - 0x394]
mov dword [ebp - 0x124], 0
push eax
lea eax, [ebp - 0x3a0]
mov dword [ebp - 0x114], 0
push eax
lea eax, [ebp - 0x3a4]
mov dword [ebp - 0x110], 0xf
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x3a8]
push eax
lea eax, [ebp - 0x386]
push eax
lea eax, [ebp - 0x385]
push eax
lea eax, [ebp - 0x387]
push eax
lea eax, [ebp - 0x388]
push eax
lea eax, [ebp - 0x389]
push eax
lea eax, [ebp - 0x3ac]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x250]
call fcn.00406680
mov ecx, dword [ebp - 0x110]
cmp ecx, 0x10
jb 0x40e12e
mov edx, dword [ebp - 0x124]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e124
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e2cd
push ecx
push edx
call fcn.0045f2e0
add esp, 8
lea ecx, [ebp - 0xa0]
call fcn.004028c0
lea eax, [ebp - 0x15c]
xorps xmm0, xmm0
push 2
push eax
movlpd qword [ebp - 0x164], xmm0
call sub.MSVCP140.dll__Mtx_init_in_situ
mov eax, dword [ebp - 0x248]
add esp, 8
cmp dword [ebp - 0x24c], 0
mov byte [ebp - 0x12c], 0
cmove eax, dword [ebp - 0x244]
mov dword [ebp - 0x254], eax
lea ecx, [ebp - 0x88]
call fcn.004028c0
mov ecx, dword [ebp - 0xf8]
mov byte [ebp - 4], 0x20
cmp ecx, 0x10
jb 0x40e1bf
mov edx, dword [ebp - 0x10c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e1b5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e2cd
push ecx
push edx
call fcn.0045f2e0
add esp, 8
mov ecx, dword [ebp - 0x50]
mov byte [ebp - 4], 0x21
cmp ecx, 0x10
jb 0x40e1f7
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e1ed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e2cd
push ecx
push edx
call fcn.0045f2e0
add esp, 8
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 0x22
cmp ecx, 0x10
jb 0x40e22f
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e225
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e2cd
push ecx
push edx
call fcn.0045f2e0
add esp, 8
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 0x23
cmp ecx, 0x10
jb 0x40e263
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e259
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e2cd
push ecx
push edx
call fcn.0045f2e0
add esp, 8
mov ecx, dword [ebp - 0xc8]
mov byte [ebp - 4], 0x24
cmp ecx, 0x10
jb 0x40e29d
mov edx, dword [ebp - 0xdc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e293
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e2cd
push ecx
push edx
call fcn.0045f2e0
add esp, 8
mov ecx, dword [ebp - 0xe0]
mov byte [ebp - 4], 0x25
cmp ecx, 0x10
jb 0x40e2dd
mov edx, dword [ebp - 0xf4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e2d3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40e2d3
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
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push 0x2712
push edi
call fcn.00419450
push 1
push 0x51
push edi
call fcn.00419450
add esp, 0x18
mov dword [ebp - 0x1c], 0x7b7a607a
mov dword [ebp - 0x18], 0x686d68
xor ecx, ecx
mov byte [ebp - 0x14], 1
lea eax, [ecx + 0x14]
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 7
jb 0x40e315
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x14], 0
push eax
push 0x2722
push edi
call fcn.00419450
push str.bratvapubgm.com
push 0x27c1
push edi
call fcn.00419450
push 0x4041b0
push 0x4efb
push edi
call fcn.00419450
lea eax, [ebp - 0x384]
push eax
push 0x2749
push edi
call fcn.00419450
push 0
push 0x2b
push edi
call fcn.00419450
push 1
push 0x40
push edi
call fcn.00419450
add esp, 0x48
lea eax, [ebp + 0x24]
cmp dword [ebp + 0x38], 0x10
cmovae eax, dword [ebp + 0x24]
push eax
push 0x271f
push edi
call fcn.00419450
push 0x40f1c0
push 0x4e2b
push edi
call fcn.00419450
lea eax, [ebp - 0x7c]
push eax
push 0x2711
push edi
call fcn.00419450
push 0x40c860
push 0x4e6f
push edi
call fcn.00419450
lea eax, [ebp - 0xc4]
push eax
push 0x272d
push edi
call fcn.00419450
push edi
call fcn.00415fe0
add esp, 0x40
mov esi, eax
push edi
call fcn.00415f80
push 1
call fcn.0040e870
mov ecx, dword [ebp - 0x39c]
add esp, 8
test esi, esi
je 0x40e410
push 0
push 0x463c77
call fcn.004035c0
mov byte [ebp - 0x385], 0
jmp 0x40e42f
lea eax, [ebp - 0x7c]
cmp ecx, eax
je 0x40e428
cmp dword [ebp - 0x68], 0x10
push dword [ebp - 0x6c]
cmovae eax, dword [ebp - 0x7c]
push eax
call fcn.004035c0
mov byte [ebp - 0x385], 1
lea eax, [ebp - 0x15c]
push eax
call sub.MSVCP140.dll__Mtx_destroy_in_situ
add esp, 4
lea ecx, [ebp - 0x250]
call fcn.004029f0
lea eax, [ebp - 0x28c]
push eax
call sub.MSVCP140.dll__Mtx_destroy_in_situ
add esp, 4
lea ecx, [ebp - 0x380]
call fcn.004029f0
mov ecx, dword [ebp - 0xb0]
cmp ecx, 0x10
jb 0x40e49d
mov edx, dword [ebp - 0xc4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e493
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e566
push ecx
push edx
call fcn.0045f2e0
add esp, 8
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0xf
mov byte [ebp - 0xc4], 0
cmp ecx, 0x10
jb 0x40e4ec
mov edx, dword [ebp - 0x7c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e4e2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e566
push ecx
push edx
call fcn.0045f2e0
add esp, 8
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0xf
mov byte [ebp - 0x7c], 0
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x40e52e
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e524
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e566
push ecx
push edx
call fcn.0045f2e0
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 0x40e576
mov edx, dword [ebp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e56c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40e56c
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
mov al, byte [ebp - 0x385]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045f2ee
mov esp, ebp
pop ebp
ret
call fcn.0040b460
call fcn.00401440
int3