Function at 0xbff6e8b0
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
and dword [ebp - 0x30], 0
mov edx, dword [ebp + 0xc]
mov eax, 0xffff
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x14]
cmp dword [ebp + 0x10], eax
mov byte [ebp - 1], 0
mov byte [ebp - 2], 0
jb 0xbff6f607
test al, 3
jne 0xbff6f607
test byte [ebp + 0x10], 3
jne 0xbff6f607
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, eax
mov eax, dword [ebp + 0x1c]
mov ebx, ecx
shr ecx, 2
push edi
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
mov esi, ebx
add ecx, esi
mov esi, dword [ebp + 0x10]
sub esi, ebx
cmp esi, 8
mov edi, ebx
lea ebx, [edi + eax]
jb 0xbff6e957
mov edi, ecx
sub edi, dword [ebp + 0x14]
mov eax, esi
shr eax, 3
mov dword [ebp - 0x24], 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 - 0x24]
jne 0xbff6e92e
mov eax, dword [ebp + 0x1c]
test esi, esi
je 0xbff6e969
mov eax, ecx
sub eax, dword [ebp + 0x14]
mov eax, dword [eax]
xor eax, dword [ecx]
mov dword [ebx], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x20]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
push 2
mov byte [ecx + 8], 0
mov byte [ecx + 0x14], 0
xor esi, esi
pop ecx
mov byte [ebp - 3], 1
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x34], edi
mov dword [ebp + 0x10], ebx
mov dword [ebp - 0x24], esi
cmp esi, ebx
jae 0xbff6f01e
cmp dword [ebp - 0x18], 0x2000
jae 0xbff6f604
jmp 0xbff6ee6d
movzx di, byte [esi + eax + 1]
xor ecx, ecx
mov ch, byte [esi + eax]
or edi, ecx
test di, di
mov dword [ebp - 0x2c], edi
jne 0xbff6eaac
lea ecx, [esi + 2]
cmp ecx, ebx
jae 0xbff6eaa3
xor ecx, ecx
mov ch, byte [esi + eax + 2]
mov cl, byte [esi + eax + 3]
test cx, cx
jne 0xbff6eaa3
lea ecx, [esi + 4]
cmp ecx, ebx
jae 0xbff6ea9a
xor ecx, ecx
mov ch, byte [esi + eax + 4]
mov cl, byte [esi + eax + 5]
test cx, cx
jne 0xbff6ea9a
lea ecx, [esi + 6]
cmp ecx, ebx
jae 0xbff6ea80
xor ecx, ecx
mov ch, byte [esi + eax + 6]
mov cl, byte [esi + eax + 7]
test cx, cx
jne 0xbff6ea80
lea ecx, [esi + eax + 8]
lea ebx, [ebx + eax - 8]
xor eax, eax
mov ah, byte [ecx - 2]
lea edi, [ecx + 1]
cmp edi, ebx
mov dword [ebp - 0x10], 4
mov al, byte [ecx - 1]
mov dword [ebp - 0x28], eax
jae 0xbff6ea5b
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 0xc]
xor eax, eax
mov ah, byte [ecx]
mov al, byte [edi]
cmp ax, word [ebp - 0x28]
jne 0xbff6ea55
inc dword [ebp - 0x10]
add dword [ebp - 0xc], 2
inc ecx
inc ecx
cmp dword [ebp - 0xc], ebx
jb 0xbff6ea38
cmp dword [ebp - 0x10], 0
jbe 0xbff6ea6e
mov eax, dword [ebp - 0x10]
cmp eax, 0x14
mov dword [ebp - 8], eax
mov byte [ebp - 1], 1
jae 0xbff6eee8
cmp byte [ebp - 2], 0
mov eax, dword [ebp + 0x1c]
je 0xbff6eebe
jmp 0xbff6eb39
mov dword [ebp - 8], 3
cmp byte [ebp - 2], 0
mov byte [ebp - 1], 1
je 0xbff6eeeb
jmp 0xbff6eb39
mov dword [ebp - 8], 2
jmp 0xbff6ea87
mov dword [ebp - 8], 1
jmp 0xbff6ea87
xor ecx, ecx
mov ch, byte [esi + eax + 2]
mov cl, byte [esi + eax + 3]
cmp di, cx
jne 0xbff6eb39
xor ecx, ecx
mov ch, byte [esi + eax + 4]
mov cl, byte [esi + eax + 5]
cmp di, cx
jne 0xbff6eb39
xor ecx, ecx
mov ch, byte [esi + eax + 6]
mov cl, byte [esi + eax + 7]
cmp di, cx
jne 0xbff6eb39
lea ecx, [esi + eax + 8]
lea ebx, [ebx + eax - 8]
xor eax, eax
mov ah, byte [ecx - 2]
lea edi, [ecx + 1]
cmp edi, ebx
mov dword [ebp - 0x10], 4
mov al, byte [ecx - 1]
mov dword [ebp - 0x28], eax
jae 0xbff6eb36
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 0xc]
xor eax, eax
mov ah, byte [ecx]
mov al, byte [edi]
cmp ax, word [ebp - 0x28]
jne 0xbff6eb1a
inc dword [ebp - 0x10]
add dword [ebp - 0xc], 2
inc ecx
inc ecx
cmp dword [ebp - 0xc], ebx
jb 0xbff6eafd
mov eax, dword [ebp - 0x10]
cmp eax, 5
jbe 0xbff6eb36
test eax, eax
jbe 0xbff6eb36
cmp eax, 0x14
mov dword [ebp - 8], eax
mov byte [ebp - 1], 3
jae 0xbff6eee8
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
movzx bx, byte [esi + edi + 1]
lea ecx, [esi + edi]
mov bh, byte [ecx]
mov dword [ebp - 0x20], ebx
xor ebx, ebx
mov bh, byte [esi + edi + 2]
mov bl, byte [esi + edi + 3]
mov dword [ebp - 0xc], ebx
xor ebx, ebx
mov bh, byte [esi + edi + 4]
mov bl, byte [esi + edi + 5]
cmp word [ebp - 0x20], bx
jne 0xbff6ec8f
mov eax, edi
lea edi, [esi + eax + 8]
movzx ax, byte [esi + eax + 9]
mov ah, byte [edi]
cmp word [ebp - 0x20], ax
jne 0xbff6ec8c
mov eax, dword [ebp + 8]
xor ebx, ebx
mov bh, byte [esi + eax + 6]
mov bl, byte [esi + eax + 7]
cmp word [ebp - 0xc], bx
jne 0xbff6ec8c
xor ebx, ebx
mov bh, byte [esi + eax + 0xa]
mov bl, byte [esi + eax + 0xb]
mov eax, dword [ebp - 0xc]
cmp ax, bx
jne 0xbff6ec8c
cmp word [ebp - 0x20], ax
jne 0xbff6ec1c
cmp byte [ebp - 3], 0
jne 0xbff6ec8c
mov eax, dword [ebp + 8]
mov ecx, edi
mov edi, dword [ebp + 0x10]
lea ebx, [eax + edi - 8]
xor eax, eax
mov ah, byte [ecx - 2]
lea edi, [ecx + 1]
cmp edi, ebx
mov dword [ebp - 0xc], 4
mov al, byte [ecx - 1]
mov dword [ebp - 0x28], eax
jae 0xbff6ec8c
mov dword [ebp - 0x20], edi
mov edi, dword [ebp - 0x20]
xor eax, eax
mov ah, byte [ecx]
mov al, byte [edi]
cmp ax, word [ebp - 0x28]
jne 0xbff6ec09
inc dword [ebp - 0xc]
add dword [ebp - 0x20], 2
inc ecx
inc ecx
cmp dword [ebp - 0x20], ebx
jb 0xbff6ebec
mov eax, dword [ebp - 0xc]
cmp eax, 5
jbe 0xbff6ec8c
cmp eax, dword [ebp - 8]
jbe 0xbff6ec8c
mov byte [ebp - 1], 4
jmp 0xbff6ec7b
xor eax, eax
mov ah, byte [ecx]
movsx edi, word [ebp + 0x10]
and dword [ebp - 0xc], 0
sub edi, esi
mov al, byte [ecx + 1]
mov dword [ebp - 0x28], eax
xor eax, eax
cmp edi, 2
mov ah, byte [ecx + 2]
mov al, byte [ecx + 3]
mov dword [ebp - 0x20], eax
jle 0xbff6ec8c
xor eax, eax
mov ah, byte [ecx]
mov al, byte [ecx + 1]
cmp ax, word [ebp - 0x28]
jne 0xbff6ec6a
inc ecx
inc ecx
xor eax, eax
mov ah, byte [ecx]
mov al, byte [ecx + 1]
cmp ax, word [ebp - 0x20]
jne 0xbff6ec6a
add dword [ebp - 0xc], 2
inc ecx
sub edi, 4
inc ecx
cmp edi, 2
jg 0xbff6ec40
mov eax, dword [ebp - 0xc]
cmp eax, 9
jbe 0xbff6ec8c
cmp eax, dword [ebp - 8]
jbe 0xbff6ec8c
mov byte [ebp - 1], 5
mov dword [ebp - 8], eax
cmp eax, 0x14
mov eax, dword [ebp + 0x1c]
jae 0xbff6eeeb
jmp 0xbff6ec8f
mov eax, dword [ebp + 0x1c]
cmp dword [ebp - 8], 6
jae 0xbff6ee2a
xor ecx, ecx
mov ch, byte [esi + eax + 2]
mov cl, byte [esi + eax + 3]
test cx, cx
jne 0xbff6ed6a
xor ecx, ecx
mov ch, byte [esi + eax + 4]
mov cl, byte [esi + eax + 5]
test cx, cx
jne 0xbff6ed6a
xor ecx, ecx
mov ch, byte [esi + eax + 6]
mov cl, byte [esi + eax + 7]
test cx, cx
jne 0xbff6ed6a
xor ecx, ecx
mov ch, byte [esi + eax + 8]
mov cl, byte [esi + eax + 9]
test cx, cx
jne 0xbff6ed6a
mov cx, word [ebp - 0x2c]
cmp cx, word [ebp - 0x14]
jne 0xbff6ed6a
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp + 0x20]
lea ecx, [ecx + ecx*2]
cmp byte [edi + ecx*4 - 4], 1
jne 0xbff6ed6a
movzx ecx, word [ebp + 0x14]
cmp esi, ecx
je 0xbff6ed6a
mov edi, dword [ebp + 0x10]
lea ebx, [edi + eax - 8]
lea ecx, [esi + eax + 0xa]
xor eax, eax
mov ah, byte [ecx - 2]
lea edi, [ecx + 1]
cmp edi, ebx
mov dword [ebp - 0xc], 4
mov al, byte [ecx - 1]
mov dword [ebp - 0x28], eax
jae 0xbff6ed4b
mov dword [ebp - 0x20], edi
mov edi, dword [ebp - 0x20]
xor eax, eax
mov ah, byte [ecx]
mov al, byte [edi]
cmp ax, word [ebp - 0x28]
jne 0xbff6ed4b
inc dword [ebp - 0xc]
add dword [ebp - 0x20], 2
inc ecx
inc ecx
cmp dword [ebp - 0x20], ebx
jb 0xbff6ed2e
mov eax, dword [ebp - 0xc]
inc eax
cmp eax, dword [ebp - 8]
jbe 0xbff6ee27
mov dword [ebp - 8], eax
cmp eax, 0x14
mov eax, dword [ebp + 0x1c]
mov byte [ebp - 1], 2
jmp 0xbff6ee1f
mov edi, dword [ebp + 0x10]
and dword [ebp - 0xc], 0
lea ecx, [esi + eax]
xor ebx, ebx
mov bh, byte [ecx]
add edi, eax
mov dword [ebp - 0x28], edi
lea edi, [ecx + 0x30]
mov dword [ebp - 0x20], edi
or edi, 0xffffffff
mov byte [ebp - 4], 0
mov bl, byte [ecx + 1]
sub edi, ecx
mov dword [ebp - 0x1c], ebx
jmp 0xbff6ed97
mov eax, dword [ebp + 0x1c]
add dword [ebp - 0x20], 2
inc ecx
inc ecx
dec edi
dec edi
inc dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x28]
jae 0xbff6edf1
mov ebx, dword [ebp - 0x20]
xor eax, eax
mov ah, byte [ecx]
mov al, byte [ebx - 0x2f]
cmp ax, word [ebp - 0x1c]
je 0xbff6edbc
test ax, ax
jne 0xbff6edee
test byte [ebp - 0xc], 7
jne 0xbff6ede8
mov ebx, dword [ebp - 0x20]
cmp ebx, dword [ebp - 0x28]
jae 0xbff6ede8
add ebx, 0xffffffd3
xor eax, eax
mov ah, byte [ebx - 1]
mov al, byte [ebx]
cmp ax, word [ebp - 0x1c]
jne 0xbff6ede8
inc ebx
inc ebx
lea eax, [edi + ebx]
cmp eax, 0x30
mov byte [ebp - 4], 1
jl 0xbff6edcd
cmp byte [ebp - 4], 0
je 0xbff6ed94
mov eax, dword [ebp + 0x1c]
mov cx, word [ebp - 0x1c]
cmp cx, word [ebp - 0x14]
push 0x30
pop edi
jne 0xbff6ee01
push 0x20
pop edi
mov ecx, dword [ebp - 0xc]
test cl, 7
jne 0xbff6ee0c
sub edi, 8
cmp ecx, edi
jb 0xbff6ee2a
cmp ecx, dword [ebp - 8]
jbe 0xbff6ee2a
mov dword [ebp - 8], ecx
mov byte [ebp - 1], 6
cmp ecx, 0x14
jae 0xbff6eeeb
jmp 0xbff6ee2a
mov eax, dword [ebp + 0x1c]
cmp byte [ebp - 2], 0
jne 0xbff6eea1
cmp dword [ebp - 8], 6
jae 0xbff6eebe
cmp dword [ebp - 0x10], 4
jbe 0xbff6ee99
mov cx, word [ebp - 0x2c]
cmp cx, word [ebp - 0x14]
jne 0xbff6ee99
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 0xbff6ee8d
cmp esi, dword [ebp + 0x14]
je 0xbff6ee8d
mov edi, dword [ebp - 0x10]
add dword [ecx - 8], edi
mov ebx, dword [ebp + 0x10]
lea esi, [esi + edi*2]
and dword [ebp - 8], 0
and dword [ebp - 0x10], 0
lea ecx, [esi + 0xc]
cmp ecx, ebx
jb 0xbff6e9a9
mov byte [ebp - 1], 7
mov dword [ebp - 8], 1
jmp 0xbff6eec4
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
mov byte [ebp - 1], 3
jmp 0xbff6eeeb
cmp dword [ebp - 8], 0
jne 0xbff6eebe
jmp 0xbff6eeb3
cmp dword [ebp - 8], 6
jb 0xbff6eeb3
cmp byte [ebp - 1], 1
je 0xbff6eebe
cmp dword [ebp - 8], 8
jae 0xbff6eebe
mov byte [ebp - 1], 7
mov dword [ebp - 8], 1
cmp byte [ebp - 1], 7
jne 0xbff6eeeb
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 0xbff6ef0c
mov edi, dword [ebp - 8]
add dword [ecx - 8], edi
lea esi, [esi + edi*2]
jmp 0xbff6f010
mov eax, dword [ebp + 0x1c]
cmp byte [ebp - 1], 3
mov byte [ebp - 2], 0
jne 0xbff6ef00
xor ecx, ecx
mov ch, byte [esi + eax]
mov cl, byte [esi + eax + 1]
jmp 0xbff6ef09
cmp byte [ebp - 1], 6
jne 0xbff6ef0c
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], ecx
movzx ecx, word [ebp + 0x14]
cmp esi, ecx
mov ecx, dword [ebp - 8]
lea esi, [esi + ecx*2]
je 0xbff6efef
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 0xbff6ef58
cmp byte [ebp - 1], 1
jne 0xbff6ef43
mov ecx, dword [ebp - 8]
add dword [edi - 8], ecx
jmp 0xbff6f010
cmp byte [ebp - 1], 3
je 0xbff6ef4f
cmp byte [ebp - 1], 6
jne 0xbff6ef58
movzx ebx, word [ebp - 0x14]
cmp ebx, dword [edi - 0xc]
je 0xbff6ef38
cmp byte [ebp - 1], 1
jne 0xbff6ef6a
cmp cl, 1
je 0xbff6ef38
cmp cl, 2
jne 0xbff6ef98
jmp 0xbff6ef38
cmp byte [ebp - 1], 6
jne 0xbff6ef92
cmp cl, 1
jne 0xbff6efef
mov ecx, dword [edi - 8]
cmp ecx, 8
jae 0xbff6efef
mov ebx, dword [ebp - 8]
add ecx, ebx
mov dword [edi - 8], ecx
movzx ecx, word [ebp - 0x14]
mov byte [edi - 4], 6
mov dword [edi - 0xc], ecx
jmp 0xbff6f010
cmp byte [ebp - 1], 2
jne 0xbff6efd1
cmp cl, 6
jne 0xbff6efd1
mov ebx, dword [edi - 8]
and ebx, 7
je 0xbff6efd1
push 8
pop ecx
sub ecx, ebx
cmp ecx, dword [ebp - 8]
jbe 0xbff6efb2
mov ecx, dword [ebp - 8]
add dword [edi - 8], ecx
sub dword [ebp - 8], ecx
cmp dword [ebp - 8], 9
mov ebx, dword [edi - 8]
jae 0xbff6efce
mov eax, dword [ebp - 8]
add ebx, eax
mov eax, dword [ebp + 0x1c]
mov dword [edi - 8], ebx
jmp 0xbff6f010
mov eax, dword [ebp + 0x1c]
cmp byte [ebp - 1], 7
jne 0xbff6efef
cmp byte [edi - 0x10], 7
jne 0xbff6efef
cmp dword [edi - 8], 1
jne 0xbff6efef
mov ecx, dword [ebp - 8]
inc ecx
add dword [edi - 0x14], ecx
dec dword [ebp - 0x18]
jmp 0xbff6f010
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 - 0x14]
mov byte [ecx + 8], bl
mov dword [ecx], edi
mov ebx, dword [ebp + 0x10]
cmp esi, ebx
jb 0xbff6e997
push 2
pop ecx
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], ecx
mov ebx, dword [ebp - 0x34]
mov dword [ebp + 0x10], ebx
mov byte [ebp - 3], 0
jb 0xbff6e98f
xor esi, esi
cmp dword [ebp - 0x18], ecx
mov dword [ebp + 0x10], esi
mov byte [ebp - 3], 1
mov dword [ebp - 0x14], 0xffff
mov dword [ebp - 0x20], ecx
jle 0xbff6f5fe
mov eax, edx
sub eax, dword [ebp + 0xc]
add eax, 5
cmp eax, dword [ebp + 0x18]
ja 0xbff6f604
cmp byte [ebp - 3], 0
je 0xbff6f070
cmp esi, dword [ebp + 0x14]
jb 0xbff6f070
mov byte [ebp - 3], 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x20]
lea eax, [eax + eax*2]
lea ebx, [ecx + eax*4]
mov cl, byte [ebx + 8]
test cl, cl
jbe 0xbff6f5ef
cmp cl, 2
jbe 0xbff6f5bd
cmp cl, 3
je 0xbff6f555
cmp cl, 4
je 0xbff6f511
cmp cl, 5
je 0xbff6f4b5
cmp cl, 6
je 0xbff6f15a
cmp cl, 7
jne 0xbff6f5ef
mov ecx, dword [ebx + 4]
cmp ecx, 1
jne 0xbff6f0f0
mov edi, dword [ebp + 8]
xor eax, eax
mov ah, byte [esi + edi]
movzx di, byte [esi + edi + 1]
or eax, edi
test ax, ax
jne 0xbff6f0df
mov byte [edx], 0xfe
jmp 0xbff6f0e8
cmp ax, 0xffff
jne 0xbff6f0f0
mov byte [edx], 0xfd
inc edx
inc esi
inc esi
jmp 0xbff6f5ec
cmp ecx, 0x1f
ja 0xbff6f0ff
mov al, byte [ebx + 4]
or al, 0x80
mov byte [edx], al
inc edx
jmp 0xbff6f11f
cmp ecx, 0x11f
ja 0xbff6f112
mov byte [edx], 0x80
mov al, byte [ebx + 4]
inc edx
sub al, 0x20
jmp 0xbff6f0fa
mov byte [edx], 0xf4
mov ax, word [ebx + 4]
inc edx
mov word [edx], ax
inc edx
inc edx
mov ecx, dword [ebx + 4]
shl ecx, 1
mov eax, ecx
sub eax, dword [ebp + 0xc]
add eax, edx
cmp eax, dword [ebp + 0x18]
ja 0xbff6f604
mov eax, dword [ebp + 8]
add esi, eax
mov eax, ecx
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, dword [ebx + 4]
mov esi, dword [ebp + 0x10]
shl ebx, 1
add edx, ebx
add esi, ebx
jmp 0xbff6f5ec
mov ecx, dword [ebx + 4]
lea eax, [ecx + 7]
shr eax, 3
sub eax, dword [ebp + 0xc]
lea eax, [eax + edx + 5]
cmp eax, dword [ebp + 0x18]
ja 0xbff6f604
movzx eax, word [ebp - 0x14]
cmp eax, dword [ebx]
je 0xbff6f271
test cl, 7
movzx ebx, word [ebx]
mov dword [ebp - 0x14], ebx
jne 0xbff6f19b
cmp ecx, 0x78
ja 0xbff6f19b
mov eax, ecx
shr eax, 3
or al, 0xd0
mov byte [edx], al
inc edx
jmp 0xbff6f1b6
cmp ecx, 0xff
ja 0xbff6f1ad
mov byte [edx], 0xd0
mov al, cl
inc edx
dec al
jmp 0xbff6f196
mov byte [edx], 0xf7
inc edx
mov word [edx], cx
inc edx
inc edx
mov byte [edx + 1], bl
mov byte [edx], bh
inc edx
inc edx
cmp ecx, 8
jb 0xbff6f40b
mov eax, dword [ebp + 0x1c]
mov ebx, ecx
lea edi, [esi + eax + 0xd]
shr ebx, 3
mov eax, ebx
shl eax, 4
add esi, eax
mov dword [ebp + 0x10], esi
xor eax, eax
mov byte [edx], 0
mov ah, byte [edi - 0xd]
mov al, byte [edi - 0xc]
test ax, ax
je 0xbff6f1ef
mov byte [edx], 1
xor eax, eax
mov ah, byte [edi - 0xb]
mov al, byte [edi - 0xa]
test ax, ax
je 0xbff6f1ff
or byte [edx], 2
xor eax, eax
mov ah, byte [edi - 9]
mov al, byte [edi - 8]
test ax, ax
je 0xbff6f20f
or byte [edx], 4
xor eax, eax
mov ah, byte [edi - 7]
mov al, byte [edi - 6]
test ax, ax
je 0xbff6f21f
or byte [edx], 8
xor eax, eax
mov ah, byte [edi - 5]
mov al, byte [edi - 4]
test ax, ax
je 0xbff6f22f
or byte [edx], 0x10
xor eax, eax
mov ah, byte [edi - 3]
mov al, byte [edi - 2]
test ax, ax
je 0xbff6f23f
or byte [edx], 0x20
xor eax, eax
mov ah, byte [edi - 1]
mov al, byte [edi]
test ax, ax
je 0xbff6f24e
or byte [edx], 0x40
xor eax, eax
mov ah, byte [edi + 1]
mov al, byte [edi + 2]
test ax, ax
je 0xbff6f25e
or byte [edx], 0x80
inc edx
add edi, 0x10
sub ecx, 8
dec ebx
jne 0xbff6f1dc
jmp 0xbff6f40b
cmp ecx, 8
jne 0xbff6f328
mov eax, dword [ebp + 0x1c]
lea ecx, [esi + eax]
xor ebx, ebx
mov bh, byte [ecx]
xor al, al
mov bl, byte [ecx + 1]
test bx, bx
je 0xbff6f290
inc al
push 2
pop edi
add ecx, edi
xor ebx, ebx
mov bh, byte [ecx]
mov bl, byte [ecx + 1]
test bx, bx
je 0xbff6f2a3
or al, 2
add ecx, edi
xor ebx, ebx
mov bh, byte [ecx]
mov bl, byte [ecx + 1]
test bx, bx
je 0xbff6f2b3
or al, 4
add ecx, edi
xor ebx, ebx
mov bh, byte [ecx]
mov bl, byte [ecx + 1]
test bx, bx
je 0xbff6f2c3
or al, 8
add ecx, edi
xor ebx, ebx
mov bh, byte [ecx]
mov bl, byte [ecx + 1]
test bx, bx
je 0xbff6f2d3
or al, 0x10
add ecx, edi
xor ebx, ebx
mov bh, byte [ecx]
mov bl, byte [ecx + 1]
test bx, bx
je 0xbff6f2e3
or al, 0x20
add ecx, edi
xor ebx, ebx
mov bh, byte [ecx]
mov bl, byte [ecx + 1]
test bx, bx
je 0xbff6f2f3
or al, 0x40
add ecx, edi
xor ebx, ebx
mov bh, byte [ecx]
mov bl, byte [ecx + 1]
test bx, bx
je 0xbff6f303
or al, 0x80
movzx ecx, al
sub ecx, 3
je 0xbff6f31c
sub ecx, edi
je 0xbff6f317
mov byte [edx], 0x41
inc edx
mov byte [edx], al
jmp 0xbff6f31f
mov byte [edx], 0xfa
jmp 0xbff6f31f
mov byte [edx], 0xf9
inc edx
add esi, 0x10
jmp 0xbff6f5ec
test cl, 7
jne 0xbff6f341
cmp ecx, 0xf8
ja 0xbff6f341
mov eax, ecx
shr eax, 3
or al, 0x40
mov byte [edx], al
inc edx
jmp 0xbff6f35c
cmp ecx, 0xff
ja 0xbff6f353
mov byte [edx], 0x40
mov al, cl
inc edx
dec al
jmp 0xbff6f33c
mov byte [edx], 0xf2
inc edx
mov word [edx], cx
inc edx
inc edx
cmp ecx, 8
jb 0xbff6f40b
mov eax, dword [ebp + 0x1c]
mov ebx, ecx
lea edi, [esi + eax + 0xd]
shr ebx, 3
mov eax, ebx
shl eax, 4
add esi, eax
mov dword [ebp + 0x10], esi
xor eax, eax
mov byte [edx], 0
mov ah, byte [edi - 0xd]
mov al, byte [edi - 0xc]
test ax, ax
je 0xbff6f38e
mov byte [edx], 1
xor eax, eax
mov ah, byte [edi - 0xb]
mov al, byte [edi - 0xa]
test ax, ax
je 0xbff6f39e
or byte [edx], 2
xor eax, eax
mov ah, byte [edi - 9]
mov al, byte [edi - 8]
test ax, ax
je 0xbff6f3ae
or byte [edx], 4
xor eax, eax
mov ah, byte [edi - 7]
mov al, byte [edi - 6]
test ax, ax
je 0xbff6f3be
or byte [edx], 8
xor eax, eax
mov ah, byte [edi - 5]
mov al, byte [edi - 4]
test ax, ax
je 0xbff6f3ce
or byte [edx], 0x10
xor eax, eax
mov ah, byte [edi - 3]
mov al, byte [edi - 2]
test ax, ax
je 0xbff6f3de
or byte [edx], 0x20
xor eax, eax
mov ah, byte [edi - 1]
mov al, byte [edi]
test ax, ax
je 0xbff6f3ed
or byte [edx], 0x40
xor eax, eax
mov ah, byte [edi + 1]
mov al, byte [edi + 2]
test ax, ax
je 0xbff6f3fd
or byte [edx], 0x80
inc edx
add edi, 0x10
sub ecx, 8
dec ebx
jne 0xbff6f37b
test ecx, ecx
je 0xbff6f5ef
mov eax, dword [ebp + 0x1c]
lea edi, [esi + eax]
xor eax, eax
mov byte [edx], 0
mov ah, byte [edi]
mov al, byte [edi + 1]
test ax, ax
je 0xbff6f42b
mov byte [edx], 1
push 2
pop eax
add edi, eax
xor ebx, ebx
mov bh, byte [edi]
mov bl, byte [edi + 1]
test bx, bx
je 0xbff6f43e
or byte [edx], al
add edi, eax
xor ebx, ebx
mov bh, byte [edi]
mov bl, byte [edi + 1]
test bx, bx
je 0xbff6f44f
or byte [edx], 4
add edi, eax
xor ebx, ebx
mov bh, byte [edi]
mov bl, byte [edi + 1]
test bx, bx
je 0xbff6f460
or byte [edx], 8
add edi, eax
xor ebx, ebx
mov bh, byte [edi]
mov bl, byte [edi + 1]
test bx, bx
je 0xbff6f471
or byte [edx], 0x10
add edi, eax
xor ebx, ebx
mov bh, byte [edi]
mov bl, byte [edi + 1]
test bx, bx
je 0xbff6f482
or byte [edx], 0x20
add edi, eax
xor ebx, ebx
mov bh, byte [edi]
mov bl, byte [edi + 1]
test bx, bx
je 0xbff6f493
or byte [edx], 0x40
add edi, eax
xor eax, eax
mov ah, byte [edi]
mov al, byte [edi + 1]
test ax, ax
je 0xbff6f4a4
or byte [edx], 0x80
mov al, 1
shl al, cl
lea esi, [esi + ecx*2]
dec al
and byte [edx], al
inc edx
jmp 0xbff6f5ec
mov ecx, dword [ebx + 4]
shr ecx, 1
cmp ecx, 0xf
ja 0xbff6f4c7
or cl, 0xe0
mov byte [edx], cl
inc edx
jmp 0xbff6f4e1
cmp ecx, 0x10f
ja 0xbff6f4d8
mov byte [edx], pe_nt_image_headers32
inc edx
sub cl, 0x10
jmp 0xbff6f4c2
mov byte [edx], 0xf8
inc edx
mov word [edx], cx
inc edx
inc edx
mov eax, edx
sub eax, dword [ebp + 0xc]
add eax, 4
cmp eax, dword [ebp + 0x18]
ja 0xbff6f604
mov edi, dword [ebp + 8]
xor ecx, ecx
mov ch, byte [esi + edi]
mov cl, byte [esi + edi + 1]
mov byte [edx + 1], cl
mov byte [edx], ch
inc edx
inc edx
xor ecx, ecx
mov ch, byte [esi + edi + 2]
mov cl, byte [esi + edi + 3]
jmp 0xbff6f54b
mov eax, dword [ebx + 4]
cmp eax, 0x1f
ja 0xbff6f520
or al, 0x60
mov byte [edx], al
inc edx
jmp 0xbff6f53f
cmp eax, 0x11f
ja 0xbff6f532
mov byte [edx], 0x60
mov al, byte [ebx + 4]
inc edx
sub al, 0x20
jmp 0xbff6f51b
mov byte [edx], 0xf3
mov ax, word [ebx + 4]
inc edx
mov word [edx], ax
inc edx
inc edx
mov edi, dword [ebp + 8]
xor ecx, ecx
mov ch, byte [esi + edi]
mov cl, byte [esi + edi + 1]
mov byte [edx + 1], cl
mov byte [edx], ch
jmp 0xbff6f5e4
movzx eax, word [ebp - 0x14]
cmp eax, dword [ebx]
je 0xbff6f59d
mov ecx, dword [ebx + 4]
xor eax, eax
cmp ecx, 0xf
mov ax, word [ebx]
mov dword [ebp - 0x14], eax
ja 0xbff6f575
or cl, 0xc0
mov byte [edx], cl
inc edx
jmp 0xbff6f596
cmp ecx, 0x10f
ja 0xbff6f589
mov byte [edx], 0xc0
mov cl, byte [ebx + 4]
inc edx
sub cl, 0x10
jmp 0xbff6f570
mov byte [edx], 0xf6
mov cx, word [ebx + 4]
inc edx
mov word [edx], cx
inc edx
inc edx
mov byte [edx + 1], al
mov byte [edx], ah
jmp 0xbff6f5e4
mov eax, dword [ebx + 4]
cmp eax, 0x1f
ja 0xbff6f5ac
or al, 0x20
mov byte [edx], al
inc edx
jmp 0xbff6f5e6
cmp eax, 0x11f
ja 0xbff6f5b8
mov byte [edx], 0x20
jmp 0xbff6f5d1
mov byte [edx], 0xf1
jmp 0xbff6f5dc
mov eax, dword [ebx + 4]
cmp eax, 0x1f
ja 0xbff6f5c7
jmp 0xbff6f5a7
cmp eax, 0x11f
ja 0xbff6f5d9
mov byte [edx], 0
mov al, byte [ebx + 4]
inc edx
sub al, 0x20
jmp 0xbff6f5a7
mov byte [edx], 0xf0
mov ax, word [ebx + 4]
inc edx
mov word [edx], ax
inc edx
inc edx
mov eax, dword [ebx + 4]
lea esi, [esi + eax*2]
mov dword [ebp + 0x10], esi
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x18]
jl 0xbff6f050
sub edx, dword [ebp + 0xc]
mov dword [ebp - 0x30], edx
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0x30]
leave
ret 0x1c