Function at 0x470644
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x35
push 0
push 0
dec ecx
jne 0x47064d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov ebx, ecx
imul ebx, ebx, 3
add ebx, 2
test ebx, ebx
js 0x47066d
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x470666
mov edx, esp
mov esi, eax
lea edi, [ebp - 0x2c]
push ecx
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
pop ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], edx
lea eax, [ebp - 0x2c]
mov edx, dword [0x46f738]
call fcn.00405678
mov ecx, dword [ebp - 0x30]
inc ecx
mov eax, dword [ebp - 4]
mov edx, dword [0x46f788]
call fcn.004056c0
xor eax, eax
push ebp
push 0x470b25
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x31], 0
push 0x470b50
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push 0x470bdc
push dword [0x4899c0]
push dword [0x48fcd4]
push 0x470be8
push dword [0x4899c0]
push dword [ebp - 0x18]
push 0x470bdc
push dword [0x4899c4]
push dword [0x48fcd8]
push 0x470be8
push dword [0x4899c4]
push 0x470bf4
push 0x470c60
push 0x470d04
lea eax, [ebp - 8]
mov edx, 0x14
call fcn.00404d94
push dword [ebp - 8]
push dword [0x4899c8]
lea edx, [ebp - 0x18c]
mov eax, dword [ebp - 0x30]
inc eax
call fcn.00408b64
push dword [ebp - 0x18c]
push 0x470d38
lea eax, [ebp - 8]
mov edx, 4
call fcn.00404d94
movzx esi, word [ebp - 0x30]
inc esi
dec esi
test si, si
jb 0x4707c0
inc esi
mov ebx, dword [ebp - 4]
push dword [ebp - 8]
push 0x470d44
push dword [ebx]
push 0x470d5c
push dword [ebx + 4]
push 0x470d70
lea eax, [ebp - 8]
mov edx, 6
call fcn.00404d94
movzx eax, byte [ebx + 8]
sub al, 1
jb 0x47078f
je 0x47079e
jmp 0x4707ab
lea eax, [ebp - 8]
mov edx, 0x470d98
call fcn.00404ccc
jmp 0x4707ab
lea eax, [ebp - 8]
mov edx, 0x470da4
call fcn.00404ccc
lea eax, [ebp - 8]
mov edx, 0x470db0
call fcn.00404ccc
add ebx, 0xc
dec si
jne 0x47075f
lea eax, [ebp - 8]
mov edx, 0x470dc4
call fcn.00404ccc
jmp 0x4707dc
lea eax, [ebp - 8]
mov edx, 0x470de8
call fcn.00404ccc
mov eax, dword [ebp - 8]
call fcn.00404cc0
and eax, 0x8000000f
jns 0x4707f0
dec eax
or eax, 0xfffffff0
inc eax
test eax, eax
jne 0x4707cf
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x470800
sub ebx, 4
mov ebx, dword [ebx]
push ebx
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x470620]
call fcn.00405cc8
add esp, 4
mov bx, 0x10
lea esi, [ebp - 0x148]
mov eax, pe_nt_image_headers32
call fcn.004032d4
mov byte [esi], al
inc esi
dec bx
jne 0x470821
lea edx, [ebp - 0x138]
mov eax, 0x48fcdc
call fcn.004617e4
lea eax, [ebp - 8]
call fcn.00404ef0
mov edx, eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x470859
sub eax, 4
mov eax, dword [eax]
lea ecx, [ebp - 0x138]
push ecx
mov ecx, dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x148]
xchg edx, eax
call fcn.0046f7d4
lea eax, [ebp - 0x188]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00405b0c
mov ecx, eax
mov edx, dword [ebp - 0x14]
mov eax, 0x470df4
call fcn.0046f90c
lea eax, [ebp - 0xc]
call fcn.00404a00
mov bx, 0x10
lea esi, [ebp - 0x148]
lea ecx, [ebp - 0x194]
movzx eax, byte [esi]
mov edx, 2
call fcn.00408c78
mov eax, dword [ebp - 0x194]
lea edx, [ebp - 0x190]
call fcn.0040895c
mov edx, dword [ebp - 0x190]
lea eax, [ebp - 0xc]
call fcn.00404ccc
inc esi
dec bx
jne 0x4708a0
mov bx, 0x20
lea esi, [ebp - 0x188]
lea ecx, [ebp - 0x19c]
movzx eax, byte [esi]
mov edx, 2
call fcn.00408c78
mov eax, dword [ebp - 0x19c]
lea edx, [ebp - 0x198]
call fcn.0040895c
mov edx, dword [ebp - 0x198]
lea eax, [ebp - 0xc]
call fcn.00404ccc
inc esi
dec bx
jne 0x4708e2
mov eax, dword [ebp - 0x14]
call fcn.00405b0c
mov esi, eax
dec esi
test si, si
jb 0x47096c
inc esi
xor ebx, ebx
movzx eax, bx
mov edx, dword [ebp - 0x14]
movzx eax, byte [edx + eax]
lea ecx, [ebp - 0x1a4]
mov edx, 2
call fcn.00408c78
mov eax, dword [ebp - 0x1a4]
lea edx, [ebp - 0x1a0]
call fcn.0040895c
mov edx, dword [ebp - 0x1a0]
lea eax, [ebp - 0xc]
call fcn.00404ccc
inc ebx
dec si
jne 0x47092d
lea eax, [ebp - 0x10]
mov ecx, dword [0x48fcd8]
mov edx, dword [0x48fcd4]
call fcn.00404d18
lea eax, [ebp - 0xc]
mov edx, 0x470e30
call fcn.00404ccc
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x470999
sub eax, 4
mov eax, dword [eax]
mov esi, eax
test si, si
jbe 0x4709f4
mov bx, 1
movzx edi, bx
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + edi - 1]
mov edx, dword [0x4899b4]
movzx edx, byte [edx + edi - 1]
xor al, dl
movzx eax, al
lea ecx, [ebp - 0x1ac]
mov edx, 2
call fcn.00408c78
mov eax, dword [ebp - 0x1ac]
lea edx, [ebp - 0x1a8]
call fcn.0040895c
mov edx, dword [ebp - 0x1a8]
lea eax, [ebp - 0xc]
call fcn.00404ccc
inc ebx
dec si
jne 0x4709a4
xor eax, eax
push ebp
push 0x470a25
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffff
mov ecx, 0x470e3c
mov dl, 1
mov eax, dword [0x412d5c]
call fcn.004175bc
mov dword [ebp - 0x38], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x470a45
xor ecx, ecx
push ebp
push 0x470ac5
push dword fs:[ecx]
mov dword fs:[ecx], esp
xor ecx, ecx
push ebp
push 0x470a8f
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0xc]
call fcn.00404ef0
mov edx, eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x470a77
sub eax, 4
mov eax, dword [eax]
mov ecx, eax
mov eax, dword [ebp - 0x38]
call fcn.0041736c
mov byte [ebp - 0x31], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x470aaf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470acc
mov eax, dword [ebp - 0x38]
call fcn.00403bd4
ret