Function at 0xe9340
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x284
mov ebx, dword [0xfdf9c]
mov ebp, dword [0xfdf98]
mov eax, ebp
or eax, ebx
jne 0xe940e
mov dword [esp + 0x54], 0x51ba4fa2
mov dword [esp + 0x58], 0x55be53b4
mov dword [esp + 0x5c], 0x597857b8
mov dword [esp + 0x60], 0x5db65bbc
mov dword [esp + 0x64], 0x615e5fb0
mov dword [esp + 0x68], 0
mov dword [esp + 0x154], 0
mov eax, dword [esp + 0x154]
cmp eax, 0x17
ja 0xe93ea
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x154]
movzx eax, byte [esp + eax + 0x54]
push dword [esp + 0x154]
push eax
call fcn.000e9dc0
add esp, 8
mov ecx, dword [esp + 0x154]
mov byte [esp + ecx + 0x54], al
inc dword [esp + 0x154]
mov eax, dword [esp + 0x154]
cmp eax, 0x18
jb 0xe93b0
lea eax, [esp + 0x54]
push eax
call fcn.000e8f90
add esp, 4
mov ebp, eax
mov dword [0xfdf9c], edx
mov dword [0xfdf98], eax
or eax, edx
je 0xe94e8
mov ebx, edx
lea eax, [esp + 0x244]
push 0x40
push eax
push ebx
push ebp
call fcn.000e8d90
add esp, 0x10
test eax, eax
js 0xe94e8
mov eax, dword [esp + 0x280]
mov ecx, eax
sar ecx, 0x1f
add eax, ebp
adc ecx, ebx
add eax, 0x18
adc ecx, 0
lea edx, [esp + 0x154]
push 0xf0
push edx
push ecx
push eax
call fcn.000e8d90
add esp, 0x10
xor edi, edi
test eax, eax
js 0xe94ea
cmp dword [esp + 0x1c8], 0
je 0xe94ea
mov eax, dword [esp + 0x1c4]
mov esi, 0
test eax, eax
je 0xe94ec
add eax, ebp
mov ecx, ebx
adc ecx, 0
lea edx, [esp + 0x2c]
push 0x28
push edx
push ecx
push eax
call fcn.000e8d90
add esp, 0x10
test eax, eax
js 0xe94e8
mov ecx, dword [esp + 0x40]
lea esi, [ecx*4]
mov eax, 0xffffffff
cmp ecx, 0x40000000
jae 0xe94b1
mov eax, esi
push eax
call fcn.000ad700
add esp, 4
mov edx, dword [esp + 0x48]
add edx, ebp
mov ecx, ebx
adc ecx, 0
push esi
mov dword [esp + 0x10], eax
push eax
push ecx
push edx
call fcn.000e8d90
add esp, 0x10
test eax, eax
js 0xe94fb
mov eax, dword [esp + 0x40]
test eax, eax
jns 0xe9504
mov eax, 0xffffffff
jmp 0xe9506
xor edi, edi
xor esi, esi
mov eax, edi
mov edx, esi
add esp, 0x284
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
xor esi, esi
jmp 0xe973c
add eax, eax
push eax
call fcn.000ad700
add esp, 4
mov esi, dword [esp + 0x44]
add esi, esi
mov ecx, dword [esp + 0x50]
add ecx, ebp
mov edx, ebx
adc edx, 0
push esi
mov dword [esp + 0xc], eax
push eax
push edx
push ecx
call fcn.000e8d90
add esp, 0x10
test eax, eax
js 0xe972c
mov ecx, dword [esp + 0x44]
lea esi, [ecx*4]
mov eax, 0xffffffff
cmp ecx, 0x40000000
jae 0xe9552
mov eax, esi
push eax
call fcn.000ad700
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x4c]
add eax, ebp
mov ecx, ebx
adc ecx, 0
push esi
push edi
push ecx
push eax
call fcn.000e8d90
add esp, 0x10
test eax, eax
mov dword [esp + 4], edi
js 0xe971a
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
cmp esi, eax
jb 0xe958e
mov esi, eax
test esi, esi
je 0xe971a
xor eax, eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], esi
jmp 0xe95d1
mov edx, 0xb14a5e2
cmp edx, dword [esp + 0x298]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
je 0xe974d
mov eax, dword [esp + 0x10]
inc eax
cmp eax, esi
je 0xe971a
mov dword [esp + 0x10], eax
mov eax, dword [edi + eax*4]
add eax, ebp
mov ecx, ebx
adc ecx, 0
push 0x100
lea edx, [esp + 0x58]
push edx
push ecx
push eax
call fcn.000e8d90
add esp, 0x10
test eax, eax
jns 0xe95fe
cmp eax, 0x8000000d
jne 0xe95c4
mov ebx, 0xffffffff
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, eax
cmp byte [esp + ebx + 0x55], 0
lea ebx, [ebx + 1]
lea eax, [eax + 1]
jne 0xe9610
mov dword [esp + 0x18], 0x323230a3
lea eax, [esp + 0x1c]
mov byte [eax + 2], 0
mov word [eax], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 6
ja 0xe9676
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 0x18]
push dword [esp]
push eax
call fcn.000e9e40
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 0x18], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 7
jb 0xe9650
test ebx, ebx
je 0xe95a6
mov eax, dword [esp + 0x18]
mov ecx, eax
not ecx
mov edx, 0xb14a5e2
lea ebp, [esp + 0x54]
cmp ebx, 1
je 0xe96ee
and esi, 0xfffffffe
mov dword [esp + 0x14], ecx
nop
nop
nop
nop
nop
movsx edi, byte [ebp]
xor edi, edx
mov edx, edi
and edx, ecx
mov ecx, edi
not ecx
and ecx, eax
imul ecx, edx
mov edx, edi
and edx, eax
or edi, eax
imul edi, edx
add edi, ecx
movsx edx, byte [ebp + 1]
add ebp, 2
xor edx, edi
mov ecx, edx
and ecx, dword [esp + 0x14]
mov edi, edx
not edi
and edi, eax
imul edi, ecx
mov ecx, edx
and ecx, eax
or edx, eax
imul edx, ecx
mov ecx, dword [esp + 0x14]
add edx, edi
add esi, 0xfffffffe
jne 0xe96a0
mov edi, dword [esp + 4]
test bl, 1
je 0xe95ab
mov esi, ecx
movsx ecx, byte [ebp]
xor edx, ecx
and esi, edx
mov ecx, edx
not ecx
and ecx, eax
imul ecx, esi
mov esi, edx
and esi, eax
or edx, eax
imul edx, esi
add edx, ecx
jmp 0xe95ab
xor edi, edi
xor esi, esi
push dword [esp + 4]
call fcn.000ad710
add esp, 4
jmp 0xe9730
xor edi, edi
xor esi, esi
push dword [esp + 8]
call fcn.000ad710
add esp, 4
push dword [esp + 0xc]
call fcn.000ad710
add esp, 4
jmp 0xe94ec
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
movzx eax, word [eax + ecx*2]
mov ecx, dword [esp + 0xc]
add ebp, dword [ecx + eax*4]
adc ebx, 0
mov edi, ebp
mov esi, ebx
jmp 0xe971e