Function at 0x838f50
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [esp + 0x3c]
mov ebx, edx
mov ebp, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx]
mov dword [esp + 0x14], eax
call fcn.007f7590
test eax, eax
mov dword [esp + 4], eax
je 0x839aa6
mov eax, fcn.007fcf70
mov edx, 3
movzx esi, byte [0xbbb543]
sub edx, eax
xor eax, eax
mov ecx, edx
xor ecx, fcn.007fcf70
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2 + 4]
and al, 7
movzx eax, al
bt esi, eax
jb 0x839132
mov al, byte [0xbbb543]
mov edi, ebx
mov esi, edx
xor ebx, ebx
mov ah, 1
xor esi, fcn.007fcf70
sete bl
mov ecx, ebx
not ecx
lea ecx, [ebx + ecx*2 + 4]
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbbb543], ah
jne 0x838fc7
mov edx, fcn.007fcf70
mov ecx, 3
movzx eax, al
sub ecx, edx
xor edx, edx
mov esi, ecx
xor esi, fcn.007fcf70
sete dl
mov ebx, edx
not ebx
lea edx, [edx + ebx*2 + 4]
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x839051
mov ebx, edi
mov edx, ecx
xor eax, eax
movzx esi, byte [0xbbb543]
xor edx, fcn.007fcf70
sete al
mov edx, eax
not edx
lea eax, [eax + edx*2 + 4]
and al, 7
movzx eax, al
bt esi, eax
jae 0x839026
jmp 0x839132
xor eax, eax
xor ecx, fcn.007fcf70
movzx edx, byte [0xbbb543]
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2 + 4]
and al, 7
movzx eax, al
bt edx, eax
jb 0x839101
mov eax, fcn.007fcf70
mov ecx, 3
sub ecx, eax
xor eax, eax
xor ecx, fcn.007fcf70
sete al
mov ecx, eax
not ecx
and ecx, 0xb
lea ecx, [eax + ecx*2 - 0x412902c]
mov eax, dword [0xbbb530]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbbb530], eax
not eax
imul edx, eax
mov eax, dword [0xbbb534]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbbb534], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbbb538]
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbbb538], edx
or eax, esi
not edx
imul edx, eax
xor dword [0xbbb53c], edx
mov dl, 1
shl dl, cl
or byte [0xbbb543], dl
mov eax, fcn.007fcf70
mov ecx, 3
mov ebx, edi
sub ecx, eax
xor eax, eax
xor ecx, fcn.007fcf70
sete al
mov ecx, eax
not ecx
lea ecx, [eax + ecx*2 + 4]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbbb543], al
mov edx, 0x795c00
movzx ecx, byte [0xbbb5f3]
imul edx, edx
and edx, 3
cmp edx, 3
sete al
not al
add al, 0x80
and al, 7
movzx eax, al
bt ecx, eax
jb 0x839301
mov al, byte [0xbbb5f3]
cmp edx, 3
mov ah, 1
sete cl
not cl
add cl, 0x80
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbbb5f3], ah
jne 0x839161
mov ecx, 0x795c00
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete dl
not dl
add dl, 0x80
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x8391c9
cmp ecx, 3
movzx edx, byte [0xbbb5f3]
sete al
not al
add al, 0x80
and al, 7
movzx eax, al
bt edx, eax
jae 0x8391a9
jmp 0x839301
cmp ecx, 3
movzx ecx, byte [0xbbb5f3]
sete al
not al
add al, 0x80
and al, 7
movzx eax, al
bt ecx, eax
jb 0x8392db
mov eax, 0x795c00
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 3
mov eax, dword [0xbbb5d0]
sete cl
xor ecx, 0x637fcfaf
sub ecx, 0xffffff80
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbbb5d0], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbbb5d4]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbbb5d4], eax
or esi, edx
not eax
mov edx, dword [str.k1_vaO_]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [str.k1_vaO_], edx
or esi, eax
not edx
mov eax, dword [0xbbb5dc]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbbb5dc], eax
or esi, edx
not eax
mov edx, dword [0xbbb5e0]
imul eax, esi
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbbb5e0], edx
or eax, esi
not edx
mov edi, dword [0xbbb5e4]
imul edx, eax
mov esi, edx
shl esi, 5
xor edi, edx
shr edx, 0x1a
mov dword [0xbbb5e4], edi
or edx, esi
not edi
imul edi, edx
mov edx, dword [0xbbb5e8]
mov esi, edi
shl esi, 6
xor edx, edi
shr edi, 0x19
mov dword [0xbbb5e8], edx
or edi, esi
not edx
imul edx, edi
xor dword [0xbbb5ec], edx
mov dl, 1
shl dl, cl
or byte [0xbbb5f3], dl
mov eax, 0x795c00
imul eax, eax
and eax, 3
cmp eax, 3
mov al, 0xfe
sete cl
not cl
add cl, 0x80
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbbb5f3], al
mov ecx, dword [esp + 0x14]
mov esi, ebx
shl esi, 4
mov eax, dword [ecx + 0x10]
lea edx, [eax + esi]
mov dword [esp], edx
mov edx, 0xbbb530
push dword [eax + esi]
call fcn.00797640
add esp, 4
test eax, eax
jne 0x839676
mov edx, fcn.00810c90
xor eax, eax
movzx esi, byte [0xbbb563]
and edx, 1
inc edx
mov ecx, edx
xor ecx, fcn.00810c90
sete al
mov ecx, eax
xor ecx, 3
lea eax, [ecx + eax*2]
bt esi, eax
jb 0x8394a2
mov al, byte [0xbbb563]
mov edi, ebx
mov esi, edx
xor ebx, ebx
mov ah, 1
xor esi, fcn.00810c90
sete bl
mov ecx, ebx
xor ecx, 3
lea ecx, [ecx + ebx*2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbbb563], ah
jne 0x839360
mov ecx, fcn.00810c90
xor edx, edx
movzx eax, al
and ecx, 1
inc ecx
mov esi, ecx
xor esi, fcn.00810c90
sete dl
mov ebx, edx
xor ebx, 3
lea edx, [ebx + edx*2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x8393dc
mov ebx, edi
mov edx, ecx
xor eax, eax
movzx esi, byte [0xbbb563]
xor edx, fcn.00810c90
sete al
mov edx, eax
xor edx, 3
lea eax, [edx + eax*2]
bt esi, eax
jae 0x8393b6
jmp 0x8394a2
xor eax, eax
xor ecx, fcn.00810c90
movzx edx, byte [0xbbb563]
mov ebx, edi
sete al
mov ecx, eax
xor ecx, 3
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x83947a
mov eax, fcn.00810c90
xor ecx, ecx
and eax, 1
inc eax
xor eax, fcn.00810c90
sete cl
mov eax, ecx
xor eax, 0x3b52ab93
lea ecx, [eax + ecx*2 + 0x890]
mov eax, dword [0xbbb550]
xor eax, ecx
mov dword [0xbbb550], eax
not eax
mov edx, dword [0xbbb554]
imul eax, ecx
and cl, 7
lea esi, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbbb554], edx
or esi, eax
not edx
mov eax, dword [0xbbb558]
imul edx, esi
lea esi, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbbb558], eax
or esi, edx
not eax
mov dl, 1
imul eax, esi
shl dl, cl
xor dword [0xbbb55c], eax
or byte [0xbbb563], dl
mov eax, fcn.00810c90
xor ecx, ecx
and eax, 1
inc eax
xor eax, fcn.00810c90
sete cl
mov eax, ecx
xor eax, 3
lea ecx, [eax + ecx*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbbb563], al
mov edx, fcn.00835010
xor eax, eax
movzx esi, byte [0xbbb5cb]
imul edx, edx
and edx, 3
cmp edx, 3
sete al
mov ecx, eax
xor ecx, 3
lea eax, [ecx + eax*2]
bt esi, eax
jb 0x83964b
mov al, byte [0xbbb5cb]
mov esi, ebx
xor ecx, ecx
cmp edx, 3
mov ah, 1
sete cl
mov ebx, ecx
xor ebx, 3
lea ecx, [ebx + ecx*2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbbb5cb], ah
jne 0x8394d4
mov ecx, fcn.00835010
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete dl
mov ebx, edx
xor ebx, 3
lea edx, [ebx + edx*2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x839543
mov ebx, esi
xor eax, eax
cmp ecx, 3
movzx esi, byte [0xbbb5cb]
sete al
mov edx, eax
xor edx, 3
lea eax, [edx + eax*2]
bt esi, eax
jae 0x839522
jmp 0x83964b
xor eax, eax
cmp ecx, 3
movzx edx, byte [0xbbb5cb]
mov ebx, esi
sete al
mov ecx, eax
xor ecx, 3
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x839623
mov eax, fcn.00835010
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 3
sete cl
mov eax, ecx
xor eax, 0x5767b04b
lea ecx, [eax + ecx*2 + 0x1040]
mov eax, dword [0xbbb5b0]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbbb5b0], eax
not eax
imul edx, eax
mov eax, dword [0xbbb5b4]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbbb5b4], eax
or esi, edx
not eax
mov edx, dword [0xbbb5b8]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbbb5b8], edx
or esi, eax
not edx
mov eax, dword [0xbbb5bc]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbbb5bc], eax
or esi, edx
not eax
mov edx, dword [0xbbb5c0]
imul eax, esi
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbbb5c0], edx
or eax, esi
not edx
imul edx, eax
xor dword [0xbbb5c4], edx
mov dl, 1
shl dl, cl
or byte [0xbbb5cb], dl
mov eax, fcn.00835010
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 3
sete cl
mov eax, ecx
xor eax, 3
lea ecx, [eax + ecx*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbbb5cb], al
push 0xbbb550
push 0xbbb530
mov esi, dword [esp + 8]
push dword [esi]
push 0xbbb5b0
push ebp
call fcn.00802190
add esp, 0x14
mov edi, dword [ebp + 0x5c]
mov ax, 0x10
mov dword [esp + 8], eax
jmp 0x8396db
mov edi, dword [eax + 0x1c]
mov ecx, ebp
mov edx, ebx
push 0xbbb530
push 1
push edi
call fcn.007f78a0
add esp, 0xc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x8396bd
push eax
push dword [esp + 0x10]
push 0xbbb530
mov esi, dword [esp + 0xc]
push dword [esi]
push 0xbbb5d0
push ebp
call fcn.00802190
add esp, 0x18
mov dword [esp + 8], 0
jmp 0x8396db
mov ecx, dword [esp + 4]
mov edx, 0x89
push ebx
push edi
call fcn.007d10d0
add esp, 8
mov dword [esp + 8], 0
mov esi, dword [esp]
mov edx, fcn.00780e70
xor eax, eax
imul edx, edx
and edx, 3
cmp edx, 2
sete al
mov ecx, eax
xor ecx, 1
lea eax, [ecx + eax*2]
movzx ecx, byte [0xbbb583]
bt ecx, eax
jb 0x839853
mov al, byte [0xbbb583]
mov dword [esp + 0x18], ebx
xor ecx, ecx
cmp edx, 2
mov ah, 1
sete cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ebx + ecx*2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbbb583], ah
jne 0x83970f
mov ecx, fcn.00780e70
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete dl
mov ebx, edx
xor ebx, 1
lea edx, [ebx + edx*2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x839780
mov ebx, dword [esp + 0x18]
xor eax, eax
cmp ecx, 2
sete al
mov edx, eax
xor edx, 1
lea eax, [edx + eax*2]
movzx edx, byte [0xbbb583]
bt edx, eax
jae 0x83975f
jmp 0x839853
xor eax, eax
cmp ecx, 2
movzx edx, byte [0xbbb583]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x839827
mov eax, fcn.00780e70
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 2
sete cl
mov eax, ecx
xor eax, 0xef6f07a1
lea ecx, [eax + ecx*2 + 0x80]
mov eax, dword [0xbbb570]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbbb570], eax
not eax
imul edx, eax
mov eax, dword [0xbbb574]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbbb574], eax
or esi, edx
not eax
mov edx, dword [0xbbb578]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbbb578], edx
or esi, eax
not edx
mov al, 1
imul edx, esi
mov esi, dword [esp]
shl al, cl
xor dword [0xbbb57c], edx
or byte [0xbbb583], al
mov eax, fcn.00780e70
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 2
sete cl
mov eax, ecx
xor eax, 1
lea ecx, [eax + ecx*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbbb583], al
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, 0xbbb570
push dword [esi]
call fcn.00797640
add esp, 4
test eax, eax
je 0x8398bf
mov esi, dword [eax + 0x1c]
mov ecx, ebp
mov edx, ebx
push 0xbbb570
push 1
push esi
call fcn.007f78a0
add esp, 0xc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x8398a9
push eax
push dword [esp + 0x10]
push 0xbbb570
mov esi, dword [esp + 0xc]
push dword [esi]
push 0xbbb5d0
push ebp
call fcn.00802190
add esp, 0x18
jmp 0x8398bf
mov ecx, dword [esp + 4]
mov edx, 0x89
push ebx
push esi
call fcn.007d10d0
add esp, 8
mov esi, dword [esp]
mov edx, fcn.007aef50
movzx ecx, byte [0xbbb5a3]
not edx
and edx, 1
mov eax, edx
add eax, fcn.007aef50
sete al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x839a0f
mov al, byte [0xbbb5a3]
mov ecx, edx
mov ah, 1
add ecx, fcn.007aef50
sete cl
or cl, 4
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbbb5a3], ah
jne 0x8398ed
mov ecx, fcn.007aef50
movzx eax, al
not ecx
and ecx, 1
mov edx, ecx
add edx, fcn.007aef50
sete dl
or dl, 4
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x839954
mov eax, ecx
movzx edx, byte [0xbbb5a3]
add eax, fcn.007aef50
sete al
or al, 4
movzx eax, al
bt edx, eax
jae 0x839934
jmp 0x839a0f
add ecx, fcn.007aef50
movzx ecx, byte [0xbbb5a3]
sete al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x8399ed
mov eax, fcn.007aef50
xor ecx, ecx
not eax
and eax, 1
add eax, fcn.007aef50
mov eax, dword [0xbbb590]
sete cl
or ecx, 0x1efe2a4
add ecx, 0x820
xor eax, ecx
mov dword [0xbbb590], eax
not eax
mov edx, dword [0xbbb594]
imul eax, ecx
and cl, 7
lea esi, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbbb594], edx
or esi, eax
not edx
mov eax, dword [0xbbb598]
imul edx, esi
lea esi, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbbb598], eax
or esi, edx
not eax
mov dl, 1
imul eax, esi
mov esi, dword [esp]
shl dl, cl
xor dword [0xbbb59c], eax
or byte [0xbbb5a3], dl
mov eax, fcn.007aef50
not eax
and eax, 1
add eax, fcn.007aef50
mov al, 0xfe
sete cl
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbbb5a3], al
mov ecx, dword [esp + 0x14]
mov edx, 0xbbb590
push dword [esi]
call fcn.00797640
add esp, 4
test eax, eax
je 0x839a78
mov esi, dword [eax + 0x1c]
mov ecx, ebp
mov edx, ebx
push 0xbbb590
push 1
push esi
call fcn.007f78a0
add esp, 0xc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x839a65
push eax
push dword [esp + 0x10]
push 0xbbb590
mov eax, dword [esp + 0xc]
push dword [eax]
push 0xbbb5d0
push ebp
call fcn.00802190
add esp, 0x18
jmp 0x839a78
mov ecx, dword [esp + 4]
mov edx, 0x89
push ebx
push esi
call fcn.007d10d0
add esp, 8
mov esi, dword [esp + 4]
mov edx, 0x61
mov ecx, esi
push 3
push ebx
push edi
push dword [esp + 0x28]
call fcn.0078dfd0
add esp, 0x10
movzx edx, word [esp + 8]
mov ecx, esi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.0078e010
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret