Function at 0x5f6990
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7aeecd
mov eax, dword fs:[0]
push eax
sub esp, 0x2e8
mov eax, dword [0x82f184]
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, ecx
mov dword [ebp - 0x280], esi
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x2cc], edi
mov dword [ebp - 0x284], edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
xor ecx, ecx
mov dword [ebp - 0xa0], 0x27
mov dword [ebp - 0x9c], 0xcb00e4
mov dword [ebp - 0x98], 0xc800df
mov dword [ebp - 0x94], 0xc800d3
mov dword [ebp - 0x90], 0xdc00cc
mov dword [ebp - 0x8c], 0xb200a5
mov dword [ebp - 0x88], 0xa7009e
mov dword [ebp - 0x84], 0xa300a1
mov dword [ebp - 0x80], 0xb200a7
mov dword [ebp - 0x7c], 0xbd00a4
mov dword [ebp - 0x78], 0xbb0095
mov dword [ebp - 0x74], 0xbf00ad
mov dword [ebp - 0x70], 0xa100ba
mov dword [ebp - 0x6c], 0xa300b5
mov dword [ebp - 0x68], 0xb0008d
mov dword [ebp - 0x64], 0xbb00bb
mov dword [ebp - 0x60], 0xb200a2
mov dword [ebp - 0x5c], 0xad00b6
mov dword [ebp - 0x58], 0xb100f4
mov dword [ebp - 0x54], 0xb200af
mov dword [ebp - 0x50], 0xdf00b0
nop dword [eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x9c], ax
inc ecx
mov eax, dword [ebp - 0xa0]
cmp ecx, eax
jb 0x5f6ab0
xor ecx, ecx
mov word [ebp + eax*2 - 0x9c], cx
lea ecx, [ebp - 0x188]
mov eax, dword [esi + 0xb8]
add eax, 0xcc
push eax
call fcn.00404120
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1a0]
mov eax, dword [esi + 0xb8]
add eax, 0x6c
push eax
call fcn.00404120
push 0x7cd374
lea eax, [ebp - 0x1a0]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x2e4]
push eax
call fcn.00408060
lea ecx, [ebp - 0x188]
mov byte [ebp - 4], 3
push ecx
push eax
lea eax, [ebp - 0x2a8]
push eax
call fcn.00413490
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.00408060
add esp, 0x24
lea ecx, [ebp - 0x2a8]
call fcn.00404490
lea ecx, [ebp - 0x2e4]
call fcn.00404490
lea ecx, [ebp - 0x1a0]
call fcn.00404490
lea ecx, [ebp - 0x188]
call fcn.00404490
xor eax, eax
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 0x2a0], 7
mov word [ebp - 0x2b4], ax
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x294], eax
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x2b4]
call fcn.00403b80
lea eax, [ebp - 0x2b4]
mov byte [ebp - 4], 0xc
push eax
call fcn.00418540
add esp, 4
mov byte [ebp - 4], 9
test al, al
lea ecx, [ebp - 0x29c]
sete byte [ebp - 0x25d]
call fcn.00404220
lea ecx, [ebp - 0x2b4]
call fcn.00404490
cmp byte [ebp - 0x25d], 0
je 0x5f6c92
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0xc8]
mov dword [edi], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 8], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.00404490
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x5f75e3
mov edx, dword [ebp - 0x18]
push ecx
call fcn.005b6c90
mov ecx, dword [ebp - 0x14]
mov eax, 0x51eb851f
mov esi, dword [ebp - 0x1c]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x64
mov eax, esi
cmp ecx, 0x1000
jb 0x5f75d9
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x5f75d9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
xor eax, eax
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 0x2a0], 7
mov word [ebp - 0x2b4], ax
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x294], eax
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x2b4]
call fcn.00403b80
lea eax, [ebp - 0x2b4]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.00418020
add esp, 8
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 0x11
call fcn.00404220
lea ecx, [ebp - 0x2b4]
call fcn.00404490
xorps xmm0, xmm0
lea ecx, [ebp - 0x4c]
push 0
movups xmmword [ebp - 0x4c], xmm0
movq qword [ebp - 0x3c], xmm0
call fcn.00770fe0
push 0x74
lea eax, [ebp - 0x25c]
mov byte [ebp - 4], 0x12
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x25c]
call fcn.00773690
push 1
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 0x13
push eax
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x25c]
call fcn.00774de0
test al, al
jne 0x5f6e11
mov eax, dword [ebp - 0x1c]
mov dword [edi], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 8], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x25c]
call fcn.00430850
lea ecx, [ebp - 0x4c]
call fcn.007711e0
lea ecx, [ebp - 0x140]
call fcn.00407a10
lea ecx, [ebp - 0xc8]
call fcn.00404490
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x5f75e3
mov edx, dword [ebp - 0x18]
push ecx
call fcn.005b6c90
mov ecx, dword [ebp - 0x14]
mov eax, 0x51eb851f
mov esi, dword [ebp - 0x1c]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x64
mov eax, esi
cmp ecx, 0x1000
jb 0x5f75d9
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x5f75d9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
lea ecx, [ebp - 0x4c]
call fcn.00772ad0
test al, al
jne 0x5f6e2d
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.00406980
jmp 0x5f6d8d
xorps xmm0, xmm0
mov dword [ebp - 0x2c8], 0xe
movups xmmword [ebp - 0xe0], xmm0
lea ecx, [ebp - 0x2c8]
movq qword [ebp - 0xd0], xmm0
movaps xmm0, xmmword [0x7e3610]
movups xmmword [ebp - 0x2c4], xmm0
call fcn.004131e0
push eax
lea ecx, [ebp - 0x4c]
call fcn.00771500
push eax
lea ecx, [ebp - 0xe0]
call fcn.00770aa0
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 0x14
call fcn.00772ad0
test al, al
jne 0x5f6ea5
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.00406980
lea ecx, [ebp - 0xe0]
call fcn.007711e0
jmp 0x5f6d8d
xorps xmm0, xmm0
mov dword [ebp - 0x27c], 8
xor eax, eax
movq qword [ebp - 0x118], xmm0
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x278], 0xdad9d6d4
movups xmmword [ebp - 0x128], xmm0
mov dword [ebp - 0x274], 0xd1d1d4c8
mov byte [ebp - 0x270], 0xc0
mov word [ebp - 0x26f], ax
mov byte [ebp - 0x26d], al
call fcn.004131e0
push eax
lea ecx, [ebp - 0xe0]
call fcn.00771500
push eax
lea ecx, [ebp - 0x128]
call fcn.00770aa0
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 0x15
call fcn.00772ad0
test al, al
jne 0x5f6f47
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.00406980
lea ecx, [ebp - 0x128]
call fcn.007711e0
lea ecx, [ebp - 0xe0]
call fcn.007711e0
jmp 0x5f6d8d
xorps xmm0, xmm0
lea ecx, [ebp - 0x128]
push 0x7d8ca4
movups xmmword [ebp - 0x110], xmm0
movq qword [ebp - 0x100], xmm0
call fcn.00771500
push eax
lea ecx, [ebp - 0x110]
call fcn.00770aa0
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 0x16
call fcn.00772ad0
test al, al
jne 0x5f6fb9
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.00406980
lea ecx, [ebp - 0x110]
call fcn.007711e0
lea ecx, [ebp - 0x128]
call fcn.007711e0
lea ecx, [ebp - 0xe0]
call fcn.007711e0
jmp 0x5f6d8d
xorps xmm0, xmm0
lea ecx, [ebp - 0x110]
push 0x7d8ca4
movups xmmword [ebp - 0xf8], xmm0
movq qword [ebp - 0xe8], xmm0
call fcn.00771500
push eax
lea ecx, [ebp - 0xf8]
call fcn.00770aa0
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0x17
call fcn.00772ad0
test al, al
jne 0x5f7077
sub esp, 0x18
mov dword [ebp - 0x26c], 5
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x268], 0xded2cdd7
mov dword [ebp - 0x264], 0xbdce
mov esi, esp
call fcn.004131e0
push eax
lea ecx, [ebp - 0x110]
call fcn.00771500
push eax
mov ecx, esi
call fcn.00770aa0
lea ecx, [ebp - 0xf8]
call fcn.007712b0
lea ecx, [ebp - 0xf8]
call fcn.00772ad0
test al, al
jne 0x5f7071
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.00406980
lea ecx, [ebp - 0xf8]
call fcn.007711e0
jmp 0x5f6f93
mov esi, dword [ebp - 0x280]
xorps xmm0, xmm0
mov dword [ebp - 0x26c], 4
xor eax, eax
movq qword [ebp - 0x148], xmm0
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x268], 0xcfc9d0d4
movups xmmword [ebp - 0x158], xmm0
mov byte [ebp - 0x264], 0xbc
mov word [ebp - 0x263], ax
mov byte [ebp - 0x261], al
call fcn.004131e0
push eax
lea ecx, [ebp - 0xf8]
call fcn.00771500
push eax
lea ecx, [ebp - 0x158]
call fcn.00770aa0
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 0x18
call fcn.007728f0
test al, al
jne 0x5f710f
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.00406980
lea ecx, [ebp - 0x158]
call fcn.007711e0
lea ecx, [ebp - 0xf8]
call fcn.007711e0
jmp 0x5f6f93
xorps xmm0, xmm0
mov byte [ebp - 0x25d], 0
movups xmmword [ebp - 0x1d0], xmm0
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0x13
movq qword [ebp - 0x1c0], xmm0
movaps xmm0, xmmword [0x7e3810]
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0xcbbea8a4
call fcn.004131e0
push eax
lea ecx, [ebp - 0x4c]
call fcn.00771500
push eax
lea ecx, [ebp - 0x1d0]
call fcn.00770aa0
lea ecx, [ebp - 0x1d0]
mov byte [ebp - 4], 0x19
call fcn.00772ad0
movzx ecx, byte [ebp - 0x25d]
test al, al
mov edx, 1
cmovne ecx, edx
mov edx, dword [esi + 0xb8]
mov dword [ebp - 0x284], ecx
lea ecx, [ebp - 0x1b8]
push 0
call fcn.005ef720
add esp, 4
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 0x1a
xor esi, esi
call fcn.00773590
test eax, eax
je 0x5f759d
mov edi, dword [ebp - 0x1a8]
nop dword [eax]
push esi
lea ecx, [ebp - 0x158]
call fcn.007713b0
lea ecx, [ebp - 0x34]
push ecx
mov ecx, eax
call fcn.007721f0
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x1b
push eax
lea ecx, [ebp - 0x1a0]
call fcn.00404120
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x1c
push eax
lea ecx, [ebp - 0x1e8]
call fcn.00404120
push 0x7cd378
lea ecx, [ebp - 0x188]
mov byte [ebp - 4], 0x1d
call fcn.004040b0
cmp byte [ebp - 0x284], 0
mov byte [ebp - 4], 0x1e
je 0x5f7475
lea eax, [ebp - 0x34]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x2a8]
movq qword [ebp - 0x160], xmm0
push eax
movups xmmword [ebp - 0x170], xmm0
call fcn.00405710
add esp, 8
push eax
lea ecx, [ebp - 0x1d0]
mov byte [ebp - 4], 0x1f
call fcn.00771390
push eax
lea ecx, [ebp - 0x170]
call fcn.00770aa0
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 0x21
call fcn.00407a10
xor eax, eax
mov dword [ebp - 0x26c], 4
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x268], 0xdfd3cccd
mov byte [ebp - 0x264], 0xbc
mov word [ebp - 0x263], ax
mov byte [ebp - 0x261], al
call fcn.004131e0
push eax
lea ecx, [ebp - 0x170]
call fcn.00771500
lea ecx, [ebp - 0x2e4]
push ecx
mov ecx, eax
call fcn.007721f0
push eax
lea ecx, [ebp - 0x34]
call fcn.00404030
lea ecx, [ebp - 0x2e4]
call fcn.00404490
xor eax, eax
mov dword [ebp - 0x290], 4
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x28c], 0xded7d8d6
mov byte [ebp - 0x288], 0xbc
mov word [ebp - 0x287], ax
mov byte [ebp - 0x285], al
call fcn.004131e0
push eax
lea ecx, [ebp - 0x170]
call fcn.00771500
lea ecx, [ebp - 0x2e4]
push ecx
mov ecx, eax
call fcn.007721f0
push eax
lea ecx, [ebp - 0x1a0]
call fcn.00404030
lea ecx, [ebp - 0x2e4]
call fcn.00404490
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x27c], 0xa
mov dword [ebp - 0x278], 0xc9dbdccb
mov dword [ebp - 0x274], 0xcae1d5df
mov dword [ebp - 0x270], 0xc2adb2
call fcn.004131e0
push eax
lea ecx, [ebp - 0x170]
call fcn.00771500
lea ecx, [ebp - 0x2e4]
push ecx
mov ecx, eax
call fcn.007721f0
push eax
lea ecx, [ebp - 0x1e8]
call fcn.00404030
lea ecx, [ebp - 0x2e4]
call fcn.00404490
push 0x58
lea eax, [ebp - 0xa4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1e8]
lea ecx, [ebp - 0xa4]
push eax
call fcn.0042bce0
mov byte [ebp - 4], 0x22
cmp dword [ebp - 0xa4], 0
je 0x5f745b
lea ecx, [ebp - 0x2c4]
mov dword [ebp - 0x2c4], 4
mov dword [ebp - 0x2c0], 0xd500db
mov dword [ebp - 0x2bc], 0xdf00d3
mov dword [ebp - 0x2b8], 0xbc
call fcn.00403e20
push eax
lea ecx, [ebp - 0x2a8]
call fcn.004040b0
lea eax, [ebp - 0x2a8]
mov byte [ebp - 4], 0x23
push eax
lea ecx, [ebp - 0x54]
call fcn.0048d790
push eax
lea ecx, [ebp - 0x2e4]
call fcn.00404120
lea eax, [ebp - 0x2e4]
push eax
lea ecx, [ebp - 0x188]
call fcn.00404030
lea ecx, [ebp - 0x2e4]
call fcn.00404490
lea ecx, [ebp - 0x2a8]
call fcn.00404490
lea ecx, [ebp - 0xa4]
call fcn.0042bd80
lea ecx, [ebp - 0x170]
mov byte [ebp - 4], 0x1e
call fcn.007711e0
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x1b8]
cmovae eax, dword [ebp - 0x34]
cmp dword [ebp - 0x1a4], 8
cmovae ecx, dword [ebp - 0x1b8]
cmp edi, dword [ebp - 0x24]
jne 0x5f74af
push edi
push eax
push ecx
call fcn.004090d0
add esp, 0xc
mov byte [ebp - 0x280], 1
test eax, eax
je 0x5f74b6
mov byte [ebp - 0x280], 0
push dword [ebp - 0x280]
lea eax, [ebp - 0x188]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2e8], esp
push eax
call fcn.00404120
sub esp, 0x18
mov byte [ebp - 4], 0x24
lea eax, [ebp - 0x1e8]
mov dword [ebp - 0x2ec], esp
mov ecx, esp
push eax
call fcn.00404120
sub esp, 0x18
mov byte [ebp - 4], 0x25
lea eax, [ebp - 0x1a0]
mov dword [ebp - 0x2f0], esp
mov ecx, esp
push eax
call fcn.00404120
sub esp, 0x18
mov byte [ebp - 4], 0x26
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.00404120
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0x1e
call fcn.005a0410
mov byte [ebp - 4], 0x27
mov ecx, dword [ebp - 0x18]
push eax
cmp dword [ebp - 0x14], ecx
je 0x5f7542
call fcn.005b6cd0
add dword [ebp - 0x18], 0x64
jmp 0x5f754b
push ecx
lea ecx, [ebp - 0x1c]
call fcn.005b6b00
lea ecx, [ebp - 0xb0]
call fcn.0046f590
lea ecx, [ebp - 0x188]
call fcn.00404490
lea ecx, [ebp - 0x1e8]
call fcn.00404490
lea ecx, [ebp - 0x1a0]
call fcn.00404490
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x1a
call fcn.00404490
lea ecx, [ebp - 0x158]
inc esi
call fcn.00773590
cmp esi, eax
jb 0x5f71c0
mov edi, dword [ebp - 0x2cc]
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.00406980
lea ecx, [ebp - 0x1b8]
call fcn.00404490
lea ecx, [ebp - 0x1d0]
call fcn.007711e0
lea ecx, [ebp - 0x158]
call fcn.007711e0
lea ecx, [ebp - 0xf8]
call fcn.007711e0
jmp 0x5f6f93
push ecx
push esi
call fcn.0076d313
add esp, 8
mov eax, edi
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.0076d59e
mov esp, ebp
pop ebp
ret 4