Function at 0x446140
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [esp + 0x38]
test eax, eax
je 0x44618a
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x446160
sar ecx, 1
mov edx, ecx
or edx, 2
mov esi, ecx
and esi, 2
imul edx, esi
xor esi, 2
and ecx, 0xfffd
imul ecx, esi
add ecx, edx
jmp 0x44618c
xor ecx, ecx
mov word [esp + 0x14], cx
mov edx, eax
test eax, eax
je 0x44619c
add ecx, 2
mov edx, ecx
mov word [esp + 0x16], dx
mov dword [esp + 0x18], eax
mov dword [esp], 0xd8dbdac5
mov dword [esp + 4], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0x2f
xor cl, byte [esp + eax]
add cl, 0x15
mov byte [esp + eax], cl
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 8
jb 0x4461c0
mov esi, dword [esp]
mov eax, dword [0x451e48]
test eax, eax
je 0x44623f
xor ecx, ecx
mov edx, dword [0x451e4c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0xc0a4c970
je 0x446210
inc ecx
cmp eax, ecx
jne 0x446200
jmp 0x44623f
mov eax, dword [edx + ecx*8 + 4]
cmp eax, esi
je 0x44623f
lea ecx, [esp + 8]
lea edx, [esp + 0x14]
push ecx
push 0
push 0
push 2
push edx
push dword [esp + 0x48]
push 6
push eax
push dword [0x451e50]
call fcn.00441a80
add esp, 0x24
mov esi, eax
mov dword [esp], 0x599a9bb1
mov word [esp + 4], 0
mov eax, 0x1b
mov ecx, 0xe4
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [esp + eax - 0x1b]
mov edx, eax
xor edx, ecx
and edx, edi
xor edx, ecx
mov bl, pe_nt_image_headers32
sub bl, dl
mov byte [esp + eax - 0x1b], bl
inc eax
dec ecx
cmp eax, 0x21
jne 0x446260
cmp esi, dword [esp]
jne 0x44640a
push dword [esp + 8]
call fcn.0043e5b0
add esp, 4
mov edi, dword [esp + 8]
mov dword [esp + 0xc], 0xc1c6c7c6
mov word [esp + 0x10], 0
mov edx, 0x144018a9
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + edx - 0x1440189d]
lea esi, [edx - 0x144017f8]
and esi, ecx
add esi, esi
sub ecx, esi
add ecx, edx
mov esi, ecx
and esi, 0x13
xor ecx, 0x93
lea ecx, [ecx + esi*2]
mov byte [esp + edx - 0x1440189d], cl
inc edx
cmp edx, 0x144018af
jne 0x4462b0
mov edx, dword [esp + 0xc]
mov dword [esp], 0xd8dbdac5
mov dword [esp + 4], 0
xor ebx, ebx
nop
nop
nop
nop
nop
nop
nop
mov ecx, ebx
add cl, 0x2f
xor cl, byte [esp + ebx]
add cl, 0x15
mov byte [esp + ebx], cl
mov ecx, ebx
and ecx, 1
xor ebx, 1
lea ebx, [ebx + ecx*2]
cmp ebx, 8
jb 0x446300
mov esi, dword [esp]
mov ebp, dword [0x451e48]
test ebp, ebp
je 0x446380
mov ebx, edi
xor edi, edi
mov ecx, dword [0x451e4c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ecx + edi*8], 0xc0a4c970
je 0x446350
inc edi
cmp ebp, edi
jne 0x446340
jmp 0x446380
mov ebp, dword [ecx + edi*8 + 4]
cmp ebp, esi
je 0x446380
lea ecx, [esp + 8]
lea esi, [esp + 0x14]
push ecx
push ebx
push eax
push edx
push esi
push dword [esp + 0x48]
push 6
push ebp
push dword [0x451e50]
mov edi, eax
call fcn.00441a80
add esp, 0x24
mov esi, eax
mov eax, edi
test esi, esi
mov edx, dword [esp + 0x40]
js 0x446401
mov edi, dword [esp + 0x3c]
test edi, edi
je 0x446395
mov ecx, dword [eax + 4]
mov dword [edi], ecx
cmp dword [esp + 0x44], 0
je 0x446401
test edx, edx
je 0x4463f8
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
mov ecx, dword [eax + 8]
cmp edx, ecx
jb 0x4463af
mov edx, ecx
lea ebx, [eax + 0xc]
mov ecx, edx
shr ecx, 2
mov ebp, dword [esp + 0x40]
mov edi, ebp
xchg esi, ebx
rep movsd dword es:[edi], dword [esi]
xchg esi, ebx
mov ecx, edx
and ecx, 0xfffffffc
add ebp, ecx
lea ebx, [eax + ecx]
add ebx, 0xc
mov ecx, edx
shr ecx, 1
and ecx, 1
mov dword [esp + 0x1c], ebx
mov edi, ebp
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
test dl, 1
je 0x4463f8
and edx, 2
mov ecx, dword [esp + 0x1c]
movzx ecx, byte [ecx + edx]
mov byte [ebp + edx], cl
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x44]
mov dword [edx], ecx
push eax
call fcn.0043e640
add esp, 4
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret