Function at 0x844970
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [ecx + 0xc]
mov esi, ecx
mov ecx, dword [ecx + 0x10]
mov ebp, dword [eax + 0x68]
lea edi, [ecx + ecx*4]
mov eax, 1
cmp byte [ebp + edi*4], 0x3f
jne 0x845057
mov ebx, fcn.007c3310
xor eax, eax
movzx edx, byte [0xbbd7e7]
imul ebx, ebx
and ebx, 3
cmp ebx, 1
seta al
mov ecx, eax
xor ecx, 3
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x844b15
mov al, byte [0xbbd7e7]
xor edx, edx
cmp ebx, 1
seta dl
mov ecx, edx
xor ecx, 3
lea ecx, [ecx + edx*2]
mov dl, 1
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbbd7e7], dl
jne 0x8449c2
mov ecx, fcn.007c3310
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 1
seta dl
mov ebx, edx
xor ebx, 3
lea edx, [ebx + edx*2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x844a2f
xor eax, eax
cmp ecx, 1
movzx ebx, byte [0xbbd7e7]
seta al
mov edx, eax
xor edx, 3
lea eax, [edx + eax*2]
bt ebx, eax
jae 0x844a0e
jmp 0x844b15
xor eax, eax
cmp ecx, 1
movzx edx, byte [0xbbd7e7]
seta al
mov ecx, eax
xor ecx, 3
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x844aed
mov eax, fcn.007c3310
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 1
seta cl
mov eax, ecx
xor eax, 0xbe13d7a3
lea ecx, [eax + ecx*2 + 8]
mov eax, dword [0xbbd7d0]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbbd7d0], eax
not eax
imul edx, eax
mov eax, dword [0xbbd7d4]
lea ebx, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbbd7d4], eax
or ebx, edx
not eax
mov edx, dword [0xbbd7d8]
imul eax, ebx
lea ebx, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbbd7d8], edx
or ebx, eax
not edx
mov eax, dword [0xbbd7dc]
imul edx, ebx
lea ebx, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbbd7dc], eax
or ebx, edx
not eax
mov dl, 1
imul eax, ebx
shl dl, cl
xor dword [0xbbd7e0], eax
or byte [0xbbd7e7], dl
mov eax, fcn.007c3310
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 1
seta cl
mov eax, ecx
xor eax, 3
lea ecx, [eax + ecx*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbbd7e7], al
mov ebx, fcn.00795910
xor eax, eax
movzx edx, byte [0xbbd7f7]
not ebx
and ebx, 1
mov ecx, ebx
add ecx, fcn.00795910
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 3
movzx eax, al
bt edx, eax
jb 0x844c83
mov al, byte [0xbbd7f7]
mov edx, ebx
xor ecx, ecx
add edx, fcn.00795910
sete cl
mov edx, ecx
not edx
lea ecx, [ecx + edx*2]
mov dl, 1
and cl, 3
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbbd7f7], dl
jne 0x844b4d
mov ecx, fcn.00795910
xor edx, edx
movzx eax, al
not ecx
and ecx, 1
mov ebx, ecx
add ebx, fcn.00795910
sete dl
mov ebx, edx
not ebx
lea edx, [edx + ebx*2]
and dl, 3
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x844bd0
mov edx, ecx
xor eax, eax
movzx ebx, byte [0xbbd7f7]
add edx, fcn.00795910
sete al
mov edx, eax
not edx
lea eax, [eax + edx*2]
and al, 3
movzx eax, al
bt ebx, eax
jae 0x844ba6
jmp 0x844c83
xor eax, eax
add ecx, fcn.00795910
movzx edx, byte [0xbbd7f7]
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 3
movzx eax, al
bt edx, eax
jb 0x844c58
mov ecx, fcn.00795910
xor eax, eax
not ecx
and ecx, 1
add ecx, fcn.00795910
sete al
mov ecx, eax
not ecx
and ecx, 0x595
lea ecx, [eax + ecx*2 + 0x184f8248]
mov eax, dword [0xbbd7e8]
xor eax, ecx
mov dword [0xbbd7e8], eax
not eax
mov edx, dword [0xbbd7ec]
imul eax, ecx
and cl, 7
lea ebx, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbbd7ec], edx
or ebx, eax
not edx
mov al, 1
imul edx, ebx
shl al, cl
xor dword [0xbbd7f0], edx
or byte [0xbbd7f7], al
mov eax, fcn.00795910
xor ecx, ecx
not eax
and eax, 1
add eax, fcn.00795910
sete cl
mov eax, ecx
not eax
lea ecx, [ecx + eax*2]
mov al, 0xfe
and cl, 3
xor cl, 7
rol al, cl
and byte [0xbbd7f7], al
movzx eax, word [ebp + edi*4 + 2]
mov edx, 0xbbd7b0
test al, 4
jne 0x844ca0
test al, 8
mov eax, 0xbbd7e8
mov edx, 0xbbd7d0
cmove edx, eax
mov edi, fcn.007c2e30
mov ebx, fcn.007c2e30
movzx ecx, byte [0xbbd7c7]
or edi, 2
xor ebx, 2
mov eax, edi
add eax, ebx
sete al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x844e0a
mov al, byte [0xbbd7c7]
mov ecx, edi
mov ah, 1
add ecx, ebx
sete cl
or cl, 4
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbbd7c7], ah
jne 0x844cd1
mov ecx, fcn.007c2e30
mov edi, fcn.007c2e30
or ecx, 2
xor edi, 2
mov ebx, ecx
add ebx, edi
sete ah
or ah, 4
xor ah, 7
movzx ebx, ah
movzx eax, al
bt eax, ebx
jae 0x844d33
mov eax, ecx
movzx ebx, byte [0xbbd7c7]
add eax, edi
sete al
or al, 4
movzx eax, al
bt ebx, eax
jae 0x844d16
jmp 0x844e0a
add ecx, edi
movzx ecx, byte [0xbbd7c7]
sete al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x844de5
mov eax, fcn.007c2e30
mov edi, fcn.007c2e30
xor ecx, ecx
xor edi, 2
or eax, 2
add eax, edi
mov eax, dword [0xbbd7b0]
sete cl
or ecx, 0x2a6a8fa4
xor eax, ecx
mov dword [0xbbd7b0], eax
not eax
mov edi, dword [0xbbd7b4]
imul eax, ecx
and cl, 5
lea ebx, [eax + eax]
xor edi, eax
shr eax, 0x1e
mov dword [0xbbd7b4], edi
or eax, ebx
not edi
imul edi, eax
mov eax, dword [0xbbd7b8]
lea ebx, [edi*4]
xor eax, edi
shr edi, 0x1d
mov dword [0xbbd7b8], eax
or edi, ebx
not eax
mov ebp, dword [0xbbd7bc]
imul eax, edi
lea ebx, [eax*8]
xor ebp, eax
shr eax, 0x1c
mov dword [0xbbd7bc], ebp
or eax, ebx
not ebp
imul ebp, eax
mov ah, 1
xor dword [0xbbd7c0], ebp
shl ah, cl
or byte [0xbbd7c7], ah
mov eax, fcn.007c2e30
mov ecx, fcn.007c2e30
xor ecx, 2
or eax, 2
add eax, ecx
mov al, 0xfe
sete cl
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbbd7c7], al
mov edi, 0x7ffea0
mov ebx, 0x7ffea0
movzx ecx, byte [0xbbd82b]
or edi, 2
xor ebx, 2
mov eax, edi
add eax, ebx
sete al
or al, 4
add al, 0x84
and al, 7
movzx eax, al
bt ecx, eax
jb 0x84502a
mov al, byte [0xbbd82b]
mov ecx, edi
mov ah, 1
add ecx, ebx
sete cl
or cl, 4
add cl, 0x84
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbbd82b], ah
jne 0x844e3f
mov ecx, 0x7ffea0
mov edi, 0x7ffea0
or ecx, 2
xor edi, 2
mov ebx, ecx
add ebx, edi
sete ah
or ah, 4
add ah, 0x84
and ah, 7
xor ah, 7
movzx ebx, ah
movzx eax, al
bt eax, ebx
jae 0x844eb1
mov eax, ecx
movzx ebx, byte [0xbbd82b]
add eax, edi
sete al
or al, 4
add al, 0x84
and al, 7
movzx eax, al
bt ebx, eax
jae 0x844e90
jmp 0x84502a
add ecx, edi
movzx ecx, byte [0xbbd82b]
sete al
or al, 4
add al, 0x84
and al, 7
movzx eax, al
bt ecx, eax
jb 0x844fff
mov eax, 0x7ffea0
mov edi, 0x7ffea0
xor ecx, ecx
xor edi, 2
or eax, 2
add eax, edi
mov eax, dword [str.._j]
sete cl
or ecx, 0xf70449bc
add ecx, 0x84
mov ebx, ecx
xor eax, ecx
shr ebx, 0x1f
mov dword [str.._j], eax
not eax
or ebx, ecx
and cl, 7
imul ebx, eax
mov eax, dword [0xbbd804]
lea ebp, [ebx + ebx]
xor eax, ebx
shr ebx, 0x1e
mov dword [0xbbd804], eax
or ebp, ebx
not eax
mov edi, dword [0xbbd808]
imul eax, ebp
lea ebx, [eax*4]
xor edi, eax
shr eax, 0x1d
mov dword [0xbbd808], edi
or ebx, eax
not edi
mov eax, dword [0xbbd80c]
imul edi, ebx
lea ebx, [edi*8]
xor eax, edi
shr edi, 0x1c
mov dword [0xbbd80c], eax
or ebx, edi
not eax
mov edi, dword [0xbbd810]
imul eax, ebx
mov ebx, eax
shl ebx, 4
xor edi, eax
shr eax, 0x1b
mov dword [0xbbd810], edi
or eax, ebx
not edi
imul edi, eax
mov eax, dword [0xbbd814]
mov ebx, edi
shl ebx, 5
xor eax, edi
shr edi, 0x1a
mov dword [0xbbd814], eax
or edi, ebx
not eax
imul eax, edi
mov edi, dword [0xbbd818]
mov ebx, eax
shl ebx, 6
xor edi, eax
shr eax, 0x19
mov dword [0xbbd818], edi
or eax, ebx
not edi
imul edi, eax
mov eax, dword [0xbbd81c]
mov ebx, edi
shl ebx, 7
xor eax, edi
shr edi, 0x18
mov dword [0xbbd81c], eax
or edi, ebx
not eax
mov ebp, dword [0xbbd820]
imul eax, edi
mov ebx, eax
shl ebx, 8
xor ebp, eax
shr eax, 0x17
mov dword [0xbbd820], ebp
or eax, ebx
not ebp
imul ebp, eax
mov ah, 1
xor dword [0xbbd824], ebp
shl ah, cl
or byte [0xbbd82b], ah
mov eax, 0x7ffea0
mov ecx, 0x7ffea0
xor ecx, 2
or eax, 2
add eax, ecx
mov al, 0xfe
sete cl
or cl, 4
add cl, 0x84
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbbd82b], al
mov eax, dword [esi + 4]
push edx
push dword [eax + 0x20]
push str.._j
call fcn.00783360
add esp, 0xc
mov edi, eax
push 0xffffffffffffffff
push eax
push esi
call fcn.00789720
add esp, 0xc
push edi
call fcn.00780f60
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret