Function at 0x479030
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 [0x4d100c]
xor eax, ebp
mov dword [esp + 0x1c8], eax
test edi, edi
je 0x4792ee
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
call fcn.00410640
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x1b0], xmm0
movdqa xmmword [esp + 0x1a0], xmm0
lea ecx, [esp + 0x1a0]
mov dword [esp + 4], eax
test eax, eax
je 0x4790a0
pxor xmm0, xmm0
movdqa xmmword [esp + 0x1b0], xmm0
movdqa xmmword [esp + 0x1a0], xmm0
jmp 0x4790ab
push 0x20
push ecx
call fcn.00486940
add esp, 8
xor eax, eax
nop dword [eax]
movzx ecx, byte [esi + eax]
xor byte [esp + eax + 0x1a0], cl
inc eax
cmp eax, 0x20
jne 0x4790b0
lea eax, [esp + 0x70]
push 0x130
push 0xff
push eax
call fcn.0048ea80
add esp, 0xc
push 1
call fcn.004861b0
add esp, 4
test eax, eax
je 0x479106
mov esi, eax
add eax, 0x120
mov dword [esp + 8], eax
cmp dword [esi + 0x120], 0xfff
jbe 0x4791c5
jmp 0x4791df
push 0x130
call fcn.004865c0
add esp, 4
test eax, eax
je 0x47912d
mov esi, eax
push 0x479c30
push eax
push 1
call fcn.00486250
add esp, 0xc
test eax, eax
jne 0x479131
lea esi, [esp + 0x70]
mov dword [esi + 0x124], 0
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
pxor xmm0, xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
movdqa xmmword [esp + 0x10], xmm0
lea eax, [esp + 0x40]
push 0x30
push eax
call fcn.00486940
add esp, 8
lea eax, [esp + 0x10]
push 0
push eax
lea eax, [esp + 0x48]
push eax
push esi
call fcn.00479500
add esp, 0x10
test eax, eax
je 0x479304
lea eax, [esi + 0x120]
mov dword [esp + 8], eax
mov dword [esi + 0x120], 0
mov dword [esi + 0x11c], 0
mov dword [esi + 0x118], 0
mov eax, dword [esp + 4]
mov dword [esi + 0x128], eax
mov eax, dword [esi + 0x118]
or eax, dword [esi + 0x11c]
jne 0x4791df
mov eax, dword [esp + 4]
cmp dword [esi + 0x128], eax
je 0x479258
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
lea eax, [esp + 0x40]
push 0x30
push eax
call fcn.00486940
add esp, 8
mov ecx, esi
lea edx, [esp + 0x40]
push 0x30
call fcn.00479770
add esp, 4
test eax, eax
je 0x479304
mov dword [esi + 0x110], 1
mov dword [esi + 0x114], 0
mov eax, dword [esp + 8]
mov dword [eax], 0
mov dword [esi + 0x11c], 0
mov dword [esi + 0x118], 0
mov eax, dword [esp + 4]
mov dword [esi + 0x128], eax
cmp edi, 0x10000
mov ecx, 0x10000
cmovb ecx, edi
push 0x20
lea eax, [esp + 0x1a4]
push eax
mov dword [esp + 0x14], ecx
push ecx
push ebx
mov dword [esp + 0x14], esi
push esi
call fcn.00479a00
add esp, 0x14
test eax, eax
je 0x479304
mov eax, dword [esp + 8]
inc dword [eax]
mov eax, dword [esp + 0xc]
sub edi, eax
je 0x4792d6
add ebx, eax
nop word [eax + eax]
cmp edi, 0x10000
mov esi, 0x10000
cmovb esi, edi
push 0
lea eax, [esp + 0x1a4]
push eax
push esi
push ebx
push dword [esp + 0x14]
call fcn.00479a00
add esp, 0x14
test eax, eax
je 0x479304
add ebx, esi
mov eax, dword [esp + 8]
inc dword [eax]
sub edi, esi
jne 0x4792a0
lea eax, [esp + 0x70]
cmp dword [esp + 4], eax
jne 0x4792ee
push 0x118
push eax
call fcn.00486650
add esp, 8
mov ecx, dword [esp + 0x1c8]
xor ecx, ebp
call fcn.0048b34a
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.0049e294
int3