Function at 0x447710
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, dword [esp + 0x34]
mov dword [esp + 4], 0x3c3d3a3b
mov word [esp + 8], 0
mov byte [esp + 0xa], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0x4a
xor cl, byte [esp + eax + 4]
add cl, 0x8e
mov byte [esp + eax + 4], cl
inc eax
cmp eax, 7
jne 0x447740
mov eax, dword [esp + 4]
mov ebx, dword [0x452e1c]
test ebx, ebx
je 0x4477ac
xor ecx, ecx
mov edx, dword [0x452e20]
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0xc59b8bcb
je 0x447780
inc ecx
cmp ebx, ecx
jne 0x447770
jmp 0x4477ac
mov edx, dword [edx + ecx*8 + 4]
cmp edx, eax
je 0x4477ac
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 1
push dword [esp + 0x40]
push dword [esp + 0x40]
push 6
push dword [0x452e24]
push edx
call fcn.00443a10
add esp, 0x24
cmp eax, 0xc0000023
jne 0x447a19
push dword [esp + 0x10]
call fcn.00440940
add esp, 4
mov dword [esp], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 4], 0x3c3d3a3b
mov word [esp + 8], 0
mov byte [esp + 0xa], 0
xor edx, edx
mov ebx, edx
add bl, 0x4a
xor bl, byte [esp + edx + 4]
add bl, 0x8e
mov byte [esp + edx + 4], bl
inc edx
cmp edx, 7
jne 0x4477e0
mov ebx, dword [esp + 4]
mov edx, dword [0x452e1c]
test edx, edx
je 0x447854
xor esi, esi
mov ebp, dword [0x452e20]
nop
nop
nop
nop
cmp dword [ebp + esi*8], 0xc59b8bcb
je 0x447821
inc esi
cmp edx, esi
jne 0x447810
jmp 0x447854
mov edx, dword [ebp + esi*8 + 4]
cmp edx, ebx
je 0x447854
lea esi, [esp + 0x10]
push esi
push ecx
push dword [esp + 8]
push 1
push dword [esp + 0x40]
push dword [esp + 0x40]
push 6
push dword [0x452e24]
push edx
mov esi, eax
call fcn.00443a10
add esp, 0x24
mov ebx, eax
mov eax, esi
mov dword [esp + 0x14], ebx
test ebx, ebx
mov ebx, dword [esp + 0x44]
mov esi, dword [esp]
js 0x447a0c
mov edx, dword [esp + 0x38]
test edx, edx
mov ebp, dword [esp + 0x3c]
je 0x447969
test edi, edi
je 0x447962
mov ebp, dword [esi + 0x10]
shr ebp, 1
mov ecx, dword [edx]
cmp ecx, ebp
jb 0x44788c
mov ecx, ebp
test ecx, ecx
je 0x4478e5
add eax, 0x14
mov dword [esp + 0xc], ecx
and ecx, 3
mov ebp, dword [esp + 0x3c]
je 0x4478eb
mov ebx, dword [esp + 0xc]
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebp, word [eax]
xor edx, edx
test bp, bp
setne dl
lea eax, [eax + edx*2]
mov word [edi], bp
add edi, 2
inc esi
cmp ecx, esi
jne 0x4478b0
mov ecx, ebx
sub ecx, esi
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov esi, dword [esp]
cmp dword [esp + 0xc], 4
jae 0x447900
jmp 0x44795d
mov ebp, dword [esp + 0x3c]
jmp 0x44795d
mov ecx, dword [esp + 0xc]
cmp dword [esp + 0xc], 4
jb 0x44795d
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, word [eax]
xor ebx, ebx
test dx, dx
setne bl
lea esi, [eax + ebx*2]
mov word [edi], dx
movzx eax, word [eax + ebx*2]
xor edx, edx
test ax, ax
setne dl
lea ebx, [esi + edx*2]
mov word [edi + 2], ax
movzx eax, word [esi + edx*2]
xor edx, edx
test ax, ax
setne dl
lea esi, [ebx + edx*2]
mov word [edi + 4], ax
movzx edx, word [ebx + edx*2]
xor eax, eax
test dx, dx
setne al
mov word [edi + 6], dx
add edi, 8
lea eax, [esi + eax*2]
add ecx, 0xfffffffc
jne 0x447900
mov edx, dword [esp + 0x38]
mov esi, dword [esp]
mov ebx, dword [esp + 0x44]
mov word [edi], 0
mov eax, dword [esi + 0x10]
shr eax, 1
mov dword [edx], eax
test ebp, ebp
je 0x447973
mov eax, dword [esi + 4]
mov dword [ebp], eax
test ebx, ebx
je 0x447a0c
cmp dword [esp + 0x40], 0
je 0x447a07
mov eax, dword [ebx]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jb 0x447991
mov eax, ecx
mov ecx, dword [esp]
mov esi, dword [ecx + 8]
add esi, dword [esp]
mov ecx, eax
shr ecx, 2
mov edx, eax
and edx, 0xfffffffc
mov ebp, dword [esp + 0x40]
mov edi, ebp
add ebp, edx
add edx, esi
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov esi, eax
and esi, 3
mov ecx, esi
shr ecx, 1
mov ebx, edx
mov edi, ebp
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
mov ecx, eax
xor ecx, 2
and ecx, esi
mov esi, dword [esp]
mov ebx, dword [esp + 0x44]
je 0x447a07
and eax, 2
movzx ebx, byte [edx + eax]
mov byte [ebp + eax], bl
mov ebx, dword [esp + 0x44]
cmp ecx, 1
je 0x447a07
movzx ebx, byte [edx + eax + 1]
mov byte [ebp + eax + 1], bl
mov ebx, dword [esp + 0x44]
cmp ecx, 2
je 0x447a07
movzx ecx, byte [edx + eax + 2]
mov byte [ebp + eax + 2], cl
mov eax, dword [esi + 0xc]
mov dword [ebx], eax
push esi
call fcn.004409c0
add esp, 4
mov eax, dword [esp + 0x14]
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret