Function at 0x5f4560
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b006f
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x831184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x12c], esi
mov dword [ebp - 0x18c], esi
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 - 0x144], 9
mov dword [ebp - 0x140], 0xfd00f5
mov dword [ebp - 0x13c], 0xce00ce
mov dword [ebp - 0x138], 0xea008d
mov dword [ebp - 0x134], 0xc400ce
mov dword [ebp - 0x130], 0xb200d0
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x140], ax
inc ecx
mov eax, dword [ebp - 0x144]
cmp ecx, eax
jb 0x5f4610
xor ecx, ecx
mov word [ebp + eax*2 - 0x140], cx
lea ecx, [ebp - 0x1e8]
mov eax, dword [edi + 0xb8]
add eax, 0x84
push eax
call fcn.00404120
lea eax, [ebp - 0x140]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x1e8]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00408060
add esp, 0xc
lea ecx, [ebp - 0x1e8]
call fcn.00404490
xor eax, eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 7
mov word [ebp - 0x54], ax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x54]
call fcn.00403b80
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 6
push eax
call fcn.00418540
add esp, 4
mov byte [ebp - 0x125], al
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.00404220
lea ecx, [ebp - 0x54]
call fcn.00404490
cmp byte [ebp - 0x125], 0
jne 0x5f476b
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x6c]
mov dword [esi], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 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 0x5f4764
mov edx, dword [ebp - 0x18]
push ecx
call fcn.005b7cb0
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 0x5f4754
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x5f4754
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.0076e8f3
mov esi, dword [ebp - 0x12c]
add esp, 8
mov eax, esi
jmp 0x5f5185
cmp byte [edi + 0xc0], 0
je 0x5f47c1
lea edx, [ebp - 0x6c]
lea ecx, [ebp - 0x48]
call fcn.0041d5c0
mov esi, eax
lea eax, [ebp - 0x6c]
cmp eax, esi
je 0x5f47b3
mov ecx, eax
call fcn.00404490
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x6c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x5c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x48]
call fcn.00404490
mov esi, dword [ebp - 0x12c]
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00405850
add esp, 8
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 8
call fcn.00648730
lea ecx, [ebp - 0x48]
mov byte [ebp - 0x125], al
call fcn.00407a10
cmp byte [ebp - 0x125], 0
jne 0x5f48b0
mov eax, dword [ebp - 0x1c]
mov dword [esi], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 8], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x5f484d
mov edx, 1
call fcn.00706610
lea ecx, [ebp - 0x6c]
call fcn.00404490
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x5f4764
mov edx, dword [ebp - 0x18]
push ecx
call fcn.005b7cb0
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 0x5f4754
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x5f4754
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
xorps xmm0, xmm0
movups xmmword [ebp - 0x30], xmm0
mov byte [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x4c]
movaps xmm0, xmmword [0x7e5fa0]
mov dword [ebp - 0x4c], 0x16
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], 0xced4cdc0
mov dword [ebp - 0x34], 0xbfcdd9
call fcn.004131e0
mov edx, eax
mov dword [ebp - 0x14c], 0
mov ecx, edx
mov dword [ebp - 0x148], 0xf
mov byte [ebp - 0x15c], 0
lea esi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5f4920
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x15c]
call fcn.00407ab0
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x20]
call fcn.00648830
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xc
call fcn.006485d0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x138]
test eax, eax
je 0x5f4987
cmp byte [ebp - 0x13c], 0
je 0x5f4987
push eax
call fcn.0069b9d0
add esp, 4
mov dword [ebp - 0x138], 0
lea ecx, [ebp - 0x15c]
mov byte [ebp - 0x134], 1
mov dword [ebp - 0x130], 0
mov byte [ebp - 0x13c], 0
mov byte [ebp - 4], 0xa
call fcn.00407a10
cmp byte [ebp - 0x28], 0
mov esi, dword [ebp - 0x2c]
jne 0x5f513d
test esi, esi
je 0x5f513d
mov edx, dword [edi + 0xb8]
lea ecx, [ebp - 0xcc]
push 1
call fcn.005f0790
add esp, 4
mov byte [ebp - 4], 0x10
mov edi, dword [ebp - 0xbc]
nop dword [eax]
nop word [eax + eax]
mov eax, 9
mov dword [ebp - 0x184], 0xcfc5d3da
mov dword [ebp - 0x188], eax
xor ecx, ecx
mov dword [ebp - 0x180], 0xd9dac9f2
mov dword [ebp - 0x17c], 0xb2d5
nop dword [eax + eax]
mov al, cl
sub al, 0x57
xor byte [ebp + ecx - 0x184], al
inc ecx
mov eax, dword [ebp - 0x188]
cmp ecx, eax
jb 0x5f4a20
lea ecx, [ebp - 0x184]
mov byte [ebp + eax - 0x184], 0
mov dword [ebp - 0x14c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x148], 0xf
mov byte [ebp - 0x15c], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5f4a62
sub ecx, edx
lea eax, [ebp - 0x184]
push ecx
push eax
lea ecx, [ebp - 0x15c]
call fcn.00407ab0
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x30]
call fcn.00648620
push eax
lea eax, [ebp - 0x1a4]
push eax
lea ecx, [ebp - 0x30]
call fcn.00648690
lea edx, [ebp - 0x1a4]
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x84]
call fcn.00405660
lea ecx, [ebp - 0x1a4]
call fcn.00407a10
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 0x15
call fcn.00407a10
mov eax, 0xa
mov dword [ebp - 0x174], 0xdec4c2da
mov dword [ebp - 0x178], eax
xor ecx, ecx
mov dword [ebp - 0x170], 0xd1c1f1d9
mov dword [ebp - 0x16c], 0xb3d7dc
nop dword [eax + eax]
mov al, cl
sub al, 0x57
xor byte [ebp + ecx - 0x174], al
inc ecx
mov eax, dword [ebp - 0x178]
cmp ecx, eax
jb 0x5f4b00
lea ecx, [ebp - 0x174]
mov byte [ebp + eax - 0x174], 0
mov dword [ebp - 0x14c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x148], 0xf
mov byte [ebp - 0x15c], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5f4b42
sub ecx, edx
lea eax, [ebp - 0x174]
push ecx
push eax
lea ecx, [ebp - 0x15c]
call fcn.00407ab0
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 0x16
push eax
lea ecx, [ebp - 0x30]
call fcn.00648620
push eax
lea eax, [ebp - 0x1d0]
push eax
lea ecx, [ebp - 0x30]
call fcn.00648690
lea edx, [ebp - 0x1d0]
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x48]
call fcn.00405660
lea ecx, [ebp - 0x1d0]
call fcn.00407a10
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 0x1a
call fcn.00407a10
push 3
push 0x7da6c4
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 0xf
mov byte [ebp - 0x15c], 0
call fcn.00407ab0
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 0x1b
push eax
lea ecx, [ebp - 0x30]
call fcn.00648620
push eax
lea eax, [ebp - 0x1a4]
push eax
lea ecx, [ebp - 0x30]
call fcn.00648690
lea edx, [ebp - 0x1a4]
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0xb4]
call fcn.00405660
lea ecx, [ebp - 0x1a4]
call fcn.00407a10
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 0x1f
call fcn.00407a10
xor eax, eax
mov dword [ebp - 0x8c], 0
push eax
push 0x7cf388
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x88], 7
mov word [ebp - 0x9c], ax
call fcn.004044f0
mov byte [ebp - 4], 0x20
test edi, edi
jne 0x5f4c88
cmp dword [ebp - 0x70], 8
lea eax, [ebp - 0x84]
push dword [ebp - 0x74]
cmovae eax, dword [ebp - 0x84]
lea ecx, [ebp - 0xcc]
push eax
call fcn.004044f0
mov edi, dword [ebp - 0xbc]
push 0x58
lea eax, [ebp - 0x124]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0xb4]
lea ecx, [ebp - 0x124]
push eax
call fcn.0042bce0
mov byte [ebp - 4], 0x21
cmp dword [ebp - 0x124], 0
je 0x5f4dde
mov eax, 4
mov dword [ebp - 0x138], 0xc600ca
mov dword [ebp - 0x13c], eax
xor ecx, ecx
mov dword [ebp - 0x134], 0xc800c2
mov dword [ebp - 0x130], 0xad
nop dword [eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x138], ax
inc ecx
mov eax, dword [ebp - 0x13c]
cmp ecx, eax
jb 0x5f4cf0
xor ecx, ecx
mov word [ebp + eax*2 - 0x138], cx
xor eax, eax
mov dword [ebp - 0x194], ecx
lea ecx, [ebp - 0x138]
mov dword [ebp - 0x190], 7
lea edx, [ecx + 2]
mov word [ebp - 0x1a4], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5f4d35
sub ecx, edx
lea eax, [ebp - 0x138]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1a4]
call fcn.004044f0
lea eax, [ebp - 0x1a4]
mov byte [ebp - 4], 0x22
push eax
lea ecx, [ebp - 0xd4]
call fcn.0048e7f0
push eax
lea ecx, [ebp - 0x15c]
call fcn.00404120
lea ecx, [ebp - 0x9c]
call fcn.00404490
movups xmm0, xmmword [ebp - 0x15c]
xor eax, eax
lea ecx, [ebp - 0x15c]
mov word [ebp - 0x15c], ax
movups xmmword [ebp - 0x9c], xmm0
movq xmm0, qword [ebp - 0x14c]
movq qword [ebp - 0x8c], xmm0
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 7
call fcn.00404490
lea ecx, [ebp - 0x1a4]
mov byte [ebp - 4], 0x21
call fcn.00404490
jmp 0x5f4efa
mov dword [ebp - 0x168], 7
xor eax, eax
mov dword [ebp - 0x164], 0xdbd2cfc2
mov dword [ebp - 0x160], 0xb0cbdcc2
nop
lea ecx, [eax - 0x57]
xor byte [ebp + eax - 0x164], cl
inc eax
mov ecx, dword [ebp - 0x168]
cmp eax, ecx
jb 0x5f4e00
mov byte [ebp + ecx - 0x164], 0
lea ecx, [ebp - 0x164]
mov dword [ebp - 0x194], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x190], 0xf
mov byte [ebp - 0x1a4], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5f4e41
sub ecx, edx
lea eax, [ebp - 0x164]
push ecx
push eax
lea ecx, [ebp - 0x1a4]
call fcn.00407ab0
lea eax, [ebp - 0x1a4]
mov byte [ebp - 4], 0x23
push eax
lea ecx, [ebp - 0x30]
call fcn.00648620
push eax
lea eax, [ebp - 0x1d0]
push eax
lea ecx, [ebp - 0x30]
call fcn.00648690
lea edx, [ebp - 0x1d0]
mov byte [ebp - 4], 0x24
lea ecx, [ebp - 0x15c]
call fcn.00405660
mov esi, eax
lea eax, [ebp - 0xb4]
cmp eax, esi
je 0x5f4ed2
mov ecx, eax
call fcn.00404490
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0xb4], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0xa4], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x15c]
call fcn.00404490
lea ecx, [ebp - 0x1d0]
call fcn.00407a10
lea ecx, [ebp - 0x1a4]
mov byte [ebp - 4], 0x21
call fcn.00407a10
mov esi, dword [ebp - 0x2c]
cmp dword [ebp - 0x70], 8
lea eax, [ebp - 0x84]
lea ecx, [ebp - 0xcc]
cmovae eax, dword [ebp - 0x84]
cmp dword [ebp - 0xb8], 8
cmovae ecx, dword [ebp - 0xcc]
cmp edi, dword [ebp - 0x74]
jne 0x5f4f3a
push edi
push eax
push ecx
call fcn.004090d0
add esp, 0xc
mov byte [ebp - 0x18c], 1
test eax, eax
je 0x5f4f41
mov byte [ebp - 0x18c], 0
push dword [ebp - 0x18c]
lea eax, [ebp - 0x9c]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1a8], esp
push eax
call fcn.00404120
sub esp, 0x18
mov byte [ebp - 4], 0x25
lea eax, [ebp - 0xb4]
mov dword [ebp - 0x1ac], esp
mov ecx, esp
push eax
call fcn.00404120
sub esp, 0x18
mov byte [ebp - 4], 0x26
lea eax, [ebp - 0x48]
mov dword [ebp - 0x1b0], esp
mov ecx, esp
push eax
call fcn.00404120
sub esp, 0x18
mov byte [ebp - 4], 0x27
lea eax, [ebp - 0x84]
mov ecx, esp
push eax
call fcn.00404120
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 0x21
call fcn.005a1410
mov byte [ebp - 4], 0x28
mov ecx, dword [ebp - 0x18]
push eax
cmp dword [ebp - 0x14], ecx
je 0x5f4fcd
call fcn.005b7cf0
add dword [ebp - 0x18], 0x64
jmp 0x5f4fd6
push ecx
lea ecx, [ebp - 0x1c]
call fcn.005b7b20
lea ecx, [ebp - 0x204]
call fcn.00404490
lea ecx, [ebp - 0x21c]
call fcn.00404490
lea ecx, [ebp - 0x234]
call fcn.00404490
lea ecx, [ebp - 0x24c]
call fcn.00404490
mov eax, dword [ebp - 0xd4]
lea ecx, [ebp - 0xd4]
push eax
push dword [eax]
lea eax, [ebp - 0x1b8]
push eax
call fcn.0042d190
push 0x40
push dword [ebp - 0xd4]
call fcn.0076e8f3
add esp, 8
lea ecx, [ebp - 0xec]
call fcn.00404490
lea ecx, [ebp - 0x104]
call fcn.00404490
lea ecx, [ebp - 0x11c]
call fcn.00404490
lea ecx, [ebp - 0x9c]
call fcn.00404490
lea ecx, [ebp - 0xb4]
call fcn.00404490
lea ecx, [ebp - 0x48]
call fcn.00404490
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x10
call fcn.00404490
push esi
call fcn.0069c990
add esp, 4
cmp eax, 0x65
jne 0x5f508d
mov al, 1
jmp 0x5f5093
cmp eax, 0x64
setne al
mov byte [ebp - 0x28], al
test al, al
je 0x5f49f0
mov edi, dword [ebp - 0x12c]
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.00406980
lea ecx, [ebp - 0xcc]
call fcn.00404490
mov byte [ebp - 4], 0x29
cmp byte [ebp - 0x30], 0
je 0x5f50cd
push esi
call fcn.0069b9d0
add esp, 4
mov byte [ebp - 4], 0x2a
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x5f50e2
mov edx, 1
call fcn.00706610
lea ecx, [ebp - 0x6c]
call fcn.00404490
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x5f5183
mov edx, dword [ebp - 0x18]
push ecx
call fcn.005b7cb0
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 0x5f5179
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x5f5179
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov edi, dword [ebp - 0x12c]
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.00406980
mov byte [ebp - 4], 0xe
test esi, esi
je 0x5f5165
cmp byte [ebp - 0x30], 0
je 0x5f5165
push esi
call fcn.0069b9d0
add esp, 4
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x5f50e2
jmp 0x5f50d8
push ecx
push esi
call fcn.0076e8f3
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.0076eb7e
mov esp, ebp
pop ebp
ret 4