Function at 0x439920
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov ebp, dword [esp + 0x48]
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + ecx], 0
lea ecx, [ecx + 2]
jne 0x439940
add ecx, 0xfffffffe
and ecx, 0xfffe
mov word [esp + 0x18], cx
add ecx, 2
mov word [esp + 0x1a], cx
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], 0x94959697
mov dword [esp + 0x10], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 7
ja 0x4399ce
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0xc]
lea edx, [eax + ecx]
add edx, 0xb4281ce4
add eax, 0xb4281ce4
not ecx
or eax, ecx
sub ecx, eax
lea eax, [edx + ecx*2]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0x8c
mov ecx, dword [esp]
mov byte [esp + ecx + 0xc], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 8
jb 0x439990
mov ebx, dword [esp + 0xc]
mov eax, dword [0x443f58]
test eax, eax
je 0x439a2f
xor ecx, ecx
mov edx, dword [0x443f5c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0xf81c0144
je 0x439a00
inc ecx
cmp eax, ecx
jne 0x4399f0
jmp 0x439a2f
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x439a2f
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0
push 0
push 2
push edx
push dword [esp + 0x4c]
push 6
push dword [0x443f60]
push eax
call fcn.00436440
add esp, 0x24
mov ebx, eax
mov dword [esp], 0x498a8bf1
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 3
ja 0x439a81
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx]
add eax, 0x5e424223
xor eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0x51
mov ecx, dword [esp + 4]
mov byte [esp + ecx], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 4
jb 0x439a50
cmp ebx, dword [esp]
jne 0x439c29
push dword [esp + 0x14]
call fcn.00433ee0
add esp, 4
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], 0x94959697
mov dword [esp + 0x10], 0
mov dword [esp], 0
mov edx, dword [esp]
cmp edx, 7
ja 0x439b00
nop
nop
nop
mov edx, dword [esp]
mov esi, dword [esp]
movzx esi, byte [esp + esi + 0xc]
lea ebx, [edx + esi]
add ebx, 0xb4281ce4
add edx, 0xb4281ce4
not esi
or edx, esi
sub esi, edx
lea edx, [ebx + esi*2]
mov dword [esp + 4], edx
mov edx, dword [esp + 4]
add dl, 0x8c
mov esi, dword [esp]
mov byte [esp + esi + 0xc], dl
inc dword [esp]
mov edx, dword [esp]
cmp edx, 8
jb 0x439ac0
mov ebx, dword [esp + 0xc]
mov edx, dword [0x443f58]
test edx, edx
je 0x439b6a
mov ecx, edi
mov edi, ebp
xor esi, esi
mov ebp, dword [0x443f5c]
nop
nop
nop
nop
nop
nop
cmp dword [ebp + esi*8], 0xf81c0144
je 0x439b35
inc esi
cmp edx, esi
jne 0x439b20
mov ebp, edi
mov edi, ecx
jmp 0x439b6a
mov edx, dword [ebp + esi*8 + 4]
cmp edx, ebx
mov ebp, edi
mov edi, ecx
je 0x439b6a
lea esi, [esp + 0x14]
lea ebx, [esp + 0x18]
push esi
push eax
mov eax, dword [esp + 0x10]
push eax
push 2
push ebx
push dword [esp + 0x4c]
push 6
push dword [0x443f60]
push edx
call fcn.00436440
add esp, 0x24
mov ebx, eax
test ebx, ebx
js 0x439c1d
mov edx, dword [esp + 0x40]
test edx, edx
je 0x439b83
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
mov dword [edx], ecx
test ebp, ebp
je 0x439c1d
test edi, edi
je 0x439c13
mov esi, dword [ebp]
mov eax, dword [esp + 8]
mov ecx, dword [eax + 8]
cmp esi, ecx
jb 0x439ba3
mov esi, ecx
mov eax, dword [esp + 8]
lea edx, [eax + 0xc]
mov ecx, esi
shr ecx, 2
mov ebp, edi
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov ecx, esi
and ecx, 0xfffffffc
add ebp, ecx
add eax, ecx
add eax, 0xc
mov dword [esp + 0x20], eax
mov edx, esi
and edx, 3
mov ecx, edx
shr ecx, 1
mov edi, ebp
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov eax, dword [esp + 0x20]
mov edi, ebp
mov ecx, edx
or ecx, 1
xor edx, 0xfffffffe
and edx, ecx
mov ebp, dword [esp + 0x48]
je 0x439c13
and esi, 2
movzx ecx, byte [eax + esi]
mov byte [edi + esi], cl
cmp edx, 1
je 0x439c13
movzx ecx, byte [eax + esi + 1]
mov byte [edi + esi + 1], cl
cmp edx, 2
je 0x439c13
movzx ecx, byte [eax + esi + 2]
mov byte [edi + esi + 2], cl
mov eax, dword [esp + 8]
mov ecx, dword [eax + 8]
mov dword [ebp], ecx
push dword [esp + 8]
call fcn.00433ff0
add esp, 4
mov eax, ebx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret