Function at 0xbff6d8e2
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0x30], 0
mov edx, dword [ebp + 0xc]
mov eax, 0xff7f
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x14]
cmp dword [ebp + 0x10], eax
mov byte [ebp - 1], 0
mov byte [ebp - 2], 0
jb 0xbff6e8a4
test al, 3
jne 0xbff6e8a4
test byte [ebp + 0x10], 3
jne 0xbff6e8a4
push ebx
push esi
mov ecx, eax
mov eax, dword [ebp + 8]
mov ebx, ecx
shr ecx, 2
push edi
mov edi, dword [ebp + 0x1c]
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x10]
mov ecx, ebx
sub esi, ebx
mov edi, ebx
mov ebx, dword [ebp + 0x1c]
add ecx, eax
add ebx, edi
cmp esi, 8
jb 0xbff6d988
mov edi, ecx
sub edi, dword [ebp + 0x14]
mov eax, esi
shr eax, 3
mov dword [ebp - 0x28], eax
mov eax, dword [ecx]
xor eax, dword [edi]
add ecx, 4
mov dword [ebx], eax
mov eax, dword [ecx]
add edi, 4
xor eax, dword [edi]
add ebx, 4
mov dword [ebx], eax
add ebx, 4
add ecx, 4
add edi, 4
sub esi, 8
dec dword [ebp - 0x28]
jne 0xbff6d95f
mov eax, dword [ebp + 8]
test esi, esi
je 0xbff6d99a
mov eax, ecx
sub eax, dword [ebp + 0x14]
mov eax, dword [eax]
xor eax, dword [ecx]
mov dword [ebx], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x20]
mov edi, dword [ebp + 0x10]
push 2
mov byte [ecx + 8], 0
mov byte [ecx + 0x14], 0
mov dword [ebp - 0x38], edi
mov edi, dword [ebp + 0x14]
xor esi, esi
pop ecx
mov byte [ebp - 3], 1
mov dword [ebp - 0x18], ecx
mov dword [ebp + 0x10], edi
mov dword [ebp - 0x28], esi
cmp esi, dword [ebp + 0x10]
jae 0xbff6e10f
cmp dword [ebp - 0x18], 0x2000
jae 0xbff6e8a1
jmp 0xbff6df5d
mov edi, dword [ebp + 0x1c]
mov cl, byte [edi + esi + 1]
and cl, 0x7f
movzx cx, cl
mov word [ebp - 0x1c], cx
xor ecx, ecx
mov ch, byte [esi + edi]
or dword [ebp - 0x1c], ecx
cmp word [ebp - 0x1c], 0
jne 0xbff6db0c
mov ebx, dword [ebp + 0x10]
lea ecx, [esi + 2]
cmp ecx, ebx
jae 0xbff6daf2
mov cl, byte [esi + edi + 3]
and cl, 0x7f
movzx cx, cl
mov ch, byte [esi + edi + 2]
test cx, cx
jne 0xbff6daf2
lea ecx, [esi + 4]
cmp ecx, ebx
jae 0xbff6dae9
mov cl, byte [esi + edi + 5]
and cl, 0x7f
movzx cx, cl
mov ch, byte [esi + edi + 4]
test cx, cx
jne 0xbff6dae9
lea ecx, [esi + 6]
cmp ecx, ebx
jae 0xbff6dae0
mov cl, byte [esi + edi + 7]
and cl, 0x7f
movzx cx, cl
mov ch, byte [esi + edi + 6]
test cx, cx
jne 0xbff6dae0
lea ecx, [esi + edi + 8]
lea edi, [ebx + edi - 8]
mov bl, byte [ecx - 1]
and bl, 0x7f
movzx bx, bl
mov bh, byte [ecx - 2]
mov dword [ebp - 0xc], edi
lea edi, [ecx + 1]
cmp edi, dword [ebp - 0xc]
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x2c], ebx
jae 0xbff6dabe
mov dword [ebp - 0x24], edi
mov bl, byte [edi]
and bl, 0x7f
movzx bx, bl
mov bh, byte [ecx]
cmp bx, word [ebp - 0x2c]
jne 0xbff6dab8
inc dword [ebp - 0x14]
mov edi, dword [ebp - 0x24]
inc ecx
inc ecx
inc edi
inc edi
cmp edi, dword [ebp - 0xc]
mov dword [ebp - 0x24], edi
jb 0xbff6da95
cmp dword [ebp - 0x14], 0
jbe 0xbff6dad1
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x14
mov dword [ebp - 8], ecx
mov byte [ebp - 1], 1
jae 0xbff6dfdc
cmp byte [ebp - 2], 0
je 0xbff6dfaf
jmp 0xbff6dbc5
mov dword [ebp - 8], 3
jmp 0xbff6daf9
mov dword [ebp - 8], 2
jmp 0xbff6daf9
mov dword [ebp - 8], 1
cmp byte [ebp - 2], 0
mov byte [ebp - 1], 1
je 0xbff6dfdc
jmp 0xbff6dbc5
mov cl, byte [esi + edi + 3]
and cl, 0x7f
movzx cx, cl
mov ch, byte [esi + edi + 2]
cmp word [ebp - 0x1c], cx
jne 0xbff6dbc5
mov edi, dword [ebp + 0x1c]
mov cl, byte [esi + edi + 5]
and cl, 0x7f
movzx cx, cl
mov ch, byte [esi + edi + 4]
cmp word [ebp - 0x1c], cx
jne 0xbff6dbc5
mov cl, byte [esi + edi + 7]
and cl, 0x7f
movzx cx, cl
mov ch, byte [esi + edi + 6]
cmp word [ebp - 0x1c], cx
jne 0xbff6dbc5
mov ebx, dword [ebp + 0x10]
lea ecx, [esi + edi + 8]
lea edi, [ebx + edi - 8]
mov bl, byte [ecx - 1]
and bl, 0x7f
movzx bx, bl
mov bh, byte [ecx - 2]
mov dword [ebp - 0xc], edi
lea edi, [ecx + 1]
cmp edi, dword [ebp - 0xc]
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x2c], ebx
jae 0xbff6dbc5
mov dword [ebp - 0x24], edi
mov bl, byte [edi]
and bl, 0x7f
movzx bx, bl
mov bh, byte [ecx]
cmp bx, word [ebp - 0x2c]
jne 0xbff6dba9
inc dword [ebp - 0x14]
mov edi, dword [ebp - 0x24]
inc ecx
inc ecx
inc edi
inc edi
cmp edi, dword [ebp - 0xc]
mov dword [ebp - 0x24], edi
jb 0xbff6db86
mov ecx, dword [ebp - 0x14]
cmp ecx, 5
jbe 0xbff6dbc5
test ecx, ecx
jbe 0xbff6dbc5
cmp ecx, 0x14
mov dword [ebp - 8], ecx
mov byte [ebp - 1], 3
jae 0xbff6dfdc
mov bl, byte [esi + eax + 1]
and bl, 0x7f
movzx bx, bl
lea ecx, [esi + eax]
mov bh, byte [ecx]
mov dword [ebp - 0x24], ebx
mov bl, byte [esi + eax + 3]
and bl, 0x7f
movzx bx, bl
mov bh, byte [esi + eax + 2]
mov dword [ebp - 0x2c], ebx
mov bl, byte [esi + eax + 5]
and bl, 0x7f
movzx bx, bl
mov bh, byte [esi + eax + 4]
cmp word [ebp - 0x24], bx
jne 0xbff6dd66
mov bl, byte [esi + eax + 9]
and bl, 0x7f
movzx bx, bl
mov bh, byte [esi + eax + 8]
cmp word [ebp - 0x24], bx
jne 0xbff6dd66
mov bl, byte [esi + eax + 7]
mov edi, dword [ebp - 0x2c]
and bl, 0x7f
movzx bx, bl
mov bh, byte [esi + eax + 6]
cmp di, bx
jne 0xbff6dd66
mov bl, byte [esi + eax + 0xb]
and bl, 0x7f
movzx bx, bl
mov bh, byte [esi + eax + 0xa]
cmp di, bx
jne 0xbff6dd66
cmp word [ebp - 0x24], di
jne 0xbff6dce6
cmp byte [ebp - 3], 0
jne 0xbff6dd66
lea ecx, [esi + eax + 8]
mov bl, byte [ecx - 1]
and bl, 0x7f
movzx bx, bl
mov bh, byte [ecx - 2]
lea edi, [ecx + 1]
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp + 0x10]
lea ebx, [eax + ebx - 8]
cmp edi, ebx
jae 0xbff6dd66
mov dword [ebp - 0x24], edi
mov edi, dword [ebp - 0x24]
mov bl, byte [edi]
and bl, 0x7f
movzx bx, bl
mov bh, byte [ecx]
cmp bx, word [ebp - 0x2c]
jne 0xbff6dcbc
inc dword [ebp - 0xc]
mov edi, dword [ebp + 0x10]
add dword [ebp - 0x24], 2
inc ecx
lea edi, [eax + edi - 8]
inc ecx
cmp dword [ebp - 0x24], edi
jb 0xbff6dc93
mov ecx, dword [ebp - 0xc]
cmp ecx, 5
jbe 0xbff6dd66
cmp ecx, dword [ebp - 8]
jbe 0xbff6dd66
cmp ecx, 0x14
mov dword [ebp - 8], ecx
mov byte [ebp - 1], 4
jae 0xbff6dfdc
jmp 0xbff6dd66
mov bl, byte [ecx + 1]
movsx edi, word [ebp + 0x10]
and bl, 0x7f
movzx bx, bl
mov bh, byte [ecx]
and dword [ebp - 0xc], 0
sub edi, esi
mov dword [ebp - 0x2c], ebx
mov bl, byte [ecx + 3]
and bl, 0x7f
cmp edi, 2
movzx bx, bl
mov bh, byte [ecx + 2]
mov dword [ebp - 0x24], ebx
jle 0xbff6dd66
mov al, byte [ecx + 1]
and al, 0x7f
movzx ax, al
mov ah, byte [ecx]
cmp ax, word [ebp - 0x2c]
jne 0xbff6dd46
inc ecx
mov al, byte [ecx + 2]
inc ecx
and al, 0x7f
movzx ax, al
mov ah, byte [ecx]
cmp ax, word [ebp - 0x24]
jne 0xbff6dd46
add dword [ebp - 0xc], 2
inc ecx
sub edi, 4
inc ecx
cmp edi, 2
jg 0xbff6dd14
mov eax, dword [ebp - 0xc]
cmp eax, 9
jbe 0xbff6dd63
cmp eax, dword [ebp - 8]
jbe 0xbff6dd63
cmp eax, 0x14
mov dword [ebp - 8], eax
mov byte [ebp - 1], 5
jae 0xbff6dfd9
mov eax, dword [ebp + 8]
cmp dword [ebp - 8], 6
jae 0xbff6df1d
mov ecx, dword [ebp + 0x1c]
mov bl, byte [esi + ecx + 3]
and bl, 0x7f
movzx bx, bl
mov bh, byte [esi + ecx + 2]
test bx, bx
jne 0xbff6de61
mov bl, byte [esi + ecx + 5]
and bl, 0x7f
movzx bx, bl
mov bh, byte [esi + ecx + 4]
test bx, bx
jne 0xbff6de61
mov bl, byte [esi + ecx + 7]
and bl, 0x7f
movzx bx, bl
mov bh, byte [esi + ecx + 6]
test bx, bx
jne 0xbff6de61
mov bl, byte [esi + ecx + 9]
and bl, 0x7f
movzx bx, bl
mov bh, byte [esi + ecx + 8]
test bx, bx
jne 0xbff6de61
mov di, word [ebp - 0x1c]
cmp di, word [ebp - 0x10]
jne 0xbff6de61
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp + 0x20]
lea edi, [edi + edi*2]
cmp byte [ebx + edi*4 - 4], 1
jne 0xbff6de61
movzx edi, word [ebp + 0x14]
cmp esi, edi
je 0xbff6de61
mov ebx, dword [ebp + 0x10]
lea ebx, [ebx + ecx - 8]
lea edi, [esi + ecx + 0xa]
mov cl, byte [edi - 1]
and cl, 0x7f
movzx cx, cl
mov ch, byte [edi - 2]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x2c], ecx
lea ecx, [edi + 1]
cmp ecx, ebx
jae 0xbff6de4b
mov dword [ebp - 0x24], ecx
mov cl, byte [ecx]
xor ebx, ebx
mov bh, byte [edi]
and cl, 0x7f
mov bl, cl
cmp bx, word [ebp - 0x2c]
jne 0xbff6de4b
inc dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
inc edi
inc edi
inc ecx
inc ecx
cmp ecx, dword [ebp - 0x34]
mov dword [ebp - 0x24], ecx
jb 0xbff6de28
mov ecx, dword [ebp - 0xc]
inc ecx
cmp ecx, dword [ebp - 8]
jbe 0xbff6df1d
mov byte [ebp - 1], 2
jmp 0xbff6df11
mov edi, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x10]
and dword [ebp - 0xc], 0
add ebx, edi
mov dword [ebp - 0x2c], ebx
lea ecx, [esi + edi]
mov bl, byte [ecx + 1]
and bl, 0x7f
movzx bx, bl
mov bh, byte [ecx]
mov byte [ebp - 4], 0
mov dword [ebp - 0x20], ebx
inc ecx
inc ecx
inc dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x2c]
jae 0xbff6dee9
mov bl, byte [ecx + 1]
and bl, 0x7f
movzx bx, bl
mov bh, byte [ecx]
mov edi, ebx
cmp di, word [ebp - 0x20]
je 0xbff6dea9
test di, di
jne 0xbff6dee9
test byte [ebp - 0xc], 7
jne 0xbff6dee3
lea edi, [ecx + 0x30]
cmp edi, dword [ebp - 0x2c]
jae 0xbff6dee3
mov dword [ebp - 0x24], 2
mov edi, dword [ebp - 0x24]
mov bl, byte [edi + ecx + 1]
and bl, 0x7f
movzx bx, bl
mov bh, byte [edi + ecx]
cmp bx, word [ebp - 0x20]
jne 0xbff6dee3
add dword [ebp - 0x24], 2
cmp dword [ebp - 0x24], 0x30
mov byte [ebp - 4], 1
jl 0xbff6debe
cmp byte [ebp - 4], 0
je 0xbff6de86
mov cx, word [ebp - 0x20]
cmp cx, word [ebp - 0x10]
push 0x30
pop edi
jne 0xbff6def9
push 0x20
pop edi
mov ecx, dword [ebp - 0xc]
test cl, 7
jne 0xbff6df04
sub edi, 8
cmp ecx, edi
jb 0xbff6df1d
cmp ecx, dword [ebp - 8]
jbe 0xbff6df1d
mov byte [ebp - 1], 6
cmp ecx, 0x14
mov dword [ebp - 8], ecx
jae 0xbff6dfdc
cmp byte [ebp - 2], 0
jne 0xbff6df92
cmp dword [ebp - 8], 6
jae 0xbff6dfaf
cmp dword [ebp - 0x14], 4
jbe 0xbff6df8a
mov cx, word [ebp - 0x1c]
cmp cx, word [ebp - 0x10]
jne 0xbff6df8a
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp + 0x20]
lea ecx, [ecx + ecx*2]
lea ecx, [edi + ecx*4]
cmp byte [ecx - 4], 3
jne 0xbff6df7e
cmp esi, dword [ebp + 0x14]
je 0xbff6df7e
mov edi, dword [ebp - 0x14]
add dword [ecx - 8], edi
lea esi, [esi + edi*2]
and dword [ebp - 8], 0
and dword [ebp - 0x14], 0
lea ecx, [esi + 0xc]
cmp ecx, dword [ebp + 0x10]
jb 0xbff6d9db
mov byte [ebp - 1], 7
mov dword [ebp - 8], 1
jmp 0xbff6dfb5
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
mov byte [ebp - 1], 3
jmp 0xbff6dfdc
cmp dword [ebp - 8], 0
jne 0xbff6dfaf
jmp 0xbff6dfa4
cmp dword [ebp - 8], 6
jb 0xbff6dfa4
cmp byte [ebp - 1], 1
je 0xbff6dfaf
cmp dword [ebp - 8], 8
jae 0xbff6dfaf
mov byte [ebp - 1], 7
mov dword [ebp - 8], 1
cmp byte [ebp - 1], 7
jne 0xbff6dfdc
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp + 0x20]
lea ecx, [ecx + ecx*2]
lea ecx, [edi + ecx*4]
cmp byte [ecx - 4], 7
mov byte [ebp - 2], 1
jne 0xbff6e005
mov edi, dword [ebp - 8]
add dword [ecx - 8], edi
lea esi, [esi + edi*2]
jmp 0xbff6e103
mov eax, dword [ebp + 8]
cmp byte [ebp - 1], 3
mov byte [ebp - 2], 0
jne 0xbff6dff9
mov edi, dword [ebp + 0x1c]
mov cl, byte [edi + esi + 1]
and cl, 0x7f
movzx cx, cl
mov ch, byte [esi + edi]
jmp 0xbff6e002
cmp byte [ebp - 1], 6
jne 0xbff6e005
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x10], ecx
movzx ecx, word [ebp + 0x14]
cmp esi, ecx
mov ecx, dword [ebp - 8]
lea esi, [esi + ecx*2]
je 0xbff6e0e2
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp + 0x20]
lea ecx, [ecx + ecx*2]
lea edi, [edi + ecx*4]
mov cl, byte [edi - 4]
cmp byte [ebp - 1], cl
jne 0xbff6e051
cmp byte [ebp - 1], 1
jne 0xbff6e03c
mov ecx, dword [ebp - 8]
add dword [edi - 8], ecx
jmp 0xbff6e103
cmp byte [ebp - 1], 3
je 0xbff6e048
cmp byte [ebp - 1], 6
jne 0xbff6e051
movzx ebx, word [ebp - 0x10]
cmp ebx, dword [edi - 0xc]
je 0xbff6e031
cmp byte [ebp - 1], 1
jne 0xbff6e063
cmp cl, 1
je 0xbff6e031
cmp cl, 2
jne 0xbff6e091
jmp 0xbff6e031
cmp byte [ebp - 1], 6
jne 0xbff6e08b
cmp cl, 1
jne 0xbff6e0e2
mov ecx, dword [edi - 8]
cmp ecx, 8
jae 0xbff6e0e2
mov ebx, dword [ebp - 8]
add ecx, ebx
mov dword [edi - 8], ecx
movzx ecx, word [ebp - 0x10]
mov byte [edi - 4], 6
mov dword [edi - 0xc], ecx
jmp 0xbff6e103
cmp byte [ebp - 1], 2
jne 0xbff6e0c4
cmp cl, 6
jne 0xbff6e0c4
mov ebx, dword [edi - 8]
and ebx, 7
je 0xbff6e0c4
push 8
pop ecx
sub ecx, ebx
cmp ecx, dword [ebp - 8]
jbe 0xbff6e0ab
mov ecx, dword [ebp - 8]
sub dword [ebp - 8], ecx
add dword [edi - 8], ecx
cmp dword [ebp - 8], 9
jae 0xbff6e0c4
mov ecx, dword [edi - 8]
mov ebx, dword [ebp - 8]
add ecx, ebx
mov dword [edi - 8], ecx
jmp 0xbff6e103
cmp byte [ebp - 1], 7
jne 0xbff6e0e2
cmp byte [edi - 0x10], 7
jne 0xbff6e0e2
cmp dword [edi - 8], 1
jne 0xbff6e0e2
mov ecx, dword [ebp - 8]
inc ecx
add dword [edi - 0x14], ecx
dec dword [ebp - 0x18]
jmp 0xbff6e103
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp + 0x20]
mov bl, byte [ebp - 1]
inc dword [ebp - 0x18]
lea ecx, [ecx + ecx*2]
lea ecx, [edi + ecx*4]
mov edi, dword [ebp - 8]
mov dword [ecx + 4], edi
movzx edi, word [ebp - 0x10]
mov byte [ecx + 8], bl
mov dword [ecx], edi
cmp esi, dword [ebp + 0x10]
jb 0xbff6d9c9
push 2
pop ecx
inc dword [ebp - 0x28]
cmp dword [ebp - 0x28], ecx
mov edi, dword [ebp - 0x38]
mov dword [ebp + 0x10], edi
mov byte [ebp - 3], 0
jb 0xbff6d9c0
xor esi, esi
cmp dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], esi
mov byte [ebp - 3], 1
mov dword [ebp - 0x10], 0xff7f
mov dword [ebp - 0x24], ecx
jle 0xbff6e89b
mov ecx, edx
sub ecx, dword [ebp + 0xc]
add ecx, 5
cmp ecx, dword [ebp + 0x18]
ja 0xbff6e8a1
cmp byte [ebp - 3], 0
je 0xbff6e161
cmp esi, dword [ebp + 0x14]
jb 0xbff6e161
mov byte [ebp - 3], 0
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp + 0x20]
lea ecx, [ecx + ecx*2]
lea ebx, [edi + ecx*4]
mov cl, byte [ebx + 8]
test cl, cl
jbe 0xbff6e88c
cmp cl, 2
jbe 0xbff6e858
cmp cl, 3
je 0xbff6e7e6
cmp cl, 4
je 0xbff6e7a5
cmp cl, 5
je 0xbff6e72c
cmp cl, 6
je 0xbff6e24e
cmp cl, 7
jne 0xbff6e88c
cmp dword [ebx + 4], 1
jne 0xbff6e1e2
mov cl, byte [esi + eax + 1]
and cl, 0x7f
movzx di, cl
xor ecx, ecx
mov ch, byte [esi + eax]
or edi, ecx
test di, di
jne 0xbff6e1d0
mov byte [edx], 0xfe
jmp 0xbff6e1da
cmp di, 0xff7f
jne 0xbff6e1e2
mov byte [edx], 0xfd
inc edx
inc esi
inc esi
jmp 0xbff6e889
mov ecx, dword [ebx + 4]
cmp ecx, 0x1f
ja 0xbff6e1f2
or cl, 0x80
mov byte [edx], cl
inc edx
jmp 0xbff6e213
cmp ecx, 0x11f
ja 0xbff6e206
mov byte [edx], 0x80
mov cl, byte [ebx + 4]
inc edx
sub cl, 0x20
jmp 0xbff6e1ed
mov byte [edx], 0xf4
mov cx, word [ebx + 4]
inc edx
mov word [edx], cx
inc edx
inc edx
mov ecx, dword [ebx + 4]
shl ecx, 1
mov edi, ecx
sub edi, dword [ebp + 0xc]
add edi, edx
cmp edi, dword [ebp + 0x18]
ja 0xbff6e8a1
add esi, eax
mov eax, ecx
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, dword [ebx + 4]
mov esi, dword [ebp - 0xc]
shl ebx, 1
add edx, ebx
add esi, ebx
jmp 0xbff6e889
mov ecx, dword [ebx + 4]
mov dword [ebp + 0x10], ecx
add ecx, 7
shr ecx, 3
sub ecx, dword [ebp + 0xc]
lea ecx, [ecx + edx + 5]
cmp ecx, dword [ebp + 0x18]
ja 0xbff6e8a1
movzx ecx, word [ebp - 0x10]
cmp ecx, dword [ebx]
je 0xbff6e454
test byte [ebp + 0x10], 7
movzx ebx, word [ebx]
mov dword [ebp - 0x10], ebx
jne 0xbff6e296
cmp dword [ebp + 0x10], 0x78
ja 0xbff6e296
mov ecx, dword [ebp + 0x10]
shr ecx, 3
or cl, 0xd0
mov byte [edx], cl
inc edx
jmp 0xbff6e2b7
cmp dword [ebp + 0x10], 0xff
ja 0xbff6e2aa
mov cl, byte [ebp + 0x10]
mov byte [edx], 0xd0
inc edx
dec cl
jmp 0xbff6e291
mov cx, word [ebp + 0x10]
mov byte [edx], 0xf7
inc edx
mov word [edx], cx
inc edx
inc edx
mov cl, bl
and cl, 0x7f
mov byte [edx + 1], cl
mov byte [edx], bh
inc edx
inc edx
cmp dword [ebp + 0x10], 8
jb 0xbff6e3a0
mov ecx, dword [ebp + 0x1c]
lea edi, [esi + ecx + 0xd]
mov ecx, dword [ebp + 0x10]
shr ecx, 3
mov dword [ebp - 0x2c], ecx
shl ecx, 4
add esi, ecx
mov dword [ebp - 0xc], esi
xor ecx, ecx
mov byte [edx], 0
mov ch, byte [edi - 0xd]
mov bl, byte [edi - 0xc]
and bl, 0x7f
mov cl, bl
test cx, cx
je 0xbff6e2fd
mov byte [edx], 1
mov bl, byte [edi - 0xa]
xor ecx, ecx
mov ch, byte [edi - 0xb]
and bl, 0x7f
mov cl, bl
test cx, cx
je 0xbff6e312
or byte [edx], 2
mov bl, byte [edi - 8]
xor ecx, ecx
mov ch, byte [edi - 9]
and bl, 0x7f
mov cl, bl
test cx, cx
je 0xbff6e327
or byte [edx], 4
mov bl, byte [edi - 6]
xor ecx, ecx
mov ch, byte [edi - 7]
and bl, 0x7f
mov cl, bl
test cx, cx
je 0xbff6e33c
or byte [edx], 8
mov bl, byte [edi - 4]
xor ecx, ecx
mov ch, byte [edi - 5]
and bl, 0x7f
mov cl, bl
test cx, cx
je 0xbff6e351
or byte [edx], 0x10
mov bl, byte [edi - 2]
xor ecx, ecx
mov ch, byte [edi - 3]
and bl, 0x7f
mov cl, bl
test cx, cx
je 0xbff6e366
or byte [edx], 0x20
mov bl, byte [edi]
xor ecx, ecx
mov ch, byte [edi - 1]
and bl, 0x7f
mov cl, bl
test cx, cx
je 0xbff6e37a
or byte [edx], 0x40
mov bl, byte [edi + 2]
xor ecx, ecx
mov ch, byte [edi + 1]
and bl, 0x7f
mov cl, bl
test cx, cx
je 0xbff6e38f
or byte [edx], 0x80
sub dword [ebp + 0x10], 8
inc edx
add edi, 0x10
dec dword [ebp - 0x2c]
jne 0xbff6e2e5
cmp dword [ebp + 0x10], 0
je 0xbff6e88c
mov ecx, dword [ebp + 0x1c]
lea edi, [esi + ecx]
mov byte [edx], 0
mov cl, byte [edi + 1]
and cl, 0x7f
movzx cx, cl
mov ch, byte [edi]
test cx, cx
je 0xbff6e3c7
mov byte [edx], 1
push 2
pop ecx
add edi, ecx
mov bl, byte [edi + 1]
and bl, 0x7f
movzx bx, bl
mov bh, byte [edi]
test bx, bx
je 0xbff6e3df
or byte [edx], cl
add edi, ecx
mov bl, byte [edi + 1]
and bl, 0x7f
movzx bx, bl
mov bh, byte [edi]
test bx, bx
je 0xbff6e3f5
or byte [edx], 4
add edi, ecx
mov bl, byte [edi + 1]
and bl, 0x7f
movzx bx, bl
mov bh, byte [edi]
test bx, bx
je 0xbff6e40b
or byte [edx], 8
add edi, ecx
mov bl, byte [edi + 1]
and bl, 0x7f
movzx bx, bl
mov bh, byte [edi]
test bx, bx
je 0xbff6e421
or byte [edx], 0x10
add edi, ecx
mov bl, byte [edi + 1]
and bl, 0x7f
movzx bx, bl
mov bh, byte [edi]
test bx, bx
je 0xbff6e437
or byte [edx], 0x20
add edi, ecx
mov bl, byte [edi + 1]
and bl, 0x7f
movzx bx, bl
mov bh, byte [edi]
test bx, bx
je 0xbff6e44d
or byte [edx], 0x40
add edi, ecx
jmp 0xbff6e707
mov ecx, dword [ebp + 0x10]
cmp ecx, 8
jne 0xbff6e547
mov ecx, dword [ebp + 0x1c]
add ecx, esi
mov bl, byte [ecx + 1]
and bl, 0x7f
movzx bx, bl
mov bh, byte [ecx]
mov byte [ebp + 0x13], 0
test bx, bx
je 0xbff6e47e
mov byte [ebp + 0x13], 1
inc ecx
mov bl, byte [ecx + 2]
inc ecx
and bl, 0x7f
movzx bx, bl
mov bh, byte [ecx]
test bx, bx
je 0xbff6e495
or byte [ebp + 0x13], 2
inc ecx
mov bl, byte [ecx + 2]
inc ecx
and bl, 0x7f
movzx bx, bl
mov bh, byte [ecx]
test bx, bx
je 0xbff6e4ac
or byte [ebp + 0x13], 4
inc ecx
mov bl, byte [ecx + 2]
inc ecx
and bl, 0x7f
movzx bx, bl
mov bh, byte [ecx]
test bx, bx
je 0xbff6e4c3
or byte [ebp + 0x13], 8
inc ecx
mov bl, byte [ecx + 2]
inc ecx
and bl, 0x7f
movzx bx, bl
mov bh, byte [ecx]
test bx, bx
je 0xbff6e4da
or byte [ebp + 0x13], 0x10
inc ecx
mov bl, byte [ecx + 2]
inc ecx
and bl, 0x7f
movzx bx, bl
mov bh, byte [ecx]
test bx, bx
je 0xbff6e4f1
or byte [ebp + 0x13], 0x20
inc ecx
mov bl, byte [ecx + 2]
inc ecx
and bl, 0x7f
movzx bx, bl
mov bh, byte [ecx]
test bx, bx
je 0xbff6e508
or byte [ebp + 0x13], 0x40
inc ecx
mov bl, byte [ecx + 2]
inc ecx
and bl, 0x7f
movzx bx, bl
mov bh, byte [ecx]
test bx, bx
je 0xbff6e51f
or byte [ebp + 0x13], 0x80
mov bl, byte [ebp + 0x13]
movzx ecx, bl
sub ecx, 3
je 0xbff6e53b
dec ecx
dec ecx
je 0xbff6e536
mov byte [edx], 0x41
inc edx
mov byte [edx], bl
jmp 0xbff6e53e
mov byte [edx], 0xfa
jmp 0xbff6e53e
mov byte [edx], 0xf9
inc edx
add esi, 0x10
jmp 0xbff6e889
test cl, 7
jne 0xbff6e561
cmp ecx, 0xf8
ja 0xbff6e561
mov ebx, ecx
shr ebx, 3
or bl, 0x40
mov byte [edx], bl
inc edx
jmp 0xbff6e57c
cmp ecx, 0xff
ja 0xbff6e573
mov byte [edx], 0x40
mov bl, cl
inc edx
dec bl
jmp 0xbff6e55c
mov byte [edx], 0xf2
inc edx
mov word [edx], cx
inc edx
inc edx
cmp ecx, 8
jb 0xbff6e65a
mov edi, dword [ebp + 0x1c]
shr ecx, 3
mov dword [ebp - 0x2c], ecx
shl ecx, 4
lea edi, [esi + edi + 0xd]
add esi, ecx
mov dword [ebp - 0xc], esi
mov byte [edx], 0
mov cl, byte [edi - 0xc]
and cl, 0x7f
movzx cx, cl
mov ch, byte [edi - 0xd]
test cx, cx
je 0xbff6e5b2
mov byte [edx], 1
mov cl, byte [edi - 0xa]
and cl, 0x7f
movzx cx, cl
mov ch, byte [edi - 0xb]
test cx, cx
je 0xbff6e5c7
or byte [edx], 2
mov cl, byte [edi - 8]
and cl, 0x7f
movzx cx, cl
mov ch, byte [edi - 9]
test cx, cx
je 0xbff6e5dc
or byte [edx], 4
mov cl, byte [edi - 6]
and cl, 0x7f
movzx cx, cl
mov ch, byte [edi - 7]
test cx, cx
je 0xbff6e5f1
or byte [edx], 8
mov cl, byte [edi - 4]
and cl, 0x7f
movzx cx, cl
mov ch, byte [edi - 5]
test cx, cx
je 0xbff6e606
or byte [edx], 0x10
mov cl, byte [edi - 2]
and cl, 0x7f
movzx cx, cl
mov ch, byte [edi - 3]
test cx, cx
je 0xbff6e61b
or byte [edx], 0x20
mov bl, byte [edi]
xor ecx, ecx
mov ch, byte [edi - 1]
and bl, 0x7f
mov cl, bl
test cx, cx
je 0xbff6e62f
or byte [edx], 0x40
mov cl, byte [edi + 2]
and cl, 0x7f
movzx cx, cl
mov ch, byte [edi + 1]
test cx, cx
je 0xbff6e644
or byte [edx], 0x80
mov ecx, dword [ebp + 0x10]
sub ecx, 8
inc edx
add edi, 0x10
dec dword [ebp - 0x2c]
mov dword [ebp + 0x10], ecx
jne 0xbff6e59a
test ecx, ecx
je 0xbff6e88c
mov ecx, dword [ebp + 0x1c]
lea edi, [esi + ecx]
mov byte [edx], 0
mov cl, byte [edi + 1]
and cl, 0x7f
movzx cx, cl
mov ch, byte [edi]
test cx, cx
je 0xbff6e67f
mov byte [edx], 1
push 2
pop ebx
add edi, ebx
mov cl, byte [edi + 1]
and cl, 0x7f
movzx cx, cl
mov ch, byte [edi]
test cx, cx
je 0xbff6e697
or byte [edx], bl
add edi, ebx
mov cl, byte [edi + 1]
and cl, 0x7f
movzx cx, cl
mov ch, byte [edi]
test cx, cx
je 0xbff6e6ad
or byte [edx], 4
add edi, ebx
mov cl, byte [edi + 1]
and cl, 0x7f
movzx cx, cl
mov ch, byte [edi]
test cx, cx
je 0xbff6e6c3
or byte [edx], 8
add edi, ebx
mov cl, byte [edi + 1]
and cl, 0x7f
movzx cx, cl
mov ch, byte [edi]
test cx, cx
je 0xbff6e6d9
or byte [edx], 0x10
add edi, ebx
mov cl, byte [edi + 1]
and cl, 0x7f
movzx cx, cl
mov ch, byte [edi]
test cx, cx
je 0xbff6e6ef
or byte [edx], 0x20
add edi, ebx
mov cl, byte [edi + 1]
and cl, 0x7f
movzx cx, cl
mov ch, byte [edi]
test cx, cx
je 0xbff6e705
or byte [edx], 0x40
add edi, ebx
mov cl, byte [edi + 1]
and cl, 0x7f
movzx cx, cl
mov ch, byte [edi]
test cx, cx
je 0xbff6e71b
or byte [edx], 0x80
mov ecx, dword [ebp + 0x10]
mov bl, 1
shl bl, cl
dec bl
and byte [edx], bl
inc edx
jmp 0xbff6e886
mov ecx, dword [ebx + 4]
shr ecx, 1
cmp ecx, 0xf
ja 0xbff6e73e
or cl, 0xe0
mov byte [edx], cl
inc edx
jmp 0xbff6e758
cmp ecx, 0x10f
ja 0xbff6e74f
mov byte [edx], pe_nt_image_headers32
inc edx
sub cl, 0x10
jmp 0xbff6e739
mov byte [edx], 0xf8
inc edx
mov word [edx], cx
inc edx
inc edx
mov ecx, edx
sub ecx, dword [ebp + 0xc]
add ecx, 4
cmp ecx, dword [ebp + 0x18]
ja 0xbff6e8a1
mov cl, byte [esi + eax + 1]
and cl, 0x7f
movzx cx, cl
mov ch, byte [esi + eax]
mov al, cl
and al, 0x7f
mov byte [edx + 1], al
mov eax, dword [ebp + 8]
mov byte [edx], ch
mov cl, byte [esi + eax + 3]
inc edx
inc edx
and cl, 0x7f
movzx cx, cl
mov ch, byte [esi + eax + 2]
mov dword [ebp + 0x10], ecx
and cl, 0x7f
mov byte [edx + 1], cl
mov cl, byte [ebp + 0x11]
jmp 0xbff6e832
mov ecx, dword [ebx + 4]
cmp ecx, 0x1f
ja 0xbff6e7b5
or cl, 0x60
mov byte [edx], cl
inc edx
jmp 0xbff6e7d6
cmp ecx, 0x11f
ja 0xbff6e7c9
mov byte [edx], 0x60
mov cl, byte [ebx + 4]
inc edx
sub cl, 0x20
jmp 0xbff6e7b0
mov byte [edx], 0xf3
mov cx, word [ebx + 4]
inc edx
mov word [edx], cx
inc edx
inc edx
mov cl, byte [esi + eax + 1]
and cl, 0x7f
movzx cx, cl
mov ch, byte [esi + eax]
jmp 0xbff6e794
movzx ecx, word [ebp - 0x10]
cmp ecx, dword [ebx]
je 0xbff6e836
mov cx, word [ebx]
mov word [ebp - 0x10], cx
mov ecx, dword [ebx + 4]
cmp ecx, 0xf
ja 0xbff6e805
or cl, 0xc0
mov byte [edx], cl
inc edx
jmp 0xbff6e826
cmp ecx, 0x10f
ja 0xbff6e819
mov byte [edx], 0xc0
mov cl, byte [ebx + 4]
inc edx
sub cl, 0x10
jmp 0xbff6e800
mov byte [edx], 0xf6
mov cx, word [ebx + 4]
inc edx
mov word [edx], cx
inc edx
inc edx
mov cl, byte [ebp - 0x10]
and cl, 0x7f
mov byte [edx + 1], cl
mov cl, byte [ebp - 0xf]
mov byte [edx], cl
jmp 0xbff6e881
mov ecx, dword [ebx + 4]
cmp ecx, 0x1f
ja 0xbff6e846
or cl, 0x20
mov byte [edx], cl
inc edx
jmp 0xbff6e883
cmp ecx, 0x11f
ja 0xbff6e853
mov byte [edx], 0x20
jmp 0xbff6e86d
mov byte [edx], 0xf1
jmp 0xbff6e879
mov ecx, dword [ebx + 4]
cmp ecx, 0x1f
ja 0xbff6e862
jmp 0xbff6e841
cmp ecx, 0x11f
ja 0xbff6e876
mov byte [edx], 0
mov cl, byte [ebx + 4]
inc edx
sub cl, 0x20
jmp 0xbff6e841
mov byte [edx], 0xf0
mov cx, word [ebx + 4]
inc edx
mov word [edx], cx
inc edx
inc edx
mov ecx, dword [ebx + 4]
lea esi, [esi + ecx*2]
mov dword [ebp - 0xc], esi
inc dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x18]
jl 0xbff6e141
sub edx, dword [ebp + 0xc]
mov dword [ebp - 0x30], edx
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0x30]
leave
ret 0x1c