Function at 0x5b6350
Capabilities:
Encode data using xor
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x64916c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xa4], esi
cmp dword [0x6b9968], esi
jne 0x5b63cb
push 0x380
mov dword [0x6b9968], 1
call fcn.00565530
push 0x380
push esi
push eax
mov dword [0x6bb700], eax
call fcn.0059ea70
push 0x460
call fcn.00565530
push 0x460
push esi
push eax
mov dword [0x6bb6fc], eax
call fcn.0059ea70
push 0x8000
call fcn.00565530
add esp, 0x24
mov dword [0x6b9970], eax
call fcn.005b5ca0
mov ebx, eax
cmp ebx, reloc.MSVCRT.dll_strncpy
je 0x5b66b6
mov eax, dword [ebp + 0xc]
test eax, eax
jns 0x5b63f4
and eax, 0x7fffffff
mov dword [ebp - 0xa4], 1
mov dword [ebp + 0xc], eax
push eax
push edi
call fcn.00564fa0
mov edi, eax
add esp, 8
cmp edi, reloc.MSVCRT.dll_strncpy
je 0x5b6640
push 0x40
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.00564ff0
add esp, 0xc
cmp eax, 0x40
jne 0x5b6474
cmp byte [ebp - 0x84], 0x4d
jne 0x5b6474
cmp byte [ebp - 0x83], 0x5a
jne 0x5b6474
mov ecx, dword [ebp - 0x48]
push 0
push ecx
push edi
call fcn.00565140
push 2
lea edx, [ebp - 0x84]
push edx
push edi
call fcn.00564ff0
add esp, 0x18
cmp eax, 2
jne 0x5b6474
cmp byte [ebp - 0x84], 0x50
jne 0x5b6474
cmp byte [ebp - 0x83], 0x45
jne 0x5b6474
cmp dword [ebp + 0xc], 0
lea esi, [eax - 1]
jne 0x5b6637
push esi
push edi
call fcn.005b5b40
mov esi, eax
add esp, 8
cmp esi, reloc.MSVCRT.dll_strncpy
je 0x5b6637
mov eax, dword [0x6bb828]
push 0
add eax, esi
push eax
push edi
call fcn.00565140
mov ecx, dword [0x6bb828]
add ecx, esi
add esp, 0xc
cmp eax, ecx
jne 0x5b6637
push 0x16
lea edx, [ebp - 0x9c]
push edx
push edi
call fcn.00564ff0
add esp, 0xc
cmp eax, 0x16
jne 0x5b6637
cmp dword [ebp - 0x9c], reloc.MSVCRT.dll_strncpy
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xa0], 0
jne 0x5b6528
test ax, ax
je 0x5b6528
mov ecx, dword [0x6bb700]
lea eax, [ebx*8]
sub eax, ebx
or dword [ecx + eax*8 + 8], 1
lea eax, [ecx + eax*8 + 8]
mov eax, 4
mov dl, al
add dl, dl
lea ecx, [edx + eax - 0x4d]
xor byte [ebp + eax - 0x9c], cl
inc eax
cmp eax, 0x16
jb 0x5b6505
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0xa0], edx
jmp 0x5b6553
mov cx, word [ebp - 0x92]
cmp cx, word [ebp - 0x94]
jne 0x5b6637
cmp word [ebp - 0x96], 0
jne 0x5b6637
test ax, ax
jne 0x5b6637
cmp dword [ebp - 0xa4], 0
je 0x5b6575
mov eax, dword [0x6bb700]
lea edx, [ebx*8]
sub edx, ebx
test byte [eax + edx*8 + 8], 1
je 0x5b6637
lea esi, [ebx*8]
sub esi, ebx
add esi, esi
add esi, esi
add esi, esi
call fcn.005b8820
mov ecx, dword [0x6bb700]
mov dword [esi + ecx], eax
mov edx, dword [0x6bb700]
mov dword [esi + edx + 4], edi
mov eax, dword [0x6bb700]
mov byte [esi + eax + 0x20], 0
mov edx, dword [0x6bb828]
add edx, dword [ebp - 0x8c]
mov eax, dword [0x6bb700]
mov dword [esi + eax + 0xc], edx
mov ecx, dword [0x6bb700]
mov edx, dword [ebp - 0x90]
mov dword [esi + ecx + 0x10], edx
mov eax, dword [0x6bb700]
mov ecx, dword [esi + eax + 0xc]
mov dword [esi + eax + 0x18], ecx
mov edx, dword [0x6bb700]
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0xa0]
mov dword [esi + edx + 0x1c], eax
mov edx, dword [0x6bb700]
mov eax, dword [esi + edx]
push ecx
mov ecx, dword [ebp - 0x90]
push eax
mov eax, dword [0x6bb828]
add eax, dword [ebp - 0x8c]
push ecx
push eax
push edi
call fcn.005b5d10
add esp, 0x14
test eax, eax
jne 0x5b6653
mov ecx, dword [0x6bb700]
mov edx, dword [esi + ecx]
push edx
call fcn.005b88c0
mov eax, dword [0x6bb700]
add esp, 4
mov dword [esi + eax], 0
push edi
call fcn.00565050
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059ea5e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
cmp ecx, 1
je 0x5b667e
cmp ecx, 2
je 0x5b667e
mov ecx, dword [0x6bb700]
mov dword [esi + ecx + 0x14], 0
cmp eax, reloc.MSVCRT.dll_strncpy
je 0x5b669a
push eax
call fcn.00565600
add esp, 4
jmp 0x5b669a
mov edx, dword [0x6bb700]
mov dword [esi + edx + 0x14], eax
cmp eax, reloc.MSVCRT.dll_strncpy
jne 0x5b669a
mov eax, dword [0x6bb700]
mov dword [esi + eax + 0x14], reloc.MSVCRT.dll_strncpy
mov ecx, dword [0x6bb700]
mov edx, dword [esi + ecx]
push 0
push edx
call fcn.005b81b0
add esp, 8
or ebx, 0x4f440000
mov esi, ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0059ea5e
mov esp, ebp
pop ebp
ret