Function at 0x402f80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x24]
xorps xmm0, xmm0
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 0x1c]
lea edx, [esi + 0x138]
mov eax, dword [ebp + 8]
mov ebx, 0x10
movups xmmword [esi + 0x128], xmm0
mov dword [ebp - 0x24], ecx
lea ecx, [esi + 0x128]
movups xmmword [edx], xmm0
push edi
movups xmmword [ebp - 0x18], xmm0
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x3c], edx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi], 0
mov dword [esi + 0x148], 1
mov byte [ebp - 9], 0x80
mov edi, 0x10
cmp ebx, edi
cmovb edi, ebx
test edi, edi
je 0x403029
mov edx, eax
mov esi, edi
mov al, byte [edx]
lea edx, [edx + 1]
xor byte [ecx], al
lea ecx, [ecx + 1]
sub esi, 1
jne 0x403014
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, ecx
mov ecx, esi
call fcn.00402b60
mov eax, dword [ebp - 0x20]
lea ecx, [esi + 0x128]
add eax, edi
add esp, 4
mov dword [ebp - 0x20], eax
sub ebx, edi
jne 0x403002
lea edx, [ebp - 0x17]
mov edi, 4
lea ecx, [esi + 0x129]
movzx eax, byte [edx - 1]
lea edx, [edx + 4]
xor byte [ecx - 1], al
lea ecx, [ecx + 4]
movzx eax, byte [edx - 4]
xor byte [ecx - 4], al
movzx eax, byte [edx - 3]
xor byte [ecx - 3], al
movzx eax, byte [edx - 2]
xor byte [ecx - 2], al
sub edi, 1
jne 0x403056
lea ebx, [esi + 0x128]
mov ecx, esi
push ebx
mov edx, ebx
call fcn.00402b60
add esp, 4
lea eax, [esi + 0x118]
mov edx, ebx
lea ecx, [esi + 0x148]
push eax
call fcn.004021a0
add esp, 4
test eax, eax
jne 0x40332b
mov edx, dword [ebp + 0x20]
xorps xmm0, xmm0
add dword [esi + 8], edx
mov dword [esi + 0x10], eax
adc dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 8]
movlpd qword [ebp - 0x34], xmm0
test edx, edx
je 0x4031e3
mov ebx, 0xfffffed9
lea eax, [esi + 0x137]
sub ebx, esi
mov dword [ebp - 0x1c], ebx
mov edi, 0x10
cmp edx, edi
cmovb edi, edx
mov dword [ebp - 0x20], edi
add byte [eax], 1
jne 0x4030ff
dec eax
lea ecx, [ebx + eax]
cmp ecx, 0xc
ja 0x4030f1
lea eax, [ebp - 0x18]
push eax
lea edx, [esi + 0x128]
lea ecx, [esi + 0x148]
call fcn.004021a0
add esp, 4
test eax, eax
jne 0x40332b
cmp dword [esi], 1
jne 0x403161
test edi, edi
je 0x4031a6
mov ebx, dword [ebp + 0x18]
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 0x3c]
mov eax, ecx
sub ebx, eax
mov esi, ecx
mov eax, dword [ebp - 0x24]
sub eax, esi
mov esi, edi
mov dword [ebp - 0x30], eax
mov edi, eax
mov al, byte [ecx + ebx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edi + ecx - 1], al
xor byte [edx - 1], al
sub esi, 1
jne 0x403147
jmp 0x40319d
test edi, edi
je 0x4031a6
mov esi, dword [ebp + 0x18]
lea ebx, [ebp - 0x18]
mov eax, dword [ebp - 0x24]
sub ebx, esi
mov edx, dword [ebp - 0x3c]
sub eax, esi
mov ecx, esi
mov dword [ebp - 0x30], eax
mov esi, edi
mov edi, eax
nop
movzx eax, byte [ecx]
lea edx, [edx + 1]
xor byte [edx - 1], al
lea ecx, [ecx + 1]
movzx eax, byte [ecx + ebx - 1]
xor al, byte [ecx - 1]
mov byte [edi + ecx - 1], al
sub esi, 1
jne 0x403180
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x20]
lea eax, [esi + 0x138]
mov ecx, esi
push eax
mov edx, eax
call fcn.00402b60
mov edx, dword [ebp + 0x20]
lea eax, [esi + 0x137]
add dword [ebp + 0x18], edi
sub edx, edi
add dword [ebp - 0x24], edi
add esp, 4
mov dword [ebp + 0x20], edx
test edx, edx
jne 0x4030e4
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
jmp 0x4031e9
mov ebx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x40]
movups xmm0, xmmword [esi + 0x118]
shld ecx, eax, 3
shld ebx, edx, 3
shl eax, 3
mov dword [ebp - 0x1c], eax
shl edx, 3
or eax, ecx
mov dword [ebp - 0x30], ecx
movups xmmword [edi], xmm0
jne 0x403218
mov eax, edx
or eax, ebx
je 0x403318
mov eax, ebx
mov byte [ebp - 0x15], bl
shr eax, 0x18
lea edi, [esi + 0x139]
mov byte [ebp - 0x18], al
mov ecx, edx
mov eax, ebx
mov byte [ebp - 0x11], dl
shr eax, 0x10
mov esi, edi
mov byte [ebp - 0x17], al
mov eax, ebx
shr eax, 8
mov byte [ebp - 0x16], al
mov eax, ebx
shrd ecx, eax, 0x18
mov eax, ebx
mov byte [ebp - 0x14], cl
mov ecx, edx
shrd ecx, eax, 0x10
mov eax, edx
mov edx, dword [ebp - 0x1c]
shrd eax, ebx, 8
mov ebx, dword [ebp - 0x30]
mov byte [ebp - 0x12], al
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 0x10], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0xf], al
mov eax, ebx
shr eax, 8
mov byte [ebp - 0xe], al
mov eax, ebx
mov byte [ebp - 0x13], cl
mov ecx, edx
shrd ecx, eax, 0x18
mov eax, ebx
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], cl
mov ecx, edx
shrd ecx, eax, 0x10
mov eax, edx
mov byte [ebp - 9], dl
shrd eax, ebx, 8
mov byte [ebp - 0xb], cl
mov edx, 4
mov byte [ebp - 0xa], al
lea ecx, [ebp - 0x17]
nop dword [eax + eax]
movzx eax, byte [ecx - 1]
lea ecx, [ecx + 4]
xor byte [esi - 1], al
lea esi, [esi + 4]
movzx eax, byte [ecx - 4]
xor byte [esi - 4], al
movzx eax, byte [ecx - 3]
xor byte [esi - 3], al
movzx eax, byte [ecx - 2]
xor byte [esi - 2], al
sub edx, 1
jne 0x4032b0
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x28]
push edx
call fcn.00402b60
mov ecx, dword [ebp - 0x40]
add esp, 4
add ecx, 2
mov edx, 4
movzx eax, byte [edi - 1]
lea edi, [edi + 4]
xor byte [ecx - 2], al
lea ecx, [ecx + 4]
movzx eax, byte [edi - 4]
xor byte [ecx - 5], al
movzx eax, byte [edi - 3]
xor byte [ecx - 4], al
movzx eax, byte [edi - 2]
xor byte [ecx - 3], al
sub edx, 1
jne 0x4032f1
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040802b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040802b
mov esp, ebp
pop ebp
ret