Function at 0x480e80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x4e880c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
movzx ecx, word [esi]
push edi
mov edi, dword [ebp + 0xc]
push ecx
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x21c], esi
call fcn.00490830
add esp, 4
test eax, eax
je 0x480edb
movzx edx, word [esi + 2]
add esi, 2
push edx
call fcn.00490830
add esp, 4
test eax, eax
jne 0x480ec1
mov dword [ebp - 0x21c], esi
movzx eax, word [edi]
push eax
call fcn.00490830
add esp, 4
test eax, eax
je 0x480f0a
jmp 0x480ef0
movzx ecx, word [edi + 2]
add edi, 2
push ecx
call fcn.00490830
add esp, 4
test eax, eax
jne 0x480ef0
mov dword [ebp - 0x220], edi
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x480f10
sub eax, edx
sar eax, 1
mov edi, eax
mov eax, esi
mov dword [ebp - 0x214], edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x480f30
sub eax, edx
sar eax, 1
test edi, edi
mov ebx, eax
mov dword [ebp - 0x210], ebx
jbe 0x480f7b
mov edx, dword [ebp - 0x220]
lea esi, [edx + edi*2 - 2]
movzx eax, word [esi]
push eax
call fcn.00490830
add esp, 4
test eax, eax
je 0x480f6f
sub edi, 1
sub esi, 2
test edi, edi
ja 0x480f55
mov esi, dword [ebp - 0x21c]
mov dword [ebp - 0x214], edi
test ebx, ebx
jbe 0x480fa3
lea esi, [esi + ebx*2 - 2]
movzx ecx, word [esi]
push ecx
call fcn.00490830
add esp, 4
test eax, eax
je 0x480f9d
sub ebx, 1
sub esi, 2
test ebx, ebx
ja 0x480f83
mov dword [ebp - 0x210], ebx
mov esi, dword [ebp - 0x218]
mov eax, dword [esi + 0x38]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x480fb0
sub eax, edx
mov edx, dword [esi + 0x18]
sar eax, 1
mov dword [ebp - 0x224], eax
add eax, ebx
add eax, edi
lea eax, [edx + eax*2 + 9]
and eax, 0xfffffffc
mov dword [ebp - 0x228], eax
add eax, 0xa8
push eax
call fcn.0048d153
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4811cd
mov ecx, 0xc
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x228]
mov edi, dword [ebp - 0x224]
add ecx, 0xa8
movzx edx, cx
lea eax, [ebx + 0xa8]
mov ecx, eax
sub ecx, ebx
mov dword [ebx], edx
mov word [ebx + 0x38], cx
mov ecx, dword [ebp - 0x218]
lea edx, [edi + edi + 2]
push edx
mov edx, dword [ecx + 0x38]
push edx
push eax
call fcn.0048cac0
mov ecx, dword [ebp - 0x220]
lea esi, [ebx + 0xa8]
lea esi, [esi + edi*2 + 2]
mov edi, dword [ebp - 0x214]
add edi, edi
push edi
mov eax, esi
push ecx
sub eax, ebx
push esi
mov word [ebx + 0x3a], ax
call fcn.0048cac0
add esp, 0x18
mov word [edi + esi], 0
xor eax, eax
jmp 0x481070
mov edx, eax
and edx, 0x3f
mov cx, word [edx*2 + 0x4e8760]
xor word [esi + eax*2], cx
add eax, 1
cmp eax, dword [ebp - 0x214]
jbe 0x481070
mov eax, dword [ebp - 0x21c]
lea esi, [edi + esi + 2]
mov edi, dword [ebp - 0x210]
add edi, edi
push edi
mov edx, esi
push eax
sub edx, ebx
push esi
mov word [ebx + 0x3c], dx
call fcn.0048cac0
add esp, 0xc
mov word [edi + esi], 0
xor eax, eax
lea esp, [esp]
mov ecx, eax
and ecx, 0x3f
mov dx, word [ecx*2 + 0x4e8760]
xor word [esi + eax*2], dx
add eax, 1
cmp eax, dword [ebp - 0x210]
jbe 0x4810c0
lea esi, [edi + esi + 2]
mov edi, dword [ebp - 0x218]
mov eax, esi
sub eax, ebx
mov word [ebx + 0x3e], ax
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x30]
push ecx
push edx
push esi
call fcn.0048cac0
xor esi, esi
add esp, 0xc
cmp dword [edi + 4], 4
mov word [ebp - 0x20c], si
jge 0x481177
mov ecx, dword [edi + 0x3c]
push 0x1c
lea eax, [ebp - 0x244]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x481177
mov eax, dword [ebp - 0x240]
push 0x104
lea edx, [ebp - 0x20c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x481177
lea ecx, [ebp - 0x20c]
push 0x5c
push ecx
call fcn.0048ee33
add esp, 8
cmp eax, esi
je 0x48115c
add eax, 2
jmp 0x481162
lea eax, [ebp - 0x20c]
push 0x14
push eax
lea edx, [ebx + 0x40]
push edx
call fcn.004907a1
add esp, 0xc
mov word [ebx + 0x66], si
jmp 0x48117b
mov word [ebx + 0x40], si
mov eax, dword [edi + 0x34]
push 0x5c
push eax
call fcn.0048ee33
mov ecx, dword [edi + 0x34]
push 0x2f
push ecx
mov esi, eax
call fcn.0048ee33
add esp, 0x10
cmp esi, eax
ja 0x48119c
mov esi, eax
test esi, esi
jne 0x4811a5
mov esi, dword [edi + 0x34]
jmp 0x4811a8
add esi, 2
push 0x20
lea edx, [ebx + 0x68]
push esi
push edx
call fcn.004907a1
add esp, 0xc
push ebx
mov word [ebx + 0xa6], 0
call fcn.00480d50
mov ecx, eax
call fcn.00480de0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048c010
mov esp, ebp
pop ebp
ret