Function at 0x7c44e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [0xbcbae0]
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 0x7c455b
mov edx, dword [edx]
mov ecx, edi
mov dword [esp], edi
call fcn.0077edc0
mov edi, 7
test eax, eax
je 0x7c5010
mov ecx, 0x1c
xor edx, edx
mov dword [esp + 0x10], eax
call fcn.0077b7b0
test eax, eax
jne 0x7c4793
mov esi, dword [esp]
mov ecx, esi
call fcn.0077e7a0
jmp 0x7c5005
mov eax, dword [eax + 8]
test eax, eax
je 0x7c4514
cmp dword [eax + 4], edx
jne 0x7c4554
mov edx, fcn.007b9e60
mov eax, fcn.007b9e60
movzx ecx, byte [0xbaefbf]
and edx, 1
xor edx, eax
cmp edx, 0xffffffff
sete al
or al, 6
movzx eax, al
bt ecx, eax
jb 0x7c4772
mov al, byte [0xbaefbf]
cmp edx, 0xffffffff
mov ah, 1
sete cl
or cl, 6
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbaefbf], ah
jne 0x7c458f
mov ecx, fcn.007b9e60
mov edx, fcn.007b9e60
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 0x7c45ed
cmp ecx, 0xffffffff
movzx edx, byte [0xbaefbf]
sete al
or al, 6
movzx eax, al
bt edx, eax
jae 0x7c45d1
jmp 0x7c4772
cmp ecx, 0xffffffff
movzx edx, byte [0xbaefbf]
sete al
or al, 6
movzx eax, al
bt edx, eax
jb 0x7c474d
mov edx, fcn.007b9e60
mov eax, fcn.007b9e60
xor ecx, ecx
and edx, 1
xor edx, eax
mov eax, dword [0xbaef90]
cmp edx, 0xffffffff
sete cl
or ecx, 0x3f5bfbb6
sub ecx, 0xffffff80
xor eax, ecx
mov dword [0xbaef90], eax
not eax
mov edx, dword [0xbaef94]
imul eax, ecx
and cl, 7
lea esi, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbaef94], edx
or eax, esi
not edx
imul edx, eax
mov eax, dword [0xbaef98]
lea esi, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbaef98], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbaef9c]
lea esi, [eax*8]
xor edx, eax
shr eax, 0x1c
mov dword [0xbaef9c], edx
or eax, esi
not edx
imul edx, eax
mov eax, dword [0xbaefa0]
mov esi, edx
shl esi, 4
xor eax, edx
shr edx, 0x1b
mov dword [0xbaefa0], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbaefa4]
mov esi, eax
shl esi, 5
xor edx, eax
shr eax, 0x1a
mov dword [0xbaefa4], edx
or eax, esi
not edx
imul edx, eax
mov eax, dword [0xbaefa8]
mov esi, edx
shl esi, 6
xor eax, edx
shr edx, 0x19
mov dword [0xbaefa8], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbaefac]
mov esi, eax
shl esi, 7
xor edx, eax
shr eax, 0x18
mov dword [0xbaefac], edx
or eax, esi
not edx
mov ebx, dword [0xbaefb0]
imul edx, eax
mov esi, edx
shl esi, 8
xor ebx, edx
shr edx, 0x17
mov dword [0xbaefb0], 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 [0xbaefb8], edx
mov dl, 1
shl dl, cl
or byte [0xbaefbf], dl
mov ecx, fcn.007b9e60
mov eax, fcn.007b9e60
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 [0xbaefbf], al
mov eax, dword [esp + 8]
push dword [eax]
push 0xbaef90
push edi
call fcn.00782620
add esp, 0xc
mov dword [ebp], eax
mov edi, 6
jmp 0x7c5010
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.007825f0
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 0x7c4b45
mov ebx, dword [esp + 0x54]
cmp edi, 7
jne 0x7c4832
mov ecx, dword [esp]
call fcn.0077e7a0
mov edx, dword [esp + 0x20]
mov ebp, dword [esp + 4]
test edx, edx
jne 0x7c4a24
mov edx, fcn.007c5940
mov eax, fcn.007c5940
movzx ecx, byte [0xbaefe3]
and edx, 1
xor edx, eax
cmp edx, 0xffffffff
sete al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x7c4a07
mov al, byte [0xbaefe3]
cmp edx, 0xffffffff
mov ah, 1
sete cl
or cl, 4
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbaefe3], ah
jne 0x7c4871
mov ecx, fcn.007c5940
mov edx, fcn.007c5940
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 0x7c48cf
cmp ecx, 0xffffffff
movzx edx, byte [0xbaefe3]
sete al
or al, 4
movzx eax, al
bt edx, eax
jae 0x7c48b3
jmp 0x7c4a07
cmp ecx, 0xffffffff
movzx edx, byte [0xbaefe3]
sete al
or al, 4
movzx eax, al
bt edx, eax
jb 0x7c49e2
mov edx, fcn.007c5940
mov eax, fcn.007c5940
xor ecx, ecx
and edx, 1
xor edx, eax
mov eax, dword [0xbaefc0]
cmp edx, 0xffffffff
sete cl
or ecx, 0x5a88d078
add ecx, 0x1304
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbaefc0], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbaefc4]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbaefc4], eax
or esi, edx
not eax
mov edx, dword [0xbaefc8]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbaefc8], edx
or esi, eax
not edx
mov eax, dword [0xbaefcc]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbaefcc], eax
or esi, edx
not eax
mov edx, dword [0xbaefd0]
imul eax, esi
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbaefd0], 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 [0xbaefd8]
mov esi, eax
shl esi, 6
xor edx, eax
shr eax, 0x19
mov dword [0xbaefd8], edx
or eax, esi
not edx
imul edx, eax
xor dword [0xbaefdc], edx
mov dl, 1
shl dl, cl
or byte [0xbaefe3], dl
mov ecx, fcn.007c5940
mov eax, fcn.007c5940
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 [0xbaefe3], al
push dword [esp + 0x10]
push 0xbaefc0
mov esi, dword [esp + 8]
push esi
call fcn.00782620
add esp, 0xc
mov dword [ebx], eax
jmp 0x7c4b37
mov esi, fcn.00798210
movzx ecx, byte [0xbaefeb]
imul esi, esi
and esi, 3
cmp esi, 1
seta al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x7c4b16
mov al, byte [0xbaefeb]
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 [0xbaefeb], ah
jne 0x7c4a51
mov ecx, fcn.00798210
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 0x7c4aae
cmp ecx, 1
movzx esi, byte [0xbaefeb]
seta al
not al
and al, 3
movzx eax, al
bt esi, eax
jae 0x7c4a93
jmp 0x7c4b16
cmp ecx, 1
movzx ecx, byte [0xbaefeb]
seta al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x7c4af3
mov eax, fcn.00798210
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 1
mov al, 1
seta cl
xor ecx, 0x46060dd3
xor dword [0xbaefe4], ecx
and cl, 3
shl al, cl
or byte [0xbaefeb], al
mov eax, fcn.00798210
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 [0xbaefeb], al
push edx
push 0xbaefe4
mov esi, dword [esp + 8]
push esi
call fcn.00782620
add esp, 0xc
mov dword [ebx], eax
push dword [esp + 0x20]
call fcn.00775660
add esp, 4
mov ecx, esi
mov edx, ebp
call fcn.00774f10
jmp 0x7c5005
mov eax, dword [ebp]
xor edi, edi
test eax, eax
je 0x7c5002
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 0x7c4dd9
mov edx, fcn.007c77a0
movzx ecx, byte [0xbaf023]
mov eax, fcn.007c77a0
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 0x7c4db0
mov al, byte [0xbaf023]
cmp edx, 0xffffffff
mov ah, 1
setne cl
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbaf023], ah
jne 0x7c4bb9
mov ecx, fcn.007c77a0
mov edx, fcn.007c77a0
movzx eax, al
and ecx, 1
xor ecx, edx
cmp ecx, 0xffffffff
setne dl
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7c4c0e
movzx edx, byte [0xbaf023]
xor eax, eax
cmp ecx, 0xffffffff
setne al
bt edx, eax
jae 0x7c4bf5
jmp 0x7c4db0
movzx edx, byte [0xbaf023]
xor eax, eax
cmp ecx, 0xffffffff
setne al
bt edx, eax
jb 0x7c4d8e
mov edx, fcn.007c77a0
mov eax, fcn.007c77a0
xor ecx, ecx
and edx, 1
xor edx, eax
mov eax, dword [0xbaeff0]
cmp edx, 0xffffffff
sete cl
xor ecx, 0x7666b951
add ecx, 0x908
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbaeff0], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbaeff4]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbaeff4], eax
or esi, edx
not eax
mov edx, dword [0xbaeff8]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbaeff8], edx
or esi, eax
not edx
mov eax, dword [0xbaeffc]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbaeffc], eax
or esi, edx
not eax
mov edx, dword [0xbaf000]
imul eax, esi
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbaf000], edx
or eax, esi
not edx
imul edx, eax
mov eax, dword [0xbaf004]
mov esi, edx
shl esi, 5
xor eax, edx
shr edx, 0x1a
mov dword [0xbaf004], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbaf008]
mov esi, eax
shl esi, 6
xor edx, eax
shr eax, 0x19
mov dword [0xbaf008], edx
or eax, esi
not edx
imul edx, eax
mov eax, dword [0xbaf00c]
mov esi, edx
shl esi, 7
xor eax, edx
shr edx, 0x18
mov dword [0xbaf00c], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbaf010]
mov esi, eax
shl esi, 8
xor edx, eax
shr eax, 0x17
mov dword [0xbaf010], edx
or eax, esi
not edx
imul edx, eax
mov eax, dword [0xbaf014]
mov esi, edx
shl esi, 9
xor eax, edx
shr edx, 0x16
mov dword [0xbaf014], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbaf018]
mov esi, eax
shl esi, 0xa
xor edx, eax
shr eax, 0x15
mov dword [0xbaf018], edx
or eax, esi
not edx
imul edx, eax
xor dword [0xbaf01c], edx
mov dl, 1
shl dl, cl
or byte [0xbaf023], dl
mov ecx, fcn.007c77a0
mov eax, fcn.007c77a0
and ecx, 1
xor ecx, eax
mov al, 0xfe
cmp ecx, 0xffffffff
setne cl
xor cl, 7
rol al, cl
and byte [0xbaf023], al
mov eax, dword [esp + 8]
push dword [eax]
push 0xbaeff0
push edi
call fcn.00782620
add esp, 0xc
mov ecx, ebp
mov dword [ebx], eax
call fcn.007a1d10
mov esi, edi
mov edi, 1
jmp 0x7c5005
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 0x7c5005
mov eax, fcn.007eee80
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, 0xc1f2a9
call fcn.0078c4e0
mov ecx, eax
mov ebp, eax
call fcn.00777870
test eax, eax
mov ebx, 0
mov dword [esp + 0xc], eax
jle 0x7c4f7b
mov eax, esi
movzx ecx, byte [0xbaf02f]
xor eax, fcn.007eee80
sete al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x7c4f39
mov al, byte [0xbaf02f]
mov ecx, esi
mov dl, 1
xor ecx, fcn.007eee80
sete cl
or cl, 4
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbaf02f], dl
jne 0x7c4e6e
mov ecx, esi
movzx eax, al
xor ecx, fcn.007eee80
sete cl
or cl, 4
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x7c4ec8
mov eax, esi
movzx ecx, byte [0xbaf02f]
xor eax, fcn.007eee80
sete al
or al, 4
movzx eax, al
bt ecx, eax
jae 0x7c4eab
jmp 0x7c4f39
mov eax, esi
movzx ecx, byte [0xbaf02f]
xor eax, fcn.007eee80
sete al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x7c4f1f
mov eax, esi
xor ecx, ecx
mov dl, 1
xor eax, fcn.007eee80
mov eax, dword [0xbaf024]
sete cl
or ecx, 0x1805fd1c
add ecx, 0x140
xor eax, ecx
mov dword [0xbaf024], eax
not eax
imul eax, ecx
and cl, 7
shl dl, cl
xor dword [0xbaf028], eax
or byte [0xbaf02f], dl
mov eax, esi
xor eax, fcn.007eee80
mov al, 0xfe
sete cl
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbaf02f], al
mov edi, ebp
lea ebp, [ebp + ebx]
push 6
push ebp
push 0xbaf024
call fcn.00777e50
add esp, 0xc
test eax, eax
jne 0x7c4f6c
test ebx, ebx
je 0x7c4f5e
cmp byte [edi + ebx - 1], 0x20
jne 0x7c4f6c
mov al, byte [edi + ebx + 6]
mov ecx, eax
or cl, 0x20
cmp cl, 0x20
je 0x7c4f89
mov eax, dword [esp + 0xc]
inc ebx
mov ebp, edi
cmp ebx, eax
jl 0x7c4e4a
movzx eax, word [esp + 0x14]
mov edx, dword [esp + 8]
or dword [edx + 0x24], eax
jmp 0x7c4fee
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 0x7c4fbc
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 0x7c4fa6
test ebx, ebx
je 0x7c4fcc
mov al, byte [ebp]
test al, al
jne 0x7c4fcc
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 0x7c4e11
xor edi, edi
mov esi, dword [esp]
mov edx, dword [esp + 0x10]
mov ecx, esi
call fcn.00774f10
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00980459
mov eax, edi
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret