Function at 0x384f4b90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
movzx eax, word [esi + 4]
mov edx, dword [esi + 0x20]
mov ecx, eax
mov edi, eax
mov dword [ebp + 0xc], ecx
movzx eax, word [edx + 0xc]
add eax, edi
cmp edi, eax
jae 0x384f4c0f
jmp 0x384f4bc0
mov cl, byte [ebp + 0xc]
sub cl, byte [esi + 4]
movzx eax, byte [esi + 0xd]
mov edx, dword [esi + 8]
movzx ecx, cl
imul ecx, eax
add cl, byte [esi + 0xc]
movzx eax, cl
push eax
movzx eax, byte [edi + ebx + 0x1400]
push eax
push ebx
call edx
mov byte [edi + ebx + 0x1400], al
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [esi + 0x20]
inc eax
movzx edi, ax
mov dword [ebp + 0xc], eax
movzx eax, word [esi + 4]
movzx ecx, word [edx + 0xc]
add ecx, eax
cmp edi, ecx
jb 0x384f4bc0
movzx ecx, word [esi + 4]
movzx eax, word [edx + 0x16]
movzx edi, cx
add eax, edi
mov eax, dword [eax + ebx + 0x1400]
mov dword [esi + 0x14], eax
cmp eax, 5
je 0x384f4cb0
mov eax, dword [esi]
add eax, 5
add eax, edi
push eax
push ebx
call 0x37eba450
sub eax, dword [esi + 0x14]
push eax
push ebx
mov dword [esi + 0xa4], eax
call 0x37eba270
mov ecx, dword [esi + 0x20]
add esp, 0x10
movzx edi, word [esi + 4]
mov dword [esi + 0x18], eax
mov dword [ebp + 0xc], eax
movzx edx, word [ecx + 0x18]
mov ecx, edi
mov eax, dword [esi]
add edx, ebx
mov ecx, dword [ecx + edx + 0x1400]
mov dword [esi + 0x1c], ecx
cmp eax, dword [ebx + 0xdc18]
jne 0x384f4c83
mov edx, dword [esi + 0x20]
mov ecx, edi
mov dword [esi + 0x10], 5
jmp 0x384f4ccf
test di, di
je 0x384f4c96
mov edx, dword [esi + 0x20]
mov ecx, edi
mov dword [esi + 0x10], 1
jmp 0x384f4ccf
mov eax, dword [ebx + 0xdc24]
mov ecx, edi
sub eax, dword [ebp + 0xc]
mov edx, dword [esi + 0x20]
neg eax
sbb eax, eax
and eax, 2
mov dword [esi + 0x10], eax
jmp 0x384f4ccf
test cx, cx
je 0x384f4cc6
mov eax, dword [esi]
mov dword [esi + 0x30], eax
mov dword [esi + 0x10], 4
movzx ecx, cx
jmp 0x384f4ccf
mov dword [esi + 0x10], 3
xor ecx, ecx
movzx eax, word [edx + 0x14]
lea edi, [ebx + 0x1400]
push eax
movzx eax, word [edx + 0x12]
add eax, dword [esi]
movzx ecx, cx
push edi
add ecx, eax
push ecx
push ebx
call 0x37e827f0
mov edx, dword [esi + 0x20]
add esp, 0x10
movzx ecx, word [edx + 0x14]
cmp eax, ecx
je 0x384f4d04
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, word [edx + 0x14]
xor eax, eax
mov dword [ebp + 0xc], eax
mov dword [ebp - 8], eax
cmp ax, cx
jae 0x384f4d61
mov edx, dword [esi + 8]
movzx edi, ax
mov eax, dword [esi + 0x20]
mov cl, byte [eax + 0x12]
add cl, byte [ebp + 0xc]
movzx eax, byte [esi + 0xd]
movzx ecx, cl
imul ecx, eax
add cl, byte [esi + 0xc]
movzx eax, cl
push eax
movzx eax, byte [edi + ebx + 0x1400]
push eax
push ebx
call edx
mov byte [edi + ebx + 0x1400], al
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [esi + 0x20]
inc eax
mov dword [ebp + 0xc], eax
cmp ax, word [edx + 0x14]
jb 0x384f4d15
lea edi, [ebx + 0x1400]
mov ax, word [edx + 0x12]
sub ax, word [edx + 0xc]
cmp byte [edx + 0x1c], 3
movzx eax, ax
mov dword [ebp - 8], eax
jne 0x384f4dba
movzx ecx, ax
mov dword [ebp + 8], ecx
cmp ax, word [edx + 0x10]
jae 0x384f4e2f
movzx edi, ax
jmp 0x384f4d90
movzx eax, byte [esi + 0xe]
movzx edx, cx
inc cl
movzx ecx, cl
sub edx, edi
imul ecx, eax
xor byte [edx + ebx + 0x1400], cl
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x20]
inc ecx
mov dword [ebp + 8], ecx
cmp cx, word [eax + 0x10]
jb 0x384f4d90
jmp 0x384f4e29
mov eax, dword [esi + 0x20]
mov edx, 4
mov ebx, edx
xor cl, cl
xor ch, ch
mov byte [ebp + 0xf], cl
mov byte [ebp - 1], ch
cmp bx, word [eax + 0x10]
mov ebx, dword [ebp + 8]
jae 0x384f4e2f
mov edi, dword [ebp - 8]
lea ebx, [ebx]
mov eax, edx
and eax, 1
je 0x384f4def
sub cl, byte [esi + 0xf]
mov byte [ebp + 0xf], cl
jmp 0x384f4df5
sub ch, byte [esi + 0xe]
mov byte [ebp - 1], ch
cmp dx, di
jb 0x384f4e1f
mov byte [ebp + 0xb], cl
test ax, ax
jne 0x384f4e05
mov byte [ebp + 0xb], ch
movzx eax, di
movzx ecx, dx
sub ecx, eax
lea eax, [ecx + ebx]
mov cl, byte [ebp + 0xb]
xor byte [eax + 0x1400], cl
mov cl, byte [ebp + 0xf]
mov ch, byte [ebp - 1]
mov eax, dword [esi + 0x20]
inc edx
cmp dx, word [eax + 0x10]
jb 0x384f4de0
lea edi, [ebx + 0x1400]
lea ecx, [esi + 0x28]
mov edx, 3
mov al, byte [edi]
lea edi, [edi + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
sub edx, 1
jne 0x384f4e37
mov eax, dword [ebx + 0x1408]
mov dword [esi + 0x24], eax
mov al, byte [ebx + 0x1411]
mov byte [esi + 0xa0], al
mov eax, dword [ebx + 0x140c]
mov dword [esi + 0x9b], eax
mov al, byte [ebx + 0x1410]
pop edi
mov byte [esi + 0x9f], al
lea eax, [edx + 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret