Function at 0x438940
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x5c
mov ebp, dword [esp + 0x70]
mov dword [ebp + 8], 0
mov dword [ebp + 4], 0
mov dword [ebp], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0x100000
mov dword [esp + 8], 0
mov eax, dword [0x4482e0]
test eax, eax
je 0x438f1b
mov edi, ecx
xor ecx, ecx
mov edx, dword [0x4482e4]
nop
cmp dword [edx + ecx*8], 0xa8f779e4
je 0x4389a3
inc ecx
cmp eax, ecx
jne 0x438990
jmp 0x438f1b
mov eax, dword [edx + ecx*8 + 4]
cmp eax, 0xffffffff
je 0x438f1b
lea edx, [esp + 0x18]
lea ecx, [esp + 8]
push 4
push 0x3000
push edx
push 0
push ecx
push 0xffffffffffffffff
push 0x18
push eax
push dword [0x4482e8]
call fcn.00439ac0
add esp, 0x24
test eax, eax
js 0x438f1b
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x1c], 0x10000
mov dword [esp + 0xc], 0
xor ebx, ebx
mov dword [esp], 0
mov ecx, dword [0x4482e0]
test ecx, ecx
je 0x438ecf
mov eax, dword [edi]
xor edx, edx
mov esi, dword [0x4482e4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xe095b21b
je 0x438a63
inc edx
cmp ecx, edx
jne 0x438a50
jmp 0x438ecf
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, 0xffffffff
je 0x438ecf
push 0
push 0x1c
lea edx, [esp + 0x48]
push edx
push 0
push dword [esp + 0x2c]
push eax
push 0x18
push ecx
push dword [0x4482e8]
call fcn.00439ac0
add esp, 0x24
cmp eax, 0xbfffffff
ja 0x438ecf
test eax, eax
js 0x438eb8
cmp dword [esp + 0x50], 0x1000
jne 0x438eb8
mov eax, dword [esp + 0x54]
mov ecx, eax
xor ecx, 0xffffff99
or eax, 0x66
test eax, ecx
je 0x438eb8
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jbe 0x438b95
mov ecx, dword [0x4482e0]
test ecx, ecx
je 0x438b27
xor edx, edx
mov esi, dword [0x4482e4]
cmp dword [esi + edx*8], 0x6a2d3ea3
je 0x438af8
inc edx
cmp ecx, edx
jne 0x438ae8
jmp 0x438b27
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, 0xffffffff
je 0x438b27
push 0x8000
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x10]
push eax
push 0xffffffffffffffff
push 0x10
push ecx
push dword [0x4482e8]
call fcn.00439ac0
add esp, 0x1c
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], 0
mov dword [esp + 0x18], eax
mov ecx, dword [0x4482e0]
mov eax, 0xffffffff
test ecx, ecx
je 0x438b89
xor edx, edx
mov esi, dword [0x4482e4]
cmp dword [esi + edx*8], 0xa8f779e4
je 0x438b5a
inc edx
cmp ecx, edx
jne 0x438b4a
jmp 0x438b89
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, 0xffffffff
je 0x438b89
push 4
push 0x3000
lea eax, [esp + 0x20]
push eax
push 0
lea eax, [esp + 0x18]
push eax
push 0xffffffffffffffff
push 0x18
push ecx
push dword [0x4482e8]
call fcn.00439ac0
add esp, 0x24
test eax, eax
js 0x438ecf
mov ecx, dword [esp + 0x18]
mov dword [esp + 4], ebx
mov dword [esp + 0x10], edi
mov esi, dword [0x4482e0]
test esi, esi
je 0x438c00
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
xor edi, edi
mov ebx, dword [0x4482e4]
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebx + edi*8], 0xa99f3325
je 0x438bd0
inc edi
cmp esi, edi
jne 0x438bc0
jmp 0x438c00
mov esi, dword [ebx + edi*8 + 4]
cmp esi, 0xffffffff
je 0x438c00
lea edi, [esp + 0x3c]
push edi
push ecx
push edx
push dword [esp + 0x28]
push eax
push 0x14
push esi
push dword [0x4482e8]
call fcn.00439ac0
add esp, 0x20
test eax, eax
js 0x438c05
mov ebx, dword [esp + 4]
jmp 0x438c62
mov eax, 0xffffffff
mov ebx, dword [esp + 4]
mov dword [esp + 0x2c], 0xe934690e
xor ecx, ecx
mov dl, 1
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, word [esp + ecx*2 + 0x2c]
lea edi, [ecx + 0x6dbaba6b]
or edi, 0xa5003000
xor edi, esi
add edi, 0x922a2ca7
mov esi, edi
and esi, 1
xor edi, 1
lea esi, [edi + esi*2]
mov word [esp + ecx*2 + 0x2c], si
mov ecx, 1
test dl, 1
mov edx, 0
jne 0x438c20
cmp eax, dword [esp + 0x2c]
jne 0x438eb4
push dword [esp + 0x7c]
push dword [esp + 0x7c]
push dword [esp + 0x7c]
push dword [esp + 0x48]
push dword [esp + 0x18]
lea eax, [esp + 0x40]
push eax
call fcn.00438f30
add esp, 0x18
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
cmp ecx, eax
mov edi, dword [esp + 0x10]
je 0x438e9f
mov dword [esp + 0x38], ecx
mov ebp, ecx
mov edx, dword [esp]
mov edi, ebx
mov dword [esp + 0x20], eax
jmp 0x438cc3
mov edi, ebx
mov dword [edi + ecx], esi
add edx, 4
add ebp, 4
cmp ebp, eax
je 0x438e64
mov esi, dword [ebp]
add esi, dword [esp + 0x1c]
sub esi, dword [esp + 8]
mov ecx, edx
mov ebx, edi
sub ecx, edi
cmp edx, dword [esp + 0xc]
jne 0x438cb0
mov dword [esp], edx
mov dword [esp + 0x14], ecx
sar ecx, 2
lea eax, [ecx + 1]
mov edi, ecx
shr edi, 1
add edi, ecx
cmp edi, eax
ja 0x438cf3
mov edi, eax
mov eax, edi
and eax, 0xfffffffb
mov ecx, edi
and ecx, 4
mov edx, edi
or edx, 4
imul edx, ecx
xor ecx, 4
imul ecx, eax
add edx, ecx
push edx
call fcn.00407fc0
add esp, 4
test ebx, ebx
je 0x438e4a
mov ecx, ebx
mov dword [esp + 0xc], edi
cmp eax, ebx
mov dword [esp + 4], ebx
mov ecx, dword [esp]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x24], eax
jbe 0x438def
cmp ecx, eax
jbe 0x438def
test edx, edx
je 0x438e36
mov ebx, dword [esp + 4]
mov edx, dword [esp + 0x14]
lea eax, [ebx + edx]
dec eax
mov ecx, dword [esp + 0x24]
add ecx, edx
dec ecx
mov edi, edx
and edi, 7
je 0x438d88
neg edi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x438d70
add eax, edx
add ecx, edx
add edx, dword [esp + 0x14]
mov ebx, dword [esp + 4]
mov edi, ebx
sub edi, dword [esp]
cmp edi, 0xfffffff8
ja 0x438e36
neg edx
xor edi, edi
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edi]
mov byte [ecx + edi], bl
movzx ebx, byte [eax + edi - 1]
mov byte [ecx + edi - 1], bl
movzx ebx, byte [eax + edi - 2]
mov byte [ecx + edi - 2], bl
movzx ebx, byte [eax + edi - 3]
mov byte [ecx + edi - 3], bl
movzx ebx, byte [eax + edi - 4]
mov byte [ecx + edi - 4], bl
movzx ebx, byte [eax + edi - 5]
mov byte [ecx + edi - 5], bl
movzx ebx, byte [eax + edi - 6]
mov byte [ecx + edi - 6], bl
movzx ebx, byte [eax + edi - 7]
mov byte [ecx + edi - 7], bl
add edi, 0xfffffff8
cmp edx, edi
jne 0x438da0
jmp 0x438e36
mov ecx, edx
shr ecx, 2
mov edi, eax
xchg esi, ebx
rep movsd dword es:[edi], dword [esi]
xchg esi, ebx
mov ecx, edx
xor ecx, 3
mov ebx, edx
or edx, 0xfffffffc
and edx, ecx
lea edi, [eax + edx]
add edx, dword [esp + 4]
mov ecx, ebx
shr ecx, 1
and ecx, 1
mov eax, edx
mov dword [esp], edi
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
test bl, 1
je 0x438e36
mov eax, dword [esp + 0x14]
and eax, 2
movzx ecx, byte [edx + eax]
mov edx, dword [esp]
mov byte [edx + eax], cl
push dword [esp + 4]
call fcn.00407fd0
add esp, 4
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x24]
lea ecx, [eax + edi*4]
mov dword [esp + 0xc], ecx
mov edx, eax
mov ecx, dword [esp + 0x14]
add edx, ecx
mov edi, eax
mov eax, dword [esp + 0x20]
jmp 0x438cb2
mov ebp, dword [esp + 0x70]
mov dword [ebp + 4], edx
mov ebx, edi
mov dword [ebp], edi
mov eax, dword [esp + 0xc]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x38]
test eax, eax
je 0x438eb1
mov dword [esp], edx
cmp eax, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
je 0x438eb8
push eax
call fcn.00407fd0
add esp, 4
mov dword [esp + 0x2c], 0
jmp 0x438eb8
mov eax, dword [esp]
mov dword [ebp + 4], eax
mov dword [ebp], ebx
mov eax, dword [esp + 0xc]
mov dword [ebp + 8], eax
jmp 0x438eb8
mov dword [esp], edx
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x4c]
add eax, dword [esp + 0x40]
mov dword [esp + 0x1c], eax
cmp eax, 0x7fffffff
jb 0x438a2f
mov eax, dword [0x4482e0]
test eax, eax
je 0x438f1b
xor ecx, ecx
mov edx, dword [0x4482e4]
cmp dword [edx + ecx*8], 0x6a2d3ea3
je 0x438ef0
inc ecx
cmp eax, ecx
jne 0x438ee0
jmp 0x438f1b
mov eax, dword [edx + ecx*8 + 4]
cmp eax, 0xffffffff
je 0x438f1b
push 0x8000
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x10]
push ecx
push 0xffffffffffffffff
push 0x10
push eax
push dword [0x4482e8]
call fcn.00439ac0
add esp, 0x1c
mov eax, ebp
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret 0x10