Function at 0x478f98
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x94], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov esi, eax
lea edi, [ebp - 0x2c]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x30], edx
lea eax, [ebp - 0x2c]
mov edx, dword [0x4789d8]
call fcn.0040551c
xor eax, eax
push ebp
push 0x4792db
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x24
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x478f74]
call fcn.00405aac
add esp, 4
mov eax, dword [ebp - 4]
call fcn.004058f0
mov edx, dword [ebp - 4]
xor ecx, ecx
xchg edx, eax
call fcn.004033b4
lea eax, [ebp - 0x88]
push eax
mov eax, 0x64
call fcn.00403178
mov dword [ebp - 0x90], eax
mov byte [ebp - 0x8c], 0
lea edx, [ebp - 0x90]
xor ecx, ecx
mov eax, 0x4792f4
call fcn.0040986c
mov eax, dword [ebp - 0x88]
push eax
lea eax, [ebp - 0x94]
movzx edx, byte [ebp - 0x28]
call fcn.00404a8c
mov edx, dword [ebp - 0x94]
lea eax, [ebp - 8]
pop ecx
call fcn.00404bbc
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x72]
push eax
movzx eax, byte [ebp - 0xc]
push eax
lea ecx, [ebp - 0x27]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x2c]
call fcn.00478b40
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x72]
mov cl, 0x36
mov dl, 0x10
call fcn.00478d9c
lea eax, [ebp - 0x2c]
call fcn.00404d94
mov edx, dword [ebp - 4]
add edx, 0x10
mov ecx, 4
call fcn.00403050
lea eax, [ebp - 8]
call fcn.00404d94
mov edx, dword [ebp - 4]
add edx, 0x14
mov ecx, 3
call fcn.00403050
xor ebx, ebx
mov eax, pe_nt_image_headers32
call fcn.00403178
movzx edx, bl
add edx, 0x17
mov ecx, dword [ebp - 4]
mov byte [ecx + edx], al
inc ebx
cmp bl, 5
jne 0x4790c4
lea edx, [ebp - 0x62]
mov eax, dword [ebp - 4]
add eax, 0x17
mov ecx, 5
call fcn.00403050
mov eax, dword [ebp - 4]
call fcn.004058f0
mov edx, eax
lea ecx, [ebp - 0x82]
mov eax, dword [ebp - 4]
call fcn.00478a18
push 0x20
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x478f74]
call fcn.00405aac
add esp, 4
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x72]
mov cl, 0x5c
mov dl, 0x10
call fcn.00478d9c
mov eax, dword [ebp - 4]
lea edx, [eax + 0x10]
lea eax, [ebp - 0x82]
mov ecx, 0x10
call fcn.00403050
mov eax, dword [ebp - 4]
call fcn.004058f0
mov edx, eax
lea ecx, [ebp - 0x82]
mov eax, dword [ebp - 4]
call fcn.00478a18
push 0
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x478f74]
call fcn.00405aac
add esp, 4
mov bl, 8
lea eax, [ebp - 0x82]
lea edx, [ebp - 0x82]
lea esi, [ebp - 0x44]
movzx ecx, byte [edx]
xor cl, byte [eax]
mov byte [esi], cl
inc esi
add edx, 2
inc eax
dec bl
jne 0x47918a
lea edx, [ebp - 0x5d]
lea eax, [ebp - 0x44]
mov ecx, 8
call fcn.00403050
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4750a4]
call fcn.0047448c
mov dword [ebp - 0x34], eax
push 0
lea edx, [ebp - 0x72]
mov ecx, 0x80
mov eax, dword [ebp - 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x40]
lea edx, [ebp - 0x55]
lea eax, [ebp - 0x62]
mov ecx, 0xd
call fcn.00403050
mov bl, 1
lea esi, [ebp - 0x62]
lea eax, [ebp - 0x55]
mov dword [ebp - 0x48], eax
lea edx, [ebp - 0x3c]
mov eax, esi
mov ecx, 8
call fcn.00478dd4
lea ecx, [ebp - 0x44]
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x34]
mov edi, dword [eax]
call dword [edi + 0x6c]
lea edx, [ebp - 0x44]
lea eax, [ebp - 0x44]
mov ecx, 8
call fcn.00478dd4
mov eax, dword [ebp - 0x48]
mov edx, eax
lea eax, [ebp - 0x44]
mov ecx, 8
call fcn.00403050
add dword [ebp - 0x48], 8
add esi, 8
dec bl
jne 0x4791e8
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0x34]
call fcn.00403a78
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x55]
mov edx, 0xd
call fcn.00478e3c
mov edx, dword [ebp - 0x30]
mov ecx, 8
mov eax, 0x479304
call fcn.00404e24
mov edx, dword [ebp - 0x30]
mov ecx, 0x10
mov eax, 0x479304
call fcn.00404e24
push dword [ebp - 0x2c]
push dword [ebp - 8]
push 0x479304
mov eax, dword [ebp - 0x30]
push dword [eax]
mov eax, dword [ebp - 0x30]
mov edx, 4
call fcn.00404c38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4792e2
lea eax, [ebp - 0x94]
call fcn.004048a4
lea eax, [ebp - 0x88]
call fcn.004048a4
lea eax, [ebp - 0x2c]
mov edx, dword [0x4789d8]
call fcn.004053d8
lea eax, [ebp - 8]
call fcn.004048a4
lea eax, [ebp - 4]
mov edx, dword [0x478f74]
call fcn.00405ab8
ret