Function at 0x7df4c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [ecx + 0xe4]
mov ebp, dword [esp + 0x4c]
mov esi, dword [ecx]
mov ebx, edx
xor edx, edx
test eax, eax
mov dword [esp + 8], eax
je 0x7dfd32
cmp byte [ecx + 0xc8], 1
je 0x7dfd32
mov dword [esp + 0xc], ecx
test ebx, ebx
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x48]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x10], ebx
jne 0x7df6dd
mov eax, dword [esp + 8]
movsx eax, word [eax + 0x2a]
test eax, eax
jle 0x7dfd32
test ebp, ebp
jne 0x7df52e
mov dword [esp + 0x18], ecx
mov ecx, 1
jmp 0x7df6e7
cmp dword [ebp], 1
mov dword [esp], esi
jne 0x7df54f
mov ebx, dword [edi + 4]
mov dword [esp + 0x18], ecx
mov dword [esp + 4], edi
mov edx, 1
add ebx, 0x2d
jmp 0x7df87b
dec eax
mov esi, 3
mov dword [esp + 0x14], eax
mov eax, sub.KERNEL32.dll_FlushFileBuffers
sub esi, eax
xor eax, eax
movzx edx, byte [0xbb9473]
mov ecx, esi
xor ecx, sub.KERNEL32.dll_FlushFileBuffers
sete al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x7df6b5
mov al, byte [0xbb9473]
mov ebx, esi
xor ecx, ecx
mov ah, 1
xor ebx, sub.KERNEL32.dll_FlushFileBuffers
sete cl
mov ebx, ecx
xor ebx, 5
lea ecx, [ebx + ecx*2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb9473], ah
jne 0x7df58a
mov esi, sub.KERNEL32.dll_FlushFileBuffers
mov ecx, 3
xor edx, edx
movzx eax, al
sub ecx, esi
mov esi, ecx
xor esi, sub.KERNEL32.dll_FlushFileBuffers
sete dl
mov ebx, edx
xor ebx, 5
lea ebx, [ebx + edx*2]
xor bl, 7
movzx esi, bl
bt eax, esi
jae 0x7df607
mov esi, ecx
xor eax, eax
xor esi, sub.KERNEL32.dll_FlushFileBuffers
movzx esi, byte [0xbb9473]
sete al
mov ebx, eax
xor ebx, 5
lea eax, [ebx + eax*2]
bt esi, eax
jae 0x7df5e1
jmp 0x7df6b5
xor eax, eax
xor ecx, sub.KERNEL32.dll_FlushFileBuffers
movzx edx, byte [0xbb9473]
sete al
mov ecx, eax
xor ecx, 0x3aa08d9d
lea ebx, [ecx + eax*2 + 0xc0]
mov eax, ebx
and al, 7
movzx eax, al
bt edx, eax
jb 0x7df689
mov esi, 0xbb9430
xor eax, eax
mov ebp, dword [esi]
mov ecx, eax
mov edx, ebx
inc eax
shl edx, cl
xor cl, 0x1f
xor ebp, ebx
shr ebx, cl
mov dword [esi], ebp
or ebx, edx
not ebp
add esi, 4
imul ebx, ebp
cmp eax, 0x10
jne 0x7df63b
mov eax, sub.KERNEL32.dll_FlushFileBuffers
mov ecx, 3
mov dl, 1
sub ecx, eax
xor eax, eax
xor ecx, sub.KERNEL32.dll_FlushFileBuffers
sete al
mov ecx, eax
xor ecx, 5
lea ecx, [ecx + eax*2]
shl dl, cl
or byte [0xbb9473], dl
mov ebp, dword [esp + 0x20]
mov eax, sub.KERNEL32.dll_FlushFileBuffers
mov ecx, 3
sub ecx, eax
xor eax, eax
xor ecx, sub.KERNEL32.dll_FlushFileBuffers
sete al
mov ecx, eax
xor ecx, 5
lea ecx, [ecx + eax*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbb9473], al
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x14]
mov eax, dword [eax + 4]
lea ecx, [ecx + ecx*4]
push edi
push dword [eax + ecx*4]
push 0xbb9430
push dword [esp + 0x18]
call fcn.0078de60
add esp, 0x10
jmp 0x7dfd29
test ebp, ebp
jne 0x7df6ff
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx]
mov eax, dword [edi + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], 0
lea ebx, [eax + ecx*8 + 0x25]
jmp 0x7df8a5
mov edx, dword [ebp]
cmp edx, dword [ebx]
je 0x7df861
mov eax, fcn.007a2650
mov edx, 3
movzx ecx, byte [0xbb94e3]
mov edi, dword [esp + 0xc]
sub edx, eax
mov eax, edx
xor eax, fcn.007a2650
sete al
or al, 2
movzx eax, al
bt ecx, eax
jb 0x7df84e
mov al, byte [0xbb94e3]
mov ecx, edx
mov ah, 1
xor ecx, fcn.007a2650
sete cl
or cl, 2
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb94e3], ah
jne 0x7df73e
mov edx, fcn.007a2650
mov ecx, 3
movzx eax, al
sub ecx, edx
mov edx, ecx
xor edx, fcn.007a2650
sete dl
or dl, 2
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7df7a7
mov eax, ecx
movzx edx, byte [0xbb94e3]
xor eax, fcn.007a2650
sete al
or al, 2
movzx eax, al
bt edx, eax
jae 0x7df787
jmp 0x7df84e
xor edx, edx
xor ecx, fcn.007a2650
movzx ecx, byte [0xbb94e3]
sete dl
or edx, 0x38e5d862
add edx, 0x138
mov eax, edx
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7df829
mov dword [esp], esi
mov esi, 0xbb9480
xor eax, eax
mov edi, dword [esi]
mov ecx, eax
mov ebx, edx
inc eax
shl ebx, cl
xor cl, 0x1f
xor edi, edx
shr edx, cl
mov dword [esi], edi
or edx, ebx
not edi
add esi, 4
imul edx, edi
cmp eax, 0x18
jne 0x7df7db
mov eax, fcn.007a2650
mov ecx, 3
sub ecx, eax
mov al, 1
xor ecx, fcn.007a2650
sete cl
or cl, 2
shl al, cl
or byte [0xbb94e3], al
mov esi, dword [esp]
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov eax, fcn.007a2650
mov ecx, 3
sub ecx, eax
mov al, 0xfe
xor ecx, fcn.007a2650
sete cl
or cl, 2
xor cl, 7
rol al, cl
and byte [0xbb94e3], al
push 0xbb9480
push edi
call fcn.0078de60
add esp, 8
jmp 0x7dfd30
mov eax, dword [edi + 4]
test edx, edx
mov dword [esp + 0x18], ecx
lea ebx, [eax + edx*8 + 0x25]
jle 0x7dfd52
mov dword [esp + 4], edi
mov dword [esp], esi
xor esi, esi
mov edi, edx
lea eax, [esi + esi*4]
mov ecx, dword [ebp + eax*4 + 8]
call fcn.00783170
inc esi
lea ebx, [ebx + eax + 1]
cmp esi, edi
jne 0x7df87f
mov al, 1
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], eax
mov esi, dword [esp]
mov edi, dword [esp + 4]
mov eax, ebx
mov ecx, esi
mov edx, ebx
sar eax, 0x1f
push eax
call fcn.0078a8a0
add esp, 4
test eax, eax
je 0x7dfd2c
mov dword [esp + 4], edi
mov ebx, eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [ebx], eax
mov eax, dword [eax + 0x10]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x14]
lea edi, [ebx + eax*8 + 0x24]
mov dword [ebx + 8], edi
mov dword [esp + 0x28], edi
cmp byte [ecx + 0xc8], 2
jb 0x7df905
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x28]
push dword [esp + 4]
call fcn.007e47b0
mov edi, dword [esp + 0x2c]
add esp, 4
lea eax, [ebx + 0x24]
mov dword [esp], esi
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 4]
push dword [esi + 4]
push dword [esi]
push edi
call fcn.0098a270
add esp, 0xc
mov eax, dword [esi + 4]
mov ecx, edi
mov byte [edi + eax], 0
call fcn.0080f110
mov eax, dword [esi + 4]
cmp dword [esp + 0x10], 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x14], eax
je 0x7dfd61
test eax, eax
jle 0x7dfcda
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 8]
xor edx, edx
movsx esi, word [ecx + 0x2a]
test esi, esi
jg 0x7df96e
xor ebp, ebp
jmp 0x7df9c2
lea eax, [edx + edx*4]
xor ebp, ebp
mov dword [esp + 4], edx
mov edi, dword [ebx + eax*4 + 8]
mov ebx, dword [ecx + 4]
lea eax, [ebp + ebp*4]
mov edx, edi
mov ecx, dword [ebx + eax*4]
call fcn.00783720
test eax, eax
jne 0x7df9ad
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 8]
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov dword [eax + edx*8], ebp
movzx esi, word [ecx + 0x2a]
jmp 0x7df9c2
inc ebp
cmp ebp, esi
jl 0x7df97e
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
movsx eax, si
cmp ebp, eax
jl 0x7dfc27
mov dword [esp + 4], edx
mov edx, fcn.00793890
imul edx, edx
movzx ecx, byte [0xbb9523]
mov ebp, dword [esp + 0x20]
mov esi, dword [esp]
and edx, 3
cmp edx, 1
seta al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x7dfc05
mov al, byte [0xbb9523]
cmp edx, 1
mov ah, 1
seta cl
not cl
and cl, 3
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb9523], ah
jne 0x7dfa05
mov ecx, fcn.00793890
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 1
seta dl
not dl
and dl, 3
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7dfa65
cmp ecx, 1
movzx edx, byte [0xbb9523]
seta al
not al
and al, 3
movzx eax, al
bt edx, eax
jae 0x7dfa47
jmp 0x7dfc05
cmp ecx, 1
movzx ecx, byte [0xbb9523]
seta al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x7dfbe2
mov eax, fcn.00793890
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 1
mov eax, dword [0xbb94f0]
seta cl
xor ecx, 0x13420e83
add ecx, 0x238
xor eax, ecx
mov dword [0xbb94f0], eax
not eax
mov edx, dword [0xbb94f4]
imul eax, ecx
and cl, 7
lea esi, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbb94f4], edx
or esi, eax
not edx
mov eax, dword [0xbb94f8]
imul edx, esi
lea esi, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbb94f8], eax
or esi, edx
not eax
mov edx, dword [0xbb94fc]
imul eax, esi
lea esi, [eax*8]
xor edx, eax
shr eax, 0x1c
mov dword [0xbb94fc], edx
or esi, eax
not edx
mov eax, dword [0xbb9500]
imul edx, esi
mov esi, edx
shl esi, 4
xor eax, edx
shr edx, 0x1b
mov dword [0xbb9500], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb9504]
mov esi, eax
shl esi, 5
xor edx, eax
shr eax, 0x1a
mov dword [0xbb9504], edx
or eax, esi
not edx
imul edx, eax
mov eax, dword [0xbb9508]
mov esi, edx
shl esi, 6
xor eax, edx
shr edx, 0x19
mov dword [0xbb9508], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb950c]
mov esi, eax
shl esi, 7
xor edx, eax
shr eax, 0x18
mov dword [0xbb950c], edx
or eax, esi
not edx
imul edx, eax
mov eax, dword [0xbb9510]
mov esi, edx
shl esi, 8
xor eax, edx
shr edx, 0x17
mov dword [0xbb9510], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb9514]
mov esi, eax
shl esi, 9
xor edx, eax
shr eax, 0x16
mov dword [0xbb9514], edx
or eax, esi
not edx
imul edx, eax
mov eax, dword [0xbb9518]
mov esi, edx
shl esi, 0xa
xor eax, edx
shr edx, 0x15
mov dword [0xbb9518], eax
or edx, esi
not eax
mov esi, dword [esp]
imul eax, edx
mov dl, 1
xor dword [0xbb951c], eax
shl dl, cl
or byte [0xbb9523], dl
mov eax, fcn.00793890
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 [0xbb9523], al
mov eax, dword [esp + 4]
lea eax, [eax + eax*4]
push dword [ebx + eax*4 + 8]
push 0xbb94f0
push edi
call fcn.0078de60
add esp, 0xc
mov edx, dword [esp + 0x2c]
jmp 0x7dfd32
cmp byte [edi + 0xc8], 2
jb 0x7dfc50
mov ecx, dword [esp + 0x1c]
lea eax, [edx + edx*4]
mov esi, edx
lea edx, [ecx + edx*8]
mov ecx, edi
push dword [ebx + eax*4 + 8]
call fcn.008022f0
mov ecx, dword [esp + 0xc]
mov edx, esi
add esp, 4
inc edx
mov ebp, dword [esp + 0x20]
cmp edx, dword [esp + 0x14]
jl 0x7df962
cmp dword [esp + 0x14], 0
mov ecx, dword [esp + 0x24]
setle al
xor cl, 1
or cl, al
jne 0x7dfcda
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
xor esi, esi
lea ebx, [eax + ecx + 1]
lea eax, [esi + esi*4]
mov ecx, ebp
mov ecx, dword [ecx + eax*4 + 8]
lea ebp, [ebp + eax*4 + 8]
call fcn.00783170
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
mov edi, eax
mov dword [edx + esi*8 + 4], ebx
cmp byte [ecx + 0xc8], 2
jb 0x7dfcba
mov ecx, dword [esp + 0xc]
mov edx, ebx
push dword [ebp]
call fcn.008022f0
add esp, 4
push edi
push dword [ebp]
push ebx
call fcn.0098a270
add esp, 0xc
inc esi
mov ebp, dword [esp + 0x20]
mov byte [ebx + edi], 0
lea ebx, [ebx + edi + 1]
cmp esi, dword [esp + 0x14]
jne 0x7dfc80
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
mov byte [edi + 0x18], 0
mov byte [edi + 0x19], al
mov byte [edi + 0x1a], ah
mov eax, dword [esp + 8]
mov edx, dword [edi + 8]
mov ecx, dword [eax + 0x48]
add ecx, 0x38
push edi
call fcn.007cb740
add esp, 4
cmp eax, edi
jne 0x7dfd18
mov esi, dword [esp]
mov ecx, esi
call fcn.0078a090
mov ebx, dword [esp + 0x10]
mov edx, edi
jmp 0x7dfd32
test eax, eax
je 0x7dfd22
mov dword [edi + 0xc], eax
mov dword [eax + 0x10], edi
mov eax, dword [esp + 8]
mov dword [eax + 0x10], edi
mov esi, dword [esp]
mov ebx, dword [esp + 0x10]
xor edx, edx
mov ecx, esi
call fcn.00780810
mov ecx, esi
mov edx, ebx
call fcn.007cb9f0
mov ecx, esi
mov edx, ebp
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.007cb9f0
mov al, 1
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], eax
jmp 0x7df8a5
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x1c]
movsx eax, word [eax + 0x2a]
dec eax
mov dword [ecx], eax
jmp 0x7dfc5f