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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
lea edi, [edx - 0x10]
mov eax, 0x20001
cmp edi, 0x10
ja 0x9405cd
mov esi, 0x10101
bt esi, edi
jae 0x9405cd
mov esi, dword [esp + 0x20]
mov edi, edx
shr edi, 2
and edi, 0x3e
add edi, 6
test esi, esi
je 0x940166
mov eax, 0x20002
cmp edi, esi
jne 0x9405cd
mov ebp, dword [esp + 0x24]
cmp edx, 0x20
mov dword [ebp + 0x1e4], 0
mov dword [ebp + 0x1e0], edi
mov ebx, dword [ecx]
bswap ebx
mov dword [ebp], ebx
mov eax, dword [ecx + 4]
bswap eax
mov dword [ebp + 4], eax
mov dword [esp], eax
mov eax, dword [ecx + 8]
bswap eax
mov dword [ebp + 8], eax
mov esi, dword [ecx + 0xc]
bswap esi
mov dword [ebp + 0xc], esi
je 0x9403d9
cmp edx, 0x18
je 0x940375
mov eax, 0xffff
cmp edx, 0x10
jne 0x9405cd
mov ecx, esi
call fcn.00940680
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.00940680
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.00940680
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.00940680
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.00940680
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.00940680
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.00940680
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.00940680
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.00940680
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.00940680
xor eax, ebx
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 esi, 0x2c
mov dword [ebp + 0xac], eax
jmp 0x94043d
mov eax, dword [ecx + 0x10]
xor edi, edi
bswap eax
mov dword [ebp + 0x10], eax
mov eax, dword [ecx + 0x14]
bswap eax
mov dword [ebp + 0x14], eax
mov ecx, dword [ebp + 0x14]
mov dword [esp + 4], esi
call fcn.00940680
xor ebx, eax
mov eax, dword [esp]
xor ebx, dword [edi*4 + 0xb5f074]
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 0x9403c3
mov esi, 0x34
jmp 0x940439
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 0x940387
mov eax, dword [ecx + 0x10]
xor edi, edi
bswap eax
mov dword [ebp + 0x10], eax
mov eax, dword [ecx + 0x14]
bswap eax
mov dword [ebp + 0x14], eax
mov eax, dword [ecx + 0x18]
bswap eax
mov dword [ebp + 0x18], eax
mov eax, dword [ecx + 0x1c]
bswap eax
mov dword [ebp + 0x1c], eax
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 4], esi
call fcn.00940680
xor ebx, eax
mov eax, dword [esp]
xor ebx, dword [edi*4 + 0xb5f074]
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 0x9405d5
mov esi, 0x3c
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
xor eax, eax
test ecx, ecx
jne 0x9405cd
mov edx, dword [ebp + esi*4 - 0x10]
lea ecx, [ebp + 0x100]
lea eax, [ebp + 0xf0]
lea edi, [ebp + esi*4 - 0x10]
mov dword [esp], ecx
mov dword [ebp + 0xf0], edx
mov edx, dword [ebp + esi*4 - 0xc]
mov dword [ebp + 0xf4], edx
mov edx, dword [ebp + esi*4 - 8]
mov dword [ebp + 0xf8], edx
mov edx, dword [ebp + esi*4 - 4]
mov dword [ebp + 0xfc], edx
cmp dword [ebp + 0x1e0], 2
jge 0x94049b
mov ebp, dword [esp]
mov ebx, eax
mov esi, edi
jmp 0x9405b3
lea ecx, [ebp + esi*4 - 0x20]
mov ebp, dword [esp]
mov edx, 1
mov dword [esp], ecx
mov ecx, dword [edi - 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
inc edx
mov eax, ecx
mov ebx, ecx
movzx esi, ch
movzx ecx, cl
shr eax, 0xe
shr ebx, 0x18
and eax, 0x3fc
mov eax, dword [eax + 0xb5f49c]
xor eax, dword [ebx*4 + 0xb5f09c]
xor eax, dword [esi*4 + 0xb5f89c]
xor eax, dword [ecx*4 + 0xb5fc9c]
mov dword [ebp], eax
mov ebp, dword [esp + 8]
mov ebx, dword [edi - 0xc]
mov ecx, ebx
mov eax, ebx
movzx esi, bl
shr ecx, 0xe
shr eax, 0x18
and ecx, 0x3fc
mov ecx, dword [ecx + 0xb5f49c]
xor ecx, dword [eax*4 + 0xb5f09c]
movzx eax, bh
xor ecx, dword [eax*4 + 0xb5f89c]
xor ecx, dword [esi*4 + 0xb5fc9c]
mov dword [ebp + 0x14], ecx
mov eax, dword [edi - 8]
mov ecx, eax
mov ebx, eax
movzx esi, ah
movzx eax, al
shr ecx, 0xe
shr ebx, 0x18
and ecx, 0x3fc
mov ecx, dword [ecx + 0xb5f49c]
xor ecx, dword [ebx*4 + 0xb5f09c]
xor ecx, dword [esi*4 + 0xb5f89c]
mov esi, dword [esp]
xor ecx, dword [eax*4 + 0xb5fc9c]
mov dword [ebp + 0x18], ecx
mov eax, dword [edi - 4]
mov ecx, eax
mov ebx, eax
movzx edi, ah
movzx eax, al
shr ecx, 0xe
shr ebx, 0x18
and ecx, 0x3fc
mov ecx, dword [ecx + 0xb5f49c]
xor ecx, dword [ebx*4 + 0xb5f09c]
mov ebx, dword [esp + 4]
xor ecx, dword [edi*4 + 0xb5f89c]
mov edi, esi
xor ecx, dword [eax*4 + 0xb5fc9c]
mov eax, dword [esp + 0x24]
mov dword [ebp + 0x1c], ecx
lea ecx, [esi - 0x10]
lea ebp, [ebx + 0x10]
cmp edx, dword [eax + 0x1e0]
mov eax, ebx
jl 0x9404a7
mov eax, dword [esi - 0x10]
mov dword [ebp], eax
mov eax, dword [esi - 0xc]
mov dword [ebx + 0x14], eax
mov eax, dword [esi - 8]
mov dword [ebx + 0x18], eax
mov eax, dword [esi - 4]
mov dword [ebx + 0x1c], eax
xor eax, eax
add esp, 0xc
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.00940680
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 0x9403fb