Function at 0x4bc740
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1d0
mov edi, dword [ebp + 0xc]
mov eax, dword [0x547008]
xor eax, ebp
mov dword [esp + 0x1c8], eax
test edi, edi
je 0x4bc8e5
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
call fcn.004114c0
mov dword [esp + 8], eax
pxor xmm0, xmm0
movdqa xmmword [esp + 0x1b0], xmm0
movdqa xmmword [esp + 0x1a0], xmm0
xor eax, eax
mov cl, byte [esi + eax]
xor byte [esp + eax + 0x1a0], cl
inc eax
cmp eax, 0x20
jne 0x4bc78f
lea eax, [esp + 0x70]
push 0x130
push 0xff
push eax
call fcn.004ec220
add esp, 0xc
push 1
call fcn.004e81c0
add esp, 4
test eax, eax
je 0x4bc8fb
mov ecx, eax
add ecx, 0x120
mov dword [esp + 0xc], ecx
cmp dword [eax + 0x120], 0xfff
jbe 0x4bc9ad
pcmpeqd xmm0, xmm0
lea ecx, [esp + 0x40]
movdqa xmmword [ecx + 0x20], xmm0
movdqa xmmword [ecx + 0x10], xmm0
movdqa xmmword [ecx], xmm0
mov edx, 0x30
push edx
push ecx
mov esi, eax
call fcn.004db660
add esp, 8
mov ecx, esi
lea edx, [esp + 0x40]
mov eax, 0x30
push eax
call fcn.004bcb10
add esp, 4
test eax, eax
je 0x4bc9d9
xor eax, eax
mov dword [esi + 0x114], eax
mov dword [esi + 0x110], 1
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
mov dword [esi + 0x11c], eax
mov dword [esi + 0x118], 0xc0ffee
mov eax, dword [esp + 8]
mov dword [esi + 0x128], eax
mov eax, esi
mov esi, 0x10000
cmp edi, esi
cmovb esi, edi
lea ecx, [esp + 0x1a0]
push 0x20
push ecx
push esi
push ebx
mov dword [esp + 0x18], eax
push eax
call fcn.004bcc90
add esp, 0x14
test eax, eax
je 0x4bc9d9
mov eax, dword [esp + 0xc]
inc dword [eax]
sub edi, esi
je 0x4bc8cd
add ebx, esi
mov eax, 0x10000
cmp edi, eax
mov esi, 0x10000
cmovb esi, edi
push 0
lea eax, [esp + 0x1a4]
push eax
push esi
push ebx
push dword [esp + 0x18]
call fcn.004bcc90
add esp, 0x14
test eax, eax
je 0x4bc9d9
add ebx, esi
mov eax, dword [esp + 0xc]
inc dword [eax]
sub edi, esi
jne 0x4bc892
lea eax, [esp + 0x70]
cmp dword [esp + 8], eax
jne 0x4bc8e5
push 0x118
push eax
call fcn.004d4920
add esp, 8
mov ecx, dword [esp + 0x1c8]
xor ecx, ebp
call fcn.004e8be6
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x130
call fcn.004e75f0
add esp, 4
test eax, eax
je 0x4bc922
push 0x4bcec0
push eax
push 1
mov esi, eax
call fcn.004db540
add esp, 0xc
test eax, eax
jne 0x4bc926
lea esi, [esp + 0x70]
xor eax, eax
mov dword [esi + 0x124], eax
pcmpeqd xmm0, xmm0
lea eax, [esp + 0x40]
movdqa xmmword [eax + 0x20], xmm0
movdqa xmmword [eax + 0x10], xmm0
movdqa xmmword [eax], xmm0
pxor xmm0, xmm0
lea edx, [esp + 0x10]
movdqa xmmword [edx + 0x20], xmm0
movdqa xmmword [edx + 0x10], xmm0
movdqa xmmword [edx], xmm0
push 0x30
push eax
call fcn.004db660
add esp, 8
xor eax, eax
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x48]
push eax
push esi
call fcn.004bc9e0
add esp, 0x10
test eax, eax
je 0x4bc9d9
lea eax, [esi + 0x120]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esi + 0x120], eax
mov dword [esi + 0x11c], eax
mov dword [esi + 0x118], 0xc0ffee
mov eax, dword [esp + 8]
mov dword [esi + 0x128], eax
mov eax, esi
mov ecx, 0xc0ffee
xor ecx, dword [eax + 0x118]
or ecx, dword [eax + 0x11c]
jne 0x4bc7e4
mov ecx, dword [esp + 8]
cmp dword [eax + 0x128], ecx
je 0x4bc85b
jmp 0x4bc7e4
call fcn.004fd2fe
int3