Function at 0x4398c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
mov dword [esp], ecx
push ebx
mov ebx, edx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
lea ebp, [edi + 0x84]
test eax, eax
je 0x439b1e
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x439b1e
cmp eax, 0x21
jae 0x439906
mov dword [edi + 0x124], 0x1b
mov eax, 0x1b
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, ebp
call fcn.004385c0
mov ecx, ebp
call fcn.004384e0
cmp byte [esi], 0x89
jne 0x439b09
cmp byte [esi + 1], 0x50
jne 0x439b09
cmp byte [esi + 2], 0x4e
jne 0x439b09
cmp byte [esi + 3], 0x47
jne 0x439b09
cmp byte [esi + 4], 0xd
jne 0x439b09
cmp byte [esi + 5], 0xa
jne 0x439b09
cmp byte [esi + 6], 0x1a
jne 0x439b09
cmp byte [esi + 7], 0xa
jne 0x439b09
cmp byte [esi + 0xc], 0x49
lea eax, [esi + 0xc]
mov dword [esp + 0x18], eax
jne 0x439af4
cmp byte [esi + 0xd], 0x48
jne 0x439af4
cmp byte [esi + 0xe], 0x44
jne 0x439af4
cmp byte [esi + 0xf], 0x52
jne 0x439af4
movzx ecx, byte [esi + 0x10]
movzx eax, byte [esi + 0x11]
mov edx, dword [esp + 0x10]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x13]
shl ecx, 8
or ecx, eax
mov dword [edx], ecx
movzx ecx, byte [esi + 0x14]
movzx eax, byte [esi + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x17]
shl ecx, 8
or ecx, eax
mov dword [ebx], ecx
movzx eax, byte [esi + 0x18]
mov dword [ebp + 0x10], eax
movzx eax, byte [esi + 0x19]
mov dword [ebp + 0xc], eax
movzx eax, byte [esi + 0x1a]
mov dword [ebp], eax
movzx eax, byte [esi + 0x1b]
mov dword [ebp + 4], eax
movzx eax, byte [esi + 0x1c]
mov dword [ebp + 8], eax
cmp dword [edx], 0
mov dword [esp + 0x20], eax
je 0x439adf
cmp dword [ebx], 0
je 0x439adf
cmp dword [edi + 0x14], 0
jne 0x439a78
movzx ebx, byte [esi + 0x1d]
movzx eax, byte [esi + 0x1e]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0x1f]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0x20]
mov esi, dword [esp + 0x18]
shl ebx, 8
or ebx, eax
or eax, 0xffffffff
xor edx, edx
nop
movzx ecx, byte [esi + edx]
inc edx
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4a0630]
cmp edx, 0x11
jb 0x439a40
not eax
cmp ebx, eax
je 0x439a74
mov dword [edi + 0x124], 0x39
mov eax, 0x39
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x20]
cmp dword [ebp], 0
je 0x439a93
mov dword [edi + 0x124], 0x20
mov eax, 0x20
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp dword [ebp + 4], 0
je 0x439aae
mov dword [edi + 0x124], 0x21
mov eax, 0x21
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp eax, 1
jbe 0x439ac8
mov dword [edi + 0x124], 0x22
mov eax, 0x22
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
call fcn.00437e20
mov dword [edi + 0x124], eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [edi + 0x124], 0x5d
mov eax, 0x5d
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [edi + 0x124], 0x1d
mov eax, 0x1d
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [edi + 0x124], 0x1c
mov eax, 0x1c
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [edi + 0x124], 0x30
mov eax, 0x30
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret