Function at 0x5a36b0
Capabilities:
Encode data using xor
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a7e03
mov eax, dword fs:[0]
push eax
sub esp, 0x108
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 dword [ebp - 0x84], edi
lea eax, [edi + 0x138]
mov dword [edi + 0x130], 0
mov dword [edi + 0x134], 0
mov esi, dword [edi + 0x138]
mov dword [ebp - 0xf0], eax
mov eax, dword [edi + 0x13c]
cmp esi, eax
je 0x5a3731
mov edi, eax
mov ecx, esi
call fcn.00404490
add esi, 0x18
cmp esi, edi
jne 0x5a3717
mov edi, dword [ebp - 0x84]
mov esi, dword [edi + 0x138]
lea eax, [edi + 0x84]
mov dword [edi + 0x13c], esi
push eax
lea ecx, [ebp - 0x78]
call fcn.00404120
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 0
push 6
push eax
call fcn.00427030
add esp, 8
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00404120
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 2
push 5
push eax
call fcn.00427030
add esp, 8
push eax
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 3
call fcn.00404120
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00405530
add esp, 0xc
lea ecx, [ebp - 0xc8]
call fcn.00404490
lea ecx, [ebp - 0xa0]
call fcn.00404490
lea ecx, [ebp - 0x28]
call fcn.00404490
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.00404490
mov eax, dword [edi + 0x220]
mov esi, dword [edi + 0x21c]
mov dword [ebp - 0xa4], eax
cmp esi, eax
je 0x5a392f
nop dword [eax]
push 0x7cf384
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.00421b40
add esp, 0xc
mov byte [ebp - 4], 5
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x5a3816
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
mov ecx, eax
call fcn.00407c50
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
movq qword [ebp - 0x18], xmm0
mov word [eax], cx
lea ecx, [ebp - 0xc8]
call fcn.00404490
xor eax, eax
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x100], 7
mov word [ebp - 0x114], ax
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xf4], eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x114]
call fcn.00403b80
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0xa
call fcn.00417820
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x80], edx
mov byte [ebp - 4], 7
call fcn.00404220
lea ecx, [ebp - 0x114]
call fcn.00404490
mov ecx, dword [ebp - 0x88]
or ecx, dword [ebp - 0x80]
je 0x5a3914
mov ecx, dword [edi + 0x13c]
cmp dword [edi + 0x140], ecx
je 0x5a38ef
lea eax, [ebp - 0x28]
push eax
call fcn.00404120
add dword [edi + 0x13c], 0x18
jmp 0x5a38ff
lea edx, [ebp - 0x28]
push edx
push ecx
lea ecx, [edi + 0x138]
call fcn.00404950
mov eax, dword [ebp - 0x88]
add dword [edi + 0x130], eax
mov eax, dword [ebp - 0x80]
adc dword [edi + 0x134], eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00404490
add esi, 0x18
cmp esi, dword [ebp - 0xa4]
jne 0x5a37f0
xor eax, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 0xb
push 7
push eax
call fcn.00427030
add esp, 8
push eax
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 0xc
call fcn.00404120
xor eax, eax
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 7
mov word [ebp - 0xec], ax
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 0xf
push eax
lea ecx, [ebp - 0xec]
call fcn.00403b80
lea edx, [ebp - 0xec]
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x3c]
call fcn.00417ac0
lea ecx, [ebp - 0xd4]
call fcn.00404220
lea ecx, [ebp - 0xec]
call fcn.00404490
lea ecx, [ebp - 0xc8]
call fcn.00404490
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 0x14
call fcn.00404490
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0xac], eax
cmp esi, eax
je 0x5a3c42
mov edi, 0xc1
mov dword [ebp - 0xa4], 0xc2
mov dword [ebp - 0x80], 0xce
mov dword [ebp - 0x88], 0x9e
mov dword [ebp - 0x2c], 0x9b
mov dword [ebp - 0xa8], 0xb2
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [ebp - 0xa4]
xor ecx, ecx
mov word [ebp - 0x92], ax
mov eax, dword [ebp - 0x80]
mov word [ebp - 0x90], ax
mov eax, dword [ebp - 0x88]
mov word [ebp - 0x8e], ax
mov eax, dword [ebp - 0x2c]
mov word [ebp - 0x8c], ax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xa0], 9
mov dword [ebp - 0x9c], 0xc500e4
mov dword [ebp - 0x98], 0xc500d1
mov word [ebp - 0x94], di
mov word [ebp - 0x8a], ax
nop dword [eax]
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x9c], ax
inc ecx
mov eax, dword [ebp - 0xa0]
cmp ecx, eax
jb 0x5a3ab0
xor ecx, ecx
mov word [ebp + eax*2 - 0x9c], cx
xor eax, eax
mov dword [ebp - 0xb8], ecx
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0xb4], 7
lea edx, [ecx + 2]
mov word [ebp - 0xc8], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5a3af5
sub ecx, edx
lea eax, [ebp - 0x9c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xc8]
call fcn.004044f0
mov byte [ebp - 4], 0x15
mov edi, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
cmp edi, ecx
jne 0x5a3b49
xor eax, eax
mov dword [ebp - 0x18], 0
push eax
push 0x7cf388
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004044f0
jmp 0x5a3b6e
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
lea ecx, [ebp - 0x28]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*2]
lea eax, [eax - 3]
lea eax, [edi + eax*8]
push eax
call fcn.00404120
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0xc8]
call fcn.00405db0
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x79], al
call fcn.00404490
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 0x14
call fcn.00404490
cmp byte [ebp - 0x79], 0
jne 0x5a3bb9
add esi, 0x24
mov edi, 0xc1
cmp esi, dword [ebp - 0xac]
jne 0x5a3a40
jmp 0x5a3c42
push 1
xor eax, eax
mov dword [ebp - 0xb8], 0
push 0x7cf384
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0xb4], 7
mov word [ebp - 0xc8], ax
call fcn.004044f0
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 0x17
push eax
lea edx, [esi + 0x18]
lea ecx, [ebp - 0x28]
call fcn.00405fb0
add esp, 4
lea ecx, [ebp - 0xc8]
call fcn.00404490
lea ecx, [ebp - 0x60]
call fcn.00404490
movups xmm0, xmmword [ebp - 0x28]
xor eax, eax
lea ecx, [ebp - 0x28]
mov word [ebp - 0x28], ax
movups xmmword [ebp - 0x60], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [ebp - 0x50], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
call fcn.00404490
lea ecx, [ebp - 0x3c]
call fcn.0041b0e0
xor eax, eax
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 7
mov word [ebp - 0xec], ax
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 0x19
push eax
lea ecx, [ebp - 0xec]
call fcn.00403b80
push 0
lea edx, [ebp - 0xec]
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x3c]
call fcn.00417030
add esp, 4
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 0x1c
call fcn.00404220
lea ecx, [ebp - 0xec]
call fcn.00404490
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0xa8], eax
cmp edi, eax
je 0x5a3d9d
mov eax, dword [ebp - 0x84]
nop word [eax + eax]
mov ecx, dword [eax + 0x214]
mov esi, dword [eax + 0x210]
mov dword [ebp - 0xac], ecx
cmp esi, ecx
je 0x5a3d8e
nop word [eax + eax]
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x1c]
cmp eax, ecx
jne 0x5a3d2e
xor eax, eax
mov dword [ebp - 0x18], 0
push eax
push 0x7cf388
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004044f0
jmp 0x5a3d56
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
mov ecx, dword [edi + 0x18]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*2]
lea eax, [eax - 3]
lea eax, [ecx + eax*8]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404120
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 0x1d
mov ecx, esi
call fcn.00405db0
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x79], al
mov byte [ebp - 4], 0x1c
call fcn.00404490
cmp byte [ebp - 0x79], 0
jne 0x5a3dd0
add esi, 0x18
cmp esi, dword [ebp - 0xac]
jne 0x5a3d00
mov eax, dword [ebp - 0x84]
add edi, 0x24
cmp edi, dword [ebp - 0xa8]
jne 0x5a3ce0
lea ecx, [ebp - 0x3c]
call fcn.0041b0e0
lea ecx, [ebp - 0x60]
call fcn.00404490
lea ecx, [ebp - 0x78]
call fcn.00404490
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
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x5a3dda
mov eax, dword [edi]
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xorps xmm0, xmm0
cmp esi, 0xffffffff
jne 0x5a3e10
movlpd qword [ebp - 0xb0], xmm0
mov esi, dword [ebp - 0xac]
mov eax, dword [ebp - 0xb0]
jmp 0x5a3e30
lea eax, [ebp - 0x2c]
movq qword [ebp - 0x30], xmm0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x80], eax
or eax, esi
je 0x5a3d88
push edi
lea ecx, [ebp - 0xa0]
call fcn.00404120
mov eax, dword [ebp - 0xf0]
mov byte [ebp - 4], 0x1e
mov ecx, dword [eax + 4]
cmp dword [eax + 8], ecx
je 0x5a3e93
movups xmm0, xmmword [ebp - 0xa0]
movups xmmword [ecx], xmm0
movq xmm0, qword [ebp - 0x90]
movq qword [ecx + 0x10], xmm0
xor ecx, ecx
add dword [eax + 4], 0x18
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], cx
jmp 0x5a3ea2
lea edx, [ebp - 0xa0]
push edx
push ecx
mov ecx, eax
call fcn.004081e0
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0x1c
call fcn.00404490
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x80]
add dword [eax + 0x130], ecx
adc dword [eax + 0x134], esi
jmp 0x5a3d8e