Function at 0x6a2fb3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0xee37e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 0x24], esi
mov edi, ecx
mov dword [ebp - 0x54], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
xor ebx, ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp + 0x2c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x1c]
mov edx, eax
mov dword [ebp - 0x50], ecx
mov ecx, dword [edi]
push 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x4c], ebx
call fcn.00630e29
mov edx, eax
mov dword [ebp - 0x2c], edx
pop ecx
test edx, edx
jne 0x6a303a
mov ecx, dword [ebp - 0x28]
push ecx
push str.failed_to_allocate__d_bytes_for_GSPLANES
push dword [esi]
push 3
push edi
call fcn.00630eb2
add esp, 0x14
xor eax, eax
jmp 0x6a337e
mov esi, ebx
cmp dword [ebp - 0x28], ebx
jbe 0x6a305f
push dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
mov ecx, edi
call fcn.00680ee2
mov edx, dword [ebp - 0x2c]
pop ecx
mov dword [edx + esi*4], eax
test eax, eax
je 0x6a30ba
inc esi
cmp esi, dword [ebp - 0x28]
jb 0x6a3041
mov ecx, dword [ebp + 0x28]
cmp ecx, 1
mov eax, dword [ebp + 0x20]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
setle al
add al, 2
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], esi
mov ecx, edi
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0xc], al
mov dword [ebp - 0xb], 0x2fffdff
mov word [ebp - 7], 0xfefe
mov byte [ebp - 5], 0xfe
test esi, esi
je 0x6a30f7
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x28]
push dword [edx + eax*4 - 4]
push dword [ebp - 0x48]
push dword [ebp - 0x40]
call fcn.006dce35
mov esi, dword [ebp - 0x24]
jmp 0x6a315b
push dword [ebp - 0x38]
mov eax, dword [ebp - 0x24]
push dword [ebp - 0x34]
push str.failed_to_allocate__dx_d_image_for_GSPLANES
push dword [eax]
push 2
push edi
call fcn.00630eb2
mov ebx, dword [ebp - 0x2c]
add esp, 0x18
test esi, esi
je 0x6a30e9
dec esi
mov ecx, edi
mov edx, dword [ebx + esi*4]
call fcn.00680f9e
jmp 0x6a30d8
mov eax, dword [edi]
push ebx
push eax
call dword [eax + 4]
xor eax, eax
jmp 0x6a337c
push dword [ebp - 0x48]
mov edx, dword [ebp - 0x40]
call fcn.0063166d
mov dword [ebp - 0x58], eax
pop ecx
test eax, eax
jne 0x6a3124
push str.failed_to_allocate_word_stream_when_decoding_gray_scale_image
mov eax, dword [ebp - 0x24]
push dword [eax]
push 2
push edi
call fcn.00630eb2
add esp, 0x10
jmp 0x6a3341
mov edx, eax
mov ecx, edi
call fcn.006dc298
mov edx, eax
mov dword [ebp - 0x4c], edx
test edx, edx
jne 0x6a313d
push str.failed_to_allocate_arithmetic_coding_state_when_decoding_gray_scale_image
jmp 0x6a310f
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
push dword [ebp - 0x50]
mov esi, dword [ebp - 0x24]
push dword [eax + ecx*4 - 4]
lea eax, [ebp - 0x20]
mov ecx, edi
push edx
push eax
mov edx, esi
call fcn.006a7dc7
add esp, 0x10
test eax, eax
jns 0x6a3179
push str.error_decoding_GSPLANES_for_halftone_image
push dword [esi]
push 2
push edi
call fcn.00630eb2
add esp, 0x10
jmp 0x6a333b
mov eax, dword [ebp - 0x28]
sub eax, 1
je 0x6a3216
mov edx, dword [ebp - 0x2c]
dec eax
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x30], eax
mov eax, dword [edx + eax*4]
je 0x6a31b1
lea ecx, [ebp - 0x3c]
push ecx
push eax
mov eax, dword [ebp - 0x48]
mov ecx, edi
sub eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x3c]
push eax
call fcn.006dce35
jmp 0x6a31c5
push dword [ebp - 0x50]
mov edx, esi
mov ecx, edi
push eax
push dword [ebp - 0x4c]
lea eax, [ebp - 0x20]
push eax
call fcn.006a7dc7
add esp, 0x10
test eax, eax
js 0x6a3244
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x60], ebx
mov eax, dword [edx + eax*4]
mov eax, dword [eax + 8]
imul eax, dword [ebp - 0x38]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x6a320b
mov edi, dword [ebp - 0x30]
mov esi, eax
mov eax, dword [edx + edi*4]
mov ecx, dword [eax + 0xc]
mov eax, dword [edx + edi*4 + 4]
mov eax, dword [eax + 0xc]
mov al, byte [eax + ebx]
xor byte [ecx + ebx], al
inc ebx
cmp ebx, esi
jb 0x6a31eb
mov edi, dword [ebp - 0x54]
xor ebx, ebx
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x6a3188
mov edx, dword [ebp - 0x34]
mov ecx, dword [edi]
push 4
call fcn.00630e29
mov dword [ebp - 0x44], eax
pop ecx
test eax, eax
jne 0x6a324e
push dword [ebp - 0x34]
push str.failed_to_allocate_GSVALS:__d_bytes
push dword [esi]
push 3
push edi
call fcn.00630eb2
add esp, 0x14
jmp 0x6a333b
push str.failed_to_decode_GSPLANES_for_halftone_image
jmp 0x6a3167
cmp dword [ebp - 0x34], 0
mov esi, ebx
jbe 0x6a333b
mov edx, dword [ebp - 0x38]
mov ecx, dword [edi]
push 2
call fcn.00630e29
pop ecx
mov ecx, dword [ebp - 0x44]
mov dword [ecx + esi*4], eax
test eax, eax
je 0x6a32f7
inc esi
cmp esi, dword [ebp - 0x34]
jb 0x6a325a
mov edi, dword [ebp - 0x2c]
mov edx, ebx
mov eax, dword [ebp - 0x38]
mov esi, ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x3c], esi
mov ecx, ebx
mov dword [ebp - 0x40], ecx
test eax, eax
je 0x6a32e3
mov eax, dword [esi]
xor edx, edx
cmp dword [ebp - 0x28], edx
mov dword [ebp - 0x30], ebx
mov word [eax + ecx*2], dx
mov eax, ebx
mov edx, dword [ebp - 0x24]
jbe 0x6a32d8
mov ebx, dword [ebp - 0x40]
mov ecx, dword [edi + eax*4]
mov esi, dword [esi]
push ebx
call fcn.0068175c
mov edx, dword [ebp - 0x24]
pop ecx
mov ecx, dword [ebp - 0x30]
shl ax, cl
add word [esi + ebx*2], ax
mov eax, ecx
mov esi, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x30], eax
cmp eax, dword [ebp - 0x28]
jb 0x6a32ac
mov ecx, dword [ebp - 0x40]
xor ebx, ebx
mov eax, dword [ebp - 0x38]
inc ecx
mov dword [ebp - 0x40], ecx
cmp ecx, eax
jb 0x6a3294
inc edx
add esi, 4
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x3c], esi
cmp edx, dword [ebp - 0x34]
jb 0x6a328b
mov edi, dword [ebp - 0x54]
jmp 0x6a333b
mov eax, dword [ebp - 0x38]
imul eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x24]
push str.failed_to_allocate_GSVALS:__d_bytes
push dword [eax]
push 3
push edi
call fcn.00630eb2
add esp, 0x14
test esi, esi
je 0x6a332d
mov ebx, dword [ebp - 0x44]
mov eax, dword [edi]
dec esi
push dword [ebx + esi*4]
push eax
call dword [eax + 4]
pop ecx
pop ecx
test esi, esi
jne 0x6a331b
xor ebx, ebx
mov eax, dword [edi]
push dword [ebp - 0x44]
push eax
call dword [eax + 4]
pop ecx
pop ecx
mov dword [ebp - 0x44], ebx
cmp dword [ebp + 0x10], 0
jne 0x6a3356
mov eax, dword [edi]
push dword [ebp - 0x4c]
push eax
call dword [eax + 4]
mov eax, dword [edi]
push dword [ebp - 0x58]
push eax
call dword [eax + 4]
add esp, 0x10
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x6a336f
mov eax, dword [ebp - 0x2c]
mov ecx, edi
mov edx, dword [eax + ebx*4]
call fcn.00680f9e
inc ebx
cmp ebx, esi
jb 0x6a335d
mov eax, dword [edi]
mov ebx, dword [ebp - 0x2c]
push ebx
push eax
call dword [eax + 4]
mov eax, dword [ebp - 0x44]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006f3e28
leave
ret