Function at 0x672790
Capabilities:
Encode data using xor
Inspect section memory permissions

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov ecx, dword [esp + 0x20]
mov eax, 0x20001
lea edx, [ecx - 0x10]
cmp edx, 0x10
ja 0x672c1d
mov esi, 0x10101
bt esi, edx
jae 0x672c1d
mov esi, dword [esp + 0x24]
mov edx, ecx
shr edx, 2
and edx, 0x3e
add edx, 6
test esi, esi
je 0x6727da
mov eax, 0x20002
cmp edx, esi
jne 0x672c1d
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
cmp ecx, 0x20
mov dword [ebp + 0x1e0], edx
mov ebx, dword [eax]
bswap ebx
mov dword [ebp], ebx
mov edx, dword [eax + 4]
bswap edx
mov dword [ebp + 4], edx
mov dword [esp], edx
mov edx, dword [eax + 8]
bswap edx
mov dword [ebp + 8], edx
mov esi, dword [eax + 0xc]
bswap esi
mov dword [ebp + 0xc], esi
je 0x672a47
cmp ecx, 0x18
je 0x6729e3
mov eax, 0xffff
cmp ecx, 0x10
jne 0x672c1d
mov ecx, esi
call fcn.006734c0
mov edi, dword [esp]
xor eax, ebx
xor eax, 0x1000000
mov dword [ebp + 0x10], eax
mov dword [esp + 4], eax
xor edi, eax
mov dword [ebp + 0x14], edi
mov ebx, dword [ebp + 8]
xor ebx, edi
mov dword [ebp + 0x18], ebx
xor ebx, esi
mov ecx, ebx
mov dword [ebp + 0x1c], ebx
call fcn.006734c0
mov esi, eax
xor esi, dword [esp + 4]
xor esi, 0x2000000
xor edi, esi
mov dword [ebp + 0x20], esi
mov dword [ebp + 0x24], edi
mov ecx, dword [ebp + 0x18]
xor ecx, edi
mov dword [ebp + 0x28], ecx
xor ecx, ebx
mov dword [esp], ecx
mov dword [ebp + 0x2c], ecx
call fcn.006734c0
mov ebx, eax
xor ebx, esi
xor ebx, 0x4000000
xor edi, ebx
mov dword [ebp + 0x30], ebx
mov dword [ebp + 0x34], edi
mov esi, dword [ebp + 0x28]
xor esi, edi
mov dword [ebp + 0x38], esi
xor esi, dword [esp]
mov ecx, esi
mov dword [ebp + 0x3c], esi
call fcn.006734c0
xor eax, ebx
xor eax, 0x8000000
xor edi, eax
mov dword [ebp + 0x40], eax
mov dword [esp], eax
mov dword [ebp + 0x44], edi
mov ebx, dword [ebp + 0x38]
xor ebx, edi
mov dword [ebp + 0x48], ebx
xor ebx, esi
mov ecx, ebx
mov dword [ebp + 0x4c], ebx
call fcn.006734c0
mov esi, eax
xor esi, dword [esp]
xor esi, 0x10000000
xor edi, esi
mov dword [ebp + 0x50], esi
mov dword [ebp + 0x54], edi
mov ecx, dword [ebp + 0x48]
xor ecx, edi
mov dword [ebp + 0x58], ecx
xor ecx, ebx
mov dword [esp], ecx
mov dword [ebp + 0x5c], ecx
call fcn.006734c0
mov ebx, eax
xor ebx, esi
xor ebx, 0x20000000
xor edi, ebx
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x64], edi
mov esi, dword [ebp + 0x58]
xor esi, edi
mov dword [ebp + 0x68], esi
xor esi, dword [esp]
mov ecx, esi
mov dword [ebp + 0x6c], esi
call fcn.006734c0
xor eax, ebx
xor eax, 0x40000000
xor edi, eax
mov dword [ebp + 0x70], eax
mov dword [esp], eax
mov dword [ebp + 0x74], edi
mov ebx, dword [ebp + 0x68]
xor ebx, edi
mov dword [ebp + 0x78], ebx
xor ebx, esi
mov ecx, ebx
mov dword [ebp + 0x7c], ebx
call fcn.006734c0
mov esi, eax
xor esi, dword [esp]
xor esi, 0x80000000
xor edi, esi
mov dword [ebp + 0x80], esi
mov dword [ebp + 0x84], edi
mov ecx, dword [ebp + 0x78]
xor ecx, edi
mov dword [ebp + 0x88], ecx
xor ecx, ebx
mov dword [esp], ecx
mov dword [ebp + 0x8c], ecx
call fcn.006734c0
mov ebx, eax
xor ebx, esi
xor ebx, 0x1b000000
xor edi, ebx
mov dword [ebp + 0x90], ebx
mov dword [ebp + 0x94], edi
mov esi, dword [ebp + 0x88]
xor esi, edi
mov dword [ebp + 0x98], esi
xor esi, dword [esp]
mov ecx, esi
mov dword [ebp + 0x9c], esi
call fcn.006734c0
xor eax, ebx
mov ecx, 0x2c
xor eax, 0x36000000
mov dword [ebp + 0xa0], eax
xor eax, edi
mov dword [ebp + 0xa4], eax
xor eax, dword [ebp + 0x98]
mov dword [ebp + 0xa8], eax
xor eax, esi
mov dword [ebp + 0xac], eax
jmp 0x672aab
mov ecx, dword [eax + 0x10]
xor edi, edi
bswap ecx
mov dword [ebp + 0x10], ecx
mov eax, dword [eax + 0x14]
bswap eax
mov dword [ebp + 0x14], eax
mov ecx, dword [ebp + 0x14]
mov dword [esp + 4], esi
call fcn.006734c0
xor ebx, eax
mov eax, dword [esp]
xor ebx, dword [edi*4 + 0x6a9d9c]
inc edi
xor eax, ebx
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x1c], eax
mov esi, dword [ebp + 8]
xor esi, eax
mov dword [ebp + 0x20], esi
xor esi, dword [esp + 4]
cmp edi, 8
mov dword [ebp + 0x24], esi
jne 0x672a31
mov ecx, 0x34
jmp 0x672aa7
mov ecx, dword [ebp + 0x10]
mov dword [esp], eax
xor ecx, esi
mov dword [ebp + 0x28], ecx
xor ecx, dword [ebp + 0x14]
mov dword [ebp + 0x2c], ecx
lea ebp, [ebp + 0x18]
jmp 0x6729f5
mov ecx, dword [eax + 0x10]
xor edi, edi
bswap ecx
mov dword [ebp + 0x10], ecx
mov ecx, dword [eax + 0x14]
bswap ecx
mov dword [ebp + 0x14], ecx
mov ecx, dword [eax + 0x18]
bswap ecx
mov dword [ebp + 0x18], ecx
mov eax, dword [eax + 0x1c]
bswap eax
mov dword [ebp + 0x1c], eax
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 4], esi
call fcn.006734c0
xor ebx, eax
mov eax, dword [esp]
xor ebx, dword [edi*4 + 0x6a9d9c]
inc edi
xor eax, ebx
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x24], eax
mov esi, dword [ebp + 8]
xor esi, eax
mov dword [ebp + 0x28], esi
xor esi, dword [esp + 4]
cmp edi, 7
mov dword [ebp + 0x2c], esi
jne 0x672c25
mov ecx, 0x3c
mov ebp, dword [esp + 0x28]
mov edx, dword [ebp + ecx*4 - 0x10]
lea eax, [ebp + 0xf0]
lea esi, [ebp + ecx*4 - 0x10]
lea ebx, [ebp + 0x100]
mov dword [ebp + 0xf0], edx
mov edx, dword [ebp + ecx*4 - 0xc]
mov dword [ebp + 0xf4], edx
mov edx, dword [ebp + ecx*4 - 8]
mov dword [ebp + 0xf8], edx
mov edx, dword [ebp + ecx*4 - 4]
mov dword [ebp + 0xfc], edx
cmp dword [ebp + 0x1e0], 2
jge 0x672af5
mov edi, eax
mov ebp, esi
jmp 0x672c04
lea edx, [ebp + ecx*4 - 0x20]
mov ecx, 1
mov dword [esp], eax
mov eax, dword [esi - 0x10]
mov dword [esp + 4], edx
inc ecx
mov edi, eax
mov edx, eax
shr edi, 0xe
shr edx, 0x18
and edi, 0x3fc
mov ebp, dword [edi + 0x6aa1c4]
mov edi, ebx
xor ebp, dword [edx*4 + 0x6a9dc4]
movzx edx, ah
movzx eax, al
xor ebp, dword [edx*4 + 0x6aa5c4]
xor ebp, dword [eax*4 + 0x6aa9c4]
mov dword [ebx], ebp
mov ebp, dword [esp]
mov edx, dword [esi - 0xc]
mov eax, edx
mov ebx, edx
shr eax, 0xe
shr ebx, 0x18
and eax, 0x3fc
mov eax, dword [eax + 0x6aa1c4]
xor eax, dword [ebx*4 + 0x6a9dc4]
movzx ebx, dh
movzx edx, dl
xor eax, dword [ebx*4 + 0x6aa5c4]
xor eax, dword [edx*4 + 0x6aa9c4]
mov dword [ebp + 0x14], eax
mov edx, dword [esi - 8]
mov eax, edx
mov ebx, edx
shr eax, 0xe
shr ebx, 0x18
and eax, 0x3fc
mov eax, dword [eax + 0x6aa1c4]
xor eax, dword [ebx*4 + 0x6a9dc4]
movzx ebx, dh
movzx edx, dl
xor eax, dword [ebx*4 + 0x6aa5c4]
xor eax, dword [edx*4 + 0x6aa9c4]
mov dword [ebp + 0x18], eax
mov ebp, dword [esp + 4]
mov edx, dword [esi - 4]
mov eax, edx
mov ebx, edx
movzx esi, dh
movzx edx, dl
shr eax, 0xe
shr ebx, 0x18
and eax, 0x3fc
mov eax, dword [eax + 0x6aa1c4]
xor eax, dword [ebx*4 + 0x6a9dc4]
lea ebx, [edi + 0x10]
xor eax, dword [esi*4 + 0x6aa5c4]
mov esi, ebp
xor eax, dword [edx*4 + 0x6aa9c4]
mov edx, dword [esp]
mov dword [edx + 0x1c], eax
mov eax, dword [esp + 0x28]
lea edx, [ebp - 0x10]
cmp ecx, dword [eax + 0x1e0]
mov eax, edi
jl 0x672afe
mov eax, dword [ebp - 0x10]
mov dword [ebx], eax
mov eax, dword [ebp - 0xc]
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 4]
mov dword [edi + 0x1c], eax
xor eax, eax
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp], eax
mov eax, dword [ebp + 0x10]
mov ecx, esi
ror ecx, 8
mov dword [esp + 4], eax
call fcn.006734c0
xor eax, dword [esp + 4]
mov dword [ebp + 0x30], eax
xor eax, dword [ebp + 0x14]
mov dword [ebp + 0x34], eax
xor eax, dword [ebp + 0x18]
mov dword [ebp + 0x38], eax
xor eax, dword [ebp + 0x1c]
mov dword [ebp + 0x3c], eax
lea ebp, [ebp + 0x20]
jmp 0x672a69