Function at 0x4027d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x142c
call fcn.00474d40
mov eax, dword [0x48913c]
push ebx
push esi
push edi
mov dword [esp + 0x1434], eax
xor eax, eax
mov ecx, 0xb8
lea edi, [esp + 0x100]
rep stosd dword es:[edi], eax
mov cx, word [ebp + 0xc]
stosb byte es:[edi], al
mov ax, word [ebp + 8]
movzx ebx, ax
mov word [esp + 0x100], ax
movzx esi, cx
mov word [esp + 0x102], cx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
push ecx
lea eax, [esp + 0x1c]
push eax
xor edx, edx
lea ecx, [esp + 0x1c]
push ecx
push esi
push ebx
push edx
push edx
push 1
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], edx
call fcn.004061f0
mov eax, dword [esp + 0x30]
xor edi, edi
add esp, 0x24
cmp eax, edi
je 0x402880
xor edx, edx
cmp eax, 0xfffffff3
sete dl
add edx, 0xffffffee
mov eax, edx
mov ecx, dword [esp + 0x1434]
call fcn.00474d28
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push esi
push ebx
push ecx
push edi
push 5
mov dword [esp + 0x3c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edi
call fcn.004061f0
mov dl, byte [esp + 0x34]
mov al, byte [esp + 0x38]
mov cx, word [esp + 0x40]
push edi
mov byte [esp + 0x12c], dl
mov byte [esp + 0x12d], al
mov word [esp + 0x407], cx
call fcn.00405540
mov al, byte [esp + 0x12d]
add esp, 0x28
cmp al, 5
jne 0x4028f2
mov byte [esp + 0x104], 4
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push esi
push ebx
push eax
push edi
push 8
mov dword [esp + 0x3c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edi
call fcn.004061f0
mov eax, dword [esp + 0x30]
add esp, 0x24
cmp eax, edi
je 0x402948
mov eax, 0xffffffed
mov ecx, dword [esp + 0x1434]
call fcn.00474d28
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov cl, byte [esp + 0x10]
mov word [esp + 0x107], di
mov byte [esp + 0x106], cl
mov word [esp + 0x111], 0xff
mov word [esp + 0x11b], 0xff00
mov word [esp + 0x125], 0xffff
lea edi, [esp + 0x109]
mov dword [esp + 0x20], 4
jmp 0x402990
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x1c]
push ecx
movzx ecx, word [edi - 2]
lea edx, [esp + 0x1c]
push edx
push esi
push ebx
push eax
push ecx
push 2
call fcn.004061f0
mov dx, word [esp + 0x34]
mov ax, word [esp + 0x38]
mov cx, word [esp + 0x30]
mov word [edi], dx
mov dx, word [esp + 0x3c]
mov word [edi + 2], ax
mov eax, dword [esp + 0x44]
mov word [edi + 4], cx
mov word [edi + 6], dx
add esp, 0x24
add edi, 0xa
dec eax
mov dword [esp + 0x20], eax
jne 0x402990
mov al, byte [esp + 0x106]
test al, al
je 0x402b3b
xor eax, eax
mov dword [esp + 0xd8], eax
xor edi, edi
lea ecx, [esp + 0x12f]
mov dword [esp + 0xdc], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ecx
lea ecx, [ecx]
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0xdc]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x20], edx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push esi
push ebx
push ecx
push edi
push 0x3c
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], 8
call fcn.004061f0
mov eax, dword [esp + 0x30]
add esp, 0x24
cmp eax, edi
jne 0x403036
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xdc]
mov edx, dword [esp + 0xd8]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x20]
inc ecx
mov dword [eax], edx
add eax, 8
cmp ecx, 8
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
jl 0x402a30
lea edx, [esp + 0x16f]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edx
jmp 0x402ac0
lea ecx, [esp + 0x18]
push ecx
lea eax, [esp + 0xdc]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push esi
push ebx
push edx
push edi
push 0x3d
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], 8
call fcn.004061f0
mov eax, dword [esp + 0x30]
add esp, 0x24
cmp eax, edi
jne 0x403036
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xd8]
mov edx, dword [esp + 0xdc]
mov dword [eax], ecx
mov ecx, dword [esp + 0x20]
inc ecx
mov dword [eax + 4], edx
add eax, 8
cmp ecx, 8
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
jl 0x402ac0
jmp 0x402b3d
xor edi, edi
mov al, byte [esp + 0x104]
test al, al
je 0x402d7d
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push esi
push ebx
push ecx
push edi
push 6
mov dword [esp + 0x3c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edi
call fcn.004061f0
mov eax, dword [esp + 0x30]
add esp, 0x24
cmp eax, edi
je 0x402bb0
push eax
push 0x401274
call fcn.00474cc6
add esp, 8
mov eax, 1
mov ecx, dword [esp + 0x1434]
call fcn.00474d28
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [esp + 0x10]
mov edx, dword [esp + 0x14]
shl edx, 0x10
or edx, eax
mov dword [esp + 0x1af], edx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x1b7]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push esi
push ebx
push eax
push edi
push 0x32
mov dword [esp + 0x34], 0xfffffff8
mov dword [esp + 0x38], 8
mov dword [esp + 0x30], edi
call fcn.004061f0
movzx ecx, byte [esp + 0x128]
shl ecx, 6
sub ecx, 8
mov dword [esp + 0x38], ecx
lea eax, [esp + 0x3c]
push eax
lea edx, [esp + 0x1eb]
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x44], edx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x40]
push eax
push esi
push ebx
push ecx
push edi
push 0x32
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
call fcn.004061f0
movzx edx, byte [esp + 0x14c]
shl edx, 6
sub edx, 8
add esp, 0x48
test edx, edx
jle 0x402cbb
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push esi
push ebx
push ecx
push 0
push 3
mov dword [esp + 0x34], edi
call fcn.004061f0
mov eax, dword [esp + 0x30]
mov dx, word [esp + 0x38]
add esp, 0x24
test eax, eax
mov word [esp + edi*2 + 0x1c3], dx
jne 0x403036
movzx eax, byte [esp + 0x104]
shl eax, 6
inc edi
sub eax, 8
cmp edi, eax
jl 0x402c64
xor eax, eax
mov ecx, 0x411
lea edi, [esp + 0x3e8]
rep stosd dword es:[edi], eax
xor edi, edi
lea ecx, [esp + 0x42c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], ecx
cmp edi, 0x32000
jge 0x402d5e
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], edx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push esi
push ebx
push edx
push 0
push 0x32
mov dword [esp + 0x38], 1
call fcn.004061f0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
add eax, 2
mov dword [esp + 0x44], eax
add edi, 0x64
mov eax, edi
cdq
and edx, 0x7ff
add eax, edx
sar eax, 0xb
inc ecx
push eax
mov dword [esp + 0x4c], ecx
call fcn.00405540
mov eax, dword [esp + 0x34]
add esp, 0x28
test eax, eax
je 0x402ce4
push 0x64
call fcn.00405540
mov eax, dword [esp + 0x28]
add esp, 4
mov dword [esp + 0x428], eax
mov dword [esp + 0xc], 0
xor edi, edi
mov al, byte [esp + 0x105]
cmp al, 3
je 0x402d90
cmp al, 5
jne 0x402e98
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push esi
push ebx
push edx
push edi
push 0x4e
mov dword [esp + 0x3c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edi
call fcn.004061f0
mov eax, dword [esp + 0x30]
add esp, 0x24
cmp eax, edi
je 0x402df4
push eax
push 0x401258
call fcn.00474cc6
add esp, 8
mov eax, 1
mov ecx, dword [esp + 0x1434]
call fcn.00474d28
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, word [esp + 0x10]
mov eax, dword [esp + 0x14]
shl eax, 0x10
or eax, ecx
mov dword [esp + 0x3b3], eax
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x3bb]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x20], edx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push esi
push ebx
push ecx
push edi
push 0x4d
mov dword [esp + 0x34], 0xfffffff8
mov dword [esp + 0x38], 8
mov dword [esp + 0x30], edi
call fcn.004061f0
lea eax, [esp + 0x3c]
push eax
lea edx, [esp + 0x3e7]
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x44], edx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x40]
push eax
push esi
push ebx
push ecx
push edi
push 0x4d
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], 0x10
call fcn.004061f0
mov eax, dword [esp + 0x54]
add esp, 0x48
cmp eax, edi
jne 0x403036
push esi
push ebx
lea edx, [esp + 0xe8]
push 0x401244
push edx
call fcn.00474c6e
lea eax, [esp + 0xf0]
push 0x401240
push eax
call fcn.00474c5b
mov ebx, eax
add esp, 0x18
cmp ebx, edi
jne 0x402edf
mov eax, 0xffffffec
mov ecx, dword [esp + 0x1434]
call fcn.00474d28
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
xor dword [esp + eax + 0x100], 0x7ea80131
add eax, 4
cmp eax, 0x280
jl 0x402ee1
xor eax, eax
lea ecx, [esp + 0x13f]
nop
mov dl, byte [ecx]
mov byte [esp + eax + 0x3cf], dl
mov byte [ecx], 0
inc eax
add ecx, 0x40
cmp eax, 0xa
jl 0x402f00
push 0x280
lea eax, [esp + 0x104]
push eax
push 0x240050
call fcn.004038e0
push ebx
push 1
lea ecx, [esp + 0x114]
push 0x2e1
push ecx
call fcn.00474b2a
movzx edx, byte [esp + 0x120]
mov eax, dword [esp + 0x444]
add esp, 0x1c
cmp eax, edx
jbe 0x40302b
push edi
call fcn.00474af1
push eax
call fcn.00474ac4
add esp, 8
xor esi, esi
lea esp, [esp]
call fcn.00474ace
mov byte [esp + esi + 0x3e8], al
inc esi
cmp esi, 0x10
jl 0x402f70
lea eax, [esp + 0x28]
push eax
push edi
lea ecx, [esp + 0x3f0]
push 0x10
push ecx
call fcn.00403170
add esp, 0x10
mov esi, 0x40
nop
lea edx, [esp + 0x28]
lea eax, [esp + esi + 0x3e8]
push edx
push eax
push eax
call fcn.004032e0
add esi, 0x10
add esp, 0xc
cmp esi, 0x1034
jb 0x402fa0
push 0x40
lea eax, [esp + 0x3ec]
push eax
push 0x240050
call fcn.004038e0
push ebx
push 1
lea ecx, [esp + 0x3fc]
push 0x1044
push ecx
call fcn.00474b2a
push 0x40123c
push 0x40122c
call fcn.00474c5b
mov esi, eax
add esp, 0x24
cmp esi, edi
je 0x40302b
test byte [esi + 0xc], 0x10
jne 0x403022
push ebx
push esi
call fcn.00474aaa
add esp, 4
push eax
call fcn.00474a86
mov al, byte [esi + 0xc]
add esp, 8
test al, 0x10
je 0x403008
push esi
call fcn.00474a30
add esp, 4
push ebx
call fcn.00474a30
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x1434]
call fcn.00474d28
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret