Function at 0x7d3c20
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 0x7d4492
cmp byte [ecx + 0xc8], 1
je 0x7d4492
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 0x7d3e3d
mov eax, dword [esp + 8]
movsx eax, word [eax + 0x2a]
test eax, eax
jle 0x7d4492
test ebp, ebp
jne 0x7d3c8e
mov dword [esp + 0x18], ecx
mov ecx, 1
jmp 0x7d3e47
cmp dword [ebp], 1
mov dword [esp], esi
jne 0x7d3caf
mov ebx, dword [edi + 4]
mov dword [esp + 0x18], ecx
mov dword [esp + 4], edi
mov edx, 1
add ebx, 0x2d
jmp 0x7d3fdb
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 [0xbb1b13]
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 0x7d3e15
mov al, byte [0xbb1b13]
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 [0xbb1b13], ah
jne 0x7d3cea
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 0x7d3d67
mov esi, ecx
xor eax, eax
xor esi, sub.KERNEL32.dll_FlushFileBuffers
movzx esi, byte [0xbb1b13]
sete al
mov ebx, eax
xor ebx, 5
lea eax, [ebx + eax*2]
bt esi, eax
jae 0x7d3d41
jmp 0x7d3e15
xor eax, eax
xor ecx, sub.KERNEL32.dll_FlushFileBuffers
movzx edx, byte [0xbb1b13]
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 0x7d3de9
mov esi, 0xbb1ad0
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 0x7d3d9b
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 [0xbb1b13], 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 [0xbb1b13], 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 0xbb1ad0
push dword [esp + 0x18]
call fcn.00782570
add esp, 0x10
jmp 0x7d4489
test ebp, ebp
jne 0x7d3e5f
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 0x7d4005
mov edx, dword [ebp]
cmp edx, dword [ebx]
je 0x7d3fc1
mov eax, fcn.00796d40
mov edx, 3
movzx ecx, byte [0xbb1b83]
mov edi, dword [esp + 0xc]
sub edx, eax
mov eax, edx
xor eax, fcn.00796d40
sete al
or al, 2
movzx eax, al
bt ecx, eax
jb 0x7d3fae
mov al, byte [0xbb1b83]
mov ecx, edx
mov ah, 1
xor ecx, fcn.00796d40
sete cl
or cl, 2
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb1b83], ah
jne 0x7d3e9e
mov edx, fcn.00796d40
mov ecx, 3
movzx eax, al
sub ecx, edx
mov edx, ecx
xor edx, fcn.00796d40
sete dl
or dl, 2
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7d3f07
mov eax, ecx
movzx edx, byte [0xbb1b83]
xor eax, fcn.00796d40
sete al
or al, 2
movzx eax, al
bt edx, eax
jae 0x7d3ee7
jmp 0x7d3fae
xor edx, edx
xor ecx, fcn.00796d40
movzx ecx, byte [0xbb1b83]
sete dl
or edx, 0x38e5d862
add edx, 0x138
mov eax, edx
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7d3f89
mov dword [esp], esi
mov esi, 0xbb1b20
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 0x7d3f3b
mov eax, fcn.00796d40
mov ecx, 3
sub ecx, eax
mov al, 1
xor ecx, fcn.00796d40
sete cl
or cl, 2
shl al, cl
or byte [0xbb1b83], al
mov esi, dword [esp]
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov eax, fcn.00796d40
mov ecx, 3
sub ecx, eax
mov al, 0xfe
xor ecx, fcn.00796d40
sete cl
or cl, 2
xor cl, 7
rol al, cl
and byte [0xbb1b83], al
push 0xbb1b20
push edi
call fcn.00782570
add esp, 8
jmp 0x7d4490
mov eax, dword [edi + 4]
test edx, edx
mov dword [esp + 0x18], ecx
lea ebx, [eax + edx*8 + 0x25]
jle 0x7d44b2
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.00777870
inc esi
lea ebx, [ebx + eax + 1]
cmp esi, edi
jne 0x7d3fdf
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.0077efb0
add esp, 4
test eax, eax
je 0x7d448c
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 0x7d4065
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x28]
push dword [esp + 4]
call fcn.007d8f10
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.009806e0
add esp, 0xc
mov eax, dword [esi + 4]
mov ecx, edi
mov byte [edi + eax], 0
call fcn.008038b0
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 0x7d44c1
test eax, eax
jle 0x7d443a
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 0x7d40ce
xor ebp, ebp
jmp 0x7d4122
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.00777e20
test eax, eax
jne 0x7d410d
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 0x7d4122
inc ebp
cmp ebp, esi
jl 0x7d40de
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 0x7d4387
mov dword [esp + 4], edx
mov edx, fcn.00787f90
imul edx, edx
movzx ecx, byte [0xbb1bc3]
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 0x7d4365
mov al, byte [0xbb1bc3]
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 [0xbb1bc3], ah
jne 0x7d4165
mov ecx, fcn.00787f90
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 0x7d41c5
cmp ecx, 1
movzx edx, byte [0xbb1bc3]
seta al
not al
and al, 3
movzx eax, al
bt edx, eax
jae 0x7d41a7
jmp 0x7d4365
cmp ecx, 1
movzx ecx, byte [0xbb1bc3]
seta al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x7d4342
mov eax, fcn.00787f90
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 1
mov eax, dword [0xbb1b90]
seta cl
xor ecx, 0x13420e83
add ecx, 0x238
xor eax, ecx
mov dword [0xbb1b90], eax
not eax
mov edx, dword [0xbb1b94]
imul eax, ecx
and cl, 7
lea esi, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbb1b94], edx
or esi, eax
not edx
mov eax, dword [0xbb1b98]
imul edx, esi
lea esi, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbb1b98], eax
or esi, edx
not eax
mov edx, dword [0xbb1b9c]
imul eax, esi
lea esi, [eax*8]
xor edx, eax
shr eax, 0x1c
mov dword [0xbb1b9c], edx
or esi, eax
not edx
mov eax, dword [0xbb1ba0]
imul edx, esi
mov esi, edx
shl esi, 4
xor eax, edx
shr edx, 0x1b
mov dword [0xbb1ba0], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb1ba4]
mov esi, eax
shl esi, 5
xor edx, eax
shr eax, 0x1a
mov dword [0xbb1ba4], edx
or eax, esi
not edx
imul edx, eax
mov eax, dword [0xbb1ba8]
mov esi, edx
shl esi, 6
xor eax, edx
shr edx, 0x19
mov dword [0xbb1ba8], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb1bac]
mov esi, eax
shl esi, 7
xor edx, eax
shr eax, 0x18
mov dword [0xbb1bac], edx
or eax, esi
not edx
imul edx, eax
mov eax, dword [0xbb1bb0]
mov esi, edx
shl esi, 8
xor eax, edx
shr edx, 0x17
mov dword [0xbb1bb0], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb1bb4]
mov esi, eax
shl esi, 9
xor edx, eax
shr eax, 0x16
mov dword [0xbb1bb4], edx
or eax, esi
not edx
imul edx, eax
mov eax, dword [0xbb1bb8]
mov esi, edx
shl esi, 0xa
xor eax, edx
shr edx, 0x15
mov dword [0xbb1bb8], eax
or edx, esi
not eax
mov esi, dword [esp]
imul eax, edx
mov dl, 1
xor dword [0xbb1bbc], eax
shl dl, cl
or byte [0xbb1bc3], dl
mov eax, fcn.00787f90
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 [0xbb1bc3], al
mov eax, dword [esp + 4]
lea eax, [eax + eax*4]
push dword [ebx + eax*4 + 8]
push 0xbb1b90
push edi
call fcn.00782570
add esp, 0xc
mov edx, dword [esp + 0x2c]
jmp 0x7d4492
cmp byte [edi + 0xc8], 2
jb 0x7d43b0
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.007f6a90
mov ecx, dword [esp + 0xc]
mov edx, esi
add esp, 4
inc edx
mov ebp, dword [esp + 0x20]
cmp edx, dword [esp + 0x14]
jl 0x7d40c2
cmp dword [esp + 0x14], 0
mov ecx, dword [esp + 0x24]
setle al
xor cl, 1
or cl, al
jne 0x7d443a
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.00777870
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 0x7d441a
mov ecx, dword [esp + 0xc]
mov edx, ebx
push dword [ebp]
call fcn.007f6a90
add esp, 4
push edi
push dword [ebp]
push ebx
call fcn.009806e0
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 0x7d43e0
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.007bfe40
add esp, 4
cmp eax, edi
jne 0x7d4478
mov esi, dword [esp]
mov ecx, esi
call fcn.0077e7a0
mov ebx, dword [esp + 0x10]
mov edx, edi
jmp 0x7d4492
test eax, eax
je 0x7d4482
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.00774f10
mov ecx, esi
mov edx, ebx
call fcn.007c00f0
mov ecx, esi
mov edx, ebp
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.007c00f0
mov al, 1
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], eax
jmp 0x7d4005
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x1c]
movsx eax, word [eax + 0x2a]
dec eax
mov dword [ecx], eax
jmp 0x7d43bf