Function at 0x7df1f8e2
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x38
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
lea eax, [ebx + 0x10]
mov dword [ebp - 4], eax
lea eax, [esi + 8]
mov edx, dword [eax]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], edx
mov eax, dword [eax + 4]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
movzx eax, byte [esi + 0x17]
push edi
imul eax, eax, 0x3418
movzx edi, byte [edx + 2]
imul edi, edi, 0x68
add eax, ecx
lea edi, [edi + eax + 0x328]
mov eax, dword [edi + 0x58]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edi
test eax, eax
je 0x7df1f935
mov eax, dword [eax + 0xc]
test eax, eax
je 0x7df1f960
movzx eax, byte [esi + 0x17]
imul eax, eax, 0x3418
lea eax, [eax + ecx + 0x310]
mov dword [edi + 0x58], eax
movzx ax, byte [edx + 2]
mov word [edi + 0x60], ax
mov eax, dword [edi + 0x58]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x7df28d1d
mov al, byte [edx + 3]
shr al, 1
and al, 3
jne 0x7df7aba0
add dword [ebp + 0xc], 8
mov eax, dword [ebp + 0xc]
shr eax, 3
movzx eax, ax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
xor edx, edx
add eax, 0xfffffff0
div dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
push 2
pop edx
mov dword [ebx], esi
mov dword [ebp + 0x10], 2
mov word [ebp - 0x36], dx
mov dword [ebp - 8], eax
test eax, eax
jbe 0x7df1f9ed
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
add dword [ebp + 0x10], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
add dword [ebp - 4], eax
mov ax, word [ebp + 0x10]
mov ecx, edx
add edx, 6
mov word [ecx + 8], ax
mov eax, dword [ebp - 0x18]
mov byte [edx], 0
mov eax, dword [eax + 0x24]
mov ebx, ecx
shr ebx, 3
xor ebx, dword [0x7df700a4]
mov byte [ecx + 7], 0x80
xor ebx, eax
xor ebx, esi
dec dword [ebp - 0xc]
mov dword [ecx], ebx
mov byte [edx], 0
jne 0x7df1f9a5
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov edx, 0xffff
mov word [ecx + 8], dx
mov cx, word [ebp - 0x10]
mov word [esi + 0x10], cx
mov ecx, dword [ebp + 0x14]
mov word [esi + 0x14], ax
mov dword [esi], edi
mov cl, byte [ecx + 2]
mov byte [esi + 0x16], cl
xor ecx, ecx
mov word [esi + 0x12], cx
mov dword [esi + 4], ebx
add edi, 0x50
mov ecx, dword [edi]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [edi + 4]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x1c]
add ecx, eax
mov dword [ebp - 0x30], ecx
test eax, eax
mov eax, dword [ebp - 0x18]
jle 0x7df28d40
inc eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
lock cmpxchg8b qword [edi]
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
cmp eax, ecx
jne 0x7df28d35
cmp edx, edi
jne 0x7df28d35
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x58]
inc dword [eax + 0x10]
mov eax, dword [eax + 0x10]
mov dword [ecx + 0x5c], eax
mov ax, word [ebp - 8]
mov word [ebp - 0x38], ax
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x34], eax
mov dword [esi + 0x1c], 1
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
lock cmpxchg8b qword [esi]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
pop edi
pop esi
pop ebx
leave
ret 0x10
mov eax, dword [edi + 0x58]
mov dword [eax + 0xc], ecx
jmp 0x7df1f960
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
jmp 0x7df1fa16
dec eax
jmp 0x7df1fa38