Function at 0x7cfdd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [0xbd33e0]
mov ebp, dword [esp + 0x54]
mov edi, ecx
xor eax, esp
mov dword [esp + 0x34], eax
mov dword [esp + 8], edx
mov esi, dword [edx + 0x38]
mov ebx, dword [edx + 0x3c]
mov dword [esp + 0x20], 0
mov eax, dword [ecx + 0x178]
test eax, eax
jne 0x7cfe4b
mov edx, dword [edx]
mov ecx, edi
mov dword [esp], edi
call fcn.0078a6b0
mov edi, 7
test eax, eax
je 0x7d0900
mov ecx, 0x1c
xor edx, edx
mov dword [esp + 0x10], eax
call fcn.007870a0
test eax, eax
jne 0x7d0083
mov esi, dword [esp]
mov ecx, esi
call fcn.0078a090
jmp 0x7d08f5
mov eax, dword [eax + 8]
test eax, eax
je 0x7cfe04
cmp dword [eax + 4], edx
jne 0x7cfe44
mov edx, fcn.007c5760
mov eax, fcn.007c5760
movzx ecx, byte [0xbb691f]
and edx, 1
xor edx, eax
cmp edx, 0xffffffff
sete al
or al, 6
movzx eax, al
bt ecx, eax
jb 0x7d0062
mov al, byte [0xbb691f]
cmp edx, 0xffffffff
mov ah, 1
sete cl
or cl, 6
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb691f], ah
jne 0x7cfe7f
mov ecx, fcn.007c5760
mov edx, fcn.007c5760
movzx eax, al
and ecx, 1
xor ecx, edx
cmp ecx, 0xffffffff
sete dl
or dl, 6
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7cfedd
cmp ecx, 0xffffffff
movzx edx, byte [0xbb691f]
sete al
or al, 6
movzx eax, al
bt edx, eax
jae 0x7cfec1
jmp 0x7d0062
cmp ecx, 0xffffffff
movzx edx, byte [0xbb691f]
sete al
or al, 6
movzx eax, al
bt edx, eax
jb 0x7d003d
mov edx, fcn.007c5760
mov eax, fcn.007c5760
xor ecx, ecx
and edx, 1
xor edx, eax
mov eax, dword [0xbb68f0]
cmp edx, 0xffffffff
sete cl
or ecx, 0x3f5bfbb6
sub ecx, 0xffffff80
xor eax, ecx
mov dword [0xbb68f0], eax
not eax
mov edx, dword [0xbb68f4]
imul eax, ecx
and cl, 7
lea esi, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbb68f4], edx
or eax, esi
not edx
imul edx, eax
mov eax, dword [0xbb68f8]
lea esi, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbb68f8], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb68fc]
lea esi, [eax*8]
xor edx, eax
shr eax, 0x1c
mov dword [0xbb68fc], edx
or eax, esi
not edx
imul edx, eax
mov eax, dword [0xbb6900]
mov esi, edx
shl esi, 4
xor eax, edx
shr edx, 0x1b
mov dword [0xbb6900], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb6904]
mov esi, eax
shl esi, 5
xor edx, eax
shr eax, 0x1a
mov dword [0xbb6904], edx
or eax, esi
not edx
imul edx, eax
mov eax, dword [0xbb6908]
mov esi, edx
shl esi, 6
xor eax, edx
shr edx, 0x19
mov dword [0xbb6908], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb690c]
mov esi, eax
shl esi, 7
xor edx, eax
shr eax, 0x18
mov dword [0xbb690c], edx
or eax, esi
not edx
mov ebx, dword [0xbb6910]
imul edx, eax
mov esi, edx
shl esi, 8
xor ebx, edx
shr edx, 0x17
mov dword [0xbb6910], ebx
or edx, esi
not ebx
imul ebx, edx
mov edx, dword [str.5_wN]
mov esi, ebx
shl esi, 9
xor edx, ebx
shr ebx, 0x16
mov dword [str.5_wN], edx
or ebx, esi
not edx
imul edx, ebx
xor dword [0xbb6918], edx
mov dl, 1
shl dl, cl
or byte [0xbb691f], dl
mov ecx, fcn.007c5760
mov eax, fcn.007c5760
and ecx, 1
xor ecx, eax
mov al, 0xfe
cmp ecx, 0xffffffff
sete cl
or cl, 6
xor cl, 7
rol al, cl
and byte [0xbb691f], al
mov eax, dword [esp + 8]
push dword [eax]
push 0xbb68f0
push edi
call fcn.0078df10
add esp, 0xc
mov dword [ebp], eax
mov edi, 6
jmp 0x7d0900
mov dword [esp + 0xc], esi
mov esi, dword [esp]
mov ecx, dword [esp + 0x4c]
mov ebp, dword [esp + 8]
mov edi, eax
mov dword [eax], esi
mov dword [eax + 4], ecx
mov byte [eax + 0x11], 1
mov ecx, esi
mov edx, dword [ebp + 0x48]
call fcn.0078dee0
mov ecx, dword [esi + 0x10]
shl eax, 4
mov edx, dword [ebp + 0x3c]
mov dword [esp + 4], edi
mov eax, dword [ecx + eax]
mov dword [edx + 4], eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], edi
mov ebp, edi
mov eax, dword [esi + 0x178]
add ebp, 8
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x30], 0
mov dword [esi + 0x178], eax
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
mov ebx, dword [esp + 0x58]
push dword [esp + 0x18]
push dword [ebx + 0xc]
push esi
call dword [esp + 0x68]
add esp, 0x18
mov ecx, dword [esp + 0x2c]
mov edi, eax
test edi, edi
mov dword [esi + 0x178], ecx
je 0x7d0435
mov ebx, dword [esp + 0x54]
cmp edi, 7
jne 0x7d0122
mov ecx, dword [esp]
call fcn.0078a090
mov edx, dword [esp + 0x20]
mov ebp, dword [esp + 4]
test edx, edx
jne 0x7d0314
mov edx, fcn.007d1230
mov eax, fcn.007d1230
movzx ecx, byte [0xbb6943]
and edx, 1
xor edx, eax
cmp edx, 0xffffffff
sete al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x7d02f7
mov al, byte [0xbb6943]
cmp edx, 0xffffffff
mov ah, 1
sete cl
or cl, 4
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb6943], ah
jne 0x7d0161
mov ecx, fcn.007d1230
mov edx, fcn.007d1230
movzx eax, al
and ecx, 1
xor ecx, edx
cmp ecx, 0xffffffff
sete dl
or dl, 4
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7d01bf
cmp ecx, 0xffffffff
movzx edx, byte [0xbb6943]
sete al
or al, 4
movzx eax, al
bt edx, eax
jae 0x7d01a3
jmp 0x7d02f7
cmp ecx, 0xffffffff
movzx edx, byte [0xbb6943]
sete al
or al, 4
movzx eax, al
bt edx, eax
jb 0x7d02d2
mov edx, fcn.007d1230
mov eax, fcn.007d1230
xor ecx, ecx
and edx, 1
xor edx, eax
mov eax, dword [0xbb6920]
cmp edx, 0xffffffff
sete cl
or ecx, 0x5a88d078
add ecx, 0x1304
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbb6920], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbb6924]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb6924], eax
or esi, edx
not eax
mov edx, dword [0xbb6928]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb6928], edx
or esi, eax
not edx
mov eax, dword [0xbb692c]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb692c], eax
or esi, edx
not eax
mov edx, dword [0xbb6930]
imul eax, esi
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb6930], edx
or eax, esi
not edx
imul edx, eax
mov eax, dword [str.AOK_a]
mov esi, edx
shl esi, 5
xor eax, edx
shr edx, 0x1a
mov dword [str.AOK_a], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb6938]
mov esi, eax
shl esi, 6
xor edx, eax
shr eax, 0x19
mov dword [0xbb6938], edx
or eax, esi
not edx
imul edx, eax
xor dword [0xbb693c], edx
mov dl, 1
shl dl, cl
or byte [0xbb6943], dl
mov ecx, fcn.007d1230
mov eax, fcn.007d1230
and ecx, 1
xor ecx, eax
mov al, 0xfe
cmp ecx, 0xffffffff
sete cl
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbb6943], al
push dword [esp + 0x10]
push 0xbb6920
mov esi, dword [esp + 8]
push esi
call fcn.0078df10
add esp, 0xc
mov dword [ebx], eax
jmp 0x7d0427
mov esi, fcn.007a3b00
movzx ecx, byte [0xbb694b]
imul esi, esi
and esi, 3
cmp esi, 1
seta al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x7d0406
mov al, byte [0xbb694b]
cmp esi, 1
mov ah, 1
seta cl
not cl
and cl, 3
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb694b], ah
jne 0x7d0341
mov ecx, fcn.007a3b00
movzx esi, al
imul ecx, ecx
and ecx, 3
cmp ecx, 1
seta ah
not ah
and ah, 3
xor ah, 7
movzx eax, ah
bt esi, eax
jae 0x7d039e
cmp ecx, 1
movzx esi, byte [0xbb694b]
seta al
not al
and al, 3
movzx eax, al
bt esi, eax
jae 0x7d0383
jmp 0x7d0406
cmp ecx, 1
movzx ecx, byte [0xbb694b]
seta al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x7d03e3
mov eax, fcn.007a3b00
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 1
mov al, 1
seta cl
xor ecx, 0x46060dd3
xor dword [0xbb6944], ecx
and cl, 3
shl al, cl
or byte [0xbb694b], al
mov eax, fcn.007a3b00
imul eax, eax
and eax, 3
cmp eax, 1
mov al, 0xfe
seta cl
not cl
and cl, 3
xor cl, 7
rol al, cl
and byte [0xbb694b], al
push edx
push 0xbb6944
mov esi, dword [esp + 8]
push esi
call fcn.0078df10
add esp, 0xc
mov dword [ebx], eax
push dword [esp + 0x20]
call fcn.00780f60
add esp, 4
mov ecx, esi
mov edx, ebp
call fcn.00780810
jmp 0x7d08f5
mov eax, dword [ebp]
xor edi, edi
test eax, eax
je 0x7d08f2
mov ebp, dword [esp + 4]
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov eax, dword [ebx]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
inc dword [ebx + 8]
mov dword [ebp + 0xc], 1
cmp dword [esp + 0x30], 0
jne 0x7d06c9
mov edx, fcn.007d30a0
movzx ecx, byte [0xbb6983]
mov eax, fcn.007d30a0
mov edi, dword [esp]
mov ebx, dword [esp + 0x54]
and edx, 1
xor edx, eax
xor eax, eax
cmp edx, 0xffffffff
setne al
bt ecx, eax
jb 0x7d06a0
mov al, byte [0xbb6983]
cmp edx, 0xffffffff
mov ah, 1
setne cl
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb6983], ah
jne 0x7d04a9
mov ecx, fcn.007d30a0
mov edx, fcn.007d30a0
movzx eax, al
and ecx, 1
xor ecx, edx
cmp ecx, 0xffffffff
setne dl
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7d04fe
movzx edx, byte [0xbb6983]
xor eax, eax
cmp ecx, 0xffffffff
setne al
bt edx, eax
jae 0x7d04e5
jmp 0x7d06a0
movzx edx, byte [0xbb6983]
xor eax, eax
cmp ecx, 0xffffffff
setne al
bt edx, eax
jb 0x7d067e
mov edx, fcn.007d30a0
mov eax, fcn.007d30a0
xor ecx, ecx
and edx, 1
xor edx, eax
mov eax, dword [0xbb6950]
cmp edx, 0xffffffff
sete cl
xor ecx, 0x7666b951
add ecx, 0x908
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbb6950], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbb6954]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb6954], eax
or esi, edx
not eax
mov edx, dword [0xbb6958]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb6958], edx
or esi, eax
not edx
mov eax, dword [0xbb695c]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb695c], eax
or esi, edx
not eax
mov edx, dword [0xbb6960]
imul eax, esi
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb6960], edx
or eax, esi
not edx
imul edx, eax
mov eax, dword [0xbb6964]
mov esi, edx
shl esi, 5
xor eax, edx
shr edx, 0x1a
mov dword [0xbb6964], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb6968]
mov esi, eax
shl esi, 6
xor edx, eax
shr eax, 0x19
mov dword [0xbb6968], edx
or eax, esi
not edx
imul edx, eax
mov eax, dword [0xbb696c]
mov esi, edx
shl esi, 7
xor eax, edx
shr edx, 0x18
mov dword [0xbb696c], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb6970]
mov esi, eax
shl esi, 8
xor edx, eax
shr eax, 0x17
mov dword [0xbb6970], edx
or eax, esi
not edx
imul edx, eax
mov eax, dword [0xbb6974]
mov esi, edx
shl esi, 9
xor eax, edx
shr edx, 0x16
mov dword [0xbb6974], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb6978]
mov esi, eax
shl esi, 0xa
xor edx, eax
shr eax, 0x15
mov dword [0xbb6978], edx
or eax, esi
not edx
imul edx, eax
xor dword [0xbb697c], edx
mov dl, 1
shl dl, cl
or byte [0xbb6983], dl
mov ecx, fcn.007d30a0
mov eax, fcn.007d30a0
and ecx, 1
xor ecx, eax
mov al, 0xfe
cmp ecx, 0xffffffff
setne cl
xor cl, 7
rol al, cl
and byte [0xbb6983], al
mov eax, dword [esp + 8]
push dword [eax]
push 0xbb6950
push edi
call fcn.0078df10
add esp, 0xc
mov ecx, ebp
mov dword [ebx], eax
call fcn.007ad610
mov esi, edi
mov edi, 1
jmp 0x7d08f5
mov edx, dword [esp + 8]
mov esi, dword [esp]
mov eax, dword [edx + 0x40]
mov dword [ebp + 0x18], eax
mov dword [edx + 0x40], ebp
movzx eax, word [edx + 0x2a]
test ax, ax
mov word [esp + 4], ax
jle 0x7d08f5
mov eax, fcn.007fa700
mov esi, 3
xor ecx, ecx
mov dword [esp + 0x14], 0
sub esi, eax
lea eax, [ecx + ecx*4]
mov dword [esp + 0x18], ecx
lea ecx, [eax*4]
mov dword [esp + 0x1c], eax
add ecx, dword [edx + 4]
mov edx, 0xc26b99
call fcn.00797de0
mov ecx, eax
mov ebp, eax
call fcn.00783170
test eax, eax
mov ebx, 0
mov dword [esp + 0xc], eax
jle 0x7d086b
mov eax, esi
movzx ecx, byte [0xbb698f]
xor eax, fcn.007fa700
sete al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x7d0829
mov al, byte [0xbb698f]
mov ecx, esi
mov dl, 1
xor ecx, fcn.007fa700
sete cl
or cl, 4
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbb698f], dl
jne 0x7d075e
mov ecx, esi
movzx eax, al
xor ecx, fcn.007fa700
sete cl
or cl, 4
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x7d07b8
mov eax, esi
movzx ecx, byte [0xbb698f]
xor eax, fcn.007fa700
sete al
or al, 4
movzx eax, al
bt ecx, eax
jae 0x7d079b
jmp 0x7d0829
mov eax, esi
movzx ecx, byte [0xbb698f]
xor eax, fcn.007fa700
sete al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x7d080f
mov eax, esi
xor ecx, ecx
mov dl, 1
xor eax, fcn.007fa700
mov eax, dword [0xbb6984]
sete cl
or ecx, 0x1805fd1c
add ecx, 0x140
xor eax, ecx
mov dword [0xbb6984], eax
not eax
imul eax, ecx
and cl, 7
shl dl, cl
xor dword [0xbb6988], eax
or byte [0xbb698f], dl
mov eax, esi
xor eax, fcn.007fa700
mov al, 0xfe
sete cl
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbb698f], al
mov edi, ebp
lea ebp, [ebp + ebx]
push 6
push ebp
push 0xbb6984
call fcn.00783750
add esp, 0xc
test eax, eax
jne 0x7d085c
test ebx, ebx
je 0x7d084e
cmp byte [edi + ebx - 1], 0x20
jne 0x7d085c
mov al, byte [edi + ebx + 6]
mov ecx, eax
or cl, 0x20
cmp cl, 0x20
je 0x7d0879
mov eax, dword [esp + 0xc]
inc ebx
mov ebp, edi
cmp ebx, eax
jl 0x7d073a
movzx eax, word [esp + 0x14]
mov edx, dword [esp + 8]
or dword [edx + 0x24], eax
jmp 0x7d08de
cmp al, 1
mov ecx, 7
mov edx, ebx
sbb ecx, 0
mov eax, ecx
mov dword [esp + 4], ecx
lea ecx, [ecx + ebx]
mov eax, edi
cmp ecx, dword [esp + 0xc]
jg 0x7d08ac
movzx ecx, byte [eax + ecx]
mov byte [eax + edx], cl
mov ecx, dword [esp + 4]
lea ecx, [edx + ecx + 1]
inc edx
cmp ecx, dword [esp + 0xc]
jle 0x7d0896
test ebx, ebx
je 0x7d08bc
mov al, byte [ebp]
test al, al
jne 0x7d08bc
mov byte [edi + ebx - 1], 0
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x1c]
mov eax, dword [edx + 4]
or word [eax + ecx*4 + 0x10], 2
movzx eax, word [edx + 0x2a]
mov word [esp + 4], ax
mov ax, 0x400
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x18]
movsx eax, word [esp + 4]
inc ecx
cmp ecx, eax
jl 0x7d0701
xor edi, edi
mov esi, dword [esp]
mov edx, dword [esp + 0x10]
mov ecx, esi
call fcn.00780810
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00989fe9
mov eax, edi
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret